Code Duplication    Length = 19-20 lines in 2 locations

includes/the-events-calendar/the-events-calendar.php 1 location

@@ 44-62 (lines=19) @@
41
42
endif;
43
44
if ( ! function_exists( 'lsx_tec_theme_wrapper_start' ) ) :
45
46
	/**
47
	 * The Events Calendar wrapper start.
48
	 *
49
	 * @package    lsx
50
	 * @subpackage the-events-calendar
51
	 */
52
	function lsx_tec_theme_wrapper_start() {
53
		lsx_content_wrap_before();
54
		echo '<div id="primary" class="content-area ' . esc_attr( lsx_main_class() ) . '">';
55
		lsx_content_before();
56
		echo '<main id="main" class="site-main" role="main">';
57
		lsx_content_top();
58
	}
59
60
	add_action( 'tribe_events_before_html', 'lsx_tec_theme_wrapper_start', 9 );
61
62
endif;
63
64
if ( ! function_exists( 'lsx_tec_theme_wrapper_end' ) ) :
65

includes/woocommerce/woocommerce.php 1 location

@@ 115-134 (lines=20) @@
112
113
endif;
114
115
if ( ! function_exists( 'lsx_wc_theme_wrapper_start' ) ) :
116
117
	/**
118
	 * WooCommerce wrapper start.
119
	 *
120
	 * @package    lsx
121
	 * @subpackage woocommerce
122
	 */
123
	function lsx_wc_theme_wrapper_start() {
124
		lsx_content_wrap_before();
125
		echo '<div id="primary" class="content-area ' . esc_attr( lsx_main_class() ) . '">';
126
		lsx_content_before();
127
		echo '<main id="main" class="site-main" role="main">';
128
		lsx_content_top();
129
	}
130
131
	remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10 );
132
	add_action( 'woocommerce_before_main_content', 'lsx_wc_theme_wrapper_start' );
133
134
endif;
135
136
if ( ! function_exists( 'lsx_wc_theme_wrapper_end' ) ) :
137