@@ -10,30 +10,30 @@ discard block |
||
10 | 10 | <div class="row"> |
11 | 11 | <div class="col-md-6"> |
12 | 12 | <div class="box mailchimp"> |
13 | - <h2><?php esc_html_e( 'Newsletter', 'lsx' ); ?></h2> |
|
14 | - <p><?php esc_html_e( 'Subscribe to our mailing list.', 'lsx' ); ?></p> |
|
13 | + <h2><?php esc_html_e('Newsletter', 'lsx'); ?></h2> |
|
14 | + <p><?php esc_html_e('Subscribe to our mailing list.', 'lsx'); ?></p> |
|
15 | 15 | |
16 | 16 | <!-- Begin MailChimp Signup Form --> |
17 | 17 | <form action="//lsdev.us2.list-manage.com/subscribe/post?u=e50b2c5c82f4b42ea978af479&id=92c36218e5" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate> |
18 | 18 | <div id="mc_embed_signup"> |
19 | 19 | <div id="mc_embed_signup_scroll"> |
20 | 20 | <div class="mc-field-group"> |
21 | - <label for="mce-EMAIL"><?php esc_html_e( 'Email Address', 'lsx' ); ?> <span class="asterisk">*</span></label> |
|
21 | + <label for="mce-EMAIL"><?php esc_html_e('Email Address', 'lsx'); ?> <span class="asterisk">*</span></label> |
|
22 | 22 | <input type="email" value="" name="EMAIL" class="required email" id="mce-EMAIL"> |
23 | 23 | </div> |
24 | 24 | <div class="mc-field-group"> |
25 | - <label for="mce-FNAME"><?php esc_html_e( 'First Name', 'lsx' ); ?> </label> |
|
25 | + <label for="mce-FNAME"><?php esc_html_e('First Name', 'lsx'); ?> </label> |
|
26 | 26 | <input type="text" value="" name="FNAME" class="" id="mce-FNAME"> |
27 | 27 | </div> |
28 | 28 | <div class="mc-field-group"> |
29 | - <label for="mce-LNAME"><?php esc_html_e( 'Last Name', 'lsx' ); ?> </label> |
|
29 | + <label for="mce-LNAME"><?php esc_html_e('Last Name', 'lsx'); ?> </label> |
|
30 | 30 | <input type="text" value="" name="LNAME" class="" id="mce-LNAME"> |
31 | 31 | </div> |
32 | 32 | </div> |
33 | 33 | <div style="position:absolute;left:-5000px;" aria-hidden="true"><input type="text" name="b_e50b2c5c82f4b42ea978af479_92c36218e5" tabindex="-1" value=""></div> |
34 | 34 | </div> |
35 | 35 | <div class="more-button"> |
36 | - <input type="submit" value="<?php esc_attr_e( 'Subscribe', 'lsx' ); ?>" name="subscribe" class="button button-primary"> |
|
36 | + <input type="submit" value="<?php esc_attr_e('Subscribe', 'lsx'); ?>" name="subscribe" class="button button-primary"> |
|
37 | 37 | </div> |
38 | 38 | </form> |
39 | 39 | <!--End mc_embed_signup--> |
@@ -42,13 +42,13 @@ discard block |
||
42 | 42 | |
43 | 43 | <div class="col-md-6"> |
44 | 44 | <div class="box suggest"> |
45 | - <h2><?php esc_html_e( 'Enjoying LSX?', 'lsx' ); ?></h2> |
|
45 | + <h2><?php esc_html_e('Enjoying LSX?', 'lsx'); ?></h2> |
|
46 | 46 | |
47 | 47 | <p> |
48 | 48 | <?php |
49 | 49 | printf( |
50 | 50 | /* Translators: 1: HTML open tag link, 2: HTML close tag link */ |
51 | - esc_html__( 'Why not %1$sleave a review%2$s on WordPress.org? We\'re looking foward to all our users\' feedback!', 'lsx' ), |
|
51 | + esc_html__('Why not %1$sleave a review%2$s on WordPress.org? We\'re looking foward to all our users\' feedback!', 'lsx'), |
|
52 | 52 | '<a href="https://wordpress.org/themes/lsx" target="_blank rel="noopener noreferrer">', |
53 | 53 | '</a>' |
54 | 54 | ); |
@@ -46,13 +46,13 @@ |
||
46 | 46 | |
47 | 47 | <p> |
48 | 48 | <?php |
49 | - printf( |
|
50 | - /* Translators: 1: HTML open tag link, 2: HTML close tag link */ |
|
51 | - esc_html__( 'Why not %1$sleave a review%2$s on WordPress.org? We\'re looking foward to all our users\' feedback!', 'lsx' ), |
|
52 | - '<a href="https://wordpress.org/themes/lsx" target="_blank rel="noopener noreferrer">', |
|
53 | - '</a>' |
|
54 | - ); |
|
55 | - ?> |
|
49 | + printf( |
|
50 | + /* Translators: 1: HTML open tag link, 2: HTML close tag link */ |
|
51 | + esc_html__( 'Why not %1$sleave a review%2$s on WordPress.org? We\'re looking foward to all our users\' feedback!', 'lsx' ), |
|
52 | + '<a href="https://wordpress.org/themes/lsx" target="_blank rel="noopener noreferrer">', |
|
53 | + '</a>' |
|
54 | + ); |
|
55 | + ?> |
|
56 | 56 | </p> |
57 | 57 | |
58 | 58 | <div class="more-button"> |
@@ -6,11 +6,11 @@ discard block |
||
6 | 6 | * @subpackage welcome-page |
7 | 7 | */ |
8 | 8 | |
9 | -if ( ! defined( 'ABSPATH' ) ) { |
|
9 | +if ( ! defined('ABSPATH')) { |
|
10 | 10 | exit; |
11 | 11 | } |
12 | 12 | |
13 | -if ( ! function_exists( 'lsx_activation_admin_notice_dismiss' ) ) : |
|
13 | +if ( ! function_exists('lsx_activation_admin_notice_dismiss')) : |
|
14 | 14 | |
15 | 15 | /** |
16 | 16 | * Dismiss the admin notice (successful activation). |
@@ -19,15 +19,15 @@ discard block |
||
19 | 19 | * @subpackage welcome-page |
20 | 20 | */ |
21 | 21 | function lsx_activation_admin_notice_dismiss() { |
22 | - update_option( 'lsx-notice-dismissed', '1' ); |
|
22 | + update_option('lsx-notice-dismissed', '1'); |
|
23 | 23 | wp_die(); |
24 | 24 | } |
25 | 25 | |
26 | 26 | endif; |
27 | 27 | |
28 | -add_action( 'wp_ajax_lsx_dismiss_theme_notice', 'lsx_activation_admin_notice_dismiss' ); |
|
28 | +add_action('wp_ajax_lsx_dismiss_theme_notice', 'lsx_activation_admin_notice_dismiss'); |
|
29 | 29 | |
30 | -if ( ! function_exists( 'lsx_activation_admin_notice' ) ) : |
|
30 | +if ( ! function_exists('lsx_activation_admin_notice')) : |
|
31 | 31 | |
32 | 32 | /** |
33 | 33 | * Adds an admin notice upon successful activation. |
@@ -36,16 +36,16 @@ discard block |
||
36 | 36 | * @subpackage welcome-page |
37 | 37 | */ |
38 | 38 | function lsx_activation_admin_notice() { |
39 | - if ( empty( get_option( 'lsx-notice-dismissed' ) ) ) { |
|
40 | - add_action( 'admin_notices', 'lsx_welcome_admin_notice', 99 ); |
|
39 | + if (empty(get_option('lsx-notice-dismissed'))) { |
|
40 | + add_action('admin_notices', 'lsx_welcome_admin_notice', 99); |
|
41 | 41 | } |
42 | 42 | } |
43 | 43 | |
44 | 44 | endif; |
45 | 45 | |
46 | -add_action( 'admin_notices', 'lsx_activation_admin_notice' ); |
|
46 | +add_action('admin_notices', 'lsx_activation_admin_notice'); |
|
47 | 47 | |
48 | -if ( ! function_exists( 'lsx_welcome_admin_notice' ) ) : |
|
48 | +if ( ! function_exists('lsx_welcome_admin_notice')) : |
|
49 | 49 | |
50 | 50 | /** |
51 | 51 | * Display an admin notice linking to the welcome screen. |
@@ -60,20 +60,20 @@ discard block |
||
60 | 60 | <?php |
61 | 61 | printf( |
62 | 62 | /* Translators: 1: HTML open tag link, 2: HTML close tag link */ |
63 | - esc_html_e( 'Thanks for choosing LSX! You can read hints and tips on how get the most out of your new theme on the %1$swelcome screen%2$s.', 'lsx' ), |
|
64 | - '<a href="' . esc_url( admin_url( 'themes.php?page=lsx-welcome' ) ) . '">', |
|
63 | + esc_html_e('Thanks for choosing LSX! You can read hints and tips on how get the most out of your new theme on the %1$swelcome screen%2$s.', 'lsx'), |
|
64 | + '<a href="' . esc_url(admin_url('themes.php?page=lsx-welcome')) . '">', |
|
65 | 65 | '</a>' |
66 | 66 | ); |
67 | 67 | ?> |
68 | 68 | </p> |
69 | - <p><a href="<?php echo esc_url( admin_url( 'themes.php?page=lsx-welcome' ) ); ?>" class="button" style="text-decoration: none;"><?php esc_html_e( 'Get started with LSX', 'lsx' ); ?></a></p> |
|
69 | + <p><a href="<?php echo esc_url(admin_url('themes.php?page=lsx-welcome')); ?>" class="button" style="text-decoration: none;"><?php esc_html_e('Get started with LSX', 'lsx'); ?></a></p> |
|
70 | 70 | </div> |
71 | 71 | <?php |
72 | 72 | } |
73 | 73 | |
74 | 74 | endif; |
75 | 75 | |
76 | -if ( ! function_exists( 'lsx_welcome_style' ) ) : |
|
76 | +if ( ! function_exists('lsx_welcome_style')) : |
|
77 | 77 | |
78 | 78 | /** |
79 | 79 | * Load welcome screen css. |
@@ -83,19 +83,19 @@ discard block |
||
83 | 83 | * |
84 | 84 | * @param string $hook_suffix the current page hook suffix. |
85 | 85 | */ |
86 | - function lsx_welcome_style( $hook_suffix ) { |
|
87 | - if ( 'appearance_page_lsx-welcome' === $hook_suffix ) { |
|
88 | - wp_enqueue_style( 'lsx-welcome-screen-mailchimp', '//cdn-images.mailchimp.com/embedcode/classic-10_7.css', array(), LSX_VERSION ); |
|
89 | - wp_enqueue_style( 'lsx-welcome-screen', get_template_directory_uri() . '/assets/css/admin/welcome.css', array( 'lsx-welcome-screen-mailchimp' ), LSX_VERSION ); |
|
90 | - wp_style_add_data( 'lsx-welcome-screen', 'rtl', 'replace' ); |
|
86 | + function lsx_welcome_style($hook_suffix) { |
|
87 | + if ('appearance_page_lsx-welcome' === $hook_suffix) { |
|
88 | + wp_enqueue_style('lsx-welcome-screen-mailchimp', '//cdn-images.mailchimp.com/embedcode/classic-10_7.css', array(), LSX_VERSION); |
|
89 | + wp_enqueue_style('lsx-welcome-screen', get_template_directory_uri() . '/assets/css/admin/welcome.css', array('lsx-welcome-screen-mailchimp'), LSX_VERSION); |
|
90 | + wp_style_add_data('lsx-welcome-screen', 'rtl', 'replace'); |
|
91 | 91 | } |
92 | 92 | } |
93 | 93 | |
94 | 94 | endif; |
95 | 95 | |
96 | -add_action( 'admin_enqueue_scripts', 'lsx_welcome_style' ); |
|
96 | +add_action('admin_enqueue_scripts', 'lsx_welcome_style'); |
|
97 | 97 | |
98 | -if ( ! function_exists( 'lsx_welcome_register_menu' ) ) : |
|
98 | +if ( ! function_exists('lsx_welcome_register_menu')) : |
|
99 | 99 | |
100 | 100 | /** |
101 | 101 | * Creates the dashboard page. |
@@ -104,14 +104,14 @@ discard block |
||
104 | 104 | * @subpackage welcome-page |
105 | 105 | */ |
106 | 106 | function lsx_welcome_register_menu() { |
107 | - add_theme_page( 'LSX', 'LSX', 'activate_plugins', 'lsx-welcome', 'lsx_welcome_screen' ); |
|
107 | + add_theme_page('LSX', 'LSX', 'activate_plugins', 'lsx-welcome', 'lsx_welcome_screen'); |
|
108 | 108 | } |
109 | 109 | |
110 | 110 | endif; |
111 | 111 | |
112 | -add_action( 'admin_menu', 'lsx_welcome_register_menu' ); |
|
112 | +add_action('admin_menu', 'lsx_welcome_register_menu'); |
|
113 | 113 | |
114 | -if ( ! function_exists( 'lsx_welcome_screen' ) ) : |
|
114 | +if ( ! function_exists('lsx_welcome_screen')) : |
|
115 | 115 | |
116 | 116 | /** |
117 | 117 | * The welcome screen. |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | * @hooked lsx_welcome_enhance - 20 |
134 | 134 | * @hooked lsx_welcome_footer - 30 |
135 | 135 | */ |
136 | - do_action( 'lsx_welcome' ); |
|
136 | + do_action('lsx_welcome'); |
|
137 | 137 | ?> |
138 | 138 | </div> |
139 | 139 | <?php |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | |
142 | 142 | endif; |
143 | 143 | |
144 | -if ( ! function_exists( 'lsx_welcome_header' ) ) : |
|
144 | +if ( ! function_exists('lsx_welcome_header')) : |
|
145 | 145 | |
146 | 146 | /** |
147 | 147 | * Welcome screen intro. |
@@ -155,9 +155,9 @@ discard block |
||
155 | 155 | |
156 | 156 | endif; |
157 | 157 | |
158 | -add_action( 'lsx_welcome', 'lsx_welcome_header', 10 ); |
|
158 | +add_action('lsx_welcome', 'lsx_welcome_header', 10); |
|
159 | 159 | |
160 | -if ( ! function_exists( 'lsx_welcome_enhance' ) ) : |
|
160 | +if ( ! function_exists('lsx_welcome_enhance')) : |
|
161 | 161 | |
162 | 162 | /** |
163 | 163 | * Welcome screen enhance section. |
@@ -171,9 +171,9 @@ discard block |
||
171 | 171 | |
172 | 172 | endif; |
173 | 173 | |
174 | -add_action( 'lsx_welcome', 'lsx_welcome_enhance', 20 ); |
|
174 | +add_action('lsx_welcome', 'lsx_welcome_enhance', 20); |
|
175 | 175 | |
176 | -if ( ! function_exists( 'lsx_welcome_footer' ) ) : |
|
176 | +if ( ! function_exists('lsx_welcome_footer')) : |
|
177 | 177 | |
178 | 178 | /** |
179 | 179 | * Welcome screen contribute section. |
@@ -187,4 +187,4 @@ discard block |
||
187 | 187 | |
188 | 188 | endif; |
189 | 189 | |
190 | -add_action( 'lsx_welcome', 'lsx_welcome_footer', 30 ); |
|
190 | +add_action('lsx_welcome', 'lsx_welcome_footer', 30); |
@@ -7,21 +7,21 @@ discard block |
||
7 | 7 | */ |
8 | 8 | |
9 | 9 | if ( ! defined( 'ABSPATH' ) ) { |
10 | - exit; |
|
10 | + exit; |
|
11 | 11 | } |
12 | 12 | |
13 | 13 | if ( ! function_exists( 'lsx_activation_admin_notice_dismiss' ) ) : |
14 | 14 | |
15 | - /** |
|
16 | - * Dismiss the admin notice (successful activation). |
|
17 | - * |
|
18 | - * @package lsx |
|
19 | - * @subpackage welcome-page |
|
20 | - */ |
|
21 | - function lsx_activation_admin_notice_dismiss() { |
|
22 | - update_option( 'lsx-notice-dismissed', '1' ); |
|
23 | - wp_die(); |
|
24 | - } |
|
15 | + /** |
|
16 | + * Dismiss the admin notice (successful activation). |
|
17 | + * |
|
18 | + * @package lsx |
|
19 | + * @subpackage welcome-page |
|
20 | + */ |
|
21 | + function lsx_activation_admin_notice_dismiss() { |
|
22 | + update_option( 'lsx-notice-dismissed', '1' ); |
|
23 | + wp_die(); |
|
24 | + } |
|
25 | 25 | |
26 | 26 | endif; |
27 | 27 | |
@@ -29,17 +29,17 @@ discard block |
||
29 | 29 | |
30 | 30 | if ( ! function_exists( 'lsx_activation_admin_notice' ) ) : |
31 | 31 | |
32 | - /** |
|
33 | - * Adds an admin notice upon successful activation. |
|
34 | - * |
|
35 | - * @package lsx |
|
36 | - * @subpackage welcome-page |
|
37 | - */ |
|
38 | - function lsx_activation_admin_notice() { |
|
39 | - if ( empty( get_option( 'lsx-notice-dismissed' ) ) ) { |
|
40 | - add_action( 'admin_notices', 'lsx_welcome_admin_notice', 99 ); |
|
41 | - } |
|
42 | - } |
|
32 | + /** |
|
33 | + * Adds an admin notice upon successful activation. |
|
34 | + * |
|
35 | + * @package lsx |
|
36 | + * @subpackage welcome-page |
|
37 | + */ |
|
38 | + function lsx_activation_admin_notice() { |
|
39 | + if ( empty( get_option( 'lsx-notice-dismissed' ) ) ) { |
|
40 | + add_action( 'admin_notices', 'lsx_welcome_admin_notice', 99 ); |
|
41 | + } |
|
42 | + } |
|
43 | 43 | |
44 | 44 | endif; |
45 | 45 | |
@@ -47,49 +47,49 @@ discard block |
||
47 | 47 | |
48 | 48 | if ( ! function_exists( 'lsx_welcome_admin_notice' ) ) : |
49 | 49 | |
50 | - /** |
|
51 | - * Display an admin notice linking to the welcome screen. |
|
52 | - * |
|
53 | - * @package lsx |
|
54 | - * @subpackage welcome-page |
|
55 | - */ |
|
56 | - function lsx_welcome_admin_notice() { |
|
57 | - ?> |
|
50 | + /** |
|
51 | + * Display an admin notice linking to the welcome screen. |
|
52 | + * |
|
53 | + * @package lsx |
|
54 | + * @subpackage welcome-page |
|
55 | + */ |
|
56 | + function lsx_welcome_admin_notice() { |
|
57 | + ?> |
|
58 | 58 | <div class="lsx-theme-notice notice notice-success is-dismissible"> |
59 | 59 | <p> |
60 | 60 | <?php |
61 | - printf( |
|
62 | - /* Translators: 1: HTML open tag link, 2: HTML close tag link */ |
|
63 | - esc_html_e( 'Thanks for choosing LSX! You can read hints and tips on how get the most out of your new theme on the %1$swelcome screen%2$s.', 'lsx' ), |
|
64 | - '<a href="' . esc_url( admin_url( 'themes.php?page=lsx-welcome' ) ) . '">', |
|
65 | - '</a>' |
|
66 | - ); |
|
67 | - ?> |
|
61 | + printf( |
|
62 | + /* Translators: 1: HTML open tag link, 2: HTML close tag link */ |
|
63 | + esc_html_e( 'Thanks for choosing LSX! You can read hints and tips on how get the most out of your new theme on the %1$swelcome screen%2$s.', 'lsx' ), |
|
64 | + '<a href="' . esc_url( admin_url( 'themes.php?page=lsx-welcome' ) ) . '">', |
|
65 | + '</a>' |
|
66 | + ); |
|
67 | + ?> |
|
68 | 68 | </p> |
69 | 69 | <p><a href="<?php echo esc_url( admin_url( 'themes.php?page=lsx-welcome' ) ); ?>" class="button" style="text-decoration: none;"><?php esc_html_e( 'Get started with LSX', 'lsx' ); ?></a></p> |
70 | 70 | </div> |
71 | 71 | <?php |
72 | - } |
|
72 | + } |
|
73 | 73 | |
74 | 74 | endif; |
75 | 75 | |
76 | 76 | if ( ! function_exists( 'lsx_welcome_style' ) ) : |
77 | 77 | |
78 | - /** |
|
79 | - * Load welcome screen css. |
|
80 | - * |
|
81 | - * @package lsx |
|
82 | - * @subpackage welcome-page |
|
83 | - * |
|
84 | - * @param string $hook_suffix the current page hook suffix. |
|
85 | - */ |
|
86 | - function lsx_welcome_style( $hook_suffix ) { |
|
87 | - if ( 'appearance_page_lsx-welcome' === $hook_suffix ) { |
|
88 | - wp_enqueue_style( 'lsx-welcome-screen-mailchimp', '//cdn-images.mailchimp.com/embedcode/classic-10_7.css', array(), LSX_VERSION ); |
|
89 | - wp_enqueue_style( 'lsx-welcome-screen', get_template_directory_uri() . '/assets/css/admin/welcome.css', array( 'lsx-welcome-screen-mailchimp' ), LSX_VERSION ); |
|
90 | - wp_style_add_data( 'lsx-welcome-screen', 'rtl', 'replace' ); |
|
91 | - } |
|
92 | - } |
|
78 | + /** |
|
79 | + * Load welcome screen css. |
|
80 | + * |
|
81 | + * @package lsx |
|
82 | + * @subpackage welcome-page |
|
83 | + * |
|
84 | + * @param string $hook_suffix the current page hook suffix. |
|
85 | + */ |
|
86 | + function lsx_welcome_style( $hook_suffix ) { |
|
87 | + if ( 'appearance_page_lsx-welcome' === $hook_suffix ) { |
|
88 | + wp_enqueue_style( 'lsx-welcome-screen-mailchimp', '//cdn-images.mailchimp.com/embedcode/classic-10_7.css', array(), LSX_VERSION ); |
|
89 | + wp_enqueue_style( 'lsx-welcome-screen', get_template_directory_uri() . '/assets/css/admin/welcome.css', array( 'lsx-welcome-screen-mailchimp' ), LSX_VERSION ); |
|
90 | + wp_style_add_data( 'lsx-welcome-screen', 'rtl', 'replace' ); |
|
91 | + } |
|
92 | + } |
|
93 | 93 | |
94 | 94 | endif; |
95 | 95 | |
@@ -97,15 +97,15 @@ discard block |
||
97 | 97 | |
98 | 98 | if ( ! function_exists( 'lsx_welcome_register_menu' ) ) : |
99 | 99 | |
100 | - /** |
|
101 | - * Creates the dashboard page. |
|
102 | - * |
|
103 | - * @package lsx |
|
104 | - * @subpackage welcome-page |
|
105 | - */ |
|
106 | - function lsx_welcome_register_menu() { |
|
107 | - add_theme_page( 'LSX', 'LSX', 'activate_plugins', 'lsx-welcome', 'lsx_welcome_screen' ); |
|
108 | - } |
|
100 | + /** |
|
101 | + * Creates the dashboard page. |
|
102 | + * |
|
103 | + * @package lsx |
|
104 | + * @subpackage welcome-page |
|
105 | + */ |
|
106 | + function lsx_welcome_register_menu() { |
|
107 | + add_theme_page( 'LSX', 'LSX', 'activate_plugins', 'lsx-welcome', 'lsx_welcome_screen' ); |
|
108 | + } |
|
109 | 109 | |
110 | 110 | endif; |
111 | 111 | |
@@ -113,45 +113,45 @@ discard block |
||
113 | 113 | |
114 | 114 | if ( ! function_exists( 'lsx_welcome_screen' ) ) : |
115 | 115 | |
116 | - /** |
|
117 | - * The welcome screen. |
|
118 | - * |
|
119 | - * @package lsx |
|
120 | - * @subpackage welcome-page |
|
121 | - */ |
|
122 | - function lsx_welcome_screen() { |
|
123 | - require_once ABSPATH . 'wp-load.php'; |
|
124 | - require_once ABSPATH . 'wp-admin/admin.php'; |
|
125 | - require_once ABSPATH . 'wp-admin/admin-header.php'; |
|
126 | - ?> |
|
116 | + /** |
|
117 | + * The welcome screen. |
|
118 | + * |
|
119 | + * @package lsx |
|
120 | + * @subpackage welcome-page |
|
121 | + */ |
|
122 | + function lsx_welcome_screen() { |
|
123 | + require_once ABSPATH . 'wp-load.php'; |
|
124 | + require_once ABSPATH . 'wp-admin/admin.php'; |
|
125 | + require_once ABSPATH . 'wp-admin/admin-header.php'; |
|
126 | + ?> |
|
127 | 127 | <div class="wrap about-wrap"> |
128 | 128 | <?php |
129 | - /** |
|
130 | - * Functions hooked into lsx_welcome action |
|
131 | - * |
|
132 | - * @hooked lsx_welcome_header - 10 |
|
133 | - * @hooked lsx_welcome_enhance - 20 |
|
134 | - * @hooked lsx_welcome_footer - 30 |
|
135 | - */ |
|
136 | - do_action( 'lsx_welcome' ); |
|
137 | - ?> |
|
129 | + /** |
|
130 | + * Functions hooked into lsx_welcome action |
|
131 | + * |
|
132 | + * @hooked lsx_welcome_header - 10 |
|
133 | + * @hooked lsx_welcome_enhance - 20 |
|
134 | + * @hooked lsx_welcome_footer - 30 |
|
135 | + */ |
|
136 | + do_action( 'lsx_welcome' ); |
|
137 | + ?> |
|
138 | 138 | </div> |
139 | 139 | <?php |
140 | - } |
|
140 | + } |
|
141 | 141 | |
142 | 142 | endif; |
143 | 143 | |
144 | 144 | if ( ! function_exists( 'lsx_welcome_header' ) ) : |
145 | 145 | |
146 | - /** |
|
147 | - * Welcome screen intro. |
|
148 | - * |
|
149 | - * @package lsx |
|
150 | - * @subpackage welcome-page |
|
151 | - */ |
|
152 | - function lsx_welcome_header() { |
|
153 | - require_once get_template_directory() . '/includes/admin/welcome-screen/component-header.php'; |
|
154 | - } |
|
146 | + /** |
|
147 | + * Welcome screen intro. |
|
148 | + * |
|
149 | + * @package lsx |
|
150 | + * @subpackage welcome-page |
|
151 | + */ |
|
152 | + function lsx_welcome_header() { |
|
153 | + require_once get_template_directory() . '/includes/admin/welcome-screen/component-header.php'; |
|
154 | + } |
|
155 | 155 | |
156 | 156 | endif; |
157 | 157 | |
@@ -159,15 +159,15 @@ discard block |
||
159 | 159 | |
160 | 160 | if ( ! function_exists( 'lsx_welcome_enhance' ) ) : |
161 | 161 | |
162 | - /** |
|
163 | - * Welcome screen enhance section. |
|
164 | - * |
|
165 | - * @package lsx |
|
166 | - * @subpackage welcome-page |
|
167 | - */ |
|
168 | - function lsx_welcome_enhance() { |
|
169 | - require_once get_template_directory() . '/includes/admin/welcome-screen/component-enhance.php'; |
|
170 | - } |
|
162 | + /** |
|
163 | + * Welcome screen enhance section. |
|
164 | + * |
|
165 | + * @package lsx |
|
166 | + * @subpackage welcome-page |
|
167 | + */ |
|
168 | + function lsx_welcome_enhance() { |
|
169 | + require_once get_template_directory() . '/includes/admin/welcome-screen/component-enhance.php'; |
|
170 | + } |
|
171 | 171 | |
172 | 172 | endif; |
173 | 173 | |
@@ -175,15 +175,15 @@ discard block |
||
175 | 175 | |
176 | 176 | if ( ! function_exists( 'lsx_welcome_footer' ) ) : |
177 | 177 | |
178 | - /** |
|
179 | - * Welcome screen contribute section. |
|
180 | - * |
|
181 | - * @package lsx |
|
182 | - * @subpackage welcome-page |
|
183 | - */ |
|
184 | - function lsx_welcome_footer() { |
|
185 | - require_once get_template_directory() . '/includes/admin/welcome-screen/component-footer.php'; |
|
186 | - } |
|
178 | + /** |
|
179 | + * Welcome screen contribute section. |
|
180 | + * |
|
181 | + * @package lsx |
|
182 | + * @subpackage welcome-page |
|
183 | + */ |
|
184 | + function lsx_welcome_footer() { |
|
185 | + require_once get_template_directory() . '/includes/admin/welcome-screen/component-footer.php'; |
|
186 | + } |
|
187 | 187 | |
188 | 188 | endif; |
189 | 189 |
@@ -7,28 +7,28 @@ |
||
7 | 7 | |
8 | 8 | $style = 'body #searchform { display: block; }'; |
9 | 9 | |
10 | -if ( is_customize_preview() ) { |
|
11 | - $search_form = get_theme_mod( 'lsx_header_search', false ); |
|
10 | +if (is_customize_preview()) { |
|
11 | + $search_form = get_theme_mod('lsx_header_search', false); |
|
12 | 12 | |
13 | - if ( false === $search_form ) { |
|
13 | + if (false === $search_form) { |
|
14 | 14 | $style = 'body #searchform { display: none; }'; |
15 | 15 | } |
16 | 16 | } |
17 | 17 | ?> |
18 | 18 | |
19 | -<form role="search" method="get" class="search-form form-inline" id="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>"> |
|
19 | +<form role="search" method="get" class="search-form form-inline" id="searchform" action="<?php echo esc_url(home_url('/')); ?>"> |
|
20 | 20 | <div class="input-group"> |
21 | - <input type="search" value="<?php if ( is_search() ) { echo get_search_query(); } ?>" name="s" class="search-field form-control" placeholder="<?php esc_attr_e( 'Search', 'lsx' ); ?> <?php echo esc_attr( get_bloginfo( 'name' ) ); ?>"> |
|
22 | - <label class="hide"><?php esc_html_e( 'Search for:', 'lsx' ); ?></label> |
|
21 | + <input type="search" value="<?php if (is_search()) { echo get_search_query(); } ?>" name="s" class="search-field form-control" placeholder="<?php esc_attr_e('Search', 'lsx'); ?> <?php echo esc_attr(get_bloginfo('name')); ?>"> |
|
22 | + <label class="hide"><?php esc_html_e('Search for:', 'lsx'); ?></label> |
|
23 | 23 | |
24 | 24 | <span class="input-group-btn"> |
25 | 25 | <button type="submit" class="search-submit btn btn-default"><span class="fa fa-search"></span></button> |
26 | 26 | </span> |
27 | 27 | </div> |
28 | 28 | |
29 | - <?php if ( is_customize_preview() ) : ?> |
|
29 | + <?php if (is_customize_preview()) : ?> |
|
30 | 30 | <style id="lsx-header-search-css"> |
31 | - <?php echo esc_attr( $style ); ?> |
|
31 | + <?php echo esc_attr($style); ?> |
|
32 | 32 | </style> |
33 | 33 | <?php endif; ?> |
34 | 34 | </form> |
@@ -8,11 +8,11 @@ |
||
8 | 8 | $style = 'body #searchform { display: block; }'; |
9 | 9 | |
10 | 10 | if ( is_customize_preview() ) { |
11 | - $search_form = get_theme_mod( 'lsx_header_search', false ); |
|
11 | + $search_form = get_theme_mod( 'lsx_header_search', false ); |
|
12 | 12 | |
13 | - if ( false === $search_form ) { |
|
14 | - $style = 'body #searchform { display: none; }'; |
|
15 | - } |
|
13 | + if ( false === $search_form ) { |
|
14 | + $style = 'body #searchform { display: none; }'; |
|
15 | + } |
|
16 | 16 | } |
17 | 17 | ?> |
18 | 18 |
@@ -5,42 +5,42 @@ |
||
5 | 5 | * @package lsx |
6 | 6 | */ |
7 | 7 | |
8 | -if ( ! defined( 'ABSPATH' ) ) { |
|
8 | +if ( ! defined('ABSPATH')) { |
|
9 | 9 | exit; |
10 | 10 | } |
11 | 11 | global $comment, $stored_comment, $_product, $rating; |
12 | 12 | $the_comment = $comment; |
13 | -if ( null !== $stored_comment ) { |
|
13 | +if (null !== $stored_comment) { |
|
14 | 14 | $the_comment = $stored_comment; |
15 | 15 | } |
16 | 16 | ?> |
17 | 17 | <div class="lsx-woocommerce-review-slot"> |
18 | 18 | <div class="lsx-woocommerce-review-flex"> |
19 | - <a href="<?php echo esc_url( get_comment_link( $the_comment->comment_ID ) ); ?>"> |
|
19 | + <a href="<?php echo esc_url(get_comment_link($the_comment->comment_ID)); ?>"> |
|
20 | 20 | <figure class="lsx-woocommerce-avatar"> |
21 | - <?php echo wp_kses_post( $_product->get_image( 'lsx-thumbnail-square' ) ); ?> |
|
21 | + <?php echo wp_kses_post($_product->get_image('lsx-thumbnail-square')); ?> |
|
22 | 22 | </figure> |
23 | 23 | </a> |
24 | 24 | |
25 | 25 | <div class="lsx-woocommerce-review-box"> |
26 | 26 | <div class="lsx-woocommerce-rating"> |
27 | - <?php echo wp_kses_post( wc_get_rating_html( $rating ) ); ?> |
|
27 | + <?php echo wp_kses_post(wc_get_rating_html($rating)); ?> |
|
28 | 28 | </div> |
29 | 29 | |
30 | 30 | <h5 class="lsx-woocommerce-title"> |
31 | - <a href="<?php echo esc_url( get_comment_link( $the_comment->comment_ID ) ); ?>"><?php echo wp_kses_post( $_product->get_name() ); ?></a> |
|
31 | + <a href="<?php echo esc_url(get_comment_link($the_comment->comment_ID)); ?>"><?php echo wp_kses_post($_product->get_name()); ?></a> |
|
32 | 32 | </h5> |
33 | 33 | |
34 | 34 | <p class="lsx-woocommerce-reviewer"> |
35 | 35 | <?php |
36 | 36 | /* translators: %s: review author */ |
37 | - echo wp_kses_post( esc_html__( 'by ', 'lsx' ) . get_comment_author( $the_comment->comment_ID ) ); |
|
37 | + echo wp_kses_post(esc_html__('by ', 'lsx') . get_comment_author($the_comment->comment_ID)); |
|
38 | 38 | ?> |
39 | 39 | </p> |
40 | 40 | |
41 | 41 | <div class="lsx-woocommerce-content"> |
42 | - <p><?php echo wp_kses_post( $the_comment->comment_content ); ?></p> |
|
43 | - <p><a href="<?php echo esc_url( get_comment_link( $the_comment->comment_ID ) ); ?>" class="moretag"><?php esc_html_e( 'View more', 'lsx' ); ?></a></p> |
|
42 | + <p><?php echo wp_kses_post($the_comment->comment_content); ?></p> |
|
43 | + <p><a href="<?php echo esc_url(get_comment_link($the_comment->comment_ID)); ?>" class="moretag"><?php esc_html_e('View more', 'lsx'); ?></a></p> |
|
44 | 44 | </div> |
45 | 45 | </div> |
46 | 46 | </div> |
@@ -6,12 +6,12 @@ discard block |
||
6 | 6 | */ |
7 | 7 | |
8 | 8 | if ( ! defined( 'ABSPATH' ) ) { |
9 | - exit; |
|
9 | + exit; |
|
10 | 10 | } |
11 | 11 | global $comment, $stored_comment, $_product, $rating; |
12 | 12 | $the_comment = $comment; |
13 | 13 | if ( null !== $stored_comment ) { |
14 | - $the_comment = $stored_comment; |
|
14 | + $the_comment = $stored_comment; |
|
15 | 15 | } |
16 | 16 | ?> |
17 | 17 | <div class="lsx-woocommerce-review-slot"> |
@@ -33,9 +33,9 @@ discard block |
||
33 | 33 | |
34 | 34 | <p class="lsx-woocommerce-reviewer"> |
35 | 35 | <?php |
36 | - /* translators: %s: review author */ |
|
37 | - echo wp_kses_post( esc_html__( 'by ', 'lsx' ) . get_comment_author( $the_comment->comment_ID ) ); |
|
38 | - ?> |
|
36 | + /* translators: %s: review author */ |
|
37 | + echo wp_kses_post( esc_html__( 'by ', 'lsx' ) . get_comment_author( $the_comment->comment_ID ) ); |
|
38 | + ?> |
|
39 | 39 | </p> |
40 | 40 | |
41 | 41 | <div class="lsx-woocommerce-content"> |
@@ -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,25 +6,25 @@ discard block |
||
6 | 6 | * @subpackage layout |
7 | 7 | */ |
8 | 8 | |
9 | -if ( ! defined( 'ABSPATH' ) ) { |
|
9 | +if ( ! defined('ABSPATH')) { |
|
10 | 10 | exit; |
11 | 11 | } |
12 | 12 | |
13 | -if ( ! function_exists( 'lsx_layout_selector' ) ) : |
|
13 | +if ( ! function_exists('lsx_layout_selector')) : |
|
14 | 14 | /** |
15 | 15 | * Layout selector. |
16 | 16 | * |
17 | 17 | * @package lsx |
18 | 18 | * @subpackage layout |
19 | 19 | */ |
20 | - function lsx_layout_selector( $class, $area = 'site' ) { |
|
20 | + function lsx_layout_selector($class, $area = 'site') { |
|
21 | 21 | $return_class = ''; |
22 | - $layout = get_theme_mod( 'lsx_layout', '1c' ); |
|
23 | - $layout = apply_filters( 'lsx_layout', $layout ); |
|
22 | + $layout = get_theme_mod('lsx_layout', '1c'); |
|
23 | + $layout = apply_filters('lsx_layout', $layout); |
|
24 | 24 | $default_size = 'sm'; |
25 | - $size = apply_filters( 'lsx_bootstrap_column_size', $default_size ); |
|
25 | + $size = apply_filters('lsx_bootstrap_column_size', $default_size); |
|
26 | 26 | |
27 | - switch ( $layout ) { |
|
27 | + switch ($layout) { |
|
28 | 28 | case '1c': |
29 | 29 | $main_class = 'col-' . $size . '-12'; |
30 | 30 | $sidebar_class = 'col-' . $size . '-12'; |
@@ -43,19 +43,19 @@ discard block |
||
43 | 43 | break; |
44 | 44 | } |
45 | 45 | |
46 | - if ( 'main' === $class ) { |
|
47 | - $return_class = apply_filters( 'lsx_layout_selector', $main_class, $class, $layout, $size ); |
|
46 | + if ('main' === $class) { |
|
47 | + $return_class = apply_filters('lsx_layout_selector', $main_class, $class, $layout, $size); |
|
48 | 48 | } |
49 | 49 | |
50 | - if ( 'sidebar' === $class ) { |
|
51 | - $return_class = apply_filters( 'lsx_layout_selector', $sidebar_class, $class, $layout, $size ); |
|
50 | + if ('sidebar' === $class) { |
|
51 | + $return_class = apply_filters('lsx_layout_selector', $sidebar_class, $class, $layout, $size); |
|
52 | 52 | } |
53 | 53 | |
54 | 54 | return $return_class; |
55 | 55 | } |
56 | 56 | endif; |
57 | 57 | |
58 | -if ( ! function_exists( 'lsx_main_class' ) ) : |
|
58 | +if ( ! function_exists('lsx_main_class')) : |
|
59 | 59 | /** |
60 | 60 | * .main classes. |
61 | 61 | * |
@@ -63,11 +63,11 @@ discard block |
||
63 | 63 | * @subpackage layout |
64 | 64 | */ |
65 | 65 | function lsx_main_class() { |
66 | - return lsx_layout_selector( 'main' ); |
|
66 | + return lsx_layout_selector('main'); |
|
67 | 67 | } |
68 | 68 | endif; |
69 | 69 | |
70 | -if ( ! function_exists( 'lsx_sidebar_class' ) ) : |
|
70 | +if ( ! function_exists('lsx_sidebar_class')) : |
|
71 | 71 | /** |
72 | 72 | * .sidebar classes. |
73 | 73 | * |
@@ -75,47 +75,47 @@ discard block |
||
75 | 75 | * @subpackage layout |
76 | 76 | */ |
77 | 77 | function lsx_sidebar_class() { |
78 | - return lsx_layout_selector( 'sidebar' ); |
|
78 | + return lsx_layout_selector('sidebar'); |
|
79 | 79 | } |
80 | 80 | endif; |
81 | 81 | |
82 | -if ( ! function_exists( 'lsx_header_classes' ) ) : |
|
82 | +if ( ! function_exists('lsx_header_classes')) : |
|
83 | 83 | /** |
84 | 84 | * Output the classes for the header. |
85 | 85 | * |
86 | 86 | * @package lsx |
87 | 87 | * @subpackage layout |
88 | 88 | */ |
89 | - function lsx_header_classes( $additional = false ) { |
|
89 | + function lsx_header_classes($additional = false) { |
|
90 | 90 | $classes = 'banner navbar navbar-default'; |
91 | 91 | |
92 | - if ( false !== $additional ) { |
|
92 | + if (false !== $additional) { |
|
93 | 93 | $classes .= ' ' . $additional; |
94 | 94 | } |
95 | 95 | |
96 | - echo esc_attr( $classes ); |
|
96 | + echo esc_attr($classes); |
|
97 | 97 | } |
98 | 98 | endif; |
99 | 99 | |
100 | -if ( ! function_exists( 'lsx_top_menu_classes' ) ) : |
|
100 | +if ( ! function_exists('lsx_top_menu_classes')) : |
|
101 | 101 | /** |
102 | 102 | * Output the classes for the top-menu. |
103 | 103 | * |
104 | 104 | * @package lsx |
105 | 105 | * @subpackage layout |
106 | 106 | */ |
107 | - function lsx_top_menu_classes( $additional = false ) { |
|
107 | + function lsx_top_menu_classes($additional = false) { |
|
108 | 108 | $classes = 'top-menu-default'; |
109 | 109 | |
110 | - if ( false !== $additional ) { |
|
110 | + if (false !== $additional) { |
|
111 | 111 | $classes .= ' ' . $additional; |
112 | 112 | } |
113 | 113 | |
114 | - echo esc_attr( $classes ); |
|
114 | + echo esc_attr($classes); |
|
115 | 115 | } |
116 | 116 | endif; |
117 | 117 | |
118 | -if ( ! function_exists( 'lsx_post_wrapper_class' ) ) : |
|
118 | +if ( ! function_exists('lsx_post_wrapper_class')) : |
|
119 | 119 | /** |
120 | 120 | * Output the classes for the top-menu. |
121 | 121 | * |
@@ -123,13 +123,13 @@ discard block |
||
123 | 123 | * @subpackage layout |
124 | 124 | */ |
125 | 125 | function lsx_post_wrapper_class() { |
126 | - return apply_filters( 'lsx_post_wrapper_class', '' ); |
|
126 | + return apply_filters('lsx_post_wrapper_class', ''); |
|
127 | 127 | } |
128 | 128 | endif; |
129 | 129 | |
130 | 130 | |
131 | 131 | |
132 | -if ( ! function_exists( 'lsx_add_footer_sidebar_area' ) ) : |
|
132 | +if ( ! function_exists('lsx_add_footer_sidebar_area')) : |
|
133 | 133 | /** |
134 | 134 | * Output the Footer CTA and/pr Footer Widgets. |
135 | 135 | * |
@@ -137,33 +137,33 @@ discard block |
||
137 | 137 | * @subpackage layout |
138 | 138 | */ |
139 | 139 | function lsx_add_footer_sidebar_area() { |
140 | - if ( is_active_sidebar( 'sidebar-footer-cta' ) ) : ?> |
|
140 | + if (is_active_sidebar('sidebar-footer-cta')) : ?> |
|
141 | 141 | <div id="footer-cta"> |
142 | 142 | <div class="container"> |
143 | 143 | <div class="lsx-full-width"> |
144 | 144 | <div class="lsx-hero-unit"> |
145 | - <?php dynamic_sidebar( 'sidebar-footer-cta' ); ?> |
|
145 | + <?php dynamic_sidebar('sidebar-footer-cta'); ?> |
|
146 | 146 | </div> |
147 | 147 | </div> |
148 | 148 | </div> |
149 | 149 | </div> |
150 | 150 | <?php endif; ?> |
151 | 151 | |
152 | - <?php if ( is_active_sidebar( 'sidebar-footer' ) ) : ?> |
|
152 | + <?php if (is_active_sidebar('sidebar-footer')) : ?> |
|
153 | 153 | <div id="footer-widgets"> |
154 | 154 | <div class="container"> |
155 | 155 | <div class="row"> |
156 | - <?php dynamic_sidebar( 'sidebar-footer' ); ?> |
|
156 | + <?php dynamic_sidebar('sidebar-footer'); ?> |
|
157 | 157 | </div> |
158 | 158 | </div> |
159 | 159 | </div> |
160 | 160 | <?php |
161 | 161 | endif; |
162 | 162 | } |
163 | - add_action( 'lsx_footer_before', 'lsx_add_footer_sidebar_area' ); |
|
163 | + add_action('lsx_footer_before', 'lsx_add_footer_sidebar_area'); |
|
164 | 164 | endif; |
165 | 165 | |
166 | -if ( ! function_exists( 'lsx_global_header' ) ) : |
|
166 | +if ( ! function_exists('lsx_global_header')) : |
|
167 | 167 | /** |
168 | 168 | * Displays the global header. |
169 | 169 | * |
@@ -171,36 +171,36 @@ discard block |
||
171 | 171 | * @subpackage layout |
172 | 172 | */ |
173 | 173 | function lsx_global_header() { |
174 | - $show_on_front = get_option( 'show_on_front' ); |
|
174 | + $show_on_front = get_option('show_on_front'); |
|
175 | 175 | $queried_object = get_queried_object(); |
176 | 176 | $default_size = 'sm'; |
177 | - $size = apply_filters( 'lsx_bootstrap_column_size', $default_size ); |
|
177 | + $size = apply_filters('lsx_bootstrap_column_size', $default_size); |
|
178 | 178 | |
179 | 179 | // Cart and Checkout won't have banners of any kind. |
180 | - if ( function_exists( 'is_woocommerce' ) && ( is_checkout() || is_cart() ) ) { |
|
180 | + if (function_exists('is_woocommerce') && (is_checkout() || is_cart())) { |
|
181 | 181 | return; |
182 | 182 | } |
183 | 183 | |
184 | 184 | // Product pages have their own banner function 'lsx_page_banner()'. |
185 | - if ( function_exists( 'is_woocommerce' ) && ( is_product() ) ) { |
|
185 | + if (function_exists('is_woocommerce') && (is_product())) { |
|
186 | 186 | return; |
187 | 187 | } |
188 | 188 | |
189 | 189 | // Cart and Checkout won't have banners of any kind. |
190 | - if ( function_exists( 'tribe_is_event' ) && tribe_is_event() ) { |
|
190 | + if (function_exists('tribe_is_event') && tribe_is_event()) { |
|
191 | 191 | return; |
192 | 192 | } |
193 | 193 | |
194 | - if ( function_exists( 'lsx_is_rest_api_request' ) && lsx_is_rest_api_request() ) { |
|
194 | + if (function_exists('lsx_is_rest_api_request') && lsx_is_rest_api_request()) { |
|
195 | 195 | return; |
196 | 196 | } |
197 | 197 | |
198 | - if ( is_page() && ( 'page' !== $show_on_front || ! is_front_page() ) ) : |
|
199 | - if ( class_exists( 'LSX_Banners' ) && empty( apply_filters( 'lsx_banner_plugin_disable', false ) && ( ! has_post_thumbnail() ) ) ) { |
|
198 | + if (is_page() && ('page' !== $show_on_front || ! is_front_page())) : |
|
199 | + if (class_exists('LSX_Banners') && empty(apply_filters('lsx_banner_plugin_disable', false) && ( ! has_post_thumbnail()))) { |
|
200 | 200 | return; |
201 | 201 | } |
202 | 202 | ?> |
203 | - <div class="archive-header-wrapper banner-page col-<?php echo esc_attr( $size ); ?>-12"> |
|
203 | + <div class="archive-header-wrapper banner-page col-<?php echo esc_attr($size); ?>-12"> |
|
204 | 204 | <?php lsx_global_header_inner_bottom(); ?> |
205 | 205 | <header class="archive-header"> |
206 | 206 | <h1 class="archive-title"><?php the_title(); ?></h1> |
@@ -209,26 +209,26 @@ discard block |
||
209 | 209 | </div> |
210 | 210 | <?php |
211 | 211 | |
212 | - elseif ( is_single() && ! is_singular( 'post' ) ) : |
|
212 | + elseif (is_single() && ! is_singular('post')) : |
|
213 | 213 | ?> |
214 | - <div class="archive-header-wrapper banner-single col-<?php echo esc_attr( $size ); ?>-12"> |
|
214 | + <div class="archive-header-wrapper banner-single col-<?php echo esc_attr($size); ?>-12"> |
|
215 | 215 | <?php lsx_global_header_inner_bottom(); ?> |
216 | 216 | <header class="archive-header"> |
217 | - <h1 class="archive-title"><?php echo wp_kses_post( apply_filters( 'lsx_global_header_title', get_the_title() ) ); ?></h1> |
|
217 | + <h1 class="archive-title"><?php echo wp_kses_post(apply_filters('lsx_global_header_title', get_the_title())); ?></h1> |
|
218 | 218 | </header> |
219 | 219 | |
220 | 220 | </div> |
221 | 221 | <?php |
222 | - elseif ( is_search() ) : |
|
222 | + elseif (is_search()) : |
|
223 | 223 | ?> |
224 | - <div class="archive-header-wrapper banner-search col-<?php echo esc_attr( $size ); ?>-12"> |
|
224 | + <div class="archive-header-wrapper banner-search col-<?php echo esc_attr($size); ?>-12"> |
|
225 | 225 | <?php lsx_global_header_inner_bottom(); ?> |
226 | 226 | <header class="archive-header"> |
227 | 227 | <h1 class="archive-title"> |
228 | 228 | <?php |
229 | 229 | printf( |
230 | 230 | /* Translators: %s: search term/query */ |
231 | - esc_html__( 'Search Results for: %s', 'lsx' ), |
|
231 | + esc_html__('Search Results for: %s', 'lsx'), |
|
232 | 232 | '<span>' . get_search_query() . '</span>' |
233 | 233 | ); |
234 | 234 | ?> |
@@ -237,12 +237,12 @@ discard block |
||
237 | 237 | |
238 | 238 | </div> |
239 | 239 | <?php |
240 | - elseif ( is_author() ) : |
|
240 | + elseif (is_author()) : |
|
241 | 241 | $author = get_the_author(); |
242 | - $author_avatar = get_avatar( get_the_author_meta( 'ID' ), 256 ); |
|
242 | + $author_avatar = get_avatar(get_the_author_meta('ID'), 256); |
|
243 | 243 | $author_bio = get_the_archive_description(); |
244 | 244 | ?> |
245 | - <div class="archive-header-wrapper banner-archive-author col-<?php echo esc_attr( $size ); ?>-12"> |
|
245 | + <div class="archive-header-wrapper banner-archive-author col-<?php echo esc_attr($size); ?>-12"> |
|
246 | 246 | <?php lsx_global_header_inner_bottom(); ?> |
247 | 247 | <header class="archive-header"> |
248 | 248 | <h1 class="archive-title"><?php the_archive_title(); ?></h1> |
@@ -250,57 +250,57 @@ discard block |
||
250 | 250 | |
251 | 251 | </div> |
252 | 252 | <?php |
253 | - elseif ( is_archive() ) : |
|
253 | + elseif (is_archive()) : |
|
254 | 254 | ?> |
255 | - <div class="archive-header-wrapper banner-archive col-<?php echo esc_attr( $size ); ?>-12"> |
|
255 | + <div class="archive-header-wrapper banner-archive col-<?php echo esc_attr($size); ?>-12"> |
|
256 | 256 | <?php lsx_global_header_inner_bottom(); ?> |
257 | 257 | <header class="archive-header"> |
258 | 258 | <h1 class="archive-title"> |
259 | - <?php if ( has_post_format() && ! is_category() && ! is_tag() && ! is_date() && ! is_tax( 'post_format' ) ) { ?> |
|
260 | - <?php the_archive_title( esc_html__( 'Type:', 'lsx' ) ); ?> |
|
259 | + <?php if (has_post_format() && ! is_category() && ! is_tag() && ! is_date() && ! is_tax('post_format')) { ?> |
|
260 | + <?php the_archive_title(esc_html__('Type:', 'lsx')); ?> |
|
261 | 261 | <?php } else { ?> |
262 | - <?php echo wp_kses_post( apply_filters( 'lsx_global_header_title', get_the_archive_title() ) ); ?> |
|
262 | + <?php echo wp_kses_post(apply_filters('lsx_global_header_title', get_the_archive_title())); ?> |
|
263 | 263 | <?php } ?> |
264 | 264 | </h1> |
265 | 265 | |
266 | 266 | <?php |
267 | - if ( false === apply_filters( 'lsx_display_global_header_description', false ) ) { |
|
267 | + if (false === apply_filters('lsx_display_global_header_description', false)) { |
|
268 | 268 | the_archive_description(); |
269 | 269 | } |
270 | 270 | ?> |
271 | 271 | </header> |
272 | 272 | </div> |
273 | 273 | <?php |
274 | - elseif ( 'page' === $show_on_front && (int) get_option( 'page_for_posts' ) === $queried_object->ID ) : |
|
274 | + elseif ('page' === $show_on_front && (int) get_option('page_for_posts') === $queried_object->ID) : |
|
275 | 275 | ?> |
276 | - <div class="archive-header-wrapper banner-page col-<?php echo esc_attr( $size ); ?>-12"> |
|
276 | + <div class="archive-header-wrapper banner-page col-<?php echo esc_attr($size); ?>-12"> |
|
277 | 277 | <?php lsx_global_header_inner_bottom(); ?> |
278 | 278 | <header class="archive-header"> |
279 | - <h1 class="archive-title"><?php esc_html_e( 'Blog', 'lsx' ); ?></h1> |
|
279 | + <h1 class="archive-title"><?php esc_html_e('Blog', 'lsx'); ?></h1> |
|
280 | 280 | </header> |
281 | 281 | |
282 | 282 | </div> |
283 | 283 | <?php |
284 | - elseif ( ! is_singular( 'post' ) ) : |
|
284 | + elseif ( ! is_singular('post')) : |
|
285 | 285 | // Display only the breadcrumbs. |
286 | 286 | ?> |
287 | - <div class="archive-header-wrapper banner-singular col-<?php echo esc_attr( $size ); ?>-12"> |
|
287 | + <div class="archive-header-wrapper banner-singular col-<?php echo esc_attr($size); ?>-12"> |
|
288 | 288 | <?php lsx_global_header_inner_bottom(); ?> |
289 | 289 | </div> |
290 | 290 | <?php |
291 | - elseif ( ( true === apply_filters( 'lsx_global_header_disable', false ) ) && ( ! is_search() ) ) : |
|
291 | + elseif ((true === apply_filters('lsx_global_header_disable', false)) && ( ! is_search())) : |
|
292 | 292 | // Display only the breadcrumbs. |
293 | 293 | ?> |
294 | - <div class="archive-header-wrapper banner-global col-<?php echo esc_attr( $size ); ?>-12"> |
|
294 | + <div class="archive-header-wrapper banner-global col-<?php echo esc_attr($size); ?>-12"> |
|
295 | 295 | <?php lsx_global_header_inner_bottom(); ?> |
296 | 296 | </div> |
297 | 297 | <?php |
298 | 298 | endif; |
299 | 299 | } |
300 | - add_action( 'lsx_content_wrap_before', 'lsx_global_header' ); |
|
300 | + add_action('lsx_content_wrap_before', 'lsx_global_header'); |
|
301 | 301 | endif; |
302 | 302 | |
303 | -if ( ! function_exists( 'lsx_author_extra_info' ) ) : |
|
303 | +if ( ! function_exists('lsx_author_extra_info')) : |
|
304 | 304 | /** |
305 | 305 | * Displays the author extra info. |
306 | 306 | * |
@@ -309,83 +309,83 @@ discard block |
||
309 | 309 | */ |
310 | 310 | function lsx_author_extra_info() { |
311 | 311 | $default_size = 'sm'; |
312 | - $size = apply_filters( 'lsx_bootstrap_column_size', $default_size ); |
|
312 | + $size = apply_filters('lsx_bootstrap_column_size', $default_size); |
|
313 | 313 | |
314 | - if ( is_author() ) : |
|
315 | - $author_id = get_the_author_meta( 'ID' ); |
|
314 | + if (is_author()) : |
|
315 | + $author_id = get_the_author_meta('ID'); |
|
316 | 316 | $author = get_the_author(); |
317 | - $author_avatar = get_avatar( $author_id, 400 ); |
|
317 | + $author_avatar = get_avatar($author_id, 400); |
|
318 | 318 | $author_bio = get_the_archive_description(); |
319 | - $author_url = get_the_author_meta( 'url', $author_id ); |
|
320 | - $author_email = get_the_author_meta( 'email', $author_id ); |
|
321 | - $author_facebook = get_the_author_meta( 'facebook', $author_id ); |
|
322 | - $author_linkedin = get_the_author_meta( 'linkedin', $author_id ); |
|
323 | - $author_twitter = get_the_author_meta( 'twitter', $author_id ); |
|
324 | - $author_googleplus = get_the_author_meta( 'googleplus', $author_id ); |
|
319 | + $author_url = get_the_author_meta('url', $author_id); |
|
320 | + $author_email = get_the_author_meta('email', $author_id); |
|
321 | + $author_facebook = get_the_author_meta('facebook', $author_id); |
|
322 | + $author_linkedin = get_the_author_meta('linkedin', $author_id); |
|
323 | + $author_twitter = get_the_author_meta('twitter', $author_id); |
|
324 | + $author_googleplus = get_the_author_meta('googleplus', $author_id); |
|
325 | 325 | ?> |
326 | - <div class="col-<?php echo esc_attr( $size ); ?>-12"> |
|
326 | + <div class="col-<?php echo esc_attr($size); ?>-12"> |
|
327 | 327 | <div class="archive-author-data"> |
328 | 328 | <div class="row"> |
329 | - <?php if ( ! empty( $author_avatar ) ) : ?> |
|
329 | + <?php if ( ! empty($author_avatar)) : ?> |
|
330 | 330 | <div class="col-xs-12 col-sm-4 col-md-3"> |
331 | - <figure class="archive-author-avatar"><?php echo wp_kses_post( $author_avatar ); ?></figure> |
|
331 | + <figure class="archive-author-avatar"><?php echo wp_kses_post($author_avatar); ?></figure> |
|
332 | 332 | </div> |
333 | 333 | <?php endif; ?> |
334 | 334 | <div class="col-xs-12 col-sm-8 col-md-9"> |
335 | - <a class="back-to-blog" href="<?php echo ( esc_url( get_post_type_archive_link( 'post' ) ) ); ?>"><?php echo esc_html__( 'Back To Blog', 'lsx' ); ?></a> |
|
335 | + <a class="back-to-blog" href="<?php echo (esc_url(get_post_type_archive_link('post'))); ?>"><?php echo esc_html__('Back To Blog', 'lsx'); ?></a> |
|
336 | 336 | <!-- Name --> |
337 | 337 | <h2 class="archive-author-title"> |
338 | 338 | <?php |
339 | - if ( '' !== $author ) { |
|
340 | - echo esc_html( $author ); |
|
339 | + if ('' !== $author) { |
|
340 | + echo esc_html($author); |
|
341 | 341 | } |
342 | 342 | ?> |
343 | 343 | </h2> |
344 | 344 | <!-- Social --> |
345 | - <?php if ( ! empty( $author_url ) || ! empty( $author_email ) || ! empty( $author_facebook ) || ! empty( $author_twitter ) || ! empty( $author_googleplus ) ) : ?> |
|
345 | + <?php if ( ! empty($author_url) || ! empty($author_email) || ! empty($author_facebook) || ! empty($author_twitter) || ! empty($author_googleplus)) : ?> |
|
346 | 346 | <div class="archive-author-social-links"> |
347 | - <?php if ( ! empty( $author_url ) ) : ?> |
|
348 | - <a href="<?php echo esc_url( $author_url ); ?>" target="_blank" rel="nofollow noreferrer noopener" class="archive-author-social-link archive-author-social-link-url"><i class="fa fa-link" aria-hidden="true"></i></a> |
|
347 | + <?php if ( ! empty($author_url)) : ?> |
|
348 | + <a href="<?php echo esc_url($author_url); ?>" target="_blank" rel="nofollow noreferrer noopener" class="archive-author-social-link archive-author-social-link-url"><i class="fa fa-link" aria-hidden="true"></i></a> |
|
349 | 349 | <?php endif; ?> |
350 | 350 | |
351 | - <?php if ( ! empty( $author_email ) ) : ?> |
|
352 | - <a href="mailto:<?php echo esc_attr( $author_email ); ?>" class="archive-author-social-link archive-author-social-link-email"><i class="fa fa-envelope" aria-hidden="true"></i></a> |
|
351 | + <?php if ( ! empty($author_email)) : ?> |
|
352 | + <a href="mailto:<?php echo esc_attr($author_email); ?>" class="archive-author-social-link archive-author-social-link-email"><i class="fa fa-envelope" aria-hidden="true"></i></a> |
|
353 | 353 | <?php endif; ?> |
354 | 354 | |
355 | - <?php if ( ! empty( $author_facebook ) ) : ?> |
|
356 | - <a href="<?php echo esc_url( $author_facebook ); ?>" target="_blank" rel="nofollow noreferrer noopener" class="archive-author-social-link archive-author-social-link-facebook"><i class="fa fa-facebook" aria-hidden="true"></i></a> |
|
355 | + <?php if ( ! empty($author_facebook)) : ?> |
|
356 | + <a href="<?php echo esc_url($author_facebook); ?>" target="_blank" rel="nofollow noreferrer noopener" class="archive-author-social-link archive-author-social-link-facebook"><i class="fa fa-facebook" aria-hidden="true"></i></a> |
|
357 | 357 | <?php endif; ?> |
358 | 358 | |
359 | - <?php if ( ! empty( $author_twitter ) ) : ?> |
|
360 | - <a href="https://twitter.com/<?php echo esc_attr( $author_twitter ); ?>" target="_blank" rel="nofollow noreferrer noopener" class="archive-author-social-link archive-author-social-link-twitter"><i class="fa fa-twitter" aria-hidden="true"></i></a> |
|
359 | + <?php if ( ! empty($author_twitter)) : ?> |
|
360 | + <a href="https://twitter.com/<?php echo esc_attr($author_twitter); ?>" target="_blank" rel="nofollow noreferrer noopener" class="archive-author-social-link archive-author-social-link-twitter"><i class="fa fa-twitter" aria-hidden="true"></i></a> |
|
361 | 361 | <?php endif; ?> |
362 | 362 | |
363 | - <?php if ( ! empty( $author_linkedin ) ) : ?> |
|
364 | - <a href="<?php echo esc_url( $author_linkedin ); ?>" target="_blank" rel="nofollow noreferrer noopener" class="archive-author-social-link archive-author-social-link-linkedin"><i class="fa fa-linkedin" aria-hidden="true"></i></a> |
|
363 | + <?php if ( ! empty($author_linkedin)) : ?> |
|
364 | + <a href="<?php echo esc_url($author_linkedin); ?>" target="_blank" rel="nofollow noreferrer noopener" class="archive-author-social-link archive-author-social-link-linkedin"><i class="fa fa-linkedin" aria-hidden="true"></i></a> |
|
365 | 365 | <?php endif; ?> |
366 | 366 | |
367 | - <?php if ( ! empty( $author_googleplus ) ) : ?> |
|
368 | - <a href="<?php echo esc_url( $author_googleplus ); ?>" target="_blank" rel="nofollow noreferrer noopener" class="archive-author-social-link archive-author-social-link-googleplus"><i class="fa fa-google-plus" aria-hidden="true"></i></a> |
|
367 | + <?php if ( ! empty($author_googleplus)) : ?> |
|
368 | + <a href="<?php echo esc_url($author_googleplus); ?>" target="_blank" rel="nofollow noreferrer noopener" class="archive-author-social-link archive-author-social-link-googleplus"><i class="fa fa-google-plus" aria-hidden="true"></i></a> |
|
369 | 369 | <?php endif; ?> |
370 | 370 | </div> |
371 | 371 | <?php endif; ?> |
372 | 372 | |
373 | 373 | <!-- Bio --> |
374 | - <?php if ( ! empty( $author_bio ) ) : ?> |
|
375 | - <p class="archive-author-bio"><?php echo wp_kses_post( $author_bio ); ?></p> |
|
374 | + <?php if ( ! empty($author_bio)) : ?> |
|
375 | + <p class="archive-author-bio"><?php echo wp_kses_post($author_bio); ?></p> |
|
376 | 376 | <?php endif; ?> |
377 | 377 | </div> |
378 | 378 | </div> |
379 | 379 | </div> |
380 | - <h2><?php echo esc_html__( 'Posts', 'lsx' ); ?></h2> |
|
380 | + <h2><?php echo esc_html__('Posts', 'lsx'); ?></h2> |
|
381 | 381 | </div> |
382 | 382 | <?php |
383 | 383 | endif; |
384 | 384 | } |
385 | - add_action( 'lsx_content_wrap_before', 'lsx_author_extra_info', 11 ); |
|
385 | + add_action('lsx_content_wrap_before', 'lsx_author_extra_info', 11); |
|
386 | 386 | endif; |
387 | 387 | |
388 | -if ( ! function_exists( 'lsx_post_header' ) ) : |
|
388 | +if ( ! function_exists('lsx_post_header')) : |
|
389 | 389 | /** |
390 | 390 | * Displays the post header. |
391 | 391 | * |
@@ -394,26 +394,26 @@ discard block |
||
394 | 394 | */ |
395 | 395 | function lsx_post_header() { |
396 | 396 | $default_size = 'sm'; |
397 | - $size = apply_filters( 'lsx_bootstrap_column_size', $default_size ); |
|
397 | + $size = apply_filters('lsx_bootstrap_column_size', $default_size); |
|
398 | 398 | |
399 | - $disable_title = get_post_meta( get_the_ID(), 'lsx_disable_title', true ); |
|
400 | - if ( 'yes' === $disable_title && is_singular( 'post' ) ) { |
|
399 | + $disable_title = get_post_meta(get_the_ID(), 'lsx_disable_title', true); |
|
400 | + if ('yes' === $disable_title && is_singular('post')) { |
|
401 | 401 | return; |
402 | 402 | } |
403 | 403 | |
404 | - if ( is_singular( 'post' ) ) : |
|
404 | + if (is_singular('post')) : |
|
405 | 405 | $format = get_post_format(); |
406 | 406 | |
407 | - if ( false === $format ) { |
|
407 | + if (false === $format) { |
|
408 | 408 | $format = 'standard'; |
409 | 409 | } |
410 | 410 | |
411 | - $format = lsx_translate_format_to_fontawesome( $format ); |
|
411 | + $format = lsx_translate_format_to_fontawesome($format); |
|
412 | 412 | ?> |
413 | - <div class="archive-header-wrapper banner-post-header col-<?php echo esc_attr( $size ); ?>-12"> |
|
413 | + <div class="archive-header-wrapper banner-post-header col-<?php echo esc_attr($size); ?>-12"> |
|
414 | 414 | <header class="archive-header"> |
415 | 415 | <h1 class="archive-title"> |
416 | - <i class="format-link fa fa-<?php echo esc_attr( $format ); ?>"></i> |
|
416 | + <i class="format-link fa fa-<?php echo esc_attr($format); ?>"></i> |
|
417 | 417 | <span><?php the_title(); ?></span> |
418 | 418 | </h1> |
419 | 419 | </header> |
@@ -421,10 +421,10 @@ discard block |
||
421 | 421 | <?php |
422 | 422 | endif; |
423 | 423 | } |
424 | - add_action( 'lsx_entry_top', 'lsx_post_header' ); |
|
424 | + add_action('lsx_entry_top', 'lsx_post_header'); |
|
425 | 425 | endif; |
426 | 426 | |
427 | -if ( ! function_exists( 'lsx_add_viewport_meta_tag' ) ) : |
|
427 | +if ( ! function_exists('lsx_add_viewport_meta_tag')) : |
|
428 | 428 | /** |
429 | 429 | * Add Viewport Meta Tag to head. |
430 | 430 | * |
@@ -436,10 +436,10 @@ discard block |
||
436 | 436 | <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"> |
437 | 437 | <?php |
438 | 438 | } |
439 | - add_action( 'wp_head', 'lsx_add_viewport_meta_tag' ); |
|
439 | + add_action('wp_head', 'lsx_add_viewport_meta_tag'); |
|
440 | 440 | endif; |
441 | 441 | |
442 | -if ( ! function_exists( 'lsx_header_search_form' ) ) : |
|
442 | +if ( ! function_exists('lsx_header_search_form')) : |
|
443 | 443 | /** |
444 | 444 | * Add a search form to just above the nav menu. |
445 | 445 | * |
@@ -447,24 +447,24 @@ discard block |
||
447 | 447 | * @subpackage layout |
448 | 448 | */ |
449 | 449 | function lsx_header_search_form() { |
450 | - $search_form = get_theme_mod( 'lsx_header_search', false ); |
|
450 | + $search_form = get_theme_mod('lsx_header_search', false); |
|
451 | 451 | |
452 | - if ( false !== $search_form || is_customize_preview() ) { |
|
453 | - get_search_form( true ); |
|
452 | + if (false !== $search_form || is_customize_preview()) { |
|
453 | + get_search_form(true); |
|
454 | 454 | } |
455 | 455 | } |
456 | - $mobile_header_layout = get_theme_mod( 'lsx_header_mobile_layout', 'navigation-bar' ); |
|
457 | - add_action( 'lsx_nav_before', 'lsx_header_search_form', 0 ); |
|
456 | + $mobile_header_layout = get_theme_mod('lsx_header_mobile_layout', 'navigation-bar'); |
|
457 | + add_action('lsx_nav_before', 'lsx_header_search_form', 0); |
|
458 | 458 | endif; |
459 | 459 | |
460 | 460 | // Add entry meta to single post if active. |
461 | -if ( ! function_exists( 'lsx_add_entry_meta' ) ) : |
|
461 | +if ( ! function_exists('lsx_add_entry_meta')) : |
|
462 | 462 | function lsx_add_entry_meta() { |
463 | - $disable_title = get_post_meta( get_the_ID(), 'lsx_disable_title', true ); |
|
464 | - if ( 'yes' === $disable_title && is_singular( 'post' ) ) { |
|
463 | + $disable_title = get_post_meta(get_the_ID(), 'lsx_disable_title', true); |
|
464 | + if ('yes' === $disable_title && is_singular('post')) { |
|
465 | 465 | return; |
466 | 466 | } |
467 | - if ( is_single() && is_singular( 'post' ) ) { |
|
467 | + if (is_single() && is_singular('post')) { |
|
468 | 468 | ?> |
469 | 469 | <div class="entry-meta"> |
470 | 470 | <?php lsx_post_meta_single_top(); ?> |
@@ -472,5 +472,5 @@ discard block |
||
472 | 472 | <?php |
473 | 473 | } |
474 | 474 | } |
475 | - add_action( 'lsx_entry_top', 'lsx_add_entry_meta', 999 ); |
|
475 | + add_action('lsx_entry_top', 'lsx_add_entry_meta', 999); |
|
476 | 476 | endif; |
@@ -7,137 +7,137 @@ discard block |
||
7 | 7 | */ |
8 | 8 | |
9 | 9 | if ( ! defined( 'ABSPATH' ) ) { |
10 | - exit; |
|
10 | + exit; |
|
11 | 11 | } |
12 | 12 | |
13 | 13 | if ( ! function_exists( 'lsx_layout_selector' ) ) : |
14 | - /** |
|
15 | - * Layout selector. |
|
16 | - * |
|
17 | - * @package lsx |
|
18 | - * @subpackage layout |
|
19 | - */ |
|
20 | - function lsx_layout_selector( $class, $area = 'site' ) { |
|
21 | - $return_class = ''; |
|
22 | - $layout = get_theme_mod( 'lsx_layout', '1c' ); |
|
23 | - $layout = apply_filters( 'lsx_layout', $layout ); |
|
24 | - $default_size = 'sm'; |
|
25 | - $size = apply_filters( 'lsx_bootstrap_column_size', $default_size ); |
|
26 | - |
|
27 | - switch ( $layout ) { |
|
28 | - case '1c': |
|
29 | - $main_class = 'col-' . $size . '-12'; |
|
30 | - $sidebar_class = 'col-' . $size . '-12'; |
|
31 | - break; |
|
32 | - case '2cr': |
|
33 | - $main_class = 'col-' . $size . '-8'; |
|
34 | - $sidebar_class = 'col-' . $size . '-4'; |
|
35 | - break; |
|
36 | - case '2cl': |
|
37 | - $main_class = 'col-' . $size . '-8 col-' . $size . '-push-4'; |
|
38 | - $sidebar_class = 'col-' . $size . '-4 col-' . $size . '-pull-8'; |
|
39 | - break; |
|
40 | - default: |
|
41 | - $main_class = 'col-' . $size . '-8'; |
|
42 | - $sidebar_class = 'col-' . $size . '-4'; |
|
43 | - break; |
|
44 | - } |
|
45 | - |
|
46 | - if ( 'main' === $class ) { |
|
47 | - $return_class = apply_filters( 'lsx_layout_selector', $main_class, $class, $layout, $size ); |
|
48 | - } |
|
49 | - |
|
50 | - if ( 'sidebar' === $class ) { |
|
51 | - $return_class = apply_filters( 'lsx_layout_selector', $sidebar_class, $class, $layout, $size ); |
|
52 | - } |
|
53 | - |
|
54 | - return $return_class; |
|
55 | - } |
|
14 | + /** |
|
15 | + * Layout selector. |
|
16 | + * |
|
17 | + * @package lsx |
|
18 | + * @subpackage layout |
|
19 | + */ |
|
20 | + function lsx_layout_selector( $class, $area = 'site' ) { |
|
21 | + $return_class = ''; |
|
22 | + $layout = get_theme_mod( 'lsx_layout', '1c' ); |
|
23 | + $layout = apply_filters( 'lsx_layout', $layout ); |
|
24 | + $default_size = 'sm'; |
|
25 | + $size = apply_filters( 'lsx_bootstrap_column_size', $default_size ); |
|
26 | + |
|
27 | + switch ( $layout ) { |
|
28 | + case '1c': |
|
29 | + $main_class = 'col-' . $size . '-12'; |
|
30 | + $sidebar_class = 'col-' . $size . '-12'; |
|
31 | + break; |
|
32 | + case '2cr': |
|
33 | + $main_class = 'col-' . $size . '-8'; |
|
34 | + $sidebar_class = 'col-' . $size . '-4'; |
|
35 | + break; |
|
36 | + case '2cl': |
|
37 | + $main_class = 'col-' . $size . '-8 col-' . $size . '-push-4'; |
|
38 | + $sidebar_class = 'col-' . $size . '-4 col-' . $size . '-pull-8'; |
|
39 | + break; |
|
40 | + default: |
|
41 | + $main_class = 'col-' . $size . '-8'; |
|
42 | + $sidebar_class = 'col-' . $size . '-4'; |
|
43 | + break; |
|
44 | + } |
|
45 | + |
|
46 | + if ( 'main' === $class ) { |
|
47 | + $return_class = apply_filters( 'lsx_layout_selector', $main_class, $class, $layout, $size ); |
|
48 | + } |
|
49 | + |
|
50 | + if ( 'sidebar' === $class ) { |
|
51 | + $return_class = apply_filters( 'lsx_layout_selector', $sidebar_class, $class, $layout, $size ); |
|
52 | + } |
|
53 | + |
|
54 | + return $return_class; |
|
55 | + } |
|
56 | 56 | endif; |
57 | 57 | |
58 | 58 | if ( ! function_exists( 'lsx_main_class' ) ) : |
59 | - /** |
|
60 | - * .main classes. |
|
61 | - * |
|
62 | - * @package lsx |
|
63 | - * @subpackage layout |
|
64 | - */ |
|
65 | - function lsx_main_class() { |
|
66 | - return lsx_layout_selector( 'main' ); |
|
67 | - } |
|
59 | + /** |
|
60 | + * .main classes. |
|
61 | + * |
|
62 | + * @package lsx |
|
63 | + * @subpackage layout |
|
64 | + */ |
|
65 | + function lsx_main_class() { |
|
66 | + return lsx_layout_selector( 'main' ); |
|
67 | + } |
|
68 | 68 | endif; |
69 | 69 | |
70 | 70 | if ( ! function_exists( 'lsx_sidebar_class' ) ) : |
71 | - /** |
|
72 | - * .sidebar classes. |
|
73 | - * |
|
74 | - * @package lsx |
|
75 | - * @subpackage layout |
|
76 | - */ |
|
77 | - function lsx_sidebar_class() { |
|
78 | - return lsx_layout_selector( 'sidebar' ); |
|
79 | - } |
|
71 | + /** |
|
72 | + * .sidebar classes. |
|
73 | + * |
|
74 | + * @package lsx |
|
75 | + * @subpackage layout |
|
76 | + */ |
|
77 | + function lsx_sidebar_class() { |
|
78 | + return lsx_layout_selector( 'sidebar' ); |
|
79 | + } |
|
80 | 80 | endif; |
81 | 81 | |
82 | 82 | if ( ! function_exists( 'lsx_header_classes' ) ) : |
83 | - /** |
|
84 | - * Output the classes for the header. |
|
85 | - * |
|
86 | - * @package lsx |
|
87 | - * @subpackage layout |
|
88 | - */ |
|
89 | - function lsx_header_classes( $additional = false ) { |
|
90 | - $classes = 'banner navbar navbar-default'; |
|
91 | - |
|
92 | - if ( false !== $additional ) { |
|
93 | - $classes .= ' ' . $additional; |
|
94 | - } |
|
95 | - |
|
96 | - echo esc_attr( $classes ); |
|
97 | - } |
|
83 | + /** |
|
84 | + * Output the classes for the header. |
|
85 | + * |
|
86 | + * @package lsx |
|
87 | + * @subpackage layout |
|
88 | + */ |
|
89 | + function lsx_header_classes( $additional = false ) { |
|
90 | + $classes = 'banner navbar navbar-default'; |
|
91 | + |
|
92 | + if ( false !== $additional ) { |
|
93 | + $classes .= ' ' . $additional; |
|
94 | + } |
|
95 | + |
|
96 | + echo esc_attr( $classes ); |
|
97 | + } |
|
98 | 98 | endif; |
99 | 99 | |
100 | 100 | if ( ! function_exists( 'lsx_top_menu_classes' ) ) : |
101 | - /** |
|
102 | - * Output the classes for the top-menu. |
|
103 | - * |
|
104 | - * @package lsx |
|
105 | - * @subpackage layout |
|
106 | - */ |
|
107 | - function lsx_top_menu_classes( $additional = false ) { |
|
108 | - $classes = 'top-menu-default'; |
|
109 | - |
|
110 | - if ( false !== $additional ) { |
|
111 | - $classes .= ' ' . $additional; |
|
112 | - } |
|
113 | - |
|
114 | - echo esc_attr( $classes ); |
|
115 | - } |
|
101 | + /** |
|
102 | + * Output the classes for the top-menu. |
|
103 | + * |
|
104 | + * @package lsx |
|
105 | + * @subpackage layout |
|
106 | + */ |
|
107 | + function lsx_top_menu_classes( $additional = false ) { |
|
108 | + $classes = 'top-menu-default'; |
|
109 | + |
|
110 | + if ( false !== $additional ) { |
|
111 | + $classes .= ' ' . $additional; |
|
112 | + } |
|
113 | + |
|
114 | + echo esc_attr( $classes ); |
|
115 | + } |
|
116 | 116 | endif; |
117 | 117 | |
118 | 118 | if ( ! function_exists( 'lsx_post_wrapper_class' ) ) : |
119 | - /** |
|
120 | - * Output the classes for the top-menu. |
|
121 | - * |
|
122 | - * @package lsx |
|
123 | - * @subpackage layout |
|
124 | - */ |
|
125 | - function lsx_post_wrapper_class() { |
|
126 | - return apply_filters( 'lsx_post_wrapper_class', '' ); |
|
127 | - } |
|
119 | + /** |
|
120 | + * Output the classes for the top-menu. |
|
121 | + * |
|
122 | + * @package lsx |
|
123 | + * @subpackage layout |
|
124 | + */ |
|
125 | + function lsx_post_wrapper_class() { |
|
126 | + return apply_filters( 'lsx_post_wrapper_class', '' ); |
|
127 | + } |
|
128 | 128 | endif; |
129 | 129 | |
130 | 130 | |
131 | 131 | |
132 | 132 | if ( ! function_exists( 'lsx_add_footer_sidebar_area' ) ) : |
133 | - /** |
|
134 | - * Output the Footer CTA and/pr Footer Widgets. |
|
135 | - * |
|
136 | - * @package lsx |
|
137 | - * @subpackage layout |
|
138 | - */ |
|
139 | - function lsx_add_footer_sidebar_area() { |
|
140 | - if ( is_active_sidebar( 'sidebar-footer-cta' ) ) : ?> |
|
133 | + /** |
|
134 | + * Output the Footer CTA and/pr Footer Widgets. |
|
135 | + * |
|
136 | + * @package lsx |
|
137 | + * @subpackage layout |
|
138 | + */ |
|
139 | + function lsx_add_footer_sidebar_area() { |
|
140 | + if ( is_active_sidebar( 'sidebar-footer-cta' ) ) : ?> |
|
141 | 141 | <div id="footer-cta"> |
142 | 142 | <div class="container"> |
143 | 143 | <div class="lsx-full-width"> |
@@ -158,48 +158,48 @@ discard block |
||
158 | 158 | </div> |
159 | 159 | </div> |
160 | 160 | <?php |
161 | - endif; |
|
162 | - } |
|
163 | - add_action( 'lsx_footer_before', 'lsx_add_footer_sidebar_area' ); |
|
161 | + endif; |
|
162 | + } |
|
163 | + add_action( 'lsx_footer_before', 'lsx_add_footer_sidebar_area' ); |
|
164 | 164 | endif; |
165 | 165 | |
166 | 166 | if ( ! function_exists( 'lsx_global_header' ) ) : |
167 | - /** |
|
168 | - * Displays the global header. |
|
169 | - * |
|
170 | - * @package lsx |
|
171 | - * @subpackage layout |
|
172 | - */ |
|
173 | - function lsx_global_header() { |
|
174 | - $show_on_front = get_option( 'show_on_front' ); |
|
175 | - $queried_object = get_queried_object(); |
|
176 | - $default_size = 'sm'; |
|
177 | - $size = apply_filters( 'lsx_bootstrap_column_size', $default_size ); |
|
178 | - |
|
179 | - // Cart and Checkout won't have banners of any kind. |
|
180 | - if ( function_exists( 'is_woocommerce' ) && ( is_checkout() || is_cart() ) ) { |
|
181 | - return; |
|
182 | - } |
|
183 | - |
|
184 | - // Product pages have their own banner function 'lsx_page_banner()'. |
|
185 | - if ( function_exists( 'is_woocommerce' ) && ( is_product() ) ) { |
|
186 | - return; |
|
187 | - } |
|
188 | - |
|
189 | - // Cart and Checkout won't have banners of any kind. |
|
190 | - if ( function_exists( 'tribe_is_event' ) && tribe_is_event() ) { |
|
191 | - return; |
|
192 | - } |
|
193 | - |
|
194 | - if ( function_exists( 'lsx_is_rest_api_request' ) && lsx_is_rest_api_request() ) { |
|
195 | - return; |
|
196 | - } |
|
197 | - |
|
198 | - if ( is_page() && ( 'page' !== $show_on_front || ! is_front_page() ) ) : |
|
199 | - if ( class_exists( 'LSX_Banners' ) && empty( apply_filters( 'lsx_banner_plugin_disable', false ) && ( ! has_post_thumbnail() ) ) ) { |
|
200 | - return; |
|
201 | - } |
|
202 | - ?> |
|
167 | + /** |
|
168 | + * Displays the global header. |
|
169 | + * |
|
170 | + * @package lsx |
|
171 | + * @subpackage layout |
|
172 | + */ |
|
173 | + function lsx_global_header() { |
|
174 | + $show_on_front = get_option( 'show_on_front' ); |
|
175 | + $queried_object = get_queried_object(); |
|
176 | + $default_size = 'sm'; |
|
177 | + $size = apply_filters( 'lsx_bootstrap_column_size', $default_size ); |
|
178 | + |
|
179 | + // Cart and Checkout won't have banners of any kind. |
|
180 | + if ( function_exists( 'is_woocommerce' ) && ( is_checkout() || is_cart() ) ) { |
|
181 | + return; |
|
182 | + } |
|
183 | + |
|
184 | + // Product pages have their own banner function 'lsx_page_banner()'. |
|
185 | + if ( function_exists( 'is_woocommerce' ) && ( is_product() ) ) { |
|
186 | + return; |
|
187 | + } |
|
188 | + |
|
189 | + // Cart and Checkout won't have banners of any kind. |
|
190 | + if ( function_exists( 'tribe_is_event' ) && tribe_is_event() ) { |
|
191 | + return; |
|
192 | + } |
|
193 | + |
|
194 | + if ( function_exists( 'lsx_is_rest_api_request' ) && lsx_is_rest_api_request() ) { |
|
195 | + return; |
|
196 | + } |
|
197 | + |
|
198 | + if ( is_page() && ( 'page' !== $show_on_front || ! is_front_page() ) ) : |
|
199 | + if ( class_exists( 'LSX_Banners' ) && empty( apply_filters( 'lsx_banner_plugin_disable', false ) && ( ! has_post_thumbnail() ) ) ) { |
|
200 | + return; |
|
201 | + } |
|
202 | + ?> |
|
203 | 203 | <div class="archive-header-wrapper banner-page col-<?php echo esc_attr( $size ); ?>-12"> |
204 | 204 | <?php lsx_global_header_inner_bottom(); ?> |
205 | 205 | <header class="archive-header"> |
@@ -209,8 +209,8 @@ discard block |
||
209 | 209 | </div> |
210 | 210 | <?php |
211 | 211 | |
212 | - elseif ( is_single() && ! is_singular( 'post' ) ) : |
|
213 | - ?> |
|
212 | + elseif ( is_single() && ! is_singular( 'post' ) ) : |
|
213 | + ?> |
|
214 | 214 | <div class="archive-header-wrapper banner-single col-<?php echo esc_attr( $size ); ?>-12"> |
215 | 215 | <?php lsx_global_header_inner_bottom(); ?> |
216 | 216 | <header class="archive-header"> |
@@ -219,29 +219,29 @@ discard block |
||
219 | 219 | |
220 | 220 | </div> |
221 | 221 | <?php |
222 | - elseif ( is_search() ) : |
|
223 | - ?> |
|
222 | + elseif ( is_search() ) : |
|
223 | + ?> |
|
224 | 224 | <div class="archive-header-wrapper banner-search col-<?php echo esc_attr( $size ); ?>-12"> |
225 | 225 | <?php lsx_global_header_inner_bottom(); ?> |
226 | 226 | <header class="archive-header"> |
227 | 227 | <h1 class="archive-title"> |
228 | 228 | <?php |
229 | - printf( |
|
230 | - /* Translators: %s: search term/query */ |
|
231 | - esc_html__( 'Search Results for: %s', 'lsx' ), |
|
232 | - '<span>' . get_search_query() . '</span>' |
|
233 | - ); |
|
234 | - ?> |
|
229 | + printf( |
|
230 | + /* Translators: %s: search term/query */ |
|
231 | + esc_html__( 'Search Results for: %s', 'lsx' ), |
|
232 | + '<span>' . get_search_query() . '</span>' |
|
233 | + ); |
|
234 | + ?> |
|
235 | 235 | </h1> |
236 | 236 | </header> |
237 | 237 | |
238 | 238 | </div> |
239 | 239 | <?php |
240 | - elseif ( is_author() ) : |
|
241 | - $author = get_the_author(); |
|
242 | - $author_avatar = get_avatar( get_the_author_meta( 'ID' ), 256 ); |
|
243 | - $author_bio = get_the_archive_description(); |
|
244 | - ?> |
|
240 | + elseif ( is_author() ) : |
|
241 | + $author = get_the_author(); |
|
242 | + $author_avatar = get_avatar( get_the_author_meta( 'ID' ), 256 ); |
|
243 | + $author_bio = get_the_archive_description(); |
|
244 | + ?> |
|
245 | 245 | <div class="archive-header-wrapper banner-archive-author col-<?php echo esc_attr( $size ); ?>-12"> |
246 | 246 | <?php lsx_global_header_inner_bottom(); ?> |
247 | 247 | <header class="archive-header"> |
@@ -250,8 +250,8 @@ discard block |
||
250 | 250 | |
251 | 251 | </div> |
252 | 252 | <?php |
253 | - elseif ( is_archive() ) : |
|
254 | - ?> |
|
253 | + elseif ( is_archive() ) : |
|
254 | + ?> |
|
255 | 255 | <div class="archive-header-wrapper banner-archive col-<?php echo esc_attr( $size ); ?>-12"> |
256 | 256 | <?php lsx_global_header_inner_bottom(); ?> |
257 | 257 | <header class="archive-header"> |
@@ -264,15 +264,15 @@ discard block |
||
264 | 264 | </h1> |
265 | 265 | |
266 | 266 | <?php |
267 | - if ( false === apply_filters( 'lsx_display_global_header_description', false ) ) { |
|
268 | - the_archive_description(); |
|
269 | - } |
|
270 | - ?> |
|
267 | + if ( false === apply_filters( 'lsx_display_global_header_description', false ) ) { |
|
268 | + the_archive_description(); |
|
269 | + } |
|
270 | + ?> |
|
271 | 271 | </header> |
272 | 272 | </div> |
273 | 273 | <?php |
274 | - elseif ( 'page' === $show_on_front && (int) get_option( 'page_for_posts' ) === $queried_object->ID ) : |
|
275 | - ?> |
|
274 | + elseif ( 'page' === $show_on_front && (int) get_option( 'page_for_posts' ) === $queried_object->ID ) : |
|
275 | + ?> |
|
276 | 276 | <div class="archive-header-wrapper banner-page col-<?php echo esc_attr( $size ); ?>-12"> |
277 | 277 | <?php lsx_global_header_inner_bottom(); ?> |
278 | 278 | <header class="archive-header"> |
@@ -281,48 +281,48 @@ discard block |
||
281 | 281 | |
282 | 282 | </div> |
283 | 283 | <?php |
284 | - elseif ( ! is_singular( 'post' ) ) : |
|
285 | - // Display only the breadcrumbs. |
|
286 | - ?> |
|
284 | + elseif ( ! is_singular( 'post' ) ) : |
|
285 | + // Display only the breadcrumbs. |
|
286 | + ?> |
|
287 | 287 | <div class="archive-header-wrapper banner-singular col-<?php echo esc_attr( $size ); ?>-12"> |
288 | 288 | <?php lsx_global_header_inner_bottom(); ?> |
289 | 289 | </div> |
290 | 290 | <?php |
291 | - elseif ( ( true === apply_filters( 'lsx_global_header_disable', false ) ) && ( ! is_search() ) ) : |
|
292 | - // Display only the breadcrumbs. |
|
293 | - ?> |
|
291 | + elseif ( ( true === apply_filters( 'lsx_global_header_disable', false ) ) && ( ! is_search() ) ) : |
|
292 | + // Display only the breadcrumbs. |
|
293 | + ?> |
|
294 | 294 | <div class="archive-header-wrapper banner-global col-<?php echo esc_attr( $size ); ?>-12"> |
295 | 295 | <?php lsx_global_header_inner_bottom(); ?> |
296 | 296 | </div> |
297 | 297 | <?php |
298 | - endif; |
|
299 | - } |
|
300 | - add_action( 'lsx_content_wrap_before', 'lsx_global_header' ); |
|
298 | + endif; |
|
299 | + } |
|
300 | + add_action( 'lsx_content_wrap_before', 'lsx_global_header' ); |
|
301 | 301 | endif; |
302 | 302 | |
303 | 303 | if ( ! function_exists( 'lsx_author_extra_info' ) ) : |
304 | - /** |
|
305 | - * Displays the author extra info. |
|
306 | - * |
|
307 | - * @package lsx |
|
308 | - * @subpackage layout |
|
309 | - */ |
|
310 | - function lsx_author_extra_info() { |
|
311 | - $default_size = 'sm'; |
|
312 | - $size = apply_filters( 'lsx_bootstrap_column_size', $default_size ); |
|
313 | - |
|
314 | - if ( is_author() ) : |
|
315 | - $author_id = get_the_author_meta( 'ID' ); |
|
316 | - $author = get_the_author(); |
|
317 | - $author_avatar = get_avatar( $author_id, 400 ); |
|
318 | - $author_bio = get_the_archive_description(); |
|
319 | - $author_url = get_the_author_meta( 'url', $author_id ); |
|
320 | - $author_email = get_the_author_meta( 'email', $author_id ); |
|
321 | - $author_facebook = get_the_author_meta( 'facebook', $author_id ); |
|
322 | - $author_linkedin = get_the_author_meta( 'linkedin', $author_id ); |
|
323 | - $author_twitter = get_the_author_meta( 'twitter', $author_id ); |
|
324 | - $author_googleplus = get_the_author_meta( 'googleplus', $author_id ); |
|
325 | - ?> |
|
304 | + /** |
|
305 | + * Displays the author extra info. |
|
306 | + * |
|
307 | + * @package lsx |
|
308 | + * @subpackage layout |
|
309 | + */ |
|
310 | + function lsx_author_extra_info() { |
|
311 | + $default_size = 'sm'; |
|
312 | + $size = apply_filters( 'lsx_bootstrap_column_size', $default_size ); |
|
313 | + |
|
314 | + if ( is_author() ) : |
|
315 | + $author_id = get_the_author_meta( 'ID' ); |
|
316 | + $author = get_the_author(); |
|
317 | + $author_avatar = get_avatar( $author_id, 400 ); |
|
318 | + $author_bio = get_the_archive_description(); |
|
319 | + $author_url = get_the_author_meta( 'url', $author_id ); |
|
320 | + $author_email = get_the_author_meta( 'email', $author_id ); |
|
321 | + $author_facebook = get_the_author_meta( 'facebook', $author_id ); |
|
322 | + $author_linkedin = get_the_author_meta( 'linkedin', $author_id ); |
|
323 | + $author_twitter = get_the_author_meta( 'twitter', $author_id ); |
|
324 | + $author_googleplus = get_the_author_meta( 'googleplus', $author_id ); |
|
325 | + ?> |
|
326 | 326 | <div class="col-<?php echo esc_attr( $size ); ?>-12"> |
327 | 327 | <div class="archive-author-data"> |
328 | 328 | <div class="row"> |
@@ -336,10 +336,10 @@ discard block |
||
336 | 336 | <!-- Name --> |
337 | 337 | <h2 class="archive-author-title"> |
338 | 338 | <?php |
339 | - if ( '' !== $author ) { |
|
340 | - echo esc_html( $author ); |
|
341 | - } |
|
342 | - ?> |
|
339 | + if ( '' !== $author ) { |
|
340 | + echo esc_html( $author ); |
|
341 | + } |
|
342 | + ?> |
|
343 | 343 | </h2> |
344 | 344 | <!-- Social --> |
345 | 345 | <?php if ( ! empty( $author_url ) || ! empty( $author_email ) || ! empty( $author_facebook ) || ! empty( $author_twitter ) || ! empty( $author_googleplus ) ) : ?> |
@@ -380,36 +380,36 @@ discard block |
||
380 | 380 | <h2><?php echo esc_html__( 'Posts', 'lsx' ); ?></h2> |
381 | 381 | </div> |
382 | 382 | <?php |
383 | - endif; |
|
384 | - } |
|
385 | - add_action( 'lsx_content_wrap_before', 'lsx_author_extra_info', 11 ); |
|
383 | + endif; |
|
384 | + } |
|
385 | + add_action( 'lsx_content_wrap_before', 'lsx_author_extra_info', 11 ); |
|
386 | 386 | endif; |
387 | 387 | |
388 | 388 | if ( ! function_exists( 'lsx_post_header' ) ) : |
389 | - /** |
|
390 | - * Displays the post header. |
|
391 | - * |
|
392 | - * @package lsx |
|
393 | - * @subpackage layout |
|
394 | - */ |
|
395 | - function lsx_post_header() { |
|
396 | - $default_size = 'sm'; |
|
397 | - $size = apply_filters( 'lsx_bootstrap_column_size', $default_size ); |
|
398 | - |
|
399 | - $disable_title = get_post_meta( get_the_ID(), 'lsx_disable_title', true ); |
|
400 | - if ( 'yes' === $disable_title && is_singular( 'post' ) ) { |
|
401 | - return; |
|
402 | - } |
|
403 | - |
|
404 | - if ( is_singular( 'post' ) ) : |
|
405 | - $format = get_post_format(); |
|
406 | - |
|
407 | - if ( false === $format ) { |
|
408 | - $format = 'standard'; |
|
409 | - } |
|
410 | - |
|
411 | - $format = lsx_translate_format_to_fontawesome( $format ); |
|
412 | - ?> |
|
389 | + /** |
|
390 | + * Displays the post header. |
|
391 | + * |
|
392 | + * @package lsx |
|
393 | + * @subpackage layout |
|
394 | + */ |
|
395 | + function lsx_post_header() { |
|
396 | + $default_size = 'sm'; |
|
397 | + $size = apply_filters( 'lsx_bootstrap_column_size', $default_size ); |
|
398 | + |
|
399 | + $disable_title = get_post_meta( get_the_ID(), 'lsx_disable_title', true ); |
|
400 | + if ( 'yes' === $disable_title && is_singular( 'post' ) ) { |
|
401 | + return; |
|
402 | + } |
|
403 | + |
|
404 | + if ( is_singular( 'post' ) ) : |
|
405 | + $format = get_post_format(); |
|
406 | + |
|
407 | + if ( false === $format ) { |
|
408 | + $format = 'standard'; |
|
409 | + } |
|
410 | + |
|
411 | + $format = lsx_translate_format_to_fontawesome( $format ); |
|
412 | + ?> |
|
413 | 413 | <div class="archive-header-wrapper banner-post-header col-<?php echo esc_attr( $size ); ?>-12"> |
414 | 414 | <header class="archive-header"> |
415 | 415 | <h1 class="archive-title"> |
@@ -419,58 +419,58 @@ discard block |
||
419 | 419 | </header> |
420 | 420 | </div> |
421 | 421 | <?php |
422 | - endif; |
|
423 | - } |
|
424 | - add_action( 'lsx_entry_top', 'lsx_post_header' ); |
|
422 | + endif; |
|
423 | + } |
|
424 | + add_action( 'lsx_entry_top', 'lsx_post_header' ); |
|
425 | 425 | endif; |
426 | 426 | |
427 | 427 | if ( ! function_exists( 'lsx_add_viewport_meta_tag' ) ) : |
428 | - /** |
|
429 | - * Add Viewport Meta Tag to head. |
|
430 | - * |
|
431 | - * @package lsx |
|
432 | - * @subpackage layout |
|
433 | - */ |
|
434 | - function lsx_add_viewport_meta_tag() { |
|
435 | - ?> |
|
428 | + /** |
|
429 | + * Add Viewport Meta Tag to head. |
|
430 | + * |
|
431 | + * @package lsx |
|
432 | + * @subpackage layout |
|
433 | + */ |
|
434 | + function lsx_add_viewport_meta_tag() { |
|
435 | + ?> |
|
436 | 436 | <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"> |
437 | 437 | <?php |
438 | - } |
|
439 | - add_action( 'wp_head', 'lsx_add_viewport_meta_tag' ); |
|
438 | + } |
|
439 | + add_action( 'wp_head', 'lsx_add_viewport_meta_tag' ); |
|
440 | 440 | endif; |
441 | 441 | |
442 | 442 | if ( ! function_exists( 'lsx_header_search_form' ) ) : |
443 | - /** |
|
444 | - * Add a search form to just above the nav menu. |
|
445 | - * |
|
446 | - * @package lsx |
|
447 | - * @subpackage layout |
|
448 | - */ |
|
449 | - function lsx_header_search_form() { |
|
450 | - $search_form = get_theme_mod( 'lsx_header_search', false ); |
|
451 | - |
|
452 | - if ( false !== $search_form || is_customize_preview() ) { |
|
453 | - get_search_form( true ); |
|
454 | - } |
|
455 | - } |
|
456 | - $mobile_header_layout = get_theme_mod( 'lsx_header_mobile_layout', 'navigation-bar' ); |
|
457 | - add_action( 'lsx_nav_before', 'lsx_header_search_form', 0 ); |
|
443 | + /** |
|
444 | + * Add a search form to just above the nav menu. |
|
445 | + * |
|
446 | + * @package lsx |
|
447 | + * @subpackage layout |
|
448 | + */ |
|
449 | + function lsx_header_search_form() { |
|
450 | + $search_form = get_theme_mod( 'lsx_header_search', false ); |
|
451 | + |
|
452 | + if ( false !== $search_form || is_customize_preview() ) { |
|
453 | + get_search_form( true ); |
|
454 | + } |
|
455 | + } |
|
456 | + $mobile_header_layout = get_theme_mod( 'lsx_header_mobile_layout', 'navigation-bar' ); |
|
457 | + add_action( 'lsx_nav_before', 'lsx_header_search_form', 0 ); |
|
458 | 458 | endif; |
459 | 459 | |
460 | 460 | // Add entry meta to single post if active. |
461 | 461 | if ( ! function_exists( 'lsx_add_entry_meta' ) ) : |
462 | - function lsx_add_entry_meta() { |
|
463 | - $disable_title = get_post_meta( get_the_ID(), 'lsx_disable_title', true ); |
|
464 | - if ( 'yes' === $disable_title && is_singular( 'post' ) ) { |
|
465 | - return; |
|
466 | - } |
|
467 | - if ( is_single() && is_singular( 'post' ) ) { |
|
468 | - ?> |
|
462 | + function lsx_add_entry_meta() { |
|
463 | + $disable_title = get_post_meta( get_the_ID(), 'lsx_disable_title', true ); |
|
464 | + if ( 'yes' === $disable_title && is_singular( 'post' ) ) { |
|
465 | + return; |
|
466 | + } |
|
467 | + if ( is_single() && is_singular( 'post' ) ) { |
|
468 | + ?> |
|
469 | 469 | <div class="entry-meta"> |
470 | 470 | <?php lsx_post_meta_single_top(); ?> |
471 | 471 | </div><!-- .entry-meta --> |
472 | 472 | <?php |
473 | - } |
|
474 | - } |
|
475 | - add_action( 'lsx_entry_top', 'lsx_add_entry_meta', 999 ); |
|
473 | + } |
|
474 | + } |
|
475 | + add_action( 'lsx_entry_top', 'lsx_add_entry_meta', 999 ); |
|
476 | 476 | endif; |
@@ -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 | } |