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

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