-
Notifications
You must be signed in to change notification settings - Fork 0
/
content.php
48 lines (42 loc) · 1.83 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
<?php
$classes = get_post_class();
$classes = array_merge($classes, array('concavebox'));
$_slimwriter_nail = get_the_post_thumbnail( get_the_ID(), '-slimwriter-featured-big');
?>
<div class="<?php echo join(' ', $classes);?>">
<?php if($_slimwriter_nail):?>
<div class="featured-img"><?php echo $_slimwriter_nail; ?></div>
<?php endif; // nail ?>
<div class="entry-header">
<?php if(is_singular()):?>
<h1><?php the_title();?></h1>
<?php else: ?>
<h1><a href="<?php the_permalink();?>"><?php the_title();?></a></h1>
<?php endif; ?>
<p class="byline"><?php the_author_link(); ?> - <?php the_time(get_option('date_format'));?> -
<?php comments_popup_link( __('No comments', 'slimwriter'),
__('One comment', 'slimwriter'),
__('% comments', 'slimwriter'),
'comments-link',
__('Comments off', 'slimwriter') ); ?>
</p>
</div>
<div class="entry">
<?php the_content('Continue Reading »'); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'slimwriter' ) . '</span>', 'after' => '</div>' ) ); ?>
</div><!-- .entry -->
<div class="entry-footer">
<p><?php _e('Categories', 'slimwriter');?> : <?php the_category(', ');?>
<a class="pull-right" href="<?php the_permalink(); ?>"><span class="glyphicon glyphicon-link"></span></a>
<br/>
<?php the_tags(sprintf("%s : ", __('Tags', 'slimwriter'))); ?>
</p>
</div>
</div><!-- .concavebox -->
<?php if(is_singular()):?>
<ul class="pager">
<li class="previous"><?php next_post_link( '%link', '« '.__( 'Previous Post', 'slimwriter' ) ); ?></li>
<li class="next"><?php previous_post_link( '%link', __( 'Next Post', 'slimwriter' ) . ' »' ); ?></li>
</ul>
<?php endif;?>
<?php comments_template();?>