@@ -33,8 +33,10 @@ discard block |
||
| 33 | 33 | $paged = get_query_var( 'paged' ); |
| 34 | 34 | elseif ( get_query_var( 'page' ) ) : |
| 35 | 35 | $paged = get_query_var( 'page' ); |
| 36 | - else : |
|
| 36 | + else { |
|
| 37 | + : |
|
| 37 | 38 | $paged = 1; |
| 39 | + } |
|
| 38 | 40 | endif; |
| 39 | 41 | |
| 40 | 42 | $args = array( |
@@ -59,11 +61,14 @@ discard block |
||
| 59 | 61 | </div> |
| 60 | 62 | </div><!-- .portfolio-wrapper --> |
| 61 | 63 | |
| 62 | - <?php else : ?> |
|
| 64 | + <?php else { |
|
| 65 | + : ?> |
|
| 63 | 66 | |
| 64 | 67 | <section class="no-results not-found"> |
| 65 | 68 | <header class="page-header"> |
| 66 | - <h1 class="page-title"><?php esc_html_e( 'Nothing Found', 'lsx' ); ?></h1> |
|
| 69 | + <h1 class="page-title"><?php esc_html_e( 'Nothing Found', 'lsx' ); |
|
| 70 | +} |
|
| 71 | +?></h1> |
|
| 67 | 72 | </header><!-- .page-header --> |
| 68 | 73 | |
| 69 | 74 | <div class="page-content"> |
@@ -71,9 +76,12 @@ discard block |
||
| 71 | 76 | |
| 72 | 77 | <p><?php esc_html_e( 'Ready to publish your first project?', 'lsx' ); ?> <a href="<?php echo esc_url( admin_url( 'post-new.php?post_type=jetpack-portfolio' ) ) ?>"><?php esc_html_e( 'Get started here', 'lsx' ); ?></a></p> |
| 73 | 78 | |
| 74 | - <?php else : ?> |
|
| 79 | + <?php else { |
|
| 80 | + : ?> |
|
| 75 | 81 | |
| 76 | - <p><?php esc_html_e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'lsx' ); ?></p> |
|
| 82 | + <p><?php esc_html_e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'lsx' ); |
|
| 83 | +} |
|
| 84 | +?></p> |
|
| 77 | 85 | <?php get_search_form(); ?> |
| 78 | 86 | |
| 79 | 87 | <?php endif; ?> |