/
content-single.php
48 lines (31 loc) · 1.47 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
<?php
/**
* Singlular Content Template
*
* Displays content to be called by get_template_part() in singular templates
*
* @package happy
* @subpackage Template
*/
?>
<?php do_atomic( 'before_entry' ); // Before entry hook ?>
<article id="post-<?php the_ID(); ?>" class="<?php hybrid_entry_class(); ?>">
<?php do_atomic( 'open_entry' ); // Open entry hook ?>
<header class="entry-header">
<?php echo apply_atomic( 'entry_title', the_title( '<h1 class="entry-title">', '</h1>', false ) ); ?>
<?php do_atomic( 'after_title' ); // after title hook ?>
<?php get_template_part( 'loop', 'byline' ); ?>
<?php do_atomic( 'after_byline' ); // after title hook ?>
</header><!-- .entry-header -->
<?php do_atomic( 'before_the_content' ); // before title hook ?>
<div class="entry-content">
<?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'happy' ) ); ?>
<?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'happy' ), 'after' => '</p>' ) ); ?>
</div><!-- .entry-content -->
<?php do_atomic( 'after_the_content' ); // after title hook ?>
<?php get_template_part( 'loop', 'entry-meta' ); ?>
<?php do_atomic( 'close_entry' ); // Close entry hook ?>
</article><!-- .hentry -->
<?php do_atomic( 'after_entry' ); // After entry hook (also available on archives) ?>
<?php do_atomic( 'after_singular' ); // After singular hook (only on singular templates) ?>
<?php comments_template( '/comments.php', true ); ?>