Code Duplication    Length = 19-20 lines in 2 locations

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

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

includes/woocommerce/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