@@ -26,9 +26,12 @@ |
||
| 26 | 26 | <?php |
| 27 | 27 | get_search_form(); |
| 28 | 28 | |
| 29 | - else : ?> |
|
| 29 | + else { |
|
| 30 | + : ?> |
|
| 30 | 31 | |
| 31 | - <p><?php esc_html_e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'lighthouse' ); ?></p> |
|
| 32 | + <p><?php esc_html_e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'lighthouse' ); |
|
| 33 | + } |
|
| 34 | + ?></p> |
|
| 32 | 35 | <?php |
| 33 | 36 | get_search_form(); |
| 34 | 37 | |
@@ -34,8 +34,10 @@ |
||
| 34 | 34 | the_post(); |
| 35 | 35 | if ( is_search() ) : |
| 36 | 36 | get_template_part( 'template-parts/content', 'search' ); |
| 37 | - else : |
|
| 37 | + else { |
|
| 38 | + : |
|
| 38 | 39 | get_template_part( 'template-parts/content', get_post_format() ); |
| 40 | + } |
|
| 39 | 41 | endif; |
| 40 | 42 | } |
| 41 | 43 | } |
@@ -63,11 +63,14 @@ |
||
| 63 | 63 | } |
| 64 | 64 | <?php |
| 65 | 65 | // If the user has set a custom color for the text use that. |
| 66 | - else : |
|
| 66 | + else { |
|
| 67 | + : |
|
| 67 | 68 | ?> |
| 68 | 69 | .site-title a, |
| 69 | 70 | .site-description { |
| 70 | - color: #<?php echo esc_attr( $header_text_color ); ?>; |
|
| 71 | + color: #<?php echo esc_attr( $header_text_color ); |
|
| 72 | + } |
|
| 73 | + ?>; |
|
| 71 | 74 | } |
| 72 | 75 | <?php endif; ?> |
| 73 | 76 | </style> |
@@ -34,8 +34,10 @@ |
||
| 34 | 34 | the_post(); |
| 35 | 35 | if ( is_search() ) : |
| 36 | 36 | get_template_part( 'template-parts/content', 'search' ); |
| 37 | - else : |
|
| 37 | + else { |
|
| 38 | + : |
|
| 38 | 39 | get_template_part( 'template-parts/content', get_post_format() ); |
| 40 | + } |
|
| 39 | 41 | endif; |
| 40 | 42 | } |
| 41 | 43 | } |
@@ -34,8 +34,10 @@ |
||
| 34 | 34 | the_post(); |
| 35 | 35 | if ( is_search() ) : |
| 36 | 36 | get_template_part( 'template-parts/content', 'search' ); |
| 37 | - else : |
|
| 37 | + else { |
|
| 38 | + : |
|
| 38 | 39 | get_template_part( 'template-parts/content', get_post_format() ); |
| 40 | + } |
|
| 39 | 41 | endif; |
| 40 | 42 | } |
| 41 | 43 | } |
@@ -34,8 +34,10 @@ |
||
| 34 | 34 | the_post(); |
| 35 | 35 | if ( is_search() ) : |
| 36 | 36 | get_template_part( 'template-parts/content', 'search' ); |
| 37 | - else : |
|
| 37 | + else { |
|
| 38 | + : |
|
| 38 | 39 | get_template_part( 'template-parts/content', get_post_format() ); |
| 40 | + } |
|
| 39 | 41 | endif; |
| 40 | 42 | } |
| 41 | 43 | } |
@@ -252,7 +252,9 @@ discard block |
||
| 252 | 252 | $showitems = ($range * 2)+1; |
| 253 | 253 | |
| 254 | 254 | global $paged; |
| 255 | - if(empty($paged)) $paged = 1; |
|
| 255 | + if(empty($paged)) { |
|
| 256 | + $paged = 1; |
|
| 257 | + } |
|
| 256 | 258 | |
| 257 | 259 | if($pages == '') |
| 258 | 260 | { |
@@ -267,8 +269,12 @@ discard block |
||
| 267 | 269 | if(1 != $pages) |
| 268 | 270 | { |
| 269 | 271 | echo "<div class=\"pagination\"><span>Page ".$paged." of ".$pages."</span>"; |
| 270 | - if($paged > 2 && $paged > $range+1 && $showitems < $pages) echo "<a href='".get_pagenum_link(1)."'>« First</a>"; |
|
| 271 | - if($paged > 1 && $showitems < $pages) echo "<a href='".get_pagenum_link($paged - 1)."'>‹ Previous</a>"; |
|
| 272 | + if($paged > 2 && $paged > $range+1 && $showitems < $pages) { |
|
| 273 | + echo "<a href='".get_pagenum_link(1)."'>« First</a>"; |
|
| 274 | + } |
|
| 275 | + if($paged > 1 && $showitems < $pages) { |
|
| 276 | + echo "<a href='".get_pagenum_link($paged - 1)."'>‹ Previous</a>"; |
|
| 277 | + } |
|
| 272 | 278 | |
| 273 | 279 | for ($i=1; $i <= $pages; $i++) |
| 274 | 280 | { |
@@ -278,8 +284,12 @@ discard block |
||
| 278 | 284 | } |
| 279 | 285 | } |
| 280 | 286 | |
| 281 | - if ($paged < $pages && $showitems < $pages) echo "<a href=\"".get_pagenum_link($paged + 1)."\">Next ›</a>"; |
|
| 282 | - if ($paged < $pages-1 && $paged+$range-1 < $pages && $showitems < $pages) echo "<a href='".get_pagenum_link($pages)."'>Last »</a>"; |
|
| 287 | + if ($paged < $pages && $showitems < $pages) { |
|
| 288 | + echo "<a href=\"".get_pagenum_link($paged + 1)."\">Next ›</a>"; |
|
| 289 | + } |
|
| 290 | + if ($paged < $pages-1 && $paged+$range-1 < $pages && $showitems < $pages) { |
|
| 291 | + echo "<a href='".get_pagenum_link($pages)."'>Last »</a>"; |
|
| 292 | + } |
|
| 283 | 293 | echo "</div>\n"; |
| 284 | 294 | } |
| 285 | 295 | } |