@@ 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 |
@@ 86-105 (lines=20) @@ | ||
83 | ||
84 | endif; |
|
85 | ||
86 | if ( ! function_exists( 'lsx_wc_theme_wrapper_start' ) ) : |
|
87 | ||
88 | /** |
|
89 | * WooCommerce wrapper start. |
|
90 | * |
|
91 | * @package lsx |
|
92 | * @subpackage woocommerce |
|
93 | */ |
|
94 | function lsx_wc_theme_wrapper_start() { |
|
95 | lsx_content_wrap_before(); |
|
96 | echo '<div id="primary" class="content-area ' . esc_attr( lsx_main_class() ) . '">'; |
|
97 | lsx_content_before(); |
|
98 | echo '<main id="main" class="site-main" role="main">'; |
|
99 | lsx_content_top(); |
|
100 | } |
|
101 | ||
102 | remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10 ); |
|
103 | add_action( 'woocommerce_before_main_content', 'lsx_wc_theme_wrapper_start' ); |
|
104 | ||
105 | endif; |
|
106 | ||
107 | if ( ! function_exists( 'lsx_wc_theme_wrapper_end' ) ) : |
|
108 |