-
Notifications
You must be signed in to change notification settings - Fork 0
/
content.php
71 lines (36 loc) · 2.04 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<div class="post-header">
<?php if ( has_post_thumbnail() ) : ?>
<div class="featured-media">
<?php if( is_sticky() ) { ?> <span class="sticky-post"><?php _e('Sticky post', 'hemingway'); ?></span> <?php } ?>
<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>">
<?php the_post_thumbnail('post-image'); ?>
<?php if ( !empty(get_post(get_post_thumbnail_id())->post_excerpt) ) : ?>
<div class="media-caption-container">
<p class="media-caption"><?php echo get_post(get_post_thumbnail_id())->post_excerpt; ?></p>
</div>
<?php endif; ?>
</a>
</div> <!-- /featured-media -->
<?php endif; ?>
<h2 class="post-title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div class="post-meta">
<span class="post-date"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_time(get_option('date_format')); ?></a></span>
<span class="date-sep"> / </span>
<span class="post-author"><?php the_author_posts_link(); ?></span>
<span class="date-sep"> / </span>
<?php comments_popup_link( '<span class="comment">' . __( '0 Comments', 'hemingway' ) . '</span>', __( '1 Comment', 'hemingway' ), __( '% Comments', 'hemingway' ) ); ?>
<?php if( is_sticky() && !has_post_thumbnail() ) { ?>
<span class="date-sep"> / </span>
<?php _e('Sticky', 'hemingway'); ?>
<?php } ?>
<?php if ( current_user_can( 'manage_options' ) ) { ?>
<span class="date-sep"> / </span>
<?php edit_post_link(__('Edit', 'hemingway')); ?>
<?php } ?>
</div>
</div> <!-- /post-header -->
<div class="post-content">
<?php the_content(); ?>
<?php wp_link_pages(); ?>
</div> <!-- /post-content -->
<div class="clear"></div>