-
Notifications
You must be signed in to change notification settings - Fork 0
/
content-single.php
53 lines (46 loc) · 1.05 KB
/
content-single.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
<?php
/**
* Template for single post entries.
* @package russell
*/
$sticky = '';
if ( is_sticky() ) {
$sticky = 'sticky';
}
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="russell-post-meta">
<?php russell_posted_on(); ?>
</div><!-- .entry-meta -->
<?php
$title = get_the_title();
$categories = get_the_category();
?>
<h1 class="russell-site-title">
<?php echo $title ?>
<?php
if ( ! empty( $categories ) ) {
?><span><?php
foreach ( $categories as $i => $category ) {
if ( $i ) {
echo ', ';
}
?><a href='<?php echo esc_url( get_category_link( $category->cat_ID ) ) ?>'><?php echo $category->cat_name ?></a><?php
}
?></span><?php
}
?>
</h1>
<div class="entry-content">
<?php the_content(); ?>
<?php
wp_link_pages( array(
'before' => '<div class="page-links">' . __( 'Pages:', 'russell' ),
'after' => '</div>',
) );
?>
</div><!-- .entry-content -->
<footer class="entry-footer">
<?php russell_entry_footer(); ?>
</footer><!-- .entry-footer -->
</article><!-- #post-## -->