@@ -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 | * Enqueue scripts and styles. |
@@ -29,7 +32,7 @@ discard block |
||
29 | 32 | wp_enqueue_script('imagesLoaded', get_template_directory_uri().'/js/vendor/imagesloaded.pkgd.min.js', array('jquery','masonry')); |
30 | 33 | if(defined('WP_DEBUG') && true === WP_DEBUG){ |
31 | 34 | wp_enqueue_script('lsx_script', get_template_directory_uri() . '/js/lsx-script.js', array('masonry'), null, false); |
32 | - }else{ |
|
35 | + } else{ |
|
33 | 36 | wp_enqueue_script('lsx_script', get_template_directory_uri() . '/js/lsx-script.min.js', array('masonry'), null, false); |
34 | 37 | } |
35 | 38 | |
@@ -107,9 +110,15 @@ discard block |
||
107 | 110 | */ |
108 | 111 | function lsx_scripts_defer_parsing( $url ) { |
109 | 112 | if ( ! ( is_admin() ) ) { |
110 | - if ( FALSE === strpos( $url, '.js' ) ) return $url; |
|
111 | - if ( strpos( $url, 'jquery.js' ) ) return $url; |
|
112 | - if ( strpos( $url, ' defer ' ) ) return $url; |
|
113 | + if ( FALSE === strpos( $url, '.js' ) ) { |
|
114 | + return $url; |
|
115 | + } |
|
116 | + if ( strpos( $url, 'jquery.js' ) ) { |
|
117 | + return $url; |
|
118 | + } |
|
119 | + if ( strpos( $url, ' defer ' ) ) { |
|
120 | + return $url; |
|
121 | + } |
|
113 | 122 | return "$url' defer onload='"; |
114 | 123 | } |
115 | 124 |
@@ -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'] ); |
@@ -40,29 +40,29 @@ |
||
40 | 40 | $output = str_replace('Page','<a href="'.get_post_type_archive_link( 'tribe_events' ).'">'.__('Events','lsx').'</a>',$output); |
41 | 41 | if(isset($wp_query->query_vars['eventDisplay']) && 'all' === $wp_query->query_vars['eventDisplay']){ |
42 | 42 | $output = str_replace($closing_div,get_the_title($wp_query->query_vars['post_parent']).$closing_div,$output); |
43 | - }else{ |
|
43 | + } else{ |
|
44 | 44 | $single_event = get_queried_object(); |
45 | 45 | $output = str_replace($closing_div,apply_filters('the_title',$single_event->post_title).$closing_div,$output); |
46 | 46 | } |
47 | - }elseif( is_tax()) { |
|
47 | + } elseif( is_tax()) { |
|
48 | 48 | $tax_event = get_queried_object(); |
49 | 49 | $output = str_replace('Page','<a href="'.get_post_type_archive_link( 'tribe_events' ).'">'.__('Events','lsx').'</a>',$output); |
50 | 50 | $output = str_replace($closing_div,' / '.apply_filters('the_title',$tax_event->name).$closing_div,$output); |
51 | - }else{ |
|
51 | + } else{ |
|
52 | 52 | $output = str_replace('Page',__('Events','lsx'),$output); |
53 | 53 | } |
54 | - }elseif(function_exists('yoast_breadcrumb')){ |
|
54 | + } elseif(function_exists('yoast_breadcrumb')){ |
|
55 | 55 | $closing_div = '</div>'; |
56 | 56 | $last_breadcrumb = '<span class="breadcrumb_last">'.__('Events','lsx').'</span>'; |
57 | 57 | |
58 | 58 | if( is_single()) { |
59 | 59 | $single_event = get_queried_object(); |
60 | 60 | $output = str_replace($closing_div,'<a href="'.get_post_type_archive_link( 'tribe_events' ).'">'.__('Events','lsx').'</a> / '.apply_filters('the_title',$single_event->post_title),$output); |
61 | - }elseif( is_tax()) { |
|
61 | + } elseif( is_tax()) { |
|
62 | 62 | $tax_event = get_queried_object(); |
63 | 63 | $output = str_replace($last_breadcrumb,'<a href="'.get_post_type_archive_link( 'tribe_events' ).'">'.__('Events','lsx').'</a> / '.apply_filters('the_title',$tax_event->name),$output); |
64 | 64 | |
65 | - }else{ |
|
65 | + } else{ |
|
66 | 66 | $output = str_replace('Page',__('Events','lsx'),$output); |
67 | 67 | } |
68 | 68 | } |
@@ -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 |
@@ -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 |
@@ -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 |
@@ -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 |