-
Notifications
You must be signed in to change notification settings - Fork 0
/
content.php
37 lines (34 loc) · 1.47 KB
/
content.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
/**
* The default template for displaying content. Used for both single and index/archive/search.
*/
?>
<div <?php post_class('post'); ?> id="post-<?php the_ID(); ?>">
<?php if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it. ?>
<div class="featured-image-shadow-box">
<?php
$thumbnail = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID),'advertica_standard_img');
?>
<a href="<?php the_permalink(); ?>" class="image">
<img src="<?php echo $thumbnail[0];?>" alt="<?php the_title(); ?>" class="featured-image alignnon"/>
</a>
</div>
<?php } ?>
<h2 class="post-title">
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
<?php the_title(); ?>
</a>
</h2>
<div class="skepost-meta clearfix">
<span class="date"><?php _e('On','advertica-lite');?> <?php the_time('F j, Y') ?></span><?php _e(',','advertica-lite');?>
<?php if (has_category()) { ?><span class="category"><?php _e('In ','advertica-lite');?><?php the_category(','); ?></span><?php _e(',','advertica-lite');?><?php } ?>
<?php the_tags('<span class="tags">By ',', ','</span>'); ?>
</div>
<!-- skepost-meta -->
<div class="skepost clearfix">
<?php the_excerpt(); ?>
<div class="continue"><a href="<?php the_permalink(); ?>"><?php _e('Read More','advertica-lite');?></a></div>
</div>
<!-- skepost -->
</div>
<!-- post -->