@@ -13,14 +13,14 @@ discard block |
||
| 13 | 13 | <section id="primary" |
| 14 | 14 | <main id="content" role="main"> |
| 15 | 15 | |
| 16 | - <?php if ( have_posts() ) : ?> |
|
| 16 | + <?php if (have_posts()) : ?> |
|
| 17 | 17 | |
| 18 | 18 | <header class="page-header"> |
| 19 | 19 | <h1 class="page-title"> |
| 20 | 20 | <?php |
| 21 | 21 | printf( |
| 22 | - esc_html( 'STORIES %s', 'strip' ), '<span>' . |
|
| 23 | - single_cat_title( '', false ) . '</span>' |
|
| 22 | + esc_html('STORIES %s', 'strip'), '<span>' . |
|
| 23 | + single_cat_title('', false) . '</span>' |
|
| 24 | 24 | ); |
| 25 | 25 | ?> |
| 26 | 26 | </h1> |
@@ -28,8 +28,8 @@ discard block |
||
| 28 | 28 | <?php |
| 29 | 29 | // Show an optional term description. |
| 30 | 30 | $term_description = term_description(); |
| 31 | - if ( ! empty( $term_description ) ) : |
|
| 32 | - '<div class="taxonomy-description"' . printf( esc_html( '%s', $term_description ) ) . '</div>'; |
|
| 31 | + if ( ! empty($term_description)) : |
|
| 32 | + '<div class="taxonomy-description"' . printf(esc_html('%s', $term_description)) . '</div>'; |
|
| 33 | 33 | endif; |
| 34 | 34 | ?> |
| 35 | 35 | </header><!-- .page-header --> |
@@ -47,24 +47,24 @@ discard block |
||
| 47 | 47 | ) |
| 48 | 48 | ); |
| 49 | 49 | |
| 50 | -while ( $comic->have_posts() ) : $comic->the_post(); |
|
| 51 | - get_template_part( 'content-comic' ); |
|
| 50 | +while ($comic->have_posts()) : $comic->the_post(); |
|
| 51 | + get_template_part('content-comic'); |
|
| 52 | 52 | // change to 'content' to style it like the blog entry page. |
| 53 | 53 | ?> |
| 54 | 54 | <?php endwhile; |
| 55 | 55 | wp_reset_postdata(); ?> |
| 56 | 56 | |
| 57 | 57 | <div class="wrap"> |
| 58 | - <?php the_posts_pagination( array( |
|
| 59 | - 'prev_text' => _x( '←', 'Previous page link', 'strip' ) . '<span class="screen-reader-text">' . __( 'Previous page', 'strip' ) . '</span>', |
|
| 60 | - 'next_text' => '<span class="screen-reader-text">' . __( 'Next page', 'strip' ) . '</span>' . _x( '→', 'Next post link', 'strip' ), |
|
| 61 | - 'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'strip' ) . ' </span>', |
|
| 62 | - ) ); ?> |
|
| 58 | + <?php the_posts_pagination(array( |
|
| 59 | + 'prev_text' => _x('←', 'Previous page link', 'strip') . '<span class="screen-reader-text">' . __('Previous page', 'strip') . '</span>', |
|
| 60 | + 'next_text' => '<span class="screen-reader-text">' . __('Next page', 'strip') . '</span>' . _x('→', 'Next post link', 'strip'), |
|
| 61 | + 'before_page_number' => '<span class="meta-nav screen-reader-text">' . __('Page', 'strip') . ' </span>', |
|
| 62 | + )); ?> |
|
| 63 | 63 | </div> |
| 64 | 64 | |
| 65 | 65 | <?php else : ?> |
| 66 | 66 | |
| 67 | - <?php get_template_part( 'no-results', 'archive-comic' ); ?> |
|
| 67 | + <?php get_template_part('no-results', 'archive-comic'); ?> |
|
| 68 | 68 | |
| 69 | 69 | <?php endif; |
| 70 | 70 | wp_reset_postdata(); ?> |
@@ -62,9 +62,12 @@ |
||
| 62 | 62 | ) ); ?> |
| 63 | 63 | </div> |
| 64 | 64 | |
| 65 | - <?php else : ?> |
|
| 65 | + <?php else { |
|
| 66 | + : ?> |
|
| 66 | 67 | |
| 67 | - <?php get_template_part( 'no-results', 'archive-comic' ); ?> |
|
| 68 | + <?php get_template_part( 'no-results', 'archive-comic' ); |
|
| 69 | +} |
|
| 70 | +?> |
|
| 68 | 71 | |
| 69 | 72 | <?php endif; |
| 70 | 73 | wp_reset_postdata(); ?> |