-
Notifications
You must be signed in to change notification settings - Fork 1
/
content-image.php
49 lines (26 loc) · 1.23 KB
/
content-image.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
38
39
40
41
42
43
44
45
46
47
48
49
<?php if( is_sticky() ) { ?> <span class="sticky-post"><?php _e('Sticky post', 'baskerville'); ?></span> <?php } ?>
<?php if ( has_post_thumbnail() ) : ?>
<div class="featured-media">
<?php if( is_sticky() ) { ?> <span class="sticky-post"><?php _e('Sticky post', 'baskerville'); ?></span> <?php } ?>
<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title_attribute(); ?>">
<?php the_post_thumbnail('post-thumbnail'); ?>
</a>
</div> <!-- /featured-media -->
<?php endif; ?>
<div class="post-excerpt">
<?php if ( !empty(get_post(get_post_thumbnail_id())->post_excerpt) ) : ?>
<p class="image-caption"><?php echo get_post(get_post_thumbnail_id())->post_excerpt; ?></p>
<?php else : the_excerpt('100'); endif; ?>
</div>
<div class="post-meta">
<a class="post-date" href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_time( 'Y/m/d' ); ?></a>
<?php
if( function_exists('zilla_likes') ) zilla_likes();
if ( comments_open() ) {
comments_popup_link( '0', '1', '%', 'post-comments' );
}
edit_post_link();
?>
<div class="clear"></div>
</div>
<div class="clear"></div>