@@ -6,11 +6,11 @@ discard block |
||
6 | 6 | * @subpackage the-events-calendar |
7 | 7 | */ |
8 | 8 | |
9 | -if ( ! defined( 'ABSPATH' ) ) { |
|
9 | +if ( ! defined('ABSPATH')) { |
|
10 | 10 | exit; |
11 | 11 | } |
12 | 12 | |
13 | -if ( ! function_exists( 'lsx_tec_scripts_add_styles' ) ) : |
|
13 | +if ( ! function_exists('lsx_tec_scripts_add_styles')) : |
|
14 | 14 | |
15 | 15 | /** |
16 | 16 | * The Events Calendar enqueue styles. |
@@ -19,15 +19,15 @@ discard block |
||
19 | 19 | * @subpackage the-events-calendar |
20 | 20 | */ |
21 | 21 | function lsx_tec_scripts_add_styles() { |
22 | - wp_enqueue_style( 'the-events-calendar-lsx', get_template_directory_uri() . '/assets/css/the-events-calendar.css', array( 'lsx_main' ), LSX_VERSION ); |
|
23 | - wp_style_add_data( 'the-events-calendar-lsx', 'rtl', 'replace' ); |
|
22 | + wp_enqueue_style('the-events-calendar-lsx', get_template_directory_uri() . '/assets/css/the-events-calendar.css', array('lsx_main'), LSX_VERSION); |
|
23 | + wp_style_add_data('the-events-calendar-lsx', 'rtl', 'replace'); |
|
24 | 24 | } |
25 | 25 | |
26 | - add_action( 'wp_enqueue_scripts', 'lsx_tec_scripts_add_styles' ); |
|
26 | + add_action('wp_enqueue_scripts', 'lsx_tec_scripts_add_styles'); |
|
27 | 27 | |
28 | 28 | endif; |
29 | 29 | |
30 | -if ( ! function_exists( 'lsx_tec_theme_wrapper_start' ) ) : |
|
30 | +if ( ! function_exists('lsx_tec_theme_wrapper_start')) : |
|
31 | 31 | |
32 | 32 | /** |
33 | 33 | * The Events Calendar wrapper start. |
@@ -37,17 +37,17 @@ discard block |
||
37 | 37 | */ |
38 | 38 | function lsx_tec_theme_wrapper_start() { |
39 | 39 | lsx_content_wrap_before(); |
40 | - echo '<div id="primary" class="content-area ' . esc_attr( lsx_main_class() ) . '">'; |
|
40 | + echo '<div id="primary" class="content-area ' . esc_attr(lsx_main_class()) . '">'; |
|
41 | 41 | lsx_content_before(); |
42 | 42 | echo '<main id="main" class="site-main" role="main">'; |
43 | 43 | lsx_content_top(); |
44 | 44 | } |
45 | 45 | |
46 | - add_action( 'tribe_events_before_html', 'lsx_tec_theme_wrapper_start', 9 ); |
|
46 | + add_action('tribe_events_before_html', 'lsx_tec_theme_wrapper_start', 9); |
|
47 | 47 | |
48 | 48 | endif; |
49 | 49 | |
50 | -if ( ! function_exists( 'lsx_tec_theme_wrapper_end' ) ) : |
|
50 | +if ( ! function_exists('lsx_tec_theme_wrapper_end')) : |
|
51 | 51 | |
52 | 52 | /** |
53 | 53 | * The Events Calendar wrapper end. |
@@ -63,11 +63,11 @@ discard block |
||
63 | 63 | lsx_content_wrap_after(); |
64 | 64 | } |
65 | 65 | |
66 | - add_action( 'tribe_events_after_html', 'lsx_tec_theme_wrapper_end', 11 ); |
|
66 | + add_action('tribe_events_after_html', 'lsx_tec_theme_wrapper_end', 11); |
|
67 | 67 | |
68 | 68 | endif; |
69 | 69 | |
70 | -if ( ! function_exists( 'lsx_tec_disable_lsx_banner' ) ) : |
|
70 | +if ( ! function_exists('lsx_tec_disable_lsx_banner')) : |
|
71 | 71 | |
72 | 72 | /** |
73 | 73 | * Disable LSX Banners in some pages. |
@@ -75,20 +75,20 @@ discard block |
||
75 | 75 | * @package lsx |
76 | 76 | * @subpackage the-events-calendar |
77 | 77 | */ |
78 | - function lsx_tec_disable_lsx_banner( $disabled ) { |
|
78 | + function lsx_tec_disable_lsx_banner($disabled) { |
|
79 | 79 | global $current_screen; |
80 | 80 | |
81 | - $post_types = apply_filters( 'tribe_is_post_type_screen_post_types', Tribe__Main::get_post_types() ); |
|
81 | + $post_types = apply_filters('tribe_is_post_type_screen_post_types', Tribe__Main::get_post_types()); |
|
82 | 82 | |
83 | - if ( ! in_array( $current_screen->post_type, $post_types ) ) { |
|
83 | + if ( ! in_array($current_screen->post_type, $post_types)) { |
|
84 | 84 | $disabled = true; |
85 | 85 | } |
86 | 86 | |
87 | - if ( is_null( $id ) && false !== strpos( $current_screen->id, 'tribe' ) ) { |
|
87 | + if (is_null($id) && false !== strpos($current_screen->id, 'tribe')) { |
|
88 | 88 | $disabled = true; |
89 | 89 | } |
90 | 90 | |
91 | - if ( is_single() && tribe_is_event() ) { |
|
91 | + if (is_single() && tribe_is_event()) { |
|
92 | 92 | $disabled = true; |
93 | 93 | } |
94 | 94 | |
@@ -96,10 +96,10 @@ discard block |
||
96 | 96 | } |
97 | 97 | |
98 | 98 | // LSX |
99 | - add_filter( 'lsx_global_header_disable', 'lsx_tec_disable_lsx_banner' ); |
|
99 | + add_filter('lsx_global_header_disable', 'lsx_tec_disable_lsx_banner'); |
|
100 | 100 | // LSX Banners - Plugin, Placeholders |
101 | - add_filter( 'lsx_banner_plugin_disable', 'lsx_tec_disable_lsx_banner' ); |
|
101 | + add_filter('lsx_banner_plugin_disable', 'lsx_tec_disable_lsx_banner'); |
|
102 | 102 | // LSX Banners - Banner |
103 | - add_filter( 'lsx_banner_disable', 'lsx_tec_disable_lsx_banner' ); |
|
103 | + add_filter('lsx_banner_disable', 'lsx_tec_disable_lsx_banner'); |
|
104 | 104 | |
105 | 105 | endif; |