Code Duplication    Length = 20-20 lines in 2 locations

includes/plugins/sensei.php 1 location

@@ 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

includes/plugins/woocommerce.php 1 location

@@ 77-96 (lines=20) @@
74
75
endif;
76
77
if ( ! function_exists( 'lsx_wc_theme_wrapper_start' ) ) :
78
79
	/**
80
	 * WooCommerce wrapper start.
81
	 *
82
	 * @package    lsx
83
	 * @subpackage woocommerce
84
	 */
85
	function lsx_wc_theme_wrapper_start() {
86
		lsx_content_wrap_before();
87
		echo '<div id="primary" class="content-area ' . esc_attr( lsx_main_class() ) . '">';
88
		lsx_content_before();
89
		echo '<main id="main" class="site-main" role="main">';
90
		lsx_content_top();
91
	}
92
93
	remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10 );
94
	add_action( 'woocommerce_before_main_content', 'lsx_wc_theme_wrapper_start' );
95
96
endif;
97
98
if ( ! function_exists( 'lsx_wc_theme_wrapper_end' ) ) :
99