@@ -1,5 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) return; // Exit if accessed directly |
|
| 2 | +if ( ! defined( 'ABSPATH' ) ) { |
|
| 3 | + return; |
|
| 4 | +} |
|
| 5 | +// Exit if accessed directly |
|
| 3 | 6 | |
| 4 | 7 | /** |
| 5 | 8 | * Customize Swatch Control Class |
@@ -1,5 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) return; // Exit if accessed directly |
|
| 2 | +if ( ! defined( 'ABSPATH' ) ) { |
|
| 3 | + return; |
|
| 4 | +} |
|
| 5 | +// Exit if accessed directly |
|
| 3 | 6 | |
| 4 | 7 | /** |
| 5 | 8 | * Customize Swatch Control Class |
@@ -1,5 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) return; // Exit if accessed directly |
|
| 2 | +if ( ! defined( 'ABSPATH' ) ) { |
|
| 3 | + return; |
|
| 4 | +} |
|
| 5 | +// Exit if accessed directly |
|
| 3 | 6 | |
| 4 | 7 | /** |
| 5 | 8 | * Customize Swatch Control Class |
@@ -1,5 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) return; // Exit if accessed directly |
|
| 2 | +if ( ! defined( 'ABSPATH' ) ) { |
|
| 3 | + return; |
|
| 4 | +} |
|
| 5 | +// Exit if accessed directly |
|
| 3 | 6 | |
| 4 | 7 | /** |
| 5 | 8 | * Customize Swatch Control Class |
@@ -1,5 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) return; // Exit if accessed directly |
|
| 2 | +if ( ! defined( 'ABSPATH' ) ) { |
|
| 3 | + return; |
|
| 4 | +} |
|
| 5 | +// Exit if accessed directly |
|
| 3 | 6 | |
| 4 | 7 | /** |
| 5 | 8 | * Customize Swatch Control Class |
@@ -1,5 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) return; // Exit if accessed directly |
|
| 2 | +if ( ! defined( 'ABSPATH' ) ) { |
|
| 3 | + return; |
|
| 4 | +} |
|
| 5 | +// Exit if accessed directly |
|
| 3 | 6 | |
| 4 | 7 | /** |
| 5 | 8 | * Customize Swatch Control Class |
@@ -36,11 +36,14 @@ discard block |
||
| 36 | 36 | |
| 37 | 37 | <?php lsx_paging_nav(); ?> |
| 38 | 38 | |
| 39 | - <?php else : ?> |
|
| 39 | + <?php else { |
|
| 40 | + : ?> |
|
| 40 | 41 | |
| 41 | 42 | <section class="no-results not-found"> |
| 42 | 43 | <header class="page-header"> |
| 43 | - <h1 class="page-title"><?php esc_html_e( 'Nothing Found', 'lsx' ); ?></h1> |
|
| 44 | + <h1 class="page-title"><?php esc_html_e( 'Nothing Found', 'lsx' ); |
|
| 45 | +} |
|
| 46 | +?></h1> |
|
| 44 | 47 | </header><!-- .page-header --> |
| 45 | 48 | |
| 46 | 49 | <div class="page-content"> |
@@ -48,9 +51,12 @@ discard block |
||
| 48 | 51 | |
| 49 | 52 | <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> |
| 50 | 53 | |
| 51 | - <?php else : ?> |
|
| 54 | + <?php else { |
|
| 55 | + : ?> |
|
| 52 | 56 | |
| 53 | - <p><?php esc_html_e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'lsx' ); ?></p> |
|
| 57 | + <p><?php esc_html_e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'lsx' ); |
|
| 58 | +} |
|
| 59 | +?></p> |
|
| 54 | 60 | <?php get_search_form(); ?> |
| 55 | 61 | |
| 56 | 62 | <?php endif; ?> |
@@ -23,9 +23,12 @@ |
||
| 23 | 23 | <p><?php esc_html_e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'lsx' ); ?></p> |
| 24 | 24 | <?php get_search_form(); ?> |
| 25 | 25 | |
| 26 | - <?php else : ?> |
|
| 26 | + <?php else { |
|
| 27 | + : ?> |
|
| 27 | 28 | |
| 28 | - <p><?php esc_html_e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'lsx' ); ?></p> |
|
| 29 | + <p><?php esc_html_e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'lsx' ); |
|
| 30 | +} |
|
| 31 | +?></p> |
|
| 29 | 32 | <?php get_search_form(); ?> |
| 30 | 33 | |
| 31 | 34 | <?php endif; ?> |
@@ -44,9 +44,12 @@ |
||
| 44 | 44 | |
| 45 | 45 | <?php lsx_paging_nav(); ?> |
| 46 | 46 | |
| 47 | - <?php else : ?> |
|
| 47 | + <?php else { |
|
| 48 | + : ?> |
|
| 48 | 49 | |
| 49 | - <?php get_template_part( 'content', 'none' ); ?> |
|
| 50 | + <?php get_template_part( 'content', 'none' ); |
|
| 51 | +} |
|
| 52 | +?> |
|
| 50 | 53 | |
| 51 | 54 | <?php endif; ?> |
| 52 | 55 | |