Code Duplication    Length = 19-20 lines in 3 locations

includes/plugins/sensei.php 1 location

@@ 53-72 (lines=20) @@
50
51
endif;
52
53
if ( ! function_exists( 'lsx_sensei_theme_wrapper_end' ) ) :
54
55
	/**
56
	 * Sensei wrapper end.
57
	 *
58
	 * @package    lsx
59
	 * @subpackage sensei
60
	 */
61
	function lsx_sensei_theme_wrapper_end() {
62
		lsx_content_bottom();
63
		echo '</main>';
64
		lsx_content_after();
65
		echo '</div>';
66
		lsx_content_wrap_after();
67
	}
68
69
	remove_action( 'sensei_after_main_content', array( $woothemes_sensei->frontend, 'sensei_output_content_wrapper_end' ), 10 );
70
	add_action( 'sensei_after_main_content', 'lsx_sensei_theme_wrapper_end' );
71
72
endif;
73
74
if ( ! function_exists( 'lsx_sensei_disable_lsx_banner' ) ) :
75

includes/plugins/woocommerce.php 1 location

@@ 101-120 (lines=20) @@
98
99
endif;
100
101
if ( ! function_exists( 'lsx_wc_theme_wrapper_end' ) ) :
102
103
	/**
104
	 * WooCommerce wrapper end.
105
	 *
106
	 * @package    lsx
107
	 * @subpackage woocommerce
108
	 */
109
	function lsx_wc_theme_wrapper_end() {
110
		lsx_content_bottom();
111
		echo '</main>';
112
		lsx_content_after();
113
		echo '</div>';
114
		lsx_content_wrap_after();
115
	}
116
117
	remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10 );
118
	add_action( 'woocommerce_after_main_content', 'lsx_wc_theme_wrapper_end' );
119
120
endif;
121
122
if ( ! function_exists( 'lsx_wc_disable_lsx_banner_plugin' ) ) :
123

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

@@ 50-68 (lines=19) @@
47
48
endif;
49
50
if ( ! function_exists( 'lsx_tec_theme_wrapper_end' ) ) :
51
52
	/**
53
	 * The Events Calendar wrapper end.
54
	 *
55
	 * @package    lsx
56
	 * @subpackage the-events-calendar
57
	 */
58
	function lsx_tec_theme_wrapper_end() {
59
		lsx_content_bottom();
60
		echo '</main>';
61
		lsx_content_after();
62
		echo '</div>';
63
		lsx_content_wrap_after();
64
	}
65
66
	add_action( 'tribe_events_after_html', 'lsx_tec_theme_wrapper_end', 11 );
67
68
endif;
69
70
if ( ! function_exists( 'lsx_tec_disable_lsx_banner' ) ) :
71