@@ 32-51 (lines=20) @@ | ||
29 | ||
30 | endif; |
|
31 | ||
32 | if ( ! function_exists( 'lsx_sensei_theme_wrapper_start' ) ) : |
|
33 | ||
34 | /** |
|
35 | * Sensei wrapper start. |
|
36 | * |
|
37 | * @package lsx |
|
38 | * @subpackage sensei |
|
39 | */ |
|
40 | function lsx_sensei_theme_wrapper_start() { |
|
41 | lsx_content_wrap_before(); |
|
42 | echo '<div id="primary" class="content-area ' . esc_attr( lsx_main_class() ) . '">'; |
|
43 | lsx_content_before(); |
|
44 | echo '<main id="main" class="site-main" role="main">'; |
|
45 | lsx_content_top(); |
|
46 | } |
|
47 | ||
48 | remove_action( 'sensei_before_main_content', array( $woothemes_sensei->frontend, 'sensei_output_content_wrapper' ), 10 ); |
|
49 | add_action( 'sensei_before_main_content', 'lsx_sensei_theme_wrapper_start' ); |
|
50 | ||
51 | endif; |
|
52 | ||
53 | if ( ! function_exists( 'lsx_sensei_theme_wrapper_end' ) ) : |
|
54 |
@@ 80-99 (lines=20) @@ | ||
77 | ||
78 | endif; |
|
79 | ||
80 | if ( ! function_exists( 'lsx_wc_theme_wrapper_start' ) ) : |
|
81 | ||
82 | /** |
|
83 | * WooCommerce wrapper start. |
|
84 | * |
|
85 | * @package lsx |
|
86 | * @subpackage woocommerce |
|
87 | */ |
|
88 | function lsx_wc_theme_wrapper_start() { |
|
89 | lsx_content_wrap_before(); |
|
90 | echo '<div id="primary" class="content-area ' . esc_attr( lsx_main_class() ) . '">'; |
|
91 | lsx_content_before(); |
|
92 | echo '<main id="main" class="site-main" role="main">'; |
|
93 | lsx_content_top(); |
|
94 | } |
|
95 | ||
96 | remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10 ); |
|
97 | add_action( 'woocommerce_before_main_content', 'lsx_wc_theme_wrapper_start' ); |
|
98 | ||
99 | endif; |
|
100 | ||
101 | if ( ! function_exists( 'lsx_wc_theme_wrapper_end' ) ) : |
|
102 |
@@ 30-48 (lines=19) @@ | ||
27 | ||
28 | endif; |
|
29 | ||
30 | if ( ! function_exists( 'lsx_tec_theme_wrapper_start' ) ) : |
|
31 | ||
32 | /** |
|
33 | * The Events Calendar wrapper start. |
|
34 | * |
|
35 | * @package lsx |
|
36 | * @subpackage the-events-calendar |
|
37 | */ |
|
38 | function lsx_tec_theme_wrapper_start() { |
|
39 | lsx_content_wrap_before(); |
|
40 | echo '<div id="primary" class="content-area ' . esc_attr( lsx_main_class() ) . '">'; |
|
41 | lsx_content_before(); |
|
42 | echo '<main id="main" class="site-main" role="main">'; |
|
43 | lsx_content_top(); |
|
44 | } |
|
45 | ||
46 | add_action( 'tribe_events_before_html', 'lsx_tec_theme_wrapper_start', 9 ); |
|
47 | ||
48 | endif; |
|
49 | ||
50 | if ( ! function_exists( 'lsx_tec_theme_wrapper_end' ) ) : |
|
51 |