@@ -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 | * Customizer Header Fixed 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 | * Cleaner walker for wp_nav_menu() |
@@ -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 | * Google_Font Class |
5 | 8 | **/ |
@@ -1,5 +1,8 @@ discard block |
||
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 | * lsx Comment Walker |
@@ -67,7 +70,7 @@ discard block |
||
67 | 70 | foreach($fields as &$field){ |
68 | 71 | if(stristr('class=', $field)){ |
69 | 72 | $field = str_replace('class="', 'class="form-control ', $field); |
70 | - }else{ |
|
73 | + } else{ |
|
71 | 74 | $field = str_replace('<input', '<input class="form-control" ', $field); |
72 | 75 | } |
73 | 76 | } |
@@ -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 | * Register widgetized area and update sidebar with default widgets. |
@@ -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 | * Customizer Header 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 | * Google Font_Collection Class |
5 | 8 | **/ |
@@ -1,5 +1,8 @@ discard block |
||
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 | * Customizer Configuration File |
@@ -164,7 +167,7 @@ discard block |
||
164 | 167 | $control = new $control_class( $wp_customize, $slug, array_merge( $default_args, $args ) ); |
165 | 168 | $wp_customize->add_control( $control ); |
166 | 169 | |
167 | - }else{ |
|
170 | + } else{ |
|
168 | 171 | |
169 | 172 | if( isset( $args['control'] ) ){ |
170 | 173 | unset( $args['control'] ); |
@@ -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; ?> |