@@ -15,42 +15,42 @@ |
||
15 | 15 | */ |
16 | 16 | |
17 | 17 | // Exit if accessed directly. |
18 | -if ( ! defined( 'ABSPATH' ) ) { |
|
18 | +if ( ! defined('ABSPATH')) { |
|
19 | 19 | exit; |
20 | 20 | } |
21 | 21 | |
22 | 22 | global $product; |
23 | 23 | |
24 | -if ( ! is_a( $product, 'WC_Product' ) ) { |
|
24 | +if ( ! is_a($product, 'WC_Product')) { |
|
25 | 25 | return; |
26 | 26 | } ?> |
27 | 27 | |
28 | 28 | <div class="lsx-woocommerce-slot"> |
29 | - <a href="<?php echo esc_url( $product->get_permalink() ); ?>"> |
|
29 | + <a href="<?php echo esc_url($product->get_permalink()); ?>"> |
|
30 | 30 | <figure class="lsx-woocommerce-avatar"> |
31 | - <?php echo wp_kses_post( $product->get_image( 'lsx-thumbnail-square' ) ); ?> |
|
31 | + <?php echo wp_kses_post($product->get_image('lsx-thumbnail-square')); ?> |
|
32 | 32 | </figure> |
33 | 33 | </a> |
34 | 34 | |
35 | 35 | <h5 class="lsx-woocommerce-title"> |
36 | - <a href="<?php echo esc_url( $product->get_permalink() ); ?>"><?php echo wp_kses_post( $product->get_name() ); ?></a> |
|
36 | + <a href="<?php echo esc_url($product->get_permalink()); ?>"><?php echo wp_kses_post($product->get_name()); ?></a> |
|
37 | 37 | </h5> |
38 | 38 | |
39 | - <?php if ( ! empty( $show_rating ) ) : ?> |
|
39 | + <?php if ( ! empty($show_rating)) : ?> |
|
40 | 40 | <div class="lsx-woocommerce-rating"> |
41 | - <?php echo wp_kses_post( wc_get_rating_html( $product->get_average_rating() ) ); ?> |
|
41 | + <?php echo wp_kses_post(wc_get_rating_html($product->get_average_rating())); ?> |
|
42 | 42 | </div> |
43 | 43 | <?php endif; ?> |
44 | 44 | |
45 | 45 | <?php |
46 | 46 | $price_html = $product->get_price_html(); |
47 | - if ( $price_html ) : ?> |
|
47 | + if ($price_html) : ?> |
|
48 | 48 | <div class="lsx-woocommerce-price"> |
49 | - <?php echo wp_kses_post( $price_html ); ?> |
|
49 | + <?php echo wp_kses_post($price_html); ?> |
|
50 | 50 | </div> |
51 | 51 | <?php endif; ?> |
52 | 52 | |
53 | 53 | <div class="lsx-woocommerce-content"> |
54 | - <a href="<?php echo esc_url( $product->get_permalink() ); ?>" class="moretag"><?php esc_html_e( 'View more', 'lsx' ); ?></a> |
|
54 | + <a href="<?php echo esc_url($product->get_permalink()); ?>" class="moretag"><?php esc_html_e('View more', 'lsx'); ?></a> |
|
55 | 55 | </div> |
56 | 56 | </div> |
@@ -16,13 +16,13 @@ discard block |
||
16 | 16 | |
17 | 17 | // Exit if accessed directly. |
18 | 18 | if ( ! defined( 'ABSPATH' ) ) { |
19 | - exit; |
|
19 | + exit; |
|
20 | 20 | } |
21 | 21 | |
22 | 22 | global $product; |
23 | 23 | |
24 | 24 | if ( ! is_a( $product, 'WC_Product' ) ) { |
25 | - return; |
|
25 | + return; |
|
26 | 26 | } ?> |
27 | 27 | |
28 | 28 | <div class="lsx-woocommerce-slot"> |
@@ -43,8 +43,8 @@ discard block |
||
43 | 43 | <?php endif; ?> |
44 | 44 | |
45 | 45 | <?php |
46 | - $price_html = $product->get_price_html(); |
|
47 | - if ( $price_html ) : ?> |
|
46 | + $price_html = $product->get_price_html(); |
|
47 | + if ( $price_html ) : ?> |
|
48 | 48 | <div class="lsx-woocommerce-price"> |
49 | 49 | <?php echo wp_kses_post( $price_html ); ?> |
50 | 50 | </div> |
@@ -5,32 +5,32 @@ |
||
5 | 5 | * @package lsx |
6 | 6 | */ |
7 | 7 | |
8 | -$show_on_front = get_option( 'show_on_front' ); |
|
8 | +$show_on_front = get_option('show_on_front'); |
|
9 | 9 | |
10 | -$layout = get_theme_mod( 'lsx_layout', '2cr' ); |
|
11 | -$layout = apply_filters( 'lsx_layout', $layout ); |
|
10 | +$layout = get_theme_mod('lsx_layout', '2cr'); |
|
11 | +$layout = apply_filters('lsx_layout', $layout); |
|
12 | 12 | |
13 | -if ( 'posts' === $show_on_front && is_home() ) { |
|
13 | +if ('posts' === $show_on_front && is_home()) { |
|
14 | 14 | $sidebar = 'home'; |
15 | 15 | } else { |
16 | 16 | $sidebar = 'sidebar-1'; |
17 | 17 | } |
18 | 18 | |
19 | -if ( '1c' !== $layout ) : ?> |
|
19 | +if ('1c' !== $layout) : ?> |
|
20 | 20 | |
21 | 21 | <?php lsx_sidebars_before(); ?> |
22 | 22 | |
23 | - <div id="secondary" class="widget-area <?php echo esc_attr( lsx_sidebar_class() ); ?>" role="complementary"> |
|
23 | + <div id="secondary" class="widget-area <?php echo esc_attr(lsx_sidebar_class()); ?>" role="complementary"> |
|
24 | 24 | |
25 | 25 | <?php lsx_sidebar_top(); ?> |
26 | 26 | |
27 | - <h2><?php esc_html_e( 'Categories', 'lsx' ); ?></h2> |
|
27 | + <h2><?php esc_html_e('Categories', 'lsx'); ?></h2> |
|
28 | 28 | |
29 | 29 | <aside id="categories" class="widget widget_categories"> |
30 | 30 | <?php |
31 | - echo wp_tag_cloud( array( |
|
31 | + echo wp_tag_cloud(array( |
|
32 | 32 | 'taxonomy' => 'category', |
33 | - ) ); |
|
33 | + )); |
|
34 | 34 | ?> |
35 | 35 | </aside> |
36 | 36 |
@@ -11,9 +11,9 @@ discard block |
||
11 | 11 | $layout = apply_filters( 'lsx_layout', $layout ); |
12 | 12 | |
13 | 13 | if ( 'posts' === $show_on_front && is_home() ) { |
14 | - $sidebar = 'home'; |
|
14 | + $sidebar = 'home'; |
|
15 | 15 | } else { |
16 | - $sidebar = 'sidebar-1'; |
|
16 | + $sidebar = 'sidebar-1'; |
|
17 | 17 | } |
18 | 18 | |
19 | 19 | if ( '1c' !== $layout ) : ?> |
@@ -28,10 +28,10 @@ discard block |
||
28 | 28 | |
29 | 29 | <aside id="categories" class="widget widget_categories"> |
30 | 30 | <?php |
31 | - echo wp_tag_cloud( array( |
|
32 | - 'taxonomy' => 'category', |
|
33 | - ) ); |
|
34 | - ?> |
|
31 | + echo wp_tag_cloud( array( |
|
32 | + 'taxonomy' => 'category', |
|
33 | + ) ); |
|
34 | + ?> |
|
35 | 35 | </aside> |
36 | 36 | |
37 | 37 | <?php lsx_sitemap_taxonomy_clouds(); ?> |
@@ -5,54 +5,54 @@ |
||
5 | 5 | * @package lsx |
6 | 6 | */ |
7 | 7 | |
8 | -$sidebar_enabled = apply_filters( 'lsx_sidebar_enable', true ); |
|
8 | +$sidebar_enabled = apply_filters('lsx_sidebar_enable', true); |
|
9 | 9 | |
10 | -if ( true !== $sidebar_enabled ) { |
|
10 | +if (true !== $sidebar_enabled) { |
|
11 | 11 | return true; |
12 | 12 | } |
13 | 13 | |
14 | -$show_on_front = get_option( 'show_on_front' ); |
|
14 | +$show_on_front = get_option('show_on_front'); |
|
15 | 15 | |
16 | -if ( 'page' === $show_on_front && is_front_page() ) { |
|
16 | +if ('page' === $show_on_front && is_front_page()) { |
|
17 | 17 | $layout = '1c'; |
18 | 18 | $sidebar = 'home'; |
19 | 19 | } else { |
20 | - $layout = get_theme_mod( 'lsx_layout', '2cr' ); |
|
21 | - $layout = apply_filters( 'lsx_layout', $layout ); |
|
20 | + $layout = get_theme_mod('lsx_layout', '2cr'); |
|
21 | + $layout = apply_filters('lsx_layout', $layout); |
|
22 | 22 | |
23 | - if ( 'posts' === $show_on_front && is_home() ) { |
|
23 | + if ('posts' === $show_on_front && is_home()) { |
|
24 | 24 | $sidebar = 'home'; |
25 | 25 | } else { |
26 | 26 | $sidebar = 'sidebar-1'; |
27 | 27 | } |
28 | 28 | } |
29 | 29 | |
30 | -if ( '1c' !== $layout ) : ?> |
|
30 | +if ('1c' !== $layout) : ?> |
|
31 | 31 | <?php lsx_sidebars_before(); ?> |
32 | - <div id="secondary" class="widget-area <?php echo esc_attr( lsx_sidebar_class() ); ?>" role="complementary"> |
|
32 | + <div id="secondary" class="widget-area <?php echo esc_attr(lsx_sidebar_class()); ?>" role="complementary"> |
|
33 | 33 | |
34 | 34 | <?php lsx_sidebar_top(); ?> |
35 | 35 | |
36 | - <?php if ( ! dynamic_sidebar( $sidebar ) ) : ?> |
|
36 | + <?php if ( ! dynamic_sidebar($sidebar)) : ?> |
|
37 | 37 | |
38 | 38 | <aside id="search" class="widget widget_search"> |
39 | 39 | <?php get_search_form(); ?> |
40 | 40 | </aside> |
41 | 41 | |
42 | 42 | <aside id="archives" class="widget"> |
43 | - <h1 class="widget-title"><?php esc_html_e( 'Archives', 'lsx' ); ?></h1> |
|
43 | + <h1 class="widget-title"><?php esc_html_e('Archives', 'lsx'); ?></h1> |
|
44 | 44 | |
45 | 45 | <ul> |
46 | 46 | <?php |
47 | - wp_get_archives( array( |
|
47 | + wp_get_archives(array( |
|
48 | 48 | 'type' => 'monthly', |
49 | - ) ); |
|
49 | + )); |
|
50 | 50 | ?> |
51 | 51 | </ul> |
52 | 52 | </aside> |
53 | 53 | |
54 | 54 | <aside id="meta" class="widget"> |
55 | - <h1 class="widget-title"><?php esc_html_e( 'Meta', 'lsx' ); ?></h1> |
|
55 | + <h1 class="widget-title"><?php esc_html_e('Meta', 'lsx'); ?></h1> |
|
56 | 56 | |
57 | 57 | <ul> |
58 | 58 | <?php wp_register(); ?> |
@@ -8,23 +8,23 @@ discard block |
||
8 | 8 | $sidebar_enabled = apply_filters( 'lsx_sidebar_enable', true ); |
9 | 9 | |
10 | 10 | if ( true !== $sidebar_enabled ) { |
11 | - return true; |
|
11 | + return true; |
|
12 | 12 | } |
13 | 13 | |
14 | 14 | $show_on_front = get_option( 'show_on_front' ); |
15 | 15 | |
16 | 16 | if ( 'page' === $show_on_front && is_front_page() ) { |
17 | - $layout = '1c'; |
|
18 | - $sidebar = 'home'; |
|
17 | + $layout = '1c'; |
|
18 | + $sidebar = 'home'; |
|
19 | 19 | } else { |
20 | - $layout = get_theme_mod( 'lsx_layout', '2cr' ); |
|
21 | - $layout = apply_filters( 'lsx_layout', $layout ); |
|
22 | - |
|
23 | - if ( 'posts' === $show_on_front && is_home() ) { |
|
24 | - $sidebar = 'home'; |
|
25 | - } else { |
|
26 | - $sidebar = 'sidebar-1'; |
|
27 | - } |
|
20 | + $layout = get_theme_mod( 'lsx_layout', '2cr' ); |
|
21 | + $layout = apply_filters( 'lsx_layout', $layout ); |
|
22 | + |
|
23 | + if ( 'posts' === $show_on_front && is_home() ) { |
|
24 | + $sidebar = 'home'; |
|
25 | + } else { |
|
26 | + $sidebar = 'sidebar-1'; |
|
27 | + } |
|
28 | 28 | } |
29 | 29 | |
30 | 30 | if ( '1c' !== $layout ) : ?> |
@@ -44,10 +44,10 @@ discard block |
||
44 | 44 | |
45 | 45 | <ul> |
46 | 46 | <?php |
47 | - wp_get_archives( array( |
|
48 | - 'type' => 'monthly', |
|
49 | - ) ); |
|
50 | - ?> |
|
47 | + wp_get_archives( array( |
|
48 | + 'type' => 'monthly', |
|
49 | + ) ); |
|
50 | + ?> |
|
51 | 51 | </ul> |
52 | 52 | </aside> |
53 | 53 |
@@ -6,7 +6,7 @@ discard block |
||
6 | 6 | * @subpackage hooks |
7 | 7 | */ |
8 | 8 | |
9 | -if ( ! defined( 'ABSPATH' ) ) { |
|
9 | +if ( ! defined('ABSPATH')) { |
|
10 | 10 | exit; |
11 | 11 | } |
12 | 12 | |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | * This is the 1st action in the theme that fires after <head>. |
15 | 15 | */ |
16 | 16 | function lsx_head_top() { |
17 | - do_action( 'lsx_head_top' ); |
|
17 | + do_action('lsx_head_top'); |
|
18 | 18 | } |
19 | 19 | |
20 | 20 | /** |
@@ -23,14 +23,14 @@ discard block |
||
23 | 23 | * @return void |
24 | 24 | */ |
25 | 25 | function lsx_head_bottom() { |
26 | - do_action( 'lsx_head_bottom' ); |
|
26 | + do_action('lsx_head_bottom'); |
|
27 | 27 | } |
28 | 28 | |
29 | 29 | /** |
30 | 30 | * The 3rd action thta fires after <body> |
31 | 31 | */ |
32 | 32 | function lsx_body_top() { |
33 | - do_action( 'lsx_body_top' ); |
|
33 | + do_action('lsx_body_top'); |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | /** |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | * $lsx_supports[] = 'header'; |
40 | 40 | */ |
41 | 41 | function lsx_header_before() { |
42 | - do_action( 'lsx_header_before' ); |
|
42 | + do_action('lsx_header_before'); |
|
43 | 43 | } |
44 | 44 | |
45 | 45 | /** |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | * @return void |
49 | 49 | */ |
50 | 50 | function lsx_header_top() { |
51 | - do_action( 'lsx_header_top' ); |
|
51 | + do_action('lsx_header_top'); |
|
52 | 52 | } |
53 | 53 | |
54 | 54 | /** |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | * @return void |
58 | 58 | */ |
59 | 59 | function lsx_nav_before() { |
60 | - do_action( 'lsx_nav_before' ); |
|
60 | + do_action('lsx_nav_before'); |
|
61 | 61 | } |
62 | 62 | |
63 | 63 | /** |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | * @return void |
67 | 67 | */ |
68 | 68 | function lsx_nav_after() { |
69 | - do_action( 'lsx_nav_after' ); |
|
69 | + do_action('lsx_nav_after'); |
|
70 | 70 | } |
71 | 71 | |
72 | 72 | /** |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | * @return void |
76 | 76 | */ |
77 | 77 | function lsx_header_bottom() { |
78 | - do_action( 'lsx_header_bottom' ); |
|
78 | + do_action('lsx_header_bottom'); |
|
79 | 79 | } |
80 | 80 | |
81 | 81 | /** |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | * @return void |
85 | 85 | */ |
86 | 86 | function lsx_header_after() { |
87 | - do_action( 'lsx_header_after' ); |
|
87 | + do_action('lsx_header_after'); |
|
88 | 88 | } |
89 | 89 | |
90 | 90 | /** |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | * @return void |
94 | 94 | */ |
95 | 95 | function lsx_header_wrap_after() { |
96 | - do_action( 'lsx_header_wrap_after' ); |
|
96 | + do_action('lsx_header_wrap_after'); |
|
97 | 97 | } |
98 | 98 | |
99 | 99 | /** |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | * @return void |
103 | 103 | */ |
104 | 104 | function lsx_header_wrap_container_top() { |
105 | - do_action( 'lsx_header_wrap_container_top' ); |
|
105 | + do_action('lsx_header_wrap_container_top'); |
|
106 | 106 | } |
107 | 107 | |
108 | 108 | /** |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | * @return void |
112 | 112 | */ |
113 | 113 | function lsx_body_bottom() { |
114 | - do_action( 'lsx_body_bottom' ); |
|
114 | + do_action('lsx_body_bottom'); |
|
115 | 115 | } |
116 | 116 | |
117 | 117 | /** |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | * $lsx_supports[] = 'banner'; |
121 | 121 | */ |
122 | 122 | function lsx_banner_content() { |
123 | - do_action( 'lsx_banner_content' ); |
|
123 | + do_action('lsx_banner_content'); |
|
124 | 124 | } |
125 | 125 | |
126 | 126 | /** |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | * @return void |
130 | 130 | */ |
131 | 131 | function lsx_banner_inner_top() { |
132 | - do_action( 'lsx_banner_inner_top' ); |
|
132 | + do_action('lsx_banner_inner_top'); |
|
133 | 133 | } |
134 | 134 | |
135 | 135 | /** |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | * @return void |
139 | 139 | */ |
140 | 140 | function lsx_banner_inner_bottom() { |
141 | - do_action( 'lsx_banner_inner_bottom' ); |
|
141 | + do_action('lsx_banner_inner_bottom'); |
|
142 | 142 | } |
143 | 143 | |
144 | 144 | /** |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | * $lsx_supports[] = 'global_header'; |
148 | 148 | */ |
149 | 149 | function lsx_global_header_inner_bottom() { |
150 | - do_action( 'lsx_global_header_inner_bottom' ); |
|
150 | + do_action('lsx_global_header_inner_bottom'); |
|
151 | 151 | } |
152 | 152 | |
153 | 153 | /** |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | * $lsx_supports[] = 'content'; |
157 | 157 | */ |
158 | 158 | function lsx_content_wrap_before() { |
159 | - do_action( 'lsx_content_wrap_before' ); |
|
159 | + do_action('lsx_content_wrap_before'); |
|
160 | 160 | } |
161 | 161 | |
162 | 162 | /** |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | * @return void |
166 | 166 | */ |
167 | 167 | function lsx_content_wrap_after() { |
168 | - do_action( 'lsx_content_wrap_after' ); |
|
168 | + do_action('lsx_content_wrap_after'); |
|
169 | 169 | } |
170 | 170 | |
171 | 171 | /** |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | * @return void |
175 | 175 | */ |
176 | 176 | function lsx_content_before() { |
177 | - do_action( 'lsx_content_before' ); |
|
177 | + do_action('lsx_content_before'); |
|
178 | 178 | } |
179 | 179 | |
180 | 180 | /** |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | * @return void |
184 | 184 | */ |
185 | 185 | function lsx_content_after() { |
186 | - do_action( 'lsx_content_after' ); |
|
186 | + do_action('lsx_content_after'); |
|
187 | 187 | } |
188 | 188 | |
189 | 189 | /** |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | * @return void |
193 | 193 | */ |
194 | 194 | function lsx_content_top() { |
195 | - do_action( 'lsx_content_top' ); |
|
195 | + do_action('lsx_content_top'); |
|
196 | 196 | } |
197 | 197 | |
198 | 198 | /** |
@@ -201,7 +201,7 @@ discard block |
||
201 | 201 | * @return void |
202 | 202 | */ |
203 | 203 | function lsx_content_bottom() { |
204 | - do_action( 'lsx_content_bottom' ); |
|
204 | + do_action('lsx_content_bottom'); |
|
205 | 205 | } |
206 | 206 | |
207 | 207 | /** |
@@ -210,7 +210,7 @@ discard block |
||
210 | 210 | * @return void |
211 | 211 | */ |
212 | 212 | function lsx_content_post_tags() { |
213 | - do_action( 'lsx_content_post_tags' ); |
|
213 | + do_action('lsx_content_post_tags'); |
|
214 | 214 | } |
215 | 215 | |
216 | 216 | /** |
@@ -219,7 +219,7 @@ discard block |
||
219 | 219 | * @return void |
220 | 220 | */ |
221 | 221 | function lsx_content_sharing() { |
222 | - do_action( 'lsx_content_sharing' ); |
|
222 | + do_action('lsx_content_sharing'); |
|
223 | 223 | } |
224 | 224 | |
225 | 225 | /** |
@@ -228,7 +228,7 @@ discard block |
||
228 | 228 | * $lsx_supports[] = 'entry'; |
229 | 229 | */ |
230 | 230 | function lsx_entry_before() { |
231 | - do_action( 'lsx_entry_before' ); |
|
231 | + do_action('lsx_entry_before'); |
|
232 | 232 | } |
233 | 233 | |
234 | 234 | /** |
@@ -237,7 +237,7 @@ discard block |
||
237 | 237 | * @return void |
238 | 238 | */ |
239 | 239 | function lsx_entry_after() { |
240 | - do_action( 'lsx_entry_after' ); |
|
240 | + do_action('lsx_entry_after'); |
|
241 | 241 | } |
242 | 242 | |
243 | 243 | /** |
@@ -246,7 +246,7 @@ discard block |
||
246 | 246 | * @return void |
247 | 247 | */ |
248 | 248 | function lsx_entry_top() { |
249 | - do_action( 'lsx_entry_top' ); |
|
249 | + do_action('lsx_entry_top'); |
|
250 | 250 | } |
251 | 251 | |
252 | 252 | /** |
@@ -255,7 +255,7 @@ discard block |
||
255 | 255 | * @return void |
256 | 256 | */ |
257 | 257 | function lsx_entry_inside_top() { |
258 | - do_action( 'lsx_entry_inside_top' ); |
|
258 | + do_action('lsx_entry_inside_top'); |
|
259 | 259 | } |
260 | 260 | |
261 | 261 | /** |
@@ -264,14 +264,14 @@ discard block |
||
264 | 264 | * @return void |
265 | 265 | */ |
266 | 266 | function lsx_entry_bottom() { |
267 | - do_action( 'lsx_entry_bottom' ); |
|
267 | + do_action('lsx_entry_bottom'); |
|
268 | 268 | } |
269 | 269 | |
270 | 270 | /** |
271 | 271 | * Semantic <entry> hooks |
272 | 272 | */ |
273 | 273 | function lsx_post_meta_top() { |
274 | - do_action( 'lsx_post_meta_top' ); |
|
274 | + do_action('lsx_post_meta_top'); |
|
275 | 275 | } |
276 | 276 | |
277 | 277 | /** |
@@ -280,7 +280,7 @@ discard block |
||
280 | 280 | * $lsx_supports[] = 'entry'; |
281 | 281 | */ |
282 | 282 | function lsx_widget_entry_before() { |
283 | - do_action( 'lsx_widget_entry_before' ); |
|
283 | + do_action('lsx_widget_entry_before'); |
|
284 | 284 | } |
285 | 285 | |
286 | 286 | /** |
@@ -289,7 +289,7 @@ discard block |
||
289 | 289 | * @return void |
290 | 290 | */ |
291 | 291 | function lsx_widget_entry_after() { |
292 | - do_action( 'lsx_widget_entry_after' ); |
|
292 | + do_action('lsx_widget_entry_after'); |
|
293 | 293 | } |
294 | 294 | |
295 | 295 | /** |
@@ -298,7 +298,7 @@ discard block |
||
298 | 298 | * @return void |
299 | 299 | */ |
300 | 300 | function lsx_widget_entry_top() { |
301 | - do_action( 'lsx_widget_entry_top' ); |
|
301 | + do_action('lsx_widget_entry_top'); |
|
302 | 302 | } |
303 | 303 | |
304 | 304 | /** |
@@ -307,7 +307,7 @@ discard block |
||
307 | 307 | * @return void |
308 | 308 | */ |
309 | 309 | function lsx_widget_entry_bottom() { |
310 | - do_action( 'lsx_widget_entry_bottom' ); |
|
310 | + do_action('lsx_widget_entry_bottom'); |
|
311 | 311 | } |
312 | 312 | |
313 | 313 | /** |
@@ -316,7 +316,7 @@ discard block |
||
316 | 316 | * @return void |
317 | 317 | */ |
318 | 318 | function lsx_widget_entry_content_top() { |
319 | - do_action( 'lsx_widget_entry_content_top' ); |
|
319 | + do_action('lsx_widget_entry_content_top'); |
|
320 | 320 | } |
321 | 321 | |
322 | 322 | /** |
@@ -325,7 +325,7 @@ discard block |
||
325 | 325 | * @return void |
326 | 326 | */ |
327 | 327 | function lsx_widget_entry_content_bottom() { |
328 | - do_action( 'lsx_widget_entry_content_bottom' ); |
|
328 | + do_action('lsx_widget_entry_content_bottom'); |
|
329 | 329 | } |
330 | 330 | |
331 | 331 | /** |
@@ -334,7 +334,7 @@ discard block |
||
334 | 334 | * $lsx_supports[] = 'comments'; |
335 | 335 | */ |
336 | 336 | function lsx_comments_before() { |
337 | - do_action( 'lsx_comments_before' ); |
|
337 | + do_action('lsx_comments_before'); |
|
338 | 338 | } |
339 | 339 | |
340 | 340 | /** |
@@ -343,7 +343,7 @@ discard block |
||
343 | 343 | * @return void |
344 | 344 | */ |
345 | 345 | function lsx_comments_after() { |
346 | - do_action( 'lsx_comments_after' ); |
|
346 | + do_action('lsx_comments_after'); |
|
347 | 347 | } |
348 | 348 | |
349 | 349 | /** |
@@ -352,7 +352,7 @@ discard block |
||
352 | 352 | * $lsx_supports[] = 'sidebar'; |
353 | 353 | */ |
354 | 354 | function lsx_sidebars_before() { |
355 | - do_action( 'lsx_sidebars_before' ); |
|
355 | + do_action('lsx_sidebars_before'); |
|
356 | 356 | } |
357 | 357 | |
358 | 358 | /** |
@@ -361,7 +361,7 @@ discard block |
||
361 | 361 | * @return void |
362 | 362 | */ |
363 | 363 | function lsx_sidebars_after() { |
364 | - do_action( 'lsx_sidebars_after' ); |
|
364 | + do_action('lsx_sidebars_after'); |
|
365 | 365 | } |
366 | 366 | |
367 | 367 | /** |
@@ -370,7 +370,7 @@ discard block |
||
370 | 370 | * @return void |
371 | 371 | */ |
372 | 372 | function lsx_sidebar_top() { |
373 | - do_action( 'lsx_sidebar_top' ); |
|
373 | + do_action('lsx_sidebar_top'); |
|
374 | 374 | } |
375 | 375 | |
376 | 376 | /** |
@@ -379,7 +379,7 @@ discard block |
||
379 | 379 | * @return void |
380 | 380 | */ |
381 | 381 | function lsx_sidebar_bottom() { |
382 | - do_action( 'lsx_sidebar_bottom' ); |
|
382 | + do_action('lsx_sidebar_bottom'); |
|
383 | 383 | } |
384 | 384 | |
385 | 385 | /** |
@@ -388,7 +388,7 @@ discard block |
||
388 | 388 | * $lsx_supports[] = 'footer'; |
389 | 389 | */ |
390 | 390 | function lsx_footer_before() { |
391 | - do_action( 'lsx_footer_before' ); |
|
391 | + do_action('lsx_footer_before'); |
|
392 | 392 | } |
393 | 393 | |
394 | 394 | /** |
@@ -397,7 +397,7 @@ discard block |
||
397 | 397 | * @return void |
398 | 398 | */ |
399 | 399 | function lsx_footer_after() { |
400 | - do_action( 'lsx_footer_after' ); |
|
400 | + do_action('lsx_footer_after'); |
|
401 | 401 | } |
402 | 402 | |
403 | 403 | /** |
@@ -406,7 +406,7 @@ discard block |
||
406 | 406 | * @return void |
407 | 407 | */ |
408 | 408 | function lsx_footer_top() { |
409 | - do_action( 'lsx_footer_top' ); |
|
409 | + do_action('lsx_footer_top'); |
|
410 | 410 | } |
411 | 411 | |
412 | 412 | /** |
@@ -415,5 +415,5 @@ discard block |
||
415 | 415 | * @return void |
416 | 416 | */ |
417 | 417 | function lsx_footer_bottom() { |
418 | - do_action( 'lsx_footer_bottom' ); |
|
418 | + do_action('lsx_footer_bottom'); |
|
419 | 419 | } |
@@ -7,14 +7,14 @@ discard block |
||
7 | 7 | */ |
8 | 8 | |
9 | 9 | if ( ! defined( 'ABSPATH' ) ) { |
10 | - exit; |
|
10 | + exit; |
|
11 | 11 | } |
12 | 12 | |
13 | 13 | /** |
14 | 14 | * This is the 1st action in the theme that fires after <head>. |
15 | 15 | */ |
16 | 16 | function lsx_head_top() { |
17 | - do_action( 'lsx_head_top' ); |
|
17 | + do_action( 'lsx_head_top' ); |
|
18 | 18 | } |
19 | 19 | |
20 | 20 | /** |
@@ -23,14 +23,14 @@ discard block |
||
23 | 23 | * @return void |
24 | 24 | */ |
25 | 25 | function lsx_head_bottom() { |
26 | - do_action( 'lsx_head_bottom' ); |
|
26 | + do_action( 'lsx_head_bottom' ); |
|
27 | 27 | } |
28 | 28 | |
29 | 29 | /** |
30 | 30 | * The 3rd action thta fires after <body> |
31 | 31 | */ |
32 | 32 | function lsx_body_top() { |
33 | - do_action( 'lsx_body_top' ); |
|
33 | + do_action( 'lsx_body_top' ); |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | /** |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | * $lsx_supports[] = 'header'; |
40 | 40 | */ |
41 | 41 | function lsx_header_before() { |
42 | - do_action( 'lsx_header_before' ); |
|
42 | + do_action( 'lsx_header_before' ); |
|
43 | 43 | } |
44 | 44 | |
45 | 45 | /** |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | * @return void |
49 | 49 | */ |
50 | 50 | function lsx_header_top() { |
51 | - do_action( 'lsx_header_top' ); |
|
51 | + do_action( 'lsx_header_top' ); |
|
52 | 52 | } |
53 | 53 | |
54 | 54 | /** |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | * @return void |
58 | 58 | */ |
59 | 59 | function lsx_nav_before() { |
60 | - do_action( 'lsx_nav_before' ); |
|
60 | + do_action( 'lsx_nav_before' ); |
|
61 | 61 | } |
62 | 62 | |
63 | 63 | /** |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | * @return void |
67 | 67 | */ |
68 | 68 | function lsx_nav_after() { |
69 | - do_action( 'lsx_nav_after' ); |
|
69 | + do_action( 'lsx_nav_after' ); |
|
70 | 70 | } |
71 | 71 | |
72 | 72 | /** |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | * @return void |
76 | 76 | */ |
77 | 77 | function lsx_header_bottom() { |
78 | - do_action( 'lsx_header_bottom' ); |
|
78 | + do_action( 'lsx_header_bottom' ); |
|
79 | 79 | } |
80 | 80 | |
81 | 81 | /** |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | * @return void |
85 | 85 | */ |
86 | 86 | function lsx_header_after() { |
87 | - do_action( 'lsx_header_after' ); |
|
87 | + do_action( 'lsx_header_after' ); |
|
88 | 88 | } |
89 | 89 | |
90 | 90 | /** |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | * @return void |
94 | 94 | */ |
95 | 95 | function lsx_header_wrap_after() { |
96 | - do_action( 'lsx_header_wrap_after' ); |
|
96 | + do_action( 'lsx_header_wrap_after' ); |
|
97 | 97 | } |
98 | 98 | |
99 | 99 | /** |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | * @return void |
103 | 103 | */ |
104 | 104 | function lsx_header_wrap_container_top() { |
105 | - do_action( 'lsx_header_wrap_container_top' ); |
|
105 | + do_action( 'lsx_header_wrap_container_top' ); |
|
106 | 106 | } |
107 | 107 | |
108 | 108 | /** |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | * @return void |
112 | 112 | */ |
113 | 113 | function lsx_body_bottom() { |
114 | - do_action( 'lsx_body_bottom' ); |
|
114 | + do_action( 'lsx_body_bottom' ); |
|
115 | 115 | } |
116 | 116 | |
117 | 117 | /** |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | * $lsx_supports[] = 'banner'; |
121 | 121 | */ |
122 | 122 | function lsx_banner_content() { |
123 | - do_action( 'lsx_banner_content' ); |
|
123 | + do_action( 'lsx_banner_content' ); |
|
124 | 124 | } |
125 | 125 | |
126 | 126 | /** |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | * @return void |
130 | 130 | */ |
131 | 131 | function lsx_banner_inner_top() { |
132 | - do_action( 'lsx_banner_inner_top' ); |
|
132 | + do_action( 'lsx_banner_inner_top' ); |
|
133 | 133 | } |
134 | 134 | |
135 | 135 | /** |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | * @return void |
139 | 139 | */ |
140 | 140 | function lsx_banner_inner_bottom() { |
141 | - do_action( 'lsx_banner_inner_bottom' ); |
|
141 | + do_action( 'lsx_banner_inner_bottom' ); |
|
142 | 142 | } |
143 | 143 | |
144 | 144 | /** |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | * $lsx_supports[] = 'global_header'; |
148 | 148 | */ |
149 | 149 | function lsx_global_header_inner_bottom() { |
150 | - do_action( 'lsx_global_header_inner_bottom' ); |
|
150 | + do_action( 'lsx_global_header_inner_bottom' ); |
|
151 | 151 | } |
152 | 152 | |
153 | 153 | /** |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | * $lsx_supports[] = 'content'; |
157 | 157 | */ |
158 | 158 | function lsx_content_wrap_before() { |
159 | - do_action( 'lsx_content_wrap_before' ); |
|
159 | + do_action( 'lsx_content_wrap_before' ); |
|
160 | 160 | } |
161 | 161 | |
162 | 162 | /** |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | * @return void |
166 | 166 | */ |
167 | 167 | function lsx_content_wrap_after() { |
168 | - do_action( 'lsx_content_wrap_after' ); |
|
168 | + do_action( 'lsx_content_wrap_after' ); |
|
169 | 169 | } |
170 | 170 | |
171 | 171 | /** |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | * @return void |
175 | 175 | */ |
176 | 176 | function lsx_content_before() { |
177 | - do_action( 'lsx_content_before' ); |
|
177 | + do_action( 'lsx_content_before' ); |
|
178 | 178 | } |
179 | 179 | |
180 | 180 | /** |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | * @return void |
184 | 184 | */ |
185 | 185 | function lsx_content_after() { |
186 | - do_action( 'lsx_content_after' ); |
|
186 | + do_action( 'lsx_content_after' ); |
|
187 | 187 | } |
188 | 188 | |
189 | 189 | /** |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | * @return void |
193 | 193 | */ |
194 | 194 | function lsx_content_top() { |
195 | - do_action( 'lsx_content_top' ); |
|
195 | + do_action( 'lsx_content_top' ); |
|
196 | 196 | } |
197 | 197 | |
198 | 198 | /** |
@@ -201,7 +201,7 @@ discard block |
||
201 | 201 | * @return void |
202 | 202 | */ |
203 | 203 | function lsx_content_bottom() { |
204 | - do_action( 'lsx_content_bottom' ); |
|
204 | + do_action( 'lsx_content_bottom' ); |
|
205 | 205 | } |
206 | 206 | |
207 | 207 | /** |
@@ -210,7 +210,7 @@ discard block |
||
210 | 210 | * @return void |
211 | 211 | */ |
212 | 212 | function lsx_content_post_tags() { |
213 | - do_action( 'lsx_content_post_tags' ); |
|
213 | + do_action( 'lsx_content_post_tags' ); |
|
214 | 214 | } |
215 | 215 | |
216 | 216 | /** |
@@ -219,7 +219,7 @@ discard block |
||
219 | 219 | * @return void |
220 | 220 | */ |
221 | 221 | function lsx_content_sharing() { |
222 | - do_action( 'lsx_content_sharing' ); |
|
222 | + do_action( 'lsx_content_sharing' ); |
|
223 | 223 | } |
224 | 224 | |
225 | 225 | /** |
@@ -228,7 +228,7 @@ discard block |
||
228 | 228 | * $lsx_supports[] = 'entry'; |
229 | 229 | */ |
230 | 230 | function lsx_entry_before() { |
231 | - do_action( 'lsx_entry_before' ); |
|
231 | + do_action( 'lsx_entry_before' ); |
|
232 | 232 | } |
233 | 233 | |
234 | 234 | /** |
@@ -237,7 +237,7 @@ discard block |
||
237 | 237 | * @return void |
238 | 238 | */ |
239 | 239 | function lsx_entry_after() { |
240 | - do_action( 'lsx_entry_after' ); |
|
240 | + do_action( 'lsx_entry_after' ); |
|
241 | 241 | } |
242 | 242 | |
243 | 243 | /** |
@@ -246,7 +246,7 @@ discard block |
||
246 | 246 | * @return void |
247 | 247 | */ |
248 | 248 | function lsx_entry_top() { |
249 | - do_action( 'lsx_entry_top' ); |
|
249 | + do_action( 'lsx_entry_top' ); |
|
250 | 250 | } |
251 | 251 | |
252 | 252 | /** |
@@ -255,7 +255,7 @@ discard block |
||
255 | 255 | * @return void |
256 | 256 | */ |
257 | 257 | function lsx_entry_inside_top() { |
258 | - do_action( 'lsx_entry_inside_top' ); |
|
258 | + do_action( 'lsx_entry_inside_top' ); |
|
259 | 259 | } |
260 | 260 | |
261 | 261 | /** |
@@ -264,14 +264,14 @@ discard block |
||
264 | 264 | * @return void |
265 | 265 | */ |
266 | 266 | function lsx_entry_bottom() { |
267 | - do_action( 'lsx_entry_bottom' ); |
|
267 | + do_action( 'lsx_entry_bottom' ); |
|
268 | 268 | } |
269 | 269 | |
270 | 270 | /** |
271 | 271 | * Semantic <entry> hooks |
272 | 272 | */ |
273 | 273 | function lsx_post_meta_top() { |
274 | - do_action( 'lsx_post_meta_top' ); |
|
274 | + do_action( 'lsx_post_meta_top' ); |
|
275 | 275 | } |
276 | 276 | |
277 | 277 | /** |
@@ -280,7 +280,7 @@ discard block |
||
280 | 280 | * $lsx_supports[] = 'entry'; |
281 | 281 | */ |
282 | 282 | function lsx_widget_entry_before() { |
283 | - do_action( 'lsx_widget_entry_before' ); |
|
283 | + do_action( 'lsx_widget_entry_before' ); |
|
284 | 284 | } |
285 | 285 | |
286 | 286 | /** |
@@ -289,7 +289,7 @@ discard block |
||
289 | 289 | * @return void |
290 | 290 | */ |
291 | 291 | function lsx_widget_entry_after() { |
292 | - do_action( 'lsx_widget_entry_after' ); |
|
292 | + do_action( 'lsx_widget_entry_after' ); |
|
293 | 293 | } |
294 | 294 | |
295 | 295 | /** |
@@ -298,7 +298,7 @@ discard block |
||
298 | 298 | * @return void |
299 | 299 | */ |
300 | 300 | function lsx_widget_entry_top() { |
301 | - do_action( 'lsx_widget_entry_top' ); |
|
301 | + do_action( 'lsx_widget_entry_top' ); |
|
302 | 302 | } |
303 | 303 | |
304 | 304 | /** |
@@ -307,7 +307,7 @@ discard block |
||
307 | 307 | * @return void |
308 | 308 | */ |
309 | 309 | function lsx_widget_entry_bottom() { |
310 | - do_action( 'lsx_widget_entry_bottom' ); |
|
310 | + do_action( 'lsx_widget_entry_bottom' ); |
|
311 | 311 | } |
312 | 312 | |
313 | 313 | /** |
@@ -316,7 +316,7 @@ discard block |
||
316 | 316 | * @return void |
317 | 317 | */ |
318 | 318 | function lsx_widget_entry_content_top() { |
319 | - do_action( 'lsx_widget_entry_content_top' ); |
|
319 | + do_action( 'lsx_widget_entry_content_top' ); |
|
320 | 320 | } |
321 | 321 | |
322 | 322 | /** |
@@ -325,7 +325,7 @@ discard block |
||
325 | 325 | * @return void |
326 | 326 | */ |
327 | 327 | function lsx_widget_entry_content_bottom() { |
328 | - do_action( 'lsx_widget_entry_content_bottom' ); |
|
328 | + do_action( 'lsx_widget_entry_content_bottom' ); |
|
329 | 329 | } |
330 | 330 | |
331 | 331 | /** |
@@ -334,7 +334,7 @@ discard block |
||
334 | 334 | * $lsx_supports[] = 'comments'; |
335 | 335 | */ |
336 | 336 | function lsx_comments_before() { |
337 | - do_action( 'lsx_comments_before' ); |
|
337 | + do_action( 'lsx_comments_before' ); |
|
338 | 338 | } |
339 | 339 | |
340 | 340 | /** |
@@ -343,7 +343,7 @@ discard block |
||
343 | 343 | * @return void |
344 | 344 | */ |
345 | 345 | function lsx_comments_after() { |
346 | - do_action( 'lsx_comments_after' ); |
|
346 | + do_action( 'lsx_comments_after' ); |
|
347 | 347 | } |
348 | 348 | |
349 | 349 | /** |
@@ -352,7 +352,7 @@ discard block |
||
352 | 352 | * $lsx_supports[] = 'sidebar'; |
353 | 353 | */ |
354 | 354 | function lsx_sidebars_before() { |
355 | - do_action( 'lsx_sidebars_before' ); |
|
355 | + do_action( 'lsx_sidebars_before' ); |
|
356 | 356 | } |
357 | 357 | |
358 | 358 | /** |
@@ -361,7 +361,7 @@ discard block |
||
361 | 361 | * @return void |
362 | 362 | */ |
363 | 363 | function lsx_sidebars_after() { |
364 | - do_action( 'lsx_sidebars_after' ); |
|
364 | + do_action( 'lsx_sidebars_after' ); |
|
365 | 365 | } |
366 | 366 | |
367 | 367 | /** |
@@ -370,7 +370,7 @@ discard block |
||
370 | 370 | * @return void |
371 | 371 | */ |
372 | 372 | function lsx_sidebar_top() { |
373 | - do_action( 'lsx_sidebar_top' ); |
|
373 | + do_action( 'lsx_sidebar_top' ); |
|
374 | 374 | } |
375 | 375 | |
376 | 376 | /** |
@@ -379,7 +379,7 @@ discard block |
||
379 | 379 | * @return void |
380 | 380 | */ |
381 | 381 | function lsx_sidebar_bottom() { |
382 | - do_action( 'lsx_sidebar_bottom' ); |
|
382 | + do_action( 'lsx_sidebar_bottom' ); |
|
383 | 383 | } |
384 | 384 | |
385 | 385 | /** |
@@ -388,7 +388,7 @@ discard block |
||
388 | 388 | * $lsx_supports[] = 'footer'; |
389 | 389 | */ |
390 | 390 | function lsx_footer_before() { |
391 | - do_action( 'lsx_footer_before' ); |
|
391 | + do_action( 'lsx_footer_before' ); |
|
392 | 392 | } |
393 | 393 | |
394 | 394 | /** |
@@ -397,7 +397,7 @@ discard block |
||
397 | 397 | * @return void |
398 | 398 | */ |
399 | 399 | function lsx_footer_after() { |
400 | - do_action( 'lsx_footer_after' ); |
|
400 | + do_action( 'lsx_footer_after' ); |
|
401 | 401 | } |
402 | 402 | |
403 | 403 | /** |
@@ -406,7 +406,7 @@ discard block |
||
406 | 406 | * @return void |
407 | 407 | */ |
408 | 408 | function lsx_footer_top() { |
409 | - do_action( 'lsx_footer_top' ); |
|
409 | + do_action( 'lsx_footer_top' ); |
|
410 | 410 | } |
411 | 411 | |
412 | 412 | /** |
@@ -415,5 +415,5 @@ discard block |
||
415 | 415 | * @return void |
416 | 416 | */ |
417 | 417 | function lsx_footer_bottom() { |
418 | - do_action( 'lsx_footer_bottom' ); |
|
418 | + do_action( 'lsx_footer_bottom' ); |
|
419 | 419 | } |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -if ( ! defined( 'ABSPATH' ) ) { |
|
3 | +if ( ! defined('ABSPATH')) { |
|
4 | 4 | exit; |
5 | 5 | } |
6 | 6 | |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | * Constructor. |
34 | 34 | */ |
35 | 35 | public function __construct() { |
36 | - add_filter( 'tribe_events_views_v2_rest_params', array( $this, 'check_event_request' ), 10, 2 ); |
|
36 | + add_filter('tribe_events_views_v2_rest_params', array($this, 'check_event_request'), 10, 2); |
|
37 | 37 | } |
38 | 38 | /** |
39 | 39 | * Return an instance of this class. |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | */ |
44 | 44 | public static function get_instance() { |
45 | 45 | // If the single instance hasn't been set, set it now. |
46 | - if ( null === self::$instance ) { |
|
46 | + if (null === self::$instance) { |
|
47 | 47 | self::$instance = new self; |
48 | 48 | } |
49 | 49 | return self::$instance; |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | * @param array $request |
57 | 57 | * @return void |
58 | 58 | */ |
59 | - public function check_event_request( $params, $request ) { |
|
59 | + public function check_event_request($params, $request) { |
|
60 | 60 | $this->is_rest_request = true; |
61 | 61 | return $params; |
62 | 62 | } |
@@ -67,15 +67,15 @@ discard block |
||
67 | 67 | * @return bool True if it's a REST API request, false otherwise. |
68 | 68 | */ |
69 | 69 | public function is_rest_api_request() { |
70 | - if ( true === $this->is_rest_request ) { |
|
70 | + if (true === $this->is_rest_request) { |
|
71 | 71 | return $this->is_rest_request; |
72 | 72 | } |
73 | 73 | |
74 | - if ( empty( $_SERVER['REQUEST_URI'] ) ) { |
|
74 | + if (empty($_SERVER['REQUEST_URI'])) { |
|
75 | 75 | return false; |
76 | 76 | } |
77 | - $rest_prefix = trailingslashit( rest_get_url_prefix() ); |
|
78 | - $this->is_rest_request = ( false !== strpos( $_SERVER['REQUEST_URI'], $rest_prefix ) ); |
|
77 | + $rest_prefix = trailingslashit(rest_get_url_prefix()); |
|
78 | + $this->is_rest_request = (false !== strpos($_SERVER['REQUEST_URI'], $rest_prefix)); |
|
79 | 79 | return $this->is_rest_request; |
80 | 80 | } |
81 | 81 | } |
@@ -1,7 +1,7 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | if ( ! defined( 'ABSPATH' ) ) { |
4 | - exit; |
|
4 | + exit; |
|
5 | 5 | } |
6 | 6 | |
7 | 7 | /** |
@@ -14,69 +14,69 @@ discard block |
||
14 | 14 | */ |
15 | 15 | class LSX_Rest_Helper { |
16 | 16 | |
17 | - /** |
|
18 | - * Holds class instance |
|
19 | - * |
|
20 | - * @since 1.0.0 |
|
21 | - * @var object |
|
22 | - */ |
|
23 | - protected static $instance = null; |
|
17 | + /** |
|
18 | + * Holds class instance |
|
19 | + * |
|
20 | + * @since 1.0.0 |
|
21 | + * @var object |
|
22 | + */ |
|
23 | + protected static $instance = null; |
|
24 | 24 | |
25 | - /** |
|
26 | - * Holds the conditional. |
|
27 | - * |
|
28 | - * @var boolean |
|
29 | - */ |
|
30 | - protected $is_rest_request = false; |
|
25 | + /** |
|
26 | + * Holds the conditional. |
|
27 | + * |
|
28 | + * @var boolean |
|
29 | + */ |
|
30 | + protected $is_rest_request = false; |
|
31 | 31 | |
32 | - /** |
|
33 | - * Constructor. |
|
34 | - */ |
|
35 | - public function __construct() { |
|
36 | - add_filter( 'tribe_events_views_v2_rest_params', array( $this, 'check_event_request' ), 10, 2 ); |
|
37 | - } |
|
38 | - /** |
|
39 | - * Return an instance of this class. |
|
40 | - * |
|
41 | - * @since 1.0.0 |
|
42 | - * @return object A single instance of this class. |
|
43 | - */ |
|
44 | - public static function get_instance() { |
|
45 | - // If the single instance hasn't been set, set it now. |
|
46 | - if ( null === self::$instance ) { |
|
47 | - self::$instance = new self; |
|
48 | - } |
|
49 | - return self::$instance; |
|
50 | - } |
|
32 | + /** |
|
33 | + * Constructor. |
|
34 | + */ |
|
35 | + public function __construct() { |
|
36 | + add_filter( 'tribe_events_views_v2_rest_params', array( $this, 'check_event_request' ), 10, 2 ); |
|
37 | + } |
|
38 | + /** |
|
39 | + * Return an instance of this class. |
|
40 | + * |
|
41 | + * @since 1.0.0 |
|
42 | + * @return object A single instance of this class. |
|
43 | + */ |
|
44 | + public static function get_instance() { |
|
45 | + // If the single instance hasn't been set, set it now. |
|
46 | + if ( null === self::$instance ) { |
|
47 | + self::$instance = new self; |
|
48 | + } |
|
49 | + return self::$instance; |
|
50 | + } |
|
51 | 51 | |
52 | - /** |
|
53 | - * This will set the 'is_rest_request' variable as true if it runs. Tribe has already done the checkes for us. |
|
54 | - * |
|
55 | - * @param array $params |
|
56 | - * @param array $request |
|
57 | - * @return void |
|
58 | - */ |
|
59 | - public function check_event_request( $params, $request ) { |
|
60 | - $this->is_rest_request = true; |
|
61 | - return $params; |
|
62 | - } |
|
52 | + /** |
|
53 | + * This will set the 'is_rest_request' variable as true if it runs. Tribe has already done the checkes for us. |
|
54 | + * |
|
55 | + * @param array $params |
|
56 | + * @param array $request |
|
57 | + * @return void |
|
58 | + */ |
|
59 | + public function check_event_request( $params, $request ) { |
|
60 | + $this->is_rest_request = true; |
|
61 | + return $params; |
|
62 | + } |
|
63 | 63 | |
64 | - /** |
|
65 | - * Determines if the request is an REST API request. |
|
66 | - * |
|
67 | - * @return bool True if it's a REST API request, false otherwise. |
|
68 | - */ |
|
69 | - public function is_rest_api_request() { |
|
70 | - if ( true === $this->is_rest_request ) { |
|
71 | - return $this->is_rest_request; |
|
72 | - } |
|
64 | + /** |
|
65 | + * Determines if the request is an REST API request. |
|
66 | + * |
|
67 | + * @return bool True if it's a REST API request, false otherwise. |
|
68 | + */ |
|
69 | + public function is_rest_api_request() { |
|
70 | + if ( true === $this->is_rest_request ) { |
|
71 | + return $this->is_rest_request; |
|
72 | + } |
|
73 | 73 | |
74 | - if ( empty( $_SERVER['REQUEST_URI'] ) ) { |
|
75 | - return false; |
|
76 | - } |
|
77 | - $rest_prefix = trailingslashit( rest_get_url_prefix() ); |
|
78 | - $this->is_rest_request = ( false !== strpos( $_SERVER['REQUEST_URI'], $rest_prefix ) ); |
|
79 | - return $this->is_rest_request; |
|
80 | - } |
|
74 | + if ( empty( $_SERVER['REQUEST_URI'] ) ) { |
|
75 | + return false; |
|
76 | + } |
|
77 | + $rest_prefix = trailingslashit( rest_get_url_prefix() ); |
|
78 | + $this->is_rest_request = ( false !== strpos( $_SERVER['REQUEST_URI'], $rest_prefix ) ); |
|
79 | + return $this->is_rest_request; |
|
80 | + } |
|
81 | 81 | } |
82 | 82 | $rest_helper = LSX_Rest_Helper::get_instance(); |
@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | <?php lsx_entry_before(); ?> |
11 | 11 | |
12 | 12 | <?php |
13 | - $no_thumb_post_types = array( |
|
13 | + $no_thumb_post_types = array( |
|
14 | 14 | 'audio' => 'audio', |
15 | 15 | 'gallery' => 'gallery', |
16 | 16 | 'image' => 'image', |
@@ -18,42 +18,42 @@ discard block |
||
18 | 18 | 'quote' => 'quote', |
19 | 19 | 'video' => 'video', |
20 | 20 | ); |
21 | - $no_thumb_post_formats = apply_filters( 'lsx_no_thumb_post_formats', $no_thumb_post_types ); |
|
21 | + $no_thumb_post_formats = apply_filters('lsx_no_thumb_post_formats', $no_thumb_post_types); |
|
22 | 22 | |
23 | - $has_thumb = has_post_thumbnail() && ! has_post_format( $no_thumb_post_formats ); |
|
23 | + $has_thumb = has_post_thumbnail() && ! has_post_format($no_thumb_post_formats); |
|
24 | 24 | |
25 | - if ( $has_thumb ) { |
|
25 | + if ($has_thumb) { |
|
26 | 26 | $thumb_class = 'has-thumb'; |
27 | 27 | } else { |
28 | 28 | $thumb_class = 'no-thumb'; |
29 | 29 | } |
30 | 30 | |
31 | - $blog_layout = apply_filters( 'lsx_blog_layout', 'default' ); |
|
31 | + $blog_layout = apply_filters('lsx_blog_layout', 'default'); |
|
32 | 32 | |
33 | 33 | $image_class = ''; |
34 | 34 | |
35 | - $thumbnail_id = get_post_thumbnail_id( get_the_ID() ); |
|
36 | - if ( empty( $thumbnail_id ) ) { |
|
37 | - $thumbnail_id = apply_filters( 'lsx_get_thumbnail_post_placeholder_id', $thumbnail_id, get_the_ID() ); |
|
35 | + $thumbnail_id = get_post_thumbnail_id(get_the_ID()); |
|
36 | + if (empty($thumbnail_id)) { |
|
37 | + $thumbnail_id = apply_filters('lsx_get_thumbnail_post_placeholder_id', $thumbnail_id, get_the_ID()); |
|
38 | 38 | } |
39 | - $image_arr = wp_get_attachment_image_src( $thumbnail_id, 'lsx-thumbnail-single' ); |
|
39 | + $image_arr = wp_get_attachment_image_src($thumbnail_id, 'lsx-thumbnail-single'); |
|
40 | 40 | $image_src = ''; |
41 | 41 | |
42 | - if ( is_array( $image_arr ) ) { |
|
42 | + if (is_array($image_arr)) { |
|
43 | 43 | $image_src = $image_arr[0]; |
44 | 44 | } |
45 | 45 | ?> |
46 | 46 | |
47 | -<article id="post-<?php the_ID(); ?>" <?php post_class( array( 'lsx-slot', $thumb_class ) ); ?>> |
|
47 | +<article id="post-<?php the_ID(); ?>" <?php post_class(array('lsx-slot', $thumb_class)); ?>> |
|
48 | 48 | <?php lsx_entry_top(); ?> |
49 | 49 | |
50 | 50 | <div class="entry-layout"> |
51 | 51 | <div class="entry-layout-content entry-layout-content-<?php echo has_post_thumbnail() ? '67' : '100'; ?>"> |
52 | 52 | <header class="entry-header"> |
53 | - <?php if ( $has_thumb ) : ?> |
|
54 | - <div class="entry-image <?php echo esc_attr( $image_class ); ?>"> |
|
53 | + <?php if ($has_thumb) : ?> |
|
54 | + <div class="entry-image <?php echo esc_attr($image_class); ?>"> |
|
55 | 55 | <a class="thumbnail" href="<?php the_permalink(); ?>"> |
56 | - <?php lsx_thumbnail( 'lsx-thumbnail-single' ); ?> |
|
56 | + <?php lsx_thumbnail('lsx-thumbnail-single'); ?> |
|
57 | 57 | </a> |
58 | 58 | </div> |
59 | 59 | <?php endif; ?> |
@@ -61,37 +61,37 @@ discard block |
||
61 | 61 | <?php |
62 | 62 | $format = get_post_format(); |
63 | 63 | |
64 | - if ( false === $format ) { |
|
64 | + if (false === $format) { |
|
65 | 65 | $format = 'standard'; |
66 | - $show_on_front = get_option( 'show_on_front', 'posts' ); |
|
66 | + $show_on_front = get_option('show_on_front', 'posts'); |
|
67 | 67 | |
68 | - if ( 'page' === $show_on_front ) { |
|
69 | - $archive_link = get_permalink( get_option( 'page_for_posts' ) ); |
|
68 | + if ('page' === $show_on_front) { |
|
69 | + $archive_link = get_permalink(get_option('page_for_posts')); |
|
70 | 70 | } else { |
71 | 71 | $archive_link = home_url(); |
72 | 72 | } |
73 | 73 | } else { |
74 | - $archive_link = get_post_format_link( $format ); |
|
74 | + $archive_link = get_post_format_link($format); |
|
75 | 75 | } |
76 | 76 | |
77 | - $format = lsx_translate_format_to_fontawesome( $format ); |
|
77 | + $format = lsx_translate_format_to_fontawesome($format); |
|
78 | 78 | ?> |
79 | 79 | |
80 | 80 | <h1 class="entry-title"> |
81 | - <?php if ( has_post_thumbnail() ) : ?> |
|
82 | - <a href="<?php echo esc_url( $archive_link ); ?>" class="format-link has-thumb fa fa-<?php echo esc_attr( $format ); ?>"></a> |
|
81 | + <?php if (has_post_thumbnail()) : ?> |
|
82 | + <a href="<?php echo esc_url($archive_link); ?>" class="format-link has-thumb fa fa-<?php echo esc_attr($format); ?>"></a> |
|
83 | 83 | <?php else : ?> |
84 | - <a href="<?php echo esc_url( $archive_link ); ?>" class="format-link fa fa-<?php echo esc_attr( $format ); ?>"></a> |
|
84 | + <a href="<?php echo esc_url($archive_link); ?>" class="format-link fa fa-<?php echo esc_attr($format); ?>"></a> |
|
85 | 85 | <?php endif; ?> |
86 | 86 | |
87 | - <?php if ( has_post_format( array( 'link' ) ) ) : ?> |
|
88 | - <a href="<?php echo esc_url( lsx_get_my_url() ); ?>" rel="bookmark"><?php the_title(); ?> <span class="fa fa-external-link"></span></a> |
|
87 | + <?php if (has_post_format(array('link'))) : ?> |
|
88 | + <a href="<?php echo esc_url(lsx_get_my_url()); ?>" rel="bookmark"><?php the_title(); ?> <span class="fa fa-external-link"></span></a> |
|
89 | 89 | <?php else : ?> |
90 | 90 | <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a> |
91 | 91 | <?php endif; ?> |
92 | 92 | |
93 | - <?php if ( is_sticky() ) : ?> |
|
94 | - <span class="label label-default label-sticky"><?php esc_html_e( 'Featured', 'lsx' ); ?></span> |
|
93 | + <?php if (is_sticky()) : ?> |
|
94 | + <span class="label label-default label-sticky"><?php esc_html_e('Featured', 'lsx'); ?></span> |
|
95 | 95 | <?php endif; ?> |
96 | 96 | </h1> |
97 | 97 | |
@@ -103,18 +103,18 @@ discard block |
||
103 | 103 | |
104 | 104 | </header><!-- .entry-header --> |
105 | 105 | |
106 | - <?php if ( has_post_format( array( 'quote' ) ) || apply_filters( 'lsx_blog_display_text_on_list', true ) ) : ?> |
|
106 | + <?php if (has_post_format(array('quote')) || apply_filters('lsx_blog_display_text_on_list', true)) : ?> |
|
107 | 107 | |
108 | - <?php if ( lsx_post_format_force_content_on_list() && ! apply_filters( 'lsx_blog_force_content_on_list', false ) ) : ?> |
|
108 | + <?php if (lsx_post_format_force_content_on_list() && ! apply_filters('lsx_blog_force_content_on_list', false)) : ?> |
|
109 | 109 | |
110 | 110 | <div class="entry-summary"> |
111 | 111 | <?php |
112 | - if ( ! has_excerpt() ) { |
|
112 | + if ( ! has_excerpt()) { |
|
113 | 113 | |
114 | - $excerpt_more = '<p><a class="moretag" href="' . esc_url( get_permalink() ) . '">' . esc_html__( 'Read More', 'lsx' ) . '</a></p>'; |
|
115 | - $content = wp_trim_words( get_the_content(), 30 ); |
|
114 | + $excerpt_more = '<p><a class="moretag" href="' . esc_url(get_permalink()) . '">' . esc_html__('Read More', 'lsx') . '</a></p>'; |
|
115 | + $content = wp_trim_words(get_the_content(), 30); |
|
116 | 116 | $content = '<p>' . $content . '</p>' . $excerpt_more; |
117 | - echo wp_kses_post( $content ); |
|
117 | + echo wp_kses_post($content); |
|
118 | 118 | } else { |
119 | 119 | the_excerpt(); |
120 | 120 | } |
@@ -122,9 +122,9 @@ discard block |
||
122 | 122 | |
123 | 123 | </div><!-- .entry-summary --> |
124 | 124 | |
125 | - <?php elseif ( has_post_format( array( 'link' ) ) ) : ?> |
|
125 | + <?php elseif (has_post_format(array('link'))) : ?> |
|
126 | 126 | |
127 | - <?php elseif ( apply_filters( 'lsx_blog_force_content_on_list', false ) ) : ?> |
|
127 | + <?php elseif (apply_filters('lsx_blog_force_content_on_list', false)) : ?> |
|
128 | 128 | |
129 | 129 | <div class="entry-content"> |
130 | 130 | <?php the_content(); ?> |
@@ -136,12 +136,12 @@ discard block |
||
136 | 136 | <?php |
137 | 137 | the_content(); |
138 | 138 | |
139 | - wp_link_pages( array( |
|
139 | + wp_link_pages(array( |
|
140 | 140 | 'before' => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">', |
141 | 141 | 'after' => '</div></div>', |
142 | 142 | 'link_before' => '<span>', |
143 | 143 | 'link_after' => '</span>', |
144 | - ) ); |
|
144 | + )); |
|
145 | 145 | ?> |
146 | 146 | </div><!-- .entry-content --> |
147 | 147 | |
@@ -153,28 +153,28 @@ discard block |
||
153 | 153 | |
154 | 154 | <?php $comments_number = get_comments_number(); ?> |
155 | 155 | |
156 | - <?php if ( has_tag() || ! empty( $comments_number ) ) { ?> |
|
156 | + <?php if (has_tag() || ! empty($comments_number)) { ?> |
|
157 | 157 | <div class="post-tags-wrapper"> |
158 | 158 | |
159 | 159 | <?php lsx_content_post_tags(); ?> |
160 | 160 | |
161 | - <?php if ( comments_open() && ! empty( $comments_number ) ) : ?> |
|
161 | + <?php if (comments_open() && ! empty($comments_number)) : ?> |
|
162 | 162 | <div class="post-comments"> |
163 | 163 | <a href="<?php the_permalink(); ?>#comments"> |
164 | 164 | <?php |
165 | - if ( '1' === $comments_number ) { |
|
166 | - echo esc_html_x( 'One Comment', 'content.php', 'lsx' ); |
|
165 | + if ('1' === $comments_number) { |
|
166 | + echo esc_html_x('One Comment', 'content.php', 'lsx'); |
|
167 | 167 | } else { |
168 | 168 | printf( |
169 | 169 | /* Translators: %s: number of comments */ |
170 | - esc_html( _nx( |
|
170 | + esc_html(_nx( |
|
171 | 171 | '%s Comment', |
172 | 172 | '%s Comments', |
173 | 173 | $comments_number, |
174 | 174 | 'content.php', |
175 | 175 | 'lsx' |
176 | - ) ), |
|
177 | - esc_html( number_format_i18n( $comments_number ) ) |
|
176 | + )), |
|
177 | + esc_html(number_format_i18n($comments_number)) |
|
178 | 178 | ); |
179 | 179 | } |
180 | 180 | ?> |
@@ -185,11 +185,11 @@ discard block |
||
185 | 185 | <?php } ?> |
186 | 186 | </div> |
187 | 187 | |
188 | - <?php if ( has_post_thumbnail() ) : ?> |
|
188 | + <?php if (has_post_thumbnail()) : ?> |
|
189 | 189 | |
190 | 190 | <div class="entry-image hidden-xs"> |
191 | - <a class="thumbnail" href="<?php the_permalink(); ?>" style="background-image:url(<?php echo esc_url( $image_src ); ?>);"> |
|
192 | - <?php lsx_thumbnail( 'lsx-thumbnail-single' ); ?> |
|
191 | + <a class="thumbnail" href="<?php the_permalink(); ?>" style="background-image:url(<?php echo esc_url($image_src); ?>);"> |
|
192 | + <?php lsx_thumbnail('lsx-thumbnail-single'); ?> |
|
193 | 193 | </a> |
194 | 194 | </div> |
195 | 195 |
@@ -10,38 +10,38 @@ discard block |
||
10 | 10 | <?php lsx_entry_before(); ?> |
11 | 11 | |
12 | 12 | <?php |
13 | - $no_thumb_post_types = array( |
|
14 | - 'audio' => 'audio', |
|
15 | - 'gallery' => 'gallery', |
|
16 | - 'image' => 'image', |
|
17 | - 'link' => 'link', |
|
18 | - 'quote' => 'quote', |
|
19 | - 'video' => 'video', |
|
20 | - ); |
|
21 | - $no_thumb_post_formats = apply_filters( 'lsx_no_thumb_post_formats', $no_thumb_post_types ); |
|
22 | - |
|
23 | - $has_thumb = has_post_thumbnail() && ! has_post_format( $no_thumb_post_formats ); |
|
24 | - |
|
25 | - if ( $has_thumb ) { |
|
26 | - $thumb_class = 'has-thumb'; |
|
27 | - } else { |
|
28 | - $thumb_class = 'no-thumb'; |
|
29 | - } |
|
30 | - |
|
31 | - $blog_layout = apply_filters( 'lsx_blog_layout', 'default' ); |
|
32 | - |
|
33 | - $image_class = ''; |
|
34 | - |
|
35 | - $thumbnail_id = get_post_thumbnail_id( get_the_ID() ); |
|
36 | - if ( empty( $thumbnail_id ) ) { |
|
37 | - $thumbnail_id = apply_filters( 'lsx_get_thumbnail_post_placeholder_id', $thumbnail_id, get_the_ID() ); |
|
38 | - } |
|
39 | - $image_arr = wp_get_attachment_image_src( $thumbnail_id, 'lsx-thumbnail-single' ); |
|
40 | - $image_src = ''; |
|
41 | - |
|
42 | - if ( is_array( $image_arr ) ) { |
|
43 | - $image_src = $image_arr[0]; |
|
44 | - } |
|
13 | + $no_thumb_post_types = array( |
|
14 | + 'audio' => 'audio', |
|
15 | + 'gallery' => 'gallery', |
|
16 | + 'image' => 'image', |
|
17 | + 'link' => 'link', |
|
18 | + 'quote' => 'quote', |
|
19 | + 'video' => 'video', |
|
20 | + ); |
|
21 | + $no_thumb_post_formats = apply_filters( 'lsx_no_thumb_post_formats', $no_thumb_post_types ); |
|
22 | + |
|
23 | + $has_thumb = has_post_thumbnail() && ! has_post_format( $no_thumb_post_formats ); |
|
24 | + |
|
25 | + if ( $has_thumb ) { |
|
26 | + $thumb_class = 'has-thumb'; |
|
27 | + } else { |
|
28 | + $thumb_class = 'no-thumb'; |
|
29 | + } |
|
30 | + |
|
31 | + $blog_layout = apply_filters( 'lsx_blog_layout', 'default' ); |
|
32 | + |
|
33 | + $image_class = ''; |
|
34 | + |
|
35 | + $thumbnail_id = get_post_thumbnail_id( get_the_ID() ); |
|
36 | + if ( empty( $thumbnail_id ) ) { |
|
37 | + $thumbnail_id = apply_filters( 'lsx_get_thumbnail_post_placeholder_id', $thumbnail_id, get_the_ID() ); |
|
38 | + } |
|
39 | + $image_arr = wp_get_attachment_image_src( $thumbnail_id, 'lsx-thumbnail-single' ); |
|
40 | + $image_src = ''; |
|
41 | + |
|
42 | + if ( is_array( $image_arr ) ) { |
|
43 | + $image_src = $image_arr[0]; |
|
44 | + } |
|
45 | 45 | ?> |
46 | 46 | |
47 | 47 | <article id="post-<?php the_ID(); ?>" <?php post_class( array( 'lsx-slot', $thumb_class ) ); ?>> |
@@ -59,23 +59,23 @@ discard block |
||
59 | 59 | <?php endif; ?> |
60 | 60 | |
61 | 61 | <?php |
62 | - $format = get_post_format(); |
|
62 | + $format = get_post_format(); |
|
63 | 63 | |
64 | - if ( false === $format ) { |
|
65 | - $format = 'standard'; |
|
66 | - $show_on_front = get_option( 'show_on_front', 'posts' ); |
|
64 | + if ( false === $format ) { |
|
65 | + $format = 'standard'; |
|
66 | + $show_on_front = get_option( 'show_on_front', 'posts' ); |
|
67 | 67 | |
68 | - if ( 'page' === $show_on_front ) { |
|
69 | - $archive_link = get_permalink( get_option( 'page_for_posts' ) ); |
|
70 | - } else { |
|
71 | - $archive_link = home_url(); |
|
72 | - } |
|
73 | - } else { |
|
74 | - $archive_link = get_post_format_link( $format ); |
|
75 | - } |
|
68 | + if ( 'page' === $show_on_front ) { |
|
69 | + $archive_link = get_permalink( get_option( 'page_for_posts' ) ); |
|
70 | + } else { |
|
71 | + $archive_link = home_url(); |
|
72 | + } |
|
73 | + } else { |
|
74 | + $archive_link = get_post_format_link( $format ); |
|
75 | + } |
|
76 | 76 | |
77 | - $format = lsx_translate_format_to_fontawesome( $format ); |
|
78 | - ?> |
|
77 | + $format = lsx_translate_format_to_fontawesome( $format ); |
|
78 | + ?> |
|
79 | 79 | |
80 | 80 | <h1 class="entry-title"> |
81 | 81 | <?php if ( has_post_thumbnail() ) : ?> |
@@ -109,16 +109,16 @@ discard block |
||
109 | 109 | |
110 | 110 | <div class="entry-summary"> |
111 | 111 | <?php |
112 | - if ( ! has_excerpt() ) { |
|
112 | + if ( ! has_excerpt() ) { |
|
113 | 113 | |
114 | - $excerpt_more = '<p><a class="moretag" href="' . esc_url( get_permalink() ) . '">' . esc_html__( 'Read More', 'lsx' ) . '</a></p>'; |
|
115 | - $content = wp_trim_words( get_the_content(), 30 ); |
|
116 | - $content = '<p>' . $content . '</p>' . $excerpt_more; |
|
117 | - echo wp_kses_post( $content ); |
|
118 | - } else { |
|
119 | - the_excerpt(); |
|
120 | - } |
|
121 | - ?> |
|
114 | + $excerpt_more = '<p><a class="moretag" href="' . esc_url( get_permalink() ) . '">' . esc_html__( 'Read More', 'lsx' ) . '</a></p>'; |
|
115 | + $content = wp_trim_words( get_the_content(), 30 ); |
|
116 | + $content = '<p>' . $content . '</p>' . $excerpt_more; |
|
117 | + echo wp_kses_post( $content ); |
|
118 | + } else { |
|
119 | + the_excerpt(); |
|
120 | + } |
|
121 | + ?> |
|
122 | 122 | |
123 | 123 | </div><!-- .entry-summary --> |
124 | 124 | |
@@ -134,15 +134,15 @@ discard block |
||
134 | 134 | |
135 | 135 | <div class="entry-content"> |
136 | 136 | <?php |
137 | - the_content(); |
|
138 | - |
|
139 | - wp_link_pages( array( |
|
140 | - 'before' => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">', |
|
141 | - 'after' => '</div></div>', |
|
142 | - 'link_before' => '<span>', |
|
143 | - 'link_after' => '</span>', |
|
144 | - ) ); |
|
145 | - ?> |
|
137 | + the_content(); |
|
138 | + |
|
139 | + wp_link_pages( array( |
|
140 | + 'before' => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">', |
|
141 | + 'after' => '</div></div>', |
|
142 | + 'link_before' => '<span>', |
|
143 | + 'link_after' => '</span>', |
|
144 | + ) ); |
|
145 | + ?> |
|
146 | 146 | </div><!-- .entry-content --> |
147 | 147 | |
148 | 148 | <?php endif; ?> |
@@ -162,22 +162,22 @@ discard block |
||
162 | 162 | <div class="post-comments"> |
163 | 163 | <a href="<?php the_permalink(); ?>#comments"> |
164 | 164 | <?php |
165 | - if ( '1' === $comments_number ) { |
|
166 | - echo esc_html_x( 'One Comment', 'content.php', 'lsx' ); |
|
167 | - } else { |
|
168 | - printf( |
|
169 | - /* Translators: %s: number of comments */ |
|
170 | - esc_html( _nx( |
|
171 | - '%s Comment', |
|
172 | - '%s Comments', |
|
173 | - $comments_number, |
|
174 | - 'content.php', |
|
175 | - 'lsx' |
|
176 | - ) ), |
|
177 | - esc_html( number_format_i18n( $comments_number ) ) |
|
178 | - ); |
|
179 | - } |
|
180 | - ?> |
|
165 | + if ( '1' === $comments_number ) { |
|
166 | + echo esc_html_x( 'One Comment', 'content.php', 'lsx' ); |
|
167 | + } else { |
|
168 | + printf( |
|
169 | + /* Translators: %s: number of comments */ |
|
170 | + esc_html( _nx( |
|
171 | + '%s Comment', |
|
172 | + '%s Comments', |
|
173 | + $comments_number, |
|
174 | + 'content.php', |
|
175 | + 'lsx' |
|
176 | + ) ), |
|
177 | + esc_html( number_format_i18n( $comments_number ) ) |
|
178 | + ); |
|
179 | + } |
|
180 | + ?> |
|
181 | 181 | </a> |
182 | 182 | </div> |
183 | 183 | <?php endif ?> |
@@ -80,14 +80,20 @@ discard block |
||
80 | 80 | <h1 class="entry-title"> |
81 | 81 | <?php if ( has_post_thumbnail() ) : ?> |
82 | 82 | <a href="<?php echo esc_url( $archive_link ); ?>" class="format-link has-thumb fa fa-<?php echo esc_attr( $format ); ?>"></a> |
83 | - <?php else : ?> |
|
84 | - <a href="<?php echo esc_url( $archive_link ); ?>" class="format-link fa fa-<?php echo esc_attr( $format ); ?>"></a> |
|
83 | + <?php else { |
|
84 | + : ?> |
|
85 | + <a href="<?php echo esc_url( $archive_link ); |
|
86 | +} |
|
87 | +?>" class="format-link fa fa-<?php echo esc_attr( $format ); ?>"></a> |
|
85 | 88 | <?php endif; ?> |
86 | 89 | |
87 | 90 | <?php if ( has_post_format( array( 'link' ) ) ) : ?> |
88 | 91 | <a href="<?php echo esc_url( lsx_get_my_url() ); ?>" rel="bookmark"><?php the_title(); ?> <span class="fa fa-external-link"></span></a> |
89 | - <?php else : ?> |
|
90 | - <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a> |
|
92 | + <?php else { |
|
93 | + : ?> |
|
94 | + <a href="<?php the_permalink(); |
|
95 | +} |
|
96 | +?>" rel="bookmark"><?php the_title(); ?></a> |
|
91 | 97 | <?php endif; ?> |
92 | 98 | |
93 | 99 | <?php if ( is_sticky() ) : ?> |
@@ -130,11 +136,13 @@ discard block |
||
130 | 136 | <?php the_content(); ?> |
131 | 137 | </div><!-- .entry-content --> |
132 | 138 | |
133 | - <?php else : ?> |
|
139 | + <?php else { |
|
140 | + : ?> |
|
134 | 141 | |
135 | 142 | <div class="entry-content"> |
136 | 143 | <?php |
137 | 144 | the_content(); |
145 | +} |
|
138 | 146 | |
139 | 147 | wp_link_pages( array( |
140 | 148 | 'before' => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">', |
@@ -7,33 +7,33 @@ |
||
7 | 7 | * @package lsx |
8 | 8 | */ |
9 | 9 | |
10 | -if ( ! defined( 'ABSPATH' ) ) { |
|
10 | +if ( ! defined('ABSPATH')) { |
|
11 | 11 | exit; |
12 | 12 | } |
13 | 13 | |
14 | -define( 'LSX_VERSION', '2.9' ); |
|
14 | +define('LSX_VERSION', '2.9'); |
|
15 | 15 | |
16 | -if ( in_array( 'wordpress-seo/wp-seo.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) || in_array( 'wordpress-seo-premium/wp-seo-premium.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) { |
|
16 | +if (in_array('wordpress-seo/wp-seo.php', apply_filters('active_plugins', get_option('active_plugins'))) || in_array('wordpress-seo-premium/wp-seo-premium.php', apply_filters('active_plugins', get_option('active_plugins')))) { |
|
17 | 17 | require get_template_directory() . '/includes/yoast/class-lsx-yoast.php'; |
18 | 18 | } |
19 | 19 | |
20 | -if ( class_exists( 'WooCommerce' ) ) { |
|
20 | +if (class_exists('WooCommerce')) { |
|
21 | 21 | require get_template_directory() . '/includes/woocommerce/woocommerce.php'; |
22 | 22 | } |
23 | 23 | |
24 | -if ( class_exists( 'Tribe__Events__Main' ) ) { |
|
24 | +if (class_exists('Tribe__Events__Main')) { |
|
25 | 25 | require get_template_directory() . '/includes/the-events-calendar/the-events-calendar.php'; |
26 | 26 | } |
27 | 27 | |
28 | -if ( class_exists( 'Sensei_Main' ) || class_exists( 'Sensei_WC' ) ) { |
|
28 | +if (class_exists('Sensei_Main') || class_exists('Sensei_WC')) { |
|
29 | 29 | require get_template_directory() . '/includes/sensei/class-lsx-sensei.php'; |
30 | 30 | } |
31 | 31 | |
32 | -if ( class_exists( 'Popup_Maker' ) ) { |
|
32 | +if (class_exists('Popup_Maker')) { |
|
33 | 33 | require get_template_directory() . '/includes/popup-maker/class-lsx-popup-maker.php'; |
34 | 34 | } |
35 | 35 | |
36 | -if ( class_exists( 'bbPress' ) ) { |
|
36 | +if (class_exists('bbPress')) { |
|
37 | 37 | require get_template_directory() . '/includes/bbpress/bbpress.php'; |
38 | 38 | } |
39 | 39 |
@@ -8,33 +8,33 @@ |
||
8 | 8 | */ |
9 | 9 | |
10 | 10 | if ( ! defined( 'ABSPATH' ) ) { |
11 | - exit; |
|
11 | + exit; |
|
12 | 12 | } |
13 | 13 | |
14 | 14 | define( 'LSX_VERSION', '2.9' ); |
15 | 15 | |
16 | 16 | if ( in_array( 'wordpress-seo/wp-seo.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) || in_array( 'wordpress-seo-premium/wp-seo-premium.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) { |
17 | - require get_template_directory() . '/includes/yoast/class-lsx-yoast.php'; |
|
17 | + require get_template_directory() . '/includes/yoast/class-lsx-yoast.php'; |
|
18 | 18 | } |
19 | 19 | |
20 | 20 | if ( class_exists( 'WooCommerce' ) ) { |
21 | - require get_template_directory() . '/includes/woocommerce/woocommerce.php'; |
|
21 | + require get_template_directory() . '/includes/woocommerce/woocommerce.php'; |
|
22 | 22 | } |
23 | 23 | |
24 | 24 | if ( class_exists( 'Tribe__Events__Main' ) ) { |
25 | - require get_template_directory() . '/includes/the-events-calendar/the-events-calendar.php'; |
|
25 | + require get_template_directory() . '/includes/the-events-calendar/the-events-calendar.php'; |
|
26 | 26 | } |
27 | 27 | |
28 | 28 | if ( class_exists( 'Sensei_Main' ) || class_exists( 'Sensei_WC' ) ) { |
29 | - require get_template_directory() . '/includes/sensei/class-lsx-sensei.php'; |
|
29 | + require get_template_directory() . '/includes/sensei/class-lsx-sensei.php'; |
|
30 | 30 | } |
31 | 31 | |
32 | 32 | if ( class_exists( 'Popup_Maker' ) ) { |
33 | - require get_template_directory() . '/includes/popup-maker/class-lsx-popup-maker.php'; |
|
33 | + require get_template_directory() . '/includes/popup-maker/class-lsx-popup-maker.php'; |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | if ( class_exists( 'bbPress' ) ) { |
37 | - require get_template_directory() . '/includes/bbpress/bbpress.php'; |
|
37 | + require get_template_directory() . '/includes/bbpress/bbpress.php'; |
|
38 | 38 | } |
39 | 39 | |
40 | 40 | require get_template_directory() . '/includes/config.php'; |
@@ -9,27 +9,27 @@ discard block |
||
9 | 9 | |
10 | 10 | <div class="row"> |
11 | 11 | <div class="col-md-12"> |
12 | - <h1><span class="logo"><?php echo esc_html__( 'LSX', 'lsx' ); ?></span> <sup class="version"><?php echo esc_html( LSX_VERSION ); ?></sup></h1> |
|
12 | + <h1><span class="logo"><?php echo esc_html__('LSX', 'lsx'); ?></span> <sup class="version"><?php echo esc_html(LSX_VERSION); ?></sup></h1> |
|
13 | 13 | </div> |
14 | 14 | </div> |
15 | 15 | |
16 | 16 | <div class="row"> |
17 | 17 | <div class="col-md-6"> |
18 | 18 | <div class="box enrich"> |
19 | - <h2><?php esc_html_e( 'Built to enrich your WordPress experience', 'lsx' ); ?></h2> |
|
20 | - <p><?php esc_html_e( 'Whether you\'re using LSX for your personal blog, as the platform for a powerful WooCommerce store or as the foundation for your own child-theme, you\'ll find it\'s the perfect fit for WordPress.', 'lsx' ); ?></p> |
|
19 | + <h2><?php esc_html_e('Built to enrich your WordPress experience', 'lsx'); ?></h2> |
|
20 | + <p><?php esc_html_e('Whether you\'re using LSX for your personal blog, as the platform for a powerful WooCommerce store or as the foundation for your own child-theme, you\'ll find it\'s the perfect fit for WordPress.', 'lsx'); ?></p> |
|
21 | 21 | </div> |
22 | 22 | </div> |
23 | 23 | |
24 | 24 | <div class="col-md-6"> |
25 | 25 | <div class="box support"> |
26 | - <h2><?php esc_html_e( 'Get support', 'lsx' ); ?></h2> |
|
26 | + <h2><?php esc_html_e('Get support', 'lsx'); ?></h2> |
|
27 | 27 | |
28 | 28 | <p> |
29 | 29 | <?php |
30 | 30 | printf( |
31 | 31 | /* Translators: 1: HTML open tag link, 2: HTML close tag link, 3: HTML open tag link, 4: HTML close tag link */ |
32 | - esc_html__( 'You\'ll find information on how to use and customize the LSX theme in our %1$sdocumentation%2$s section. However, please do %3$scontact us%4$s for support should you still find yourself unable to achieve your needs.', 'lsx' ), |
|
32 | + esc_html__('You\'ll find information on how to use and customize the LSX theme in our %1$sdocumentation%2$s section. However, please do %3$scontact us%4$s for support should you still find yourself unable to achieve your needs.', 'lsx'), |
|
33 | 33 | '<a href="https://www.lsdev.biz/documentation/lsx/" target="_blank" rel="noreferrer noopener">', |
34 | 34 | '</a>', |
35 | 35 | '<a href="https://www.lsdev.biz/contact-us/" target="_blank" rel="noreferrer noopener">', |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | |
41 | 41 | <div class="more-button"> |
42 | 42 | <a href="https://www.lsdev.biz/contact-us/" target="_blank" rel="noreferrer" class="button button-primary" > |
43 | - <?php esc_html_e( 'Get in touch', 'lsx' ); ?> |
|
43 | + <?php esc_html_e('Get in touch', 'lsx'); ?> |
|
44 | 44 | </a> |
45 | 45 | </div> |
46 | 46 | </div> |
@@ -27,15 +27,15 @@ |
||
27 | 27 | |
28 | 28 | <p> |
29 | 29 | <?php |
30 | - printf( |
|
31 | - /* Translators: 1: HTML open tag link, 2: HTML close tag link, 3: HTML open tag link, 4: HTML close tag link */ |
|
32 | - esc_html__( 'You\'ll find information on how to use and customize the LSX theme in our %1$sdocumentation%2$s section. However, please do %3$scontact us%4$s for support should you still find yourself unable to achieve your needs.', 'lsx' ), |
|
33 | - '<a href="https://www.lsdev.biz/documentation/lsx/" target="_blank" rel="noreferrer noopener">', |
|
34 | - '</a>', |
|
35 | - '<a href="https://www.lsdev.biz/contact-us/" target="_blank" rel="noreferrer noopener">', |
|
36 | - '</a>' |
|
37 | - ); |
|
38 | - ?> |
|
30 | + printf( |
|
31 | + /* Translators: 1: HTML open tag link, 2: HTML close tag link, 3: HTML open tag link, 4: HTML close tag link */ |
|
32 | + esc_html__( 'You\'ll find information on how to use and customize the LSX theme in our %1$sdocumentation%2$s section. However, please do %3$scontact us%4$s for support should you still find yourself unable to achieve your needs.', 'lsx' ), |
|
33 | + '<a href="https://www.lsdev.biz/documentation/lsx/" target="_blank" rel="noreferrer noopener">', |
|
34 | + '</a>', |
|
35 | + '<a href="https://www.lsdev.biz/contact-us/" target="_blank" rel="noreferrer noopener">', |
|
36 | + '</a>' |
|
37 | + ); |
|
38 | + ?> |
|
39 | 39 | </p> |
40 | 40 | |
41 | 41 | <div class="more-button"> |
@@ -10,21 +10,21 @@ discard block |
||
10 | 10 | <div class="row"> |
11 | 11 | <div class="col-md-12"> |
12 | 12 | <div class="box enhance"> |
13 | - <h2><?php esc_html_e( 'Featured Extensions', 'lsx' ); ?></h2> |
|
14 | - <p><?php esc_html_e( 'Take a look at our featured extensions that extend the functionality of the LSX WordPress theme.', 'lsx' ); ?></p> |
|
13 | + <h2><?php esc_html_e('Featured Extensions', 'lsx'); ?></h2> |
|
14 | + <p><?php esc_html_e('Take a look at our featured extensions that extend the functionality of the LSX WordPress theme.', 'lsx'); ?></p> |
|
15 | 15 | |
16 | 16 | <div class="row"> |
17 | 17 | <div class="col-md-6"> |
18 | 18 | <div class="box-clean"> |
19 | - <a href="https://wordpress.org/plugins/lsx-business-directory/" target="_blank"><?php esc_html_e( 'LSX Business Directory', 'lsx' ); ?></a> |
|
20 | - <p><?php esc_html_e( 'The LSX Business Directory adds a business directory listings to your WordPress website using the LSX Theme and extensions..', 'lsx' ); ?></p> |
|
19 | + <a href="https://wordpress.org/plugins/lsx-business-directory/" target="_blank"><?php esc_html_e('LSX Business Directory', 'lsx'); ?></a> |
|
20 | + <p><?php esc_html_e('The LSX Business Directory adds a business directory listings to your WordPress website using the LSX Theme and extensions..', 'lsx'); ?></p> |
|
21 | 21 | </div> |
22 | 22 | </div> |
23 | 23 | |
24 | 24 | <div class="col-md-6"> |
25 | 25 | <div class="box-clean"> |
26 | - <a href="https://wordpress.org/plugins/lsx-health-plan/" target="_blank"><?php esc_html_e( 'LSX Health Plan', 'lsx' ); ?></a> |
|
27 | - <p><?php esc_html_e( 'LSX Health Plan plugin adds the ability to include a structured exercise and nutrition programme to your WordPress website using the LSX Theme and extensions.', 'lsx' ); ?></p> |
|
26 | + <a href="https://wordpress.org/plugins/lsx-health-plan/" target="_blank"><?php esc_html_e('LSX Health Plan', 'lsx'); ?></a> |
|
27 | + <p><?php esc_html_e('LSX Health Plan plugin adds the ability to include a structured exercise and nutrition programme to your WordPress website using the LSX Theme and extensions.', 'lsx'); ?></p> |
|
28 | 28 | </div> |
29 | 29 | </div> |
30 | 30 | |
@@ -37,28 +37,28 @@ discard block |
||
37 | 37 | <div class="row"> |
38 | 38 | <div class="col-md-12"> |
39 | 39 | <div class="box enhance"> |
40 | - <h2><?php esc_html_e( 'Core Extensions', 'lsx' ); ?></h2> |
|
41 | - <p><?php esc_html_e( 'Expand the LSX theme with LSX Extensions, which add functionality and display options to your WordPress website.', 'lsx' ); ?></p> |
|
40 | + <h2><?php esc_html_e('Core Extensions', 'lsx'); ?></h2> |
|
41 | + <p><?php esc_html_e('Expand the LSX theme with LSX Extensions, which add functionality and display options to your WordPress website.', 'lsx'); ?></p> |
|
42 | 42 | |
43 | 43 | <div class="row"> |
44 | 44 | <div class="col-md-4"> |
45 | 45 | <div class="box-clean"> |
46 | - <a href="https://wordpress.org/plugins/lsx-search/" target="_blank"><?php esc_html_e( 'LSX Search ', 'lsx' ); ?></a> |
|
47 | - <p><?php esc_html_e( 'The LSX Search Extension integrates with the FacetWP plugin to allow for superbly filtered search results for your users. Allow your users to break down their search results using available filters (a.k.a “Facets”). These are created by the FacetWP plugin.', 'lsx' ); ?></p> |
|
46 | + <a href="https://wordpress.org/plugins/lsx-search/" target="_blank"><?php esc_html_e('LSX Search ', 'lsx'); ?></a> |
|
47 | + <p><?php esc_html_e('The LSX Search Extension integrates with the FacetWP plugin to allow for superbly filtered search results for your users. Allow your users to break down their search results using available filters (a.k.a “Facets”). These are created by the FacetWP plugin.', 'lsx'); ?></p> |
|
48 | 48 | </div> |
49 | 49 | </div> |
50 | 50 | |
51 | 51 | <div class="col-md-4"> |
52 | 52 | <div class="box-clean"> |
53 | - <a href="https://wordpress.org/plugins/lsx-customizer/" target="_blank"><?php esc_html_e( 'LSX Customizer', 'lsx' ); ?></a> |
|
54 | - <p><?php esc_html_e( 'You\'ve installed LSX, so now why not make it all yours? Whether it\'s a small CSS tweak or changing the entire layout of pages, posts or archives, please make use of the Theme Customizer plugin.', 'lsx' ); ?></p> |
|
53 | + <a href="https://wordpress.org/plugins/lsx-customizer/" target="_blank"><?php esc_html_e('LSX Customizer', 'lsx'); ?></a> |
|
54 | + <p><?php esc_html_e('You\'ve installed LSX, so now why not make it all yours? Whether it\'s a small CSS tweak or changing the entire layout of pages, posts or archives, please make use of the Theme Customizer plugin.', 'lsx'); ?></p> |
|
55 | 55 | </div> |
56 | 56 | </div> |
57 | 57 | |
58 | 58 | <div class="col-md-4"> |
59 | 59 | <div class="box-clean"> |
60 | - <a href="https://wordpress.org/plugins/lsx-blog-customizer/" target="_blank"><?php esc_html_e( 'LSX Blog Customizer', 'lsx' ); ?></a> |
|
61 | - <p><?php esc_html_e( 'It allows you it to customize various aspects of the the appearance of your blog, posts widgets, archive pages and single posts so they looks exactly how you want.', 'lsx' ); ?></p> |
|
60 | + <a href="https://wordpress.org/plugins/lsx-blog-customizer/" target="_blank"><?php esc_html_e('LSX Blog Customizer', 'lsx'); ?></a> |
|
61 | + <p><?php esc_html_e('It allows you it to customize various aspects of the the appearance of your blog, posts widgets, archive pages and single posts so they looks exactly how you want.', 'lsx'); ?></p> |
|
62 | 62 | </div> |
63 | 63 | </div> |
64 | 64 | </div> |
@@ -66,22 +66,22 @@ discard block |
||
66 | 66 | <div class="row"> |
67 | 67 | <div class="col-md-4"> |
68 | 68 | <div class="box-clean"> |
69 | - <a href="https://wordpress.org/plugins/lsx-mega-menus/" target="_blank"><?php esc_html_e( 'LSX Mega Menus', 'lsx' ); ?></a> |
|
70 | - <p><?php esc_html_e( 'Create custom, full-width dropdown menus that contain images, widgets and more that seamlessly tie into your LSX WordPress site.', 'lsx' ); ?></p> |
|
69 | + <a href="https://wordpress.org/plugins/lsx-mega-menus/" target="_blank"><?php esc_html_e('LSX Mega Menus', 'lsx'); ?></a> |
|
70 | + <p><?php esc_html_e('Create custom, full-width dropdown menus that contain images, widgets and more that seamlessly tie into your LSX WordPress site.', 'lsx'); ?></p> |
|
71 | 71 | </div> |
72 | 72 | </div> |
73 | 73 | |
74 | 74 | <div class="col-md-4"> |
75 | 75 | <div class="box-clean"> |
76 | - <a href="https://wordpress.org/plugins/lsx-sharing/" target="_blank"><?php esc_html_e( 'LSX Sharing', 'lsx' ); ?></a> |
|
77 | - <p><?php esc_html_e( 'LSX Sharing adds buttons to your posts that your readers can use to share your content on Facebook, Twitter and Pinterest.', 'lsx' ); ?></p> |
|
76 | + <a href="https://wordpress.org/plugins/lsx-sharing/" target="_blank"><?php esc_html_e('LSX Sharing', 'lsx'); ?></a> |
|
77 | + <p><?php esc_html_e('LSX Sharing adds buttons to your posts that your readers can use to share your content on Facebook, Twitter and Pinterest.', 'lsx'); ?></p> |
|
78 | 78 | </div> |
79 | 79 | </div> |
80 | 80 | |
81 | 81 | <div class="col-md-4"> |
82 | 82 | <div class="box-clean"> |
83 | - <a href="https://wordpress.org/plugins/lsx-blocks/" target="_blank"><?php esc_html_e( 'LSX Blocks', 'lsx' ); ?></a> |
|
84 | - <p><?php esc_html_e( 'The new block editor is here, and with it comes the new block-based page builder. We have built these content blocks so you can simply drag and drop them into your editor, configure to your wishes and you are done!', 'lsx' ); ?></p> |
|
83 | + <a href="https://wordpress.org/plugins/lsx-blocks/" target="_blank"><?php esc_html_e('LSX Blocks', 'lsx'); ?></a> |
|
84 | + <p><?php esc_html_e('The new block editor is here, and with it comes the new block-based page builder. We have built these content blocks so you can simply drag and drop them into your editor, configure to your wishes and you are done!', 'lsx'); ?></p> |
|
85 | 85 | </div> |
86 | 86 | </div> |
87 | 87 | |
@@ -94,29 +94,29 @@ discard block |
||
94 | 94 | <div class="row"> |
95 | 95 | <div class="col-md-12"> |
96 | 96 | <div class="box enhance"> |
97 | - <h2><?php esc_html_e( 'Post Type Extensions', 'lsx' ); ?></h2> |
|
98 | - <p><?php esc_html_e( 'These extensions will add a post type with options for displaying different information to your visitors.', 'lsx' ); ?></p> |
|
97 | + <h2><?php esc_html_e('Post Type Extensions', 'lsx'); ?></h2> |
|
98 | + <p><?php esc_html_e('These extensions will add a post type with options for displaying different information to your visitors.', 'lsx'); ?></p> |
|
99 | 99 | |
100 | 100 | <div class="row"> |
101 | 101 | |
102 | 102 | <div class="col-md-4"> |
103 | 103 | <div class="box-clean"> |
104 | - <a href="https://wordpress.org/plugins/lsx-team/" target="_blank"><?php esc_html_e( 'LSX Team', 'lsx' ); ?></a> |
|
105 | - <p><?php esc_html_e( 'The LSX Team Extension provides a custom post type that allows you to easily show off the people that make up your business.', 'lsx' ); ?></p> |
|
104 | + <a href="https://wordpress.org/plugins/lsx-team/" target="_blank"><?php esc_html_e('LSX Team', 'lsx'); ?></a> |
|
105 | + <p><?php esc_html_e('The LSX Team Extension provides a custom post type that allows you to easily show off the people that make up your business.', 'lsx'); ?></p> |
|
106 | 106 | </div> |
107 | 107 | </div> |
108 | 108 | |
109 | 109 | <div class="col-md-4"> |
110 | 110 | <div class="box-clean"> |
111 | - <a href="https://wordpress.org/plugins/lsx-testimonials/" target="_blank"><?php esc_html_e( 'LSX Testimonials', 'lsx' ); ?></a> |
|
112 | - <p><?php esc_html_e( 'The LSX Testimonials extension adds the "Testimonials" post type, which you can display front-and-centre on your site.', 'lsx' ); ?></p> |
|
111 | + <a href="https://wordpress.org/plugins/lsx-testimonials/" target="_blank"><?php esc_html_e('LSX Testimonials', 'lsx'); ?></a> |
|
112 | + <p><?php esc_html_e('The LSX Testimonials extension adds the "Testimonials" post type, which you can display front-and-centre on your site.', 'lsx'); ?></p> |
|
113 | 113 | </div> |
114 | 114 | </div> |
115 | 115 | |
116 | 116 | <div class="col-md-4"> |
117 | 117 | <div class="box-clean"> |
118 | - <a href="https://wordpress.org/plugins/lsx-videos/" target="_blank"><?php esc_html_e( 'LSX Videos', 'lsx' ); ?></a> |
|
119 | - <p><?php esc_html_e( 'Adds the "Videos" post type to your LSX website which allows you to display and categorize videos.', 'lsx' ); ?></p> |
|
118 | + <a href="https://wordpress.org/plugins/lsx-videos/" target="_blank"><?php esc_html_e('LSX Videos', 'lsx'); ?></a> |
|
119 | + <p><?php esc_html_e('Adds the "Videos" post type to your LSX website which allows you to display and categorize videos.', 'lsx'); ?></p> |
|
120 | 120 | </div> |
121 | 121 | </div> |
122 | 122 | |
@@ -125,15 +125,15 @@ discard block |
||
125 | 125 | <div class="row"> |
126 | 126 | <div class="col-md-4"> |
127 | 127 | <div class="box-clean"> |
128 | - <a href="https://wordpress.org/plugins/lsx-projects/" target="_blank"><?php esc_html_e( 'LSX Projects', 'lsx' ); ?></a> |
|
129 | - <p><?php esc_html_e( 'Show off your finest work with the LSX Projects Extension! It adds a "Project" post type, allowing you to categorize and display your Projects on your LSX website.', 'lsx' ); ?></p> |
|
128 | + <a href="https://wordpress.org/plugins/lsx-projects/" target="_blank"><?php esc_html_e('LSX Projects', 'lsx'); ?></a> |
|
129 | + <p><?php esc_html_e('Show off your finest work with the LSX Projects Extension! It adds a "Project" post type, allowing you to categorize and display your Projects on your LSX website.', 'lsx'); ?></p> |
|
130 | 130 | </div> |
131 | 131 | </div> |
132 | 132 | |
133 | 133 | <div class="col-md-4"> |
134 | 134 | <div class="box-clean"> |
135 | - <a href="https://lsx.lsdev.biz/" target="_blank"><?php esc_html_e( 'More coming soon…', 'lsx' ); ?></a> |
|
136 | - <p><?php esc_html_e( 'We need to find some way of linking to social media if we are going to invite people to follow us.', 'lsx' ); ?></p> |
|
135 | + <a href="https://lsx.lsdev.biz/" target="_blank"><?php esc_html_e('More coming soon…', 'lsx'); ?></a> |
|
136 | + <p><?php esc_html_e('We need to find some way of linking to social media if we are going to invite people to follow us.', 'lsx'); ?></p> |
|
137 | 137 | </div> |
138 | 138 | </div> |
139 | 139 | </div> |
@@ -145,29 +145,29 @@ discard block |
||
145 | 145 | <div class="row"> |
146 | 146 | <div class="col-md-12"> |
147 | 147 | <div class="box enhance"> |
148 | - <h2><?php esc_html_e( 'API Integration Extensions', 'lsx' ); ?></h2> |
|
149 | - <p><?php esc_html_e( 'LightSpeed has integrated plugins with reputable software partners.', 'lsx' ); ?></p> |
|
148 | + <h2><?php esc_html_e('API Integration Extensions', 'lsx'); ?></h2> |
|
149 | + <p><?php esc_html_e('LightSpeed has integrated plugins with reputable software partners.', 'lsx'); ?></p> |
|
150 | 150 | |
151 | 151 | <div class="row"> |
152 | 152 | |
153 | 153 | <div class="col-md-4"> |
154 | 154 | <div class="box-clean"> |
155 | - <a href="https://wordpress.org/plugins/lsx-give-payfast-gateway/" target="_blank"><?php esc_html_e( 'LSX Give Payfast Gateway', 'lsx' ); ?></a> |
|
156 | - <p><?php esc_html_e( 'Use the PayFast payment gateway with the GiveWP plugin for collecting donations.', 'lsx' ); ?></p> |
|
155 | + <a href="https://wordpress.org/plugins/lsx-give-payfast-gateway/" target="_blank"><?php esc_html_e('LSX Give Payfast Gateway', 'lsx'); ?></a> |
|
156 | + <p><?php esc_html_e('Use the PayFast payment gateway with the GiveWP plugin for collecting donations.', 'lsx'); ?></p> |
|
157 | 157 | </div> |
158 | 158 | </div> |
159 | 159 | |
160 | 160 | <div class="col-md-4"> |
161 | 161 | <div class="box-clean"> |
162 | - <a href="https://wordpress.org/plugins/lsx-importer-for-wetu/" target="_blank"><?php esc_html_e( 'LSX Wetu Importer', 'lsx' ); ?></a> |
|
163 | - <p><?php esc_html_e( 'Integrate your LSX Tour Operator website with Wetu, to easily import accommodations, destinations and tours from you Wetu account.', 'lsx' ); ?></p> |
|
162 | + <a href="https://wordpress.org/plugins/lsx-importer-for-wetu/" target="_blank"><?php esc_html_e('LSX Wetu Importer', 'lsx'); ?></a> |
|
163 | + <p><?php esc_html_e('Integrate your LSX Tour Operator website with Wetu, to easily import accommodations, destinations and tours from you Wetu account.', 'lsx'); ?></p> |
|
164 | 164 | </div> |
165 | 165 | </div> |
166 | 166 | |
167 | 167 | <div class="col-md-4"> |
168 | 168 | <div class="box-clean"> |
169 | - <a href="https://wordpress.org/plugins/lsx-zoho-crm-addon-for-caldera-forms/" target="_blank"><?php esc_html_e( 'LSX Caldera Forms Zoho Integration', 'lsx' ); ?></a> |
|
170 | - <p><?php esc_html_e( 'Maintaining your customer relationship management system is easy when you integrate with your website contact forms..', 'lsx' ); ?></p> |
|
169 | + <a href="https://wordpress.org/plugins/lsx-zoho-crm-addon-for-caldera-forms/" target="_blank"><?php esc_html_e('LSX Caldera Forms Zoho Integration', 'lsx'); ?></a> |
|
170 | + <p><?php esc_html_e('Maintaining your customer relationship management system is easy when you integrate with your website contact forms..', 'lsx'); ?></p> |
|
171 | 171 | </div> |
172 | 172 | </div> |
173 | 173 |