| 1 | <?php |
|---|
| 2 | /** |
|---|
| 3 | * The Template for displaying all single posts. |
|---|
| 4 | * |
|---|
| 5 | * @package Anima |
|---|
| 6 | */ |
|---|
| 7 | |
|---|
| 8 | get_header(); |
|---|
| 9 | if ( 2 == cryout_get_option( 'anima_singlenav' ) ) { ?> |
|---|
| 10 | <nav id="nav-fixed"> |
|---|
| 11 | <div class="nav-previous"><?php previous_post_link( '%link', '<i class="icon-continue-reading"></i><span>%title</span>' ); ?></div> |
|---|
| 12 | <div class="nav-next"><?php next_post_link( '%link', '<span>%title</span><i class="icon-continue-reading"></i>' ); ?></div> |
|---|
| 13 | </nav> |
|---|
| 14 | <?php } ?> |
|---|
| 15 | <div id="container" class="<?php echo anima_get_layout_class(); ?>"> |
|---|
| 16 | <main id="main" role="main" class="main"> |
|---|
| 17 | <?php cryout_before_content_hook(); ?> |
|---|
| 18 | |
|---|
| 19 | <?php while ( have_posts() ) : the_post(); ?> |
|---|
| 20 | |
|---|
| 21 | <article id="post-<?php the_ID(); ?>" <?php post_class(); cryout_schema_microdata( 'article' );?>> |
|---|
| 22 | <div class="schema-image"> |
|---|
| 23 | <?php cryout_featured_hook(); ?> |
|---|
| 24 | </div> |
|---|
| 25 | |
|---|
| 26 | <div class="article-inner"> |
|---|
| 27 | <header> |
|---|
| 28 | <div class="entry-meta beforetitle-meta"> |
|---|
| 29 | <?php cryout_post_title_hook(); ?> |
|---|
| 30 | </div><!-- .entry-meta --> |
|---|
| 31 | <?php if ( FALSE == cryout_get_option( 'anima_headertitles_posts' ) ) { |
|---|
| 32 | the_title( '<h1 class="entry-title singular-title" ' . cryout_schema_microdata('entry-title', 0) . '>', '</h1>' ); |
|---|
| 33 | } ?> |
|---|
| 34 | |
|---|
| 35 | <div class="entry-meta aftertitle-meta"> |
|---|
| 36 | <?php cryout_post_meta_hook(); ?> |
|---|
| 37 | </div><!-- .entry-meta --> |
|---|
| 38 | |
|---|
| 39 | </header> |
|---|
| 40 | |
|---|
| 41 | <?php cryout_singular_before_inner_hook(); ?> |
|---|
| 42 | |
|---|
| 43 | <div class="entry-content" <?php cryout_schema_microdata('entry-content'); ?>> |
|---|
| 44 | <?php the_content(); ?> |
|---|
| 45 | <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'anima' ), 'after' => '</span></div>' ) ); ?> |
|---|
| 46 | </div><!-- .entry-content --> |
|---|
| 47 | |
|---|
| 48 | <footer class="entry-meta entry-utility"> |
|---|
| 49 | <?php cryout_post_utility_hook(); ?> |
|---|
| 50 | </footer><!-- .entry-utility --> |
|---|
| 51 | |
|---|
| 52 | </div><!-- .article-inner --> |
|---|
| 53 | <?php cryout_singular_after_inner_hook(); ?> |
|---|
| 54 | </article><!-- #post-## --> |
|---|
| 55 | |
|---|
| 56 | <?php if ( get_the_author_meta( 'description' ) ) { |
|---|
| 57 | // If a user has filled out their description, show a bio on their entries |
|---|
| 58 | get_template_part( 'content/author-bio' ); |
|---|
| 59 | } ?> |
|---|
| 60 | <?php if ( 1 == cryout_get_option ('anima_singlenav') ) { ?> |
|---|
| 61 | <nav id="nav-below" class="navigation" role="navigation"> |
|---|
| 62 | <div class="nav-previous"><em><?php _e('Previous Post', 'anima');?></em><?php previous_post_link( '%link', '<span>%title</span>' ); ?></div> |
|---|
| 63 | <div class="nav-next"><em><?php _e('Next Post', 'anima');?></em><?php next_post_link( '%link', '<span>%title</span>' ); ?></div> |
|---|
| 64 | </nav><!-- #nav-below --> |
|---|
| 65 | <?php } ?> |
|---|
| 66 | |
|---|
| 67 | <?php cryout_singular_before_comments_hook(); ?> |
|---|
| 68 | |
|---|
| 69 | <?php comments_template( '', true ); ?> |
|---|
| 70 | |
|---|
| 71 | <?php endwhile; // end of the loop. ?> |
|---|
| 72 | |
|---|
| 73 | <?php cryout_after_content_hook(); ?> |
|---|
| 74 | </main><!-- #main --> |
|---|
| 75 | |
|---|
| 76 | <?php anima_get_sidebar(); ?> |
|---|
| 77 | </div><!-- #container --> |
|---|
| 78 | |
|---|
| 79 | <?php get_footer(); |
|---|