@@ -47,9 +47,12 @@ |
||
47 | 47 | <?php |
48 | 48 | wp_reset_postdata(); |
49 | 49 | ?> |
50 | - <?php else : ?> |
|
50 | + <?php else { |
|
51 | + : ?> |
|
51 | 52 | |
52 | - <?php get_template_part( 'no-results', 'archive-comic' ); ?> |
|
53 | + <?php get_template_part( 'no-results', 'archive-comic' ); |
|
54 | +} |
|
55 | +?> |
|
53 | 56 | |
54 | 57 | <?php endif; ?> |
55 | 58 |
@@ -21,8 +21,10 @@ |
||
21 | 21 | |
22 | 22 | if ( ! is_single() ) : |
23 | 23 | the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); |
24 | - else : |
|
24 | + else { |
|
25 | + : |
|
25 | 26 | the_title( '<h1 class="entry-title">', '</h1>' ); |
27 | + } |
|
26 | 28 | endif; |
27 | 29 | ?> |
28 | 30 | </header><!-- .entry-header --> |
@@ -74,8 +74,10 @@ |
||
74 | 74 | ); |
75 | 75 | |
76 | 76 | |
77 | - else : |
|
77 | + else { |
|
78 | + : |
|
78 | 79 | get_template_part( 'no-results', 'archive-comic' ); |
80 | + } |
|
79 | 81 | endif; ?> |
80 | 82 | |
81 | 83 | </main><!-- #content --> |
@@ -96,8 +96,10 @@ |
||
96 | 96 | wp_reset_postdata(); |
97 | 97 | ?> |
98 | 98 | <?php |
99 | - else : |
|
99 | + else { |
|
100 | + : |
|
100 | 101 | get_template_part( 'no-results', 'archive-comic' ); |
102 | + } |
|
101 | 103 | endif; ?> |
102 | 104 | |
103 | 105 | </div><!-- .wrap --> |
@@ -27,11 +27,14 @@ |
||
27 | 27 | |
28 | 28 | strip_content_nav( 'nav-below' ); |
29 | 29 | |
30 | - else : ?> |
|
30 | + else { |
|
31 | + : ?> |
|
31 | 32 | |
32 | 33 | <article id="post-0" class="no-results"> |
33 | 34 | <header class="page-header"> |
34 | - <h1 class="page-title"><?php esc_html_e( 'Nothing Found', 'strip' ); ?></h1> |
|
35 | + <h1 class="page-title"><?php esc_html_e( 'Nothing Found', 'strip' ); |
|
36 | + } |
|
37 | + ?></h1> |
|
35 | 38 | </header><!-- .page-header --> |
36 | 39 | <div class="entry-content"> |
37 | 40 | <p> <?php esc_html_e( 'Bummer, I cannot find what you are looking for. |
@@ -28,8 +28,10 @@ |
||
28 | 28 | |
29 | 29 | if ( ! is_single() ) : |
30 | 30 | the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); |
31 | - else : |
|
31 | + else { |
|
32 | + : |
|
32 | 33 | the_title( '<h1 class="entry-title">', '</h1>' ); |
34 | + } |
|
33 | 35 | endif; ?> |
34 | 36 | |
35 | 37 | <div class="entry-content clear"> |
@@ -28,8 +28,10 @@ discard block |
||
28 | 28 | |
29 | 29 | if ( ! is_single() ) : |
30 | 30 | the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); |
31 | - else : |
|
31 | + else { |
|
32 | + : |
|
32 | 33 | the_title( '<h1 class="entry-title">', '</h1>' ); |
34 | + } |
|
33 | 35 | endif; ?> |
34 | 36 | |
35 | 37 | </header><!-- .entry-header --> |
@@ -40,10 +42,13 @@ discard block |
||
40 | 42 | <?php the_excerpt(); ?> |
41 | 43 | </div><!-- .entry-summary --> |
42 | 44 | |
43 | - <?php else : ?> |
|
45 | + <?php else { |
|
46 | + : ?> |
|
44 | 47 | |
45 | 48 | <div class="entry-comic"> |
46 | - <?php the_content(); ?> |
|
49 | + <?php the_content(); |
|
50 | +} |
|
51 | +?> |
|
47 | 52 | |
48 | 53 | <?php endif; ?> |
49 | 54 | </div><!-- .entry-content --> |
@@ -75,8 +75,10 @@ discard block |
||
75 | 75 | elseif ( ! 'comic' === get_post_type() ) : |
76 | 76 | esc_html_e( 'Comics', 'strip' ); |
77 | 77 | |
78 | - else : |
|
78 | + else { |
|
79 | + : |
|
79 | 80 | esc_html_e( 'Archives', 'strip' ); |
81 | + } |
|
80 | 82 | |
81 | 83 | endif; |
82 | 84 | ?> |
@@ -108,9 +110,12 @@ discard block |
||
108 | 110 | |
109 | 111 | <?php strip_content_nav( 'nav-below' ); ?> |
110 | 112 | |
111 | - <?php else : ?> |
|
113 | + <?php else { |
|
114 | + : ?> |
|
112 | 115 | |
113 | - <?php get_template_part( 'no-results', 'archive' ); ?> |
|
116 | + <?php get_template_part( 'no-results', 'archive' ); |
|
117 | +} |
|
118 | +?> |
|
114 | 119 | |
115 | 120 | <?php endif; ?> |
116 | 121 |
@@ -15,8 +15,11 @@ discard block |
||
15 | 15 | <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'strip' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="<?php the_ID(); ?>" class="strip-featured-thumbnail"> |
16 | 16 | <?php the_post_thumbnail( 'strip-featured-thumbnail' ); ?> |
17 | 17 | </a> |
18 | - <?php else : ?> |
|
19 | - <?php the_post_thumbnail( 'strip-featured-thumbnail' ); ?> |
|
18 | + <?php else { |
|
19 | + : ?> |
|
20 | + <?php the_post_thumbnail( 'strip-featured-thumbnail' ); |
|
21 | +} |
|
22 | +?> |
|
20 | 23 | <?php endif; ?> |
21 | 24 | <?php endif; ?> |
22 | 25 | |
@@ -29,8 +32,10 @@ discard block |
||
29 | 32 | |
30 | 33 | if ( ! is_single() ) : |
31 | 34 | the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); |
32 | - else : |
|
35 | + else { |
|
36 | + : |
|
33 | 37 | the_title( '<h1 class="entry-title">', '</h1>' ); |
38 | + } |
|
34 | 39 | endif; |
35 | 40 | ?> |
36 | 41 | </header><!-- .entry-header --> |
@@ -49,7 +54,8 @@ discard block |
||
49 | 54 | <div class="entry-summary"> |
50 | 55 | <?php the_excerpt(); ?> |
51 | 56 | </div><!-- .entry-summary --> |
52 | - <?php else : ?> |
|
57 | + <?php else { |
|
58 | + : ?> |
|
53 | 59 | <div class="entry-content"> |
54 | 60 | <?php |
55 | 61 | the_content(sprintf( |
@@ -57,6 +63,7 @@ discard block |
||
57 | 63 | esc_html( __( 'Continue reading %s <span class="meta-nav">→</span>', 'strip' ), array( 'span' => array( 'class' => array() ) ) ), |
58 | 64 | the_title( '<span class="screen-reader-text">"', '"</span>', false ) |
59 | 65 | )); |
66 | +} |
|
60 | 67 | |
61 | 68 | wp_link_pages(array( |
62 | 69 | 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'strip' ) . '</span>', |