Completed
Push — master ( 4766bb...45ce40 )
by Fernando
03:32
created
functions.php 2 patches
Spacing   +40 added lines, -40 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
  *
5 5
  * @package lsx
6 6
  */
7
-if ( ! defined( 'ABSPATH' ) ) return; // Exit if accessed directly
7
+if ( ! defined('ABSPATH')) return; // Exit if accessed directly
8 8
 
9 9
 define('LSX_VERSION', '1.8.6');
10 10
 
@@ -19,22 +19,22 @@  discard block
 block discarded – undo
19 19
 require get_template_directory() . '/inc/comment-walker.php';
20 20
 require get_template_directory() . '/inc/jetpack.php';
21 21
 require get_template_directory() . '/inc/lazyload.php';
22
-if(class_exists('BuddyPress')){
22
+if (class_exists('BuddyPress')) {
23 23
 	require get_template_directory() . '/inc/buddypress.php';
24 24
 }
25
-if(class_exists('WooCommerce')){
25
+if (class_exists('WooCommerce')) {
26 26
 	require get_template_directory() . '/inc/woocommerce.php';
27 27
 }
28
-if(class_exists('WP_Job_Manager')){
28
+if (class_exists('WP_Job_Manager')) {
29 29
 	require get_template_directory() . '/inc/wp-job-manager.php';
30 30
 }
31
-if(class_exists('Tribe__Events__Main')){
31
+if (class_exists('Tribe__Events__Main')) {
32 32
 	require get_template_directory() . '/inc/the-events-calendar.php';
33 33
 }
34 34
 require get_template_directory() . '/inc/template-tags.php';
35 35
 require get_template_directory() . '/inc/extras.php';
36 36
 require get_template_directory() . '/inc/wp-bootstrap-navwalker.php';
37
-if(class_exists('Sensei_WC')){
37
+if (class_exists('Sensei_WC')) {
38 38
 	require get_template_directory() . '/inc/sensei.php';
39 39
 }
40 40
 require get_template_directory() . '/inc/welcome.php';
@@ -47,10 +47,10 @@  discard block
 block discarded – undo
47 47
  * @category	customizer
48 48
  * @return		$lsx_controls array()
49 49
  */
50
-function lsx_customizer_core_controls( $lsx_controls ) {
50
+function lsx_customizer_core_controls($lsx_controls) {
51 51
 	$lsx_controls['sections']['lsx-core'] = array(
52
-		'title'       =>  esc_html__( 'Core Settings', 'lsx' ),
53
-		'description' => esc_html__( 'Change the core settings.', 'lsx' ),
52
+		'title'       =>  esc_html__('Core Settings', 'lsx'),
53
+		'description' => esc_html__('Change the core settings.', 'lsx'),
54 54
 		'priority'    => 21
55 55
 	);
56 56
 
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 	);
62 62
 
63 63
 	$lsx_controls['fields']['lsx_lazyload_status'] = array(
64
-		'label'         =>  esc_html__( 'Lazy Loading Images', 'lsx' ),
64
+		'label'         =>  esc_html__('Lazy Loading Images', 'lsx'),
65 65
 		'section'       =>  'lsx-core',
66 66
 		'type'          =>  'checkbox',
67 67
 	);
@@ -73,14 +73,14 @@  discard block
 block discarded – undo
73 73
 	);
74 74
 
75 75
 	$lsx_controls['fields']['lsx_preloader_content_status'] = array(
76
-		'label'         =>  esc_html__( 'Preloader Content', 'lsx' ),
76
+		'label'         =>  esc_html__('Preloader Content', 'lsx'),
77 77
 		'section'       =>  'lsx-core',
78 78
 		'type'          =>  'checkbox',
79 79
 	);
80 80
 
81 81
 	return $lsx_controls;
82 82
 }
83
-add_filter( 'lsx_customizer_controls', 'lsx_customizer_core_controls' );
83
+add_filter('lsx_customizer_controls', 'lsx_customizer_core_controls');
84 84
 
85 85
 /**
86 86
  * Returns an array of the layout panel.
@@ -91,56 +91,56 @@  discard block
 block discarded – undo
91 91
  * @return		$lsx_controls array()
92 92
  */
93 93
 function lsx_customizer_layout_controls($lsx_controls) {
94
-	$lsx_controls['settings']['lsx_header_layout']  = array(
94
+	$lsx_controls['settings']['lsx_header_layout'] = array(
95 95
 			'default'       =>  'inline', //Default setting/value to save
96 96
 			'type'        =>  'theme_mod', //Is this an 'option' or a 'theme_mod'?
97 97
 			'transport'     =>  'postMessage', //What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?
98 98
 	);
99 99
 	$lsx_controls['fields']['lsx_header_layout'] = array(
100
-			'label'         =>  esc_html__('Header','lsx'),
100
+			'label'         =>  esc_html__('Header', 'lsx'),
101 101
 			'section'       =>  'lsx-layout',
102 102
 			'control'   =>  'LSX_Customize_Header_Layout_Control',
103
-			'choices'		=>	array('central','expanded','inline')
103
+			'choices'		=>	array('central', 'expanded', 'inline')
104 104
 	);	
105 105
 	$lsx_controls['sections']['lsx-layout'] = array(
106
-			'title'       =>  esc_html__( 'Layout', 'lsx' ),
107
-			'description' => esc_html__( 'Change the layout sitewide. If your homepage is set to use a page with a template, the following will not apply to it.', 'lsx' ),
106
+			'title'       =>  esc_html__('Layout', 'lsx'),
107
+			'description' => esc_html__('Change the layout sitewide. If your homepage is set to use a page with a template, the following will not apply to it.', 'lsx'),
108 108
 			'priority' => 22
109 109
 	);
110
-	$lsx_controls['settings']['lsx_layout']  = array(
110
+	$lsx_controls['settings']['lsx_layout'] = array(
111 111
 			'default'       =>  '2cr', //Default setting/value to save
112 112
 			'type'        =>  'theme_mod', //Is this an 'option' or a 'theme_mod'?
113 113
 			'transport'     =>  'refresh', //What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?
114 114
 	);
115
-	$lsx_controls['settings']['lsx_header_fixed']  = array(
115
+	$lsx_controls['settings']['lsx_header_fixed'] = array(
116 116
 			'default'       =>  false, //Default setting/value to save
117 117
 			'sanitize_callback' => 'lsx_sanitize_checkbox',
118 118
 			'transport'     =>  'postMessage', //What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?
119 119
 	);
120 120
 	$lsx_controls['fields']['lsx_header_fixed'] = array(
121
-			'label'         =>  esc_html__('Fixed Header','lsx'),
121
+			'label'         =>  esc_html__('Fixed Header', 'lsx'),
122 122
 			'section'       =>  'lsx-layout',
123 123
 			'type'       =>  'checkbox',
124 124
 	);
125
-	$lsx_controls['settings']['lsx_header_search']  = array(
125
+	$lsx_controls['settings']['lsx_header_search'] = array(
126 126
 			'default'       =>  false, //Default setting/value to save
127 127
 			'sanitize_callback' => 'lsx_sanitize_checkbox',
128 128
 			'transport'     =>  'postMessage', //What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?
129 129
 	);
130 130
 	$lsx_controls['fields']['lsx_header_search'] = array(
131
-			'label'         =>  esc_html__('Search Box in Header','lsx'),
131
+			'label'         =>  esc_html__('Search Box in Header', 'lsx'),
132 132
 			'section'       =>  'lsx-layout',
133 133
 			'type'       =>  'checkbox',
134 134
 	);	
135 135
 	$lsx_controls['fields']['lsx_layout'] = array(
136
-			'label'         =>  esc_html__('Body','lsx'),
136
+			'label'         =>  esc_html__('Body', 'lsx'),
137 137
 			'section'       =>  'lsx-layout',
138 138
 			'control'   =>  'LSX_Customize_Layout_Control',
139
-			'choices'		=>	array('1c','2cr','2cl')
139
+			'choices'		=>	array('1c', '2cr', '2cl')
140 140
 	);	
141 141
 	return $lsx_controls;
142 142
 }
143
-add_filter('lsx_customizer_controls','lsx_customizer_layout_controls');
143
+add_filter('lsx_customizer_controls', 'lsx_customizer_layout_controls');
144 144
 
145 145
 /**
146 146
  * Returns an array of the font controls.
@@ -152,11 +152,11 @@  discard block
 block discarded – undo
152 152
  */
153 153
 function lsx_customizer_font_controls($lsx_controls) {
154 154
 	$lsx_controls['sections']['lsx-font'] = array(
155
-			'title'       =>  esc_html__( 'Font', 'lsx' ),
155
+			'title'       =>  esc_html__('Font', 'lsx'),
156 156
 			'description' => 'Change the fonts sitewide.',
157 157
 			'priority' => 41
158 158
 	);
159
-	$lsx_controls['settings']['lsx_font']  = array(
159
+	$lsx_controls['settings']['lsx_font'] = array(
160 160
 			'default'       =>  'raleway_open_sans', //Default setting/value to save
161 161
 			'type'        =>  'theme_mod', //Is this an 'option' or a 'theme_mod'?
162 162
 			'transport'     =>  'refresh', //What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?
@@ -170,13 +170,13 @@  discard block
 block discarded – undo
170 170
 			'choices'   =>  array(
171 171
 					'raleway_open_sans' => array(
172 172
 							'header'  => array(
173
-									"title" => esc_html__( 'Raleway', 'lsx' ),
173
+									"title" => esc_html__('Raleway', 'lsx'),
174 174
 									"location" => "Raleway",
175 175
 									"cssDeclaration" => "'Raleway', sans-serif",
176 176
 									"cssClass" => "raleway",
177 177
 							),
178 178
 							'body'  => array(
179
-									"title" => esc_html__( 'Open Sans', 'lsx' ),
179
+									"title" => esc_html__('Open Sans', 'lsx'),
180 180
 									"location" => "Open+Sans",
181 181
 									"cssDeclaration" => "'Open Sans', sans-serif",
182 182
 									"cssClass" => "openSans"
@@ -184,13 +184,13 @@  discard block
 block discarded – undo
184 184
 					),
185 185
 					'noto_serif_noto_sans' => array(
186 186
 							'header'  => array(
187
-									"title" => esc_html__( 'Noto Serif', 'lsx' ),
187
+									"title" => esc_html__('Noto Serif', 'lsx'),
188 188
 									"location" => "Noto+Serif",
189 189
 									"cssDeclaration" => "'Noto Serif', serif",
190 190
 									"cssClass" => "notoSerif",
191 191
 							),
192 192
 							'body'  => array(
193
-									"title" => esc_html__( 'Noto Sans', 'lsx' ),
193
+									"title" => esc_html__('Noto Sans', 'lsx'),
194 194
 									"location" => "Noto+Sans",
195 195
 									"cssDeclaration" => "'Noto Sans', sans-serif",
196 196
 									"cssClass" => "notoSans",
@@ -198,13 +198,13 @@  discard block
 block discarded – undo
198 198
 					),
199 199
 					'noto_sans_noto_sans' => array(
200 200
 					'header'  => array(
201
-					"title" => esc_html__( 'Noto Sans', 'lsx' ),
201
+					"title" => esc_html__('Noto Sans', 'lsx'),
202 202
 					"location" => "Noto+Sans",
203 203
 					"cssDeclaration" => "'Noto Sans', sans-serif",
204 204
 					"cssClass" => "notoSans",
205 205
 					),
206 206
 					'body'  => array(
207
-					"title" => esc_html__( 'Noto Sans', 'lsx' ),
207
+					"title" => esc_html__('Noto Sans', 'lsx'),
208 208
 					"location" => "Noto+Sans",
209 209
 					"cssDeclaration" => "'Noto Sans', sans-serif",
210 210
 					"cssClass" => "notoSans",
@@ -212,13 +212,13 @@  discard block
 block discarded – undo
212 212
 					),
213 213
 					'alegreya_open_sans' => array(
214 214
 					'header'  => array(
215
-					"title" => esc_html__( 'Alegreya', 'lsx' ),
215
+					"title" => esc_html__('Alegreya', 'lsx'),
216 216
 					"location" => "Alegreya",
217 217
 					"cssDeclaration" => "'Alegreya', serif",
218 218
 					"cssClass" => "alegreya",
219 219
 					),
220 220
 					'body'  => array(
221
-					"title" => esc_html__( 'Open Sans', 'lsx' ),
221
+					"title" => esc_html__('Open Sans', 'lsx'),
222 222
 					"location" => "Open+Sans",
223 223
 					"cssDeclaration" => "'Open Sans', sans-serif",
224 224
 					"cssClass" => "openSans"
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
 	);	
230 230
 	return $lsx_controls;
231 231
 }
232
-add_filter('lsx_customizer_controls','lsx_customizer_font_controls');
232
+add_filter('lsx_customizer_controls', 'lsx_customizer_font_controls');
233 233
 
234 234
 /**
235 235
  * Returns an array of $controls for the customizer class to generate.
@@ -239,12 +239,12 @@  discard block
 block discarded – undo
239 239
  * @category	customizer
240 240
  * @return		$lsx_controls array()
241 241
  */
242
-function lsx_get_customizer_controls(){
242
+function lsx_get_customizer_controls() {
243 243
 	$lsx_controls = array();
244 244
 	$lsx_controls = apply_filters('lsx_customizer_controls', $lsx_controls);
245 245
 	return $lsx_controls;
246 246
 }
247
-$lsx_customizer = new LSX_Theme_Customizer( lsx_get_customizer_controls() );
247
+$lsx_customizer = new LSX_Theme_Customizer(lsx_get_customizer_controls());
248 248
 
249
-add_image_size( 'lsx-thumbnail-wide', 350, 230, true );
250
-add_image_size( 'lsx-thumbnail-single', 750, 350, true );
251 249
\ No newline at end of file
250
+add_image_size('lsx-thumbnail-wide', 350, 230, true);
251
+add_image_size('lsx-thumbnail-single', 750, 350, true);
252 252
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,10 @@
 block discarded – undo
4 4
  *
5 5
  * @package lsx
6 6
  */
7
-if ( ! defined( 'ABSPATH' ) ) return; // Exit if accessed directly
7
+if ( ! defined( 'ABSPATH' ) ) {
8
+	return;
9
+}
10
+// Exit if accessed directly
8 11
 
9 12
 define('LSX_VERSION', '1.8.6');
10 13
 
Please login to merge, or discard this patch.
inc/config.php 1 patch
Spacing   +64 added lines, -64 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) return; // Exit if accessed directly
2
+if ( ! defined('ABSPATH')) return; // Exit if accessed directly
3 3
 
4 4
 /**
5 5
  * Theme Configuration File
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
  * @package lsx
9 9
  */
10 10
 
11
-if ( ! function_exists( 'lsx_setup' ) ) :
11
+if ( ! function_exists('lsx_setup')) :
12 12
 /**
13 13
  * Sets up theme defaults and registers support for various WordPress features.
14 14
  *
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 function lsx_setup() {
20 20
 	global $content_width;
21 21
 	
22
-	load_theme_textdomain( 'lsx', get_template_directory() . '/languages' );
22
+	load_theme_textdomain('lsx', get_template_directory() . '/languages');
23 23
 
24 24
 	$args = array(
25 25
 			'header-text' => array(
@@ -28,68 +28,68 @@  discard block
 block discarded – undo
28 28
 			),
29 29
 			'size' => 'medium',
30 30
 	);
31
-	add_theme_support( 'site-logo', $args );
31
+	add_theme_support('site-logo', $args);
32 32
 	
33
-	add_theme_support( 'custom-logo', array(
33
+	add_theme_support('custom-logo', array(
34 34
 			'height'      => 50,
35 35
 			'width'       => 150,
36 36
 			'flex-width' => true,
37 37
 			'flex-height' => true,
38
-	) );
38
+	));
39 39
 
40
-	add_theme_support( 'custom-background' );
41
-	add_theme_support( 'automatic-feed-links' );
42
-	add_theme_support( 'title-tag' );
43
-	add_theme_support( 'post-thumbnails' );
44
-	add_theme_support( 'post-formats', array('image', 'video', 'gallery', 'audio', 'link', 'quote', 'aside') );
40
+	add_theme_support('custom-background');
41
+	add_theme_support('automatic-feed-links');
42
+	add_theme_support('title-tag');
43
+	add_theme_support('post-thumbnails');
44
+	add_theme_support('post-formats', array('image', 'video', 'gallery', 'audio', 'link', 'quote', 'aside'));
45 45
 
46 46
 	// This theme uses wp_nav_menu() in one location.
47
-	register_nav_menus( array(
48
-		'primary' => esc_html__( 'Primary Menu', 'lsx' ),
49
-		'top-menu'=> esc_html__( 'Top Menu (right)' , 'lsx' ),
50
-		'top-menu-left'=> esc_html__( 'Top Menu (left)' , 'lsx' ),
51
-		'social'=> esc_html__( 'Social Menu' , 'lsx' ),
52
-		'footer'=> esc_html__( 'Footer Menu' , 'lsx' )
53
-	) );	
47
+	register_nav_menus(array(
48
+		'primary' => esc_html__('Primary Menu', 'lsx'),
49
+		'top-menu'=> esc_html__('Top Menu (right)', 'lsx'),
50
+		'top-menu-left'=> esc_html__('Top Menu (left)', 'lsx'),
51
+		'social'=> esc_html__('Social Menu', 'lsx'),
52
+		'footer'=> esc_html__('Footer Menu', 'lsx')
53
+	));	
54 54
 
55 55
 	//Set the content width
56 56
 	$content_width = 1140;
57 57
 	
58
-	add_editor_style( get_template_directory_uri() . '/css/editor-style.css' );	
59
-	add_theme_support( 'html5', array( 'caption' ) );
58
+	add_editor_style(get_template_directory_uri() . '/css/editor-style.css');	
59
+	add_theme_support('html5', array('caption'));
60 60
 
61
-	add_theme_support( 'woocommerce' );	
62
-	add_theme_support( 'sensei' );
61
+	add_theme_support('woocommerce');	
62
+	add_theme_support('sensei');
63 63
 
64
-	add_theme_support( 'starter-content', array(
64
+	add_theme_support('starter-content', array(
65 65
 		'widgets' => array(
66 66
 			'sidebar-home' => array(
67 67
 				'custom_widget_1' => array(
68 68
 					'text',
69 69
 					array(
70 70
 						'title' => '',
71
-						'text' => wp_kses_post( '<div class="lsx-full-width"><div class="row"><div class="col-sm-6"><h3>Full Width Widget</h3><p>Lorem ipsum dolor sit amet, <a href="#">consectetuer adipiscing elit</a>. Donec odio. Quisque volutpat mattis eros.</p><p><a href="#" class="btn cta-btn">Lorem ipsum</a></p></div><div class="col-sm-6"><h3>Full Width Widget</h3><p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros.</p></div></div></div>' ),
71
+						'text' => wp_kses_post('<div class="lsx-full-width"><div class="row"><div class="col-sm-6"><h3>Full Width Widget</h3><p>Lorem ipsum dolor sit amet, <a href="#">consectetuer adipiscing elit</a>. Donec odio. Quisque volutpat mattis eros.</p><p><a href="#" class="btn cta-btn">Lorem ipsum</a></p></div><div class="col-sm-6"><h3>Full Width Widget</h3><p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros.</p></div></div></div>'),
72 72
 					)
73 73
 				),
74 74
 				'custom_widget_2' => array(
75 75
 					'text',
76 76
 					array(
77 77
 						'title' => '',
78
-						'text' => wp_kses_post( '<div class="row"><div class="col-sm-6"><h3 style="margin-top:0">Text Widget</h3><p>Lorem ipsum dolor sit amet, <a href="#">consectetuer adipiscing elit</a>. Donec odio. Quisque volutpat mattis eros.</p></div><div class="col-sm-6"><h3 style="margin-top:0">Text Widget</h3><p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque <a href="#">volutpat mattis eros</a>.</p></div></div>' ),
78
+						'text' => wp_kses_post('<div class="row"><div class="col-sm-6"><h3 style="margin-top:0">Text Widget</h3><p>Lorem ipsum dolor sit amet, <a href="#">consectetuer adipiscing elit</a>. Donec odio. Quisque volutpat mattis eros.</p></div><div class="col-sm-6"><h3 style="margin-top:0">Text Widget</h3><p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque <a href="#">volutpat mattis eros</a>.</p></div></div>'),
79 79
 					)
80 80
 				),
81 81
 				'custom_widget_3' => array(
82 82
 					'text',
83 83
 					array(
84 84
 						'title' => '',
85
-						'text' => wp_kses_post( '<div class="lsx-full-width-alt"><div class="row"><div class="col-sm-6"><h3>Full Width CTA Widget</h3><p>Lorem ipsum dolor sit amet, <a href="#">consectetuer adipiscing elit</a>. Donec odio. Quisque volutpat mattis eros.</p><p><a href="#" class="btn cta-btn">Lorem ipsum</a></p></div><div class="col-sm-6"><h3>Full Width CTA Widget</h3><p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros.</p><p><a href="#" class="btn">Lorem ipsum</a></p></div></div></div>' ),
85
+						'text' => wp_kses_post('<div class="lsx-full-width-alt"><div class="row"><div class="col-sm-6"><h3>Full Width CTA Widget</h3><p>Lorem ipsum dolor sit amet, <a href="#">consectetuer adipiscing elit</a>. Donec odio. Quisque volutpat mattis eros.</p><p><a href="#" class="btn cta-btn">Lorem ipsum</a></p></div><div class="col-sm-6"><h3>Full Width CTA Widget</h3><p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros.</p><p><a href="#" class="btn">Lorem ipsum</a></p></div></div></div>'),
86 86
 					)
87 87
 				),
88 88
 				'custom_widget_4' => array(
89 89
 					'text',
90 90
 					array(
91 91
 						'title' => '',
92
-						'text' => wp_kses_post( '<div class="row"><div class="col-sm-12"><h3 style="margin-top:0">Text Widget</h3><p>Lorem ipsum dolor sit amet, <a href="#">consectetuer adipiscing elit</a>. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p></div></div>' ),
92
+						'text' => wp_kses_post('<div class="row"><div class="col-sm-12"><h3 style="margin-top:0">Text Widget</h3><p>Lorem ipsum dolor sit amet, <a href="#">consectetuer adipiscing elit</a>. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p></div></div>'),
93 93
 					)
94 94
 				),
95 95
 			),
@@ -98,22 +98,22 @@  discard block
 block discarded – undo
98 98
 				'custom_widget_1' => array(
99 99
 					'text',
100 100
 					array(
101
-						'title' => esc_html__( 'Footer Widget', 'lsx' ),
102
-						'text' => esc_html__( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed vitae ipsum nec sapien consectetur convallis eu sit amet diam. Praesent dignissim vel arcu et gravida.', 'lsx' ),
101
+						'title' => esc_html__('Footer Widget', 'lsx'),
102
+						'text' => esc_html__('Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed vitae ipsum nec sapien consectetur convallis eu sit amet diam. Praesent dignissim vel arcu et gravida.', 'lsx'),
103 103
 					)
104 104
 				),
105 105
 				'custom_widget_2' => array(
106 106
 					'text',
107 107
 					array(
108
-						'title' => esc_html__( 'Footer Widget', 'lsx' ),
109
-						'text' => esc_html__( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed vitae ipsum nec sapien consectetur convallis eu sit amet diam. Praesent dignissim vel arcu et gravida.', 'lsx' ),
108
+						'title' => esc_html__('Footer Widget', 'lsx'),
109
+						'text' => esc_html__('Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed vitae ipsum nec sapien consectetur convallis eu sit amet diam. Praesent dignissim vel arcu et gravida.', 'lsx'),
110 110
 					)
111 111
 				),
112 112
 				'custom_widget_3' => array(
113 113
 					'text',
114 114
 					array(
115
-						'title' => esc_html__( 'Footer Widget', 'lsx' ),
116
-						'text' => esc_html__( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed vitae ipsum nec sapien consectetur convallis eu sit amet diam. Praesent dignissim vel arcu et gravida.', 'lsx' ),
115
+						'title' => esc_html__('Footer Widget', 'lsx'),
116
+						'text' => esc_html__('Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed vitae ipsum nec sapien consectetur convallis eu sit amet diam. Praesent dignissim vel arcu et gravida.', 'lsx'),
117 117
 					)
118 118
 				),
119 119
 			),
@@ -122,8 +122,8 @@  discard block
 block discarded – undo
122 122
 				'custom_widget_1' => array(
123 123
 					'text',
124 124
 					array(
125
-						'title' => esc_html__( 'Footer Call to Action Widget', 'lsx' ),
126
-						'text' => esc_html__( 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.', 'lsx' ),
125
+						'title' => esc_html__('Footer Call to Action Widget', 'lsx'),
126
+						'text' => esc_html__('Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.', 'lsx'),
127 127
 					)
128 128
 				),
129 129
 			),
@@ -149,15 +149,15 @@  discard block
 block discarded – undo
149 149
 
150 150
 		'attachments' => array(
151 151
 			'image-banner-placeholder-01' => array(
152
-				'post_title' => esc_html_x( 'Banner Placeholder 01', 'Theme starter content', 'lsx' ),
152
+				'post_title' => esc_html_x('Banner Placeholder 01', 'Theme starter content', 'lsx'),
153 153
 				'file' => 'img/banner-placeholder-01.jpg',
154 154
 			),
155 155
 			'image-banner-placeholder-02' => array(
156
-				'post_title' => esc_html_x( 'Banner Placeholder 02', 'Theme starter content', 'lsx' ),
156
+				'post_title' => esc_html_x('Banner Placeholder 02', 'Theme starter content', 'lsx'),
157 157
 				'file' => 'img/banner-placeholder-02.jpg',
158 158
 			),
159 159
 			'image-banner-placeholder-03' => array(
160
-				'post_title' => esc_html_x( 'Banner Placeholder 03', 'Theme starter content', 'lsx' ),
160
+				'post_title' => esc_html_x('Banner Placeholder 03', 'Theme starter content', 'lsx'),
161 161
 				'file' => 'img/banner-placeholder-03.jpg',
162 162
 			),
163 163
 		),
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
 
171 171
 		'nav_menus' => array(
172 172
 			'primary' => array(
173
-				'name' => esc_html__( 'Primary Menu', 'lsx' ),
173
+				'name' => esc_html__('Primary Menu', 'lsx'),
174 174
 				'items' => array(
175 175
 					'page_home',
176 176
 					'page_about',
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
 				),
180 180
 			),
181 181
 			'top-menu' => array(
182
-				'name' => esc_html__( 'Top Menu', 'lsx' ),
182
+				'name' => esc_html__('Top Menu', 'lsx'),
183 183
 				'items' => array(
184 184
 					'custom_link_1' => array(
185 185
 						'title' => 'View Map',
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
 				),
203 203
 			),
204 204
 			'social' => array(
205
-				'name' => esc_html__( 'Social Menu', 'lsx' ),
205
+				'name' => esc_html__('Social Menu', 'lsx'),
206 206
 				'items' => array(
207 207
 					'link_facebook',
208 208
 					'link_foursquare',
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
 				),
216 216
 			),
217 217
 			'footer' => array(
218
-				'name' => esc_html__( 'Footer Menu', 'lsx' ),
218
+				'name' => esc_html__('Footer Menu', 'lsx'),
219 219
 				'items' => array(
220 220
 					'page_about',
221 221
 					'page_contact',
@@ -228,21 +228,21 @@  discard block
 block discarded – undo
228 228
 			'lsx_header_search' => '1',
229 229
 			'lsx_layout' => '1c',
230 230
 		),
231
-	) );
231
+	));
232 232
 }
233 233
 endif; // lsx_setup
234
-add_action( 'after_setup_theme', 'lsx_setup' );
234
+add_action('after_setup_theme', 'lsx_setup');
235 235
 
236 236
 /**
237 237
  * Removes the "Custom Fields" meta box.
238 238
  */
239 239
 function lsx_remove_meta_boxes() {
240 240
 	$post_types = get_post_types();
241
-	foreach($post_types as $post_type){
242
-		remove_meta_box( 'postcustom' , $post_type , 'normal' ); 
241
+	foreach ($post_types as $post_type) {
242
+		remove_meta_box('postcustom', $post_type, 'normal'); 
243 243
 	}
244 244
 }
245
-add_action( 'admin_menu' , 'lsx_remove_meta_boxes' );
245
+add_action('admin_menu', 'lsx_remove_meta_boxes');
246 246
 
247 247
 /**
248 248
  * Overwrite the $content_width var, based on the layout of the page.
@@ -254,33 +254,33 @@  discard block
 block discarded – undo
254 254
 function lsx_process_content_width() {
255 255
 	global $content_width;
256 256
 
257
-	if(
257
+	if (
258 258
 		is_page_template('page-templates/template-portfolio.php') ||
259 259
 		is_page_template('page-templates/template-front-page.php') ||
260 260
 		is_page_template('page-templates/template-full-width.php') ||
261 261
 		is_post_type_archive('jetpack-portfolio') ||
262
-		is_tax(array('jetpack-portfolio-type','jetpack-portfolio-tag')) ||
262
+		is_tax(array('jetpack-portfolio-type', 'jetpack-portfolio-tag')) ||
263 263
 		is_singular('jetpack-portfolio')
264
-	){
264
+	) {
265 265
 		$content_width = 1140;
266 266
 	}
267 267
 }
268
-add_action('wp_head','lsx_process_content_width');
268
+add_action('wp_head', 'lsx_process_content_width');
269 269
 
270 270
 /**
271 271
  * Disable the comments form by default for the page post type.
272 272
  * @package	lsx
273 273
  * @subpackage config
274 274
  */
275
-function lsx_page_comments_off( $data ) {
276
-	if ( 'page' == $data['post_type'] && 'auto-draft' == $data['post_status'] && esc_html__( 'Auto Draft', 'lsx' ) == $data['post_title'] ) {
275
+function lsx_page_comments_off($data) {
276
+	if ('page' == $data['post_type'] && 'auto-draft' == $data['post_status'] && esc_html__('Auto Draft', 'lsx') == $data['post_title']) {
277 277
 		$data['comment_status'] = 0;
278 278
 		$data['ping_status'] = 0;
279 279
 	}
280 280
 
281 281
 	return $data;
282 282
 }
283
-add_filter( 'wp_insert_post_data', 'lsx_page_comments_off' );
283
+add_filter('wp_insert_post_data', 'lsx_page_comments_off');
284 284
 
285 285
 /**
286 286
  * Disable the comments form by default for the page post type.
@@ -288,14 +288,14 @@  discard block
 block discarded – undo
288 288
  * @subpackage config
289 289
  */
290 290
 function lsx_is_legacy($data) {
291
-	if ( 'page' == $data['post_type'] && 'auto-draft' == $data['post_status'] && esc_html__( 'Auto Draft', 'lsx' ) == $data['post_title'] ) {
291
+	if ('page' == $data['post_type'] && 'auto-draft' == $data['post_status'] && esc_html__('Auto Draft', 'lsx') == $data['post_title']) {
292 292
 		$data['comment_status'] = 0;
293 293
 		$data['ping_status'] = 0;
294 294
 	}
295 295
 
296 296
 	return $data;
297 297
 }
298
-add_filter( 'wp_insert_post_data', 'lsx_page_comments_off' );
298
+add_filter('wp_insert_post_data', 'lsx_page_comments_off');
299 299
 
300 300
 /**
301 301
  * Run the init command
@@ -303,11 +303,11 @@  discard block
 block discarded – undo
303 303
  * @subpackage config
304 304
  */
305 305
 function lsx_init() {
306
-	if(class_exists('WooCommerce')){
307
-		remove_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20, 0 );
306
+	if (class_exists('WooCommerce')) {
307
+		remove_action('woocommerce_before_main_content', 'woocommerce_breadcrumb', 20, 0);
308 308
 	}
309 309
 }
310
-add_action( 'init', 'lsx_init',100 );
310
+add_action('init', 'lsx_init', 100);
311 311
 
312 312
 /**
313 313
  * Run on the wp_head 
@@ -316,11 +316,11 @@  discard block
 block discarded – undo
316 316
  */
317 317
 function lsx_wp_head() {
318 318
 
319
-	$layout = get_theme_mod('lsx_layout','2cr');
320
-	$layout = apply_filters( 'lsx_layout', $layout );
319
+	$layout = get_theme_mod('lsx_layout', '2cr');
320
+	$layout = apply_filters('lsx_layout', $layout);
321 321
 
322
-	if('1c' === $layout && (is_author() || is_search() || is_post_type_archive(array('post','page','jetpack-portfolio')) || is_tag() || is_category() || is_date() || is_tax()) ){
323
-		remove_action('lsx_content_top', 'lsx_breadcrumbs', 100 );
322
+	if ('1c' === $layout && (is_author() || is_search() || is_post_type_archive(array('post', 'page', 'jetpack-portfolio')) || is_tag() || is_category() || is_date() || is_tax())) {
323
+		remove_action('lsx_content_top', 'lsx_breadcrumbs', 100);
324 324
 	}
325 325
 }
326
-add_action( 'wp_head', 'lsx_wp_head',100 );
326
+add_action('wp_head', 'lsx_wp_head', 100);
Please login to merge, or discard this patch.