Completed
Push — master ( 9952ba...429fe4 )
by
unknown
03:23
created
inc/the-events-calendar.php 3 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
  */
19 19
 
20 20
 function lsx_events_styles() {
21
-    wp_enqueue_style( 'events', get_template_directory_uri() . '/css/the-events-calendar.css' );
21
+	wp_enqueue_style( 'events', get_template_directory_uri() . '/css/the-events-calendar.css' );
22 22
 }
23 23
 add_action( 'wp_enqueue_scripts', 'lsx_events_styles' );
24 24
 
Please login to merge, or discard this patch.
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -18,9 +18,9 @@  discard block
 block discarded – undo
18 18
  */
19 19
 
20 20
 function lsx_events_styles() {
21
-    wp_enqueue_style( 'events', get_template_directory_uri() . '/css/the-events-calendar.css' );
21
+    wp_enqueue_style('events', get_template_directory_uri() . '/css/the-events-calendar.css');
22 22
 }
23
-add_action( 'wp_enqueue_scripts', 'lsx_events_styles' );
23
+add_action('wp_enqueue_scripts', 'lsx_events_styles');
24 24
 
25 25
 
26 26
 /**
@@ -32,41 +32,41 @@  discard block
 block discarded – undo
32 32
 
33 33
 function lsx_tribe_breadcrumbs($output) {
34 34
 	global $wp_query;
35
-	if( (isset($wp_query->tribe_is_event) && true === $wp_query->tribe_is_event) || (isset($wp_query->query_vars['post_type']) && !is_array($wp_query->query_vars['post_type']) && 'tribe_venue' === $wp_query->query_vars['post_type'])){
36
-		if(function_exists('woocommerce_breadcrumb')){
35
+	if ((isset($wp_query->tribe_is_event) && true === $wp_query->tribe_is_event) || (isset($wp_query->query_vars['post_type']) && ! is_array($wp_query->query_vars['post_type']) && 'tribe_venue' === $wp_query->query_vars['post_type'])) {
36
+		if (function_exists('woocommerce_breadcrumb')) {
37 37
 		 	$closing_div = '</nav>';
38 38
 
39
-		 	if( is_single()) {
40
-		 		$output = str_replace('Page','<a href="'.get_post_type_archive_link( 'tribe_events' ).'">'.__('Events','lsx').'</a>',$output);
41
-		 		if(isset($wp_query->query_vars['eventDisplay']) && 'all' === $wp_query->query_vars['eventDisplay']){
42
-		 			$output = str_replace($closing_div,get_the_title($wp_query->query_vars['post_parent']).$closing_div,$output);
43
-		 		}else{
39
+		 	if (is_single()) {
40
+		 		$output = str_replace('Page', '<a href="' . get_post_type_archive_link('tribe_events') . '">' . __('Events', 'lsx') . '</a>', $output);
41
+		 		if (isset($wp_query->query_vars['eventDisplay']) && 'all' === $wp_query->query_vars['eventDisplay']) {
42
+		 			$output = str_replace($closing_div, get_the_title($wp_query->query_vars['post_parent']) . $closing_div, $output);
43
+		 		} else {
44 44
 		 			$single_event = get_queried_object();
45
-		 			$output = str_replace($closing_div,apply_filters('the_title',$single_event->post_title).$closing_div,$output);		 			
45
+		 			$output = str_replace($closing_div, apply_filters('the_title', $single_event->post_title) . $closing_div, $output);		 			
46 46
 		 		}
47
-		 	}elseif( is_tax()) {
47
+		 	}elseif (is_tax()) {
48 48
 		 		$tax_event = get_queried_object();
49
-		 		$output = str_replace('Page','<a href="'.get_post_type_archive_link( 'tribe_events' ).'">'.__('Events','lsx').'</a>',$output);
50
-		 		$output = str_replace($closing_div,'&nbsp;/&nbsp;'.apply_filters('the_title',$tax_event->name).$closing_div,$output);
51
-		 	}else{
52
-		 		$output = str_replace('Page',__('Events','lsx'),$output);
49
+		 		$output = str_replace('Page', '<a href="' . get_post_type_archive_link('tribe_events') . '">' . __('Events', 'lsx') . '</a>', $output);
50
+		 		$output = str_replace($closing_div, '&nbsp;/&nbsp;' . apply_filters('the_title', $tax_event->name) . $closing_div, $output);
51
+		 	} else {
52
+		 		$output = str_replace('Page', __('Events', 'lsx'), $output);
53 53
 		 	}		 	
54
-		 }elseif(function_exists('yoast_breadcrumb')){
54
+		 }elseif (function_exists('yoast_breadcrumb')) {
55 55
 		 	$closing_div = '</div>';
56
-		 	$last_breadcrumb = '<span class="breadcrumb_last">'.__('Events','lsx').'</span>';
56
+		 	$last_breadcrumb = '<span class="breadcrumb_last">' . __('Events', 'lsx') . '</span>';
57 57
 		 	
58
-		 	if( is_single()) {
58
+		 	if (is_single()) {
59 59
 		 		$single_event = get_queried_object();
60
-		 		$output = str_replace($closing_div,'<a href="'.get_post_type_archive_link( 'tribe_events' ).'">'.__('Events','lsx').'</a>&nbsp;/&nbsp;'.apply_filters('the_title',$single_event->post_title),$output);
61
-		 	}elseif( is_tax()) {
60
+		 		$output = str_replace($closing_div, '<a href="' . get_post_type_archive_link('tribe_events') . '">' . __('Events', 'lsx') . '</a>&nbsp;/&nbsp;' . apply_filters('the_title', $single_event->post_title), $output);
61
+		 	}elseif (is_tax()) {
62 62
 		 		$tax_event = get_queried_object();
63
-		 		$output = str_replace($last_breadcrumb,'<a href="'.get_post_type_archive_link( 'tribe_events' ).'">'.__('Events','lsx').'</a>&nbsp;/&nbsp;'.apply_filters('the_title',$tax_event->name),$output);
63
+		 		$output = str_replace($last_breadcrumb, '<a href="' . get_post_type_archive_link('tribe_events') . '">' . __('Events', 'lsx') . '</a>&nbsp;/&nbsp;' . apply_filters('the_title', $tax_event->name), $output);
64 64
 		 		
65
-		 	}else{
66
-		 		$output = str_replace('Page',__('Events','lsx'),$output);
65
+		 	} else {
66
+		 		$output = str_replace('Page', __('Events', 'lsx'), $output);
67 67
 		 	}		 	
68 68
 		 }		
69 69
 	}
70 70
 	return $output;
71 71
 }
72
-add_filter( 'lsx_breadcrumbs', 'lsx_tribe_breadcrumbs',1,10 );
73 72
\ No newline at end of file
73
+add_filter('lsx_breadcrumbs', 'lsx_tribe_breadcrumbs', 1, 10);
74 74
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -40,29 +40,29 @@
 block discarded – undo
40 40
 		 		$output = str_replace('Page','<a href="'.get_post_type_archive_link( 'tribe_events' ).'">'.__('Events','lsx').'</a>',$output);
41 41
 		 		if(isset($wp_query->query_vars['eventDisplay']) && 'all' === $wp_query->query_vars['eventDisplay']){
42 42
 		 			$output = str_replace($closing_div,get_the_title($wp_query->query_vars['post_parent']).$closing_div,$output);
43
-		 		}else{
43
+		 		} else{
44 44
 		 			$single_event = get_queried_object();
45 45
 		 			$output = str_replace($closing_div,apply_filters('the_title',$single_event->post_title).$closing_div,$output);		 			
46 46
 		 		}
47
-		 	}elseif( is_tax()) {
47
+		 	} elseif( is_tax()) {
48 48
 		 		$tax_event = get_queried_object();
49 49
 		 		$output = str_replace('Page','<a href="'.get_post_type_archive_link( 'tribe_events' ).'">'.__('Events','lsx').'</a>',$output);
50 50
 		 		$output = str_replace($closing_div,'&nbsp;/&nbsp;'.apply_filters('the_title',$tax_event->name).$closing_div,$output);
51
-		 	}else{
51
+		 	} else{
52 52
 		 		$output = str_replace('Page',__('Events','lsx'),$output);
53 53
 		 	}		 	
54
-		 }elseif(function_exists('yoast_breadcrumb')){
54
+		 } elseif(function_exists('yoast_breadcrumb')){
55 55
 		 	$closing_div = '</div>';
56 56
 		 	$last_breadcrumb = '<span class="breadcrumb_last">'.__('Events','lsx').'</span>';
57 57
 		 	
58 58
 		 	if( is_single()) {
59 59
 		 		$single_event = get_queried_object();
60 60
 		 		$output = str_replace($closing_div,'<a href="'.get_post_type_archive_link( 'tribe_events' ).'">'.__('Events','lsx').'</a>&nbsp;/&nbsp;'.apply_filters('the_title',$single_event->post_title),$output);
61
-		 	}elseif( is_tax()) {
61
+		 	} elseif( is_tax()) {
62 62
 		 		$tax_event = get_queried_object();
63 63
 		 		$output = str_replace($last_breadcrumb,'<a href="'.get_post_type_archive_link( 'tribe_events' ).'">'.__('Events','lsx').'</a>&nbsp;/&nbsp;'.apply_filters('the_title',$tax_event->name),$output);
64 64
 		 		
65
-		 	}else{
65
+		 	} else{
66 66
 		 		$output = str_replace('Page',__('Events','lsx'),$output);
67 67
 		 	}		 	
68 68
 		 }		
Please login to merge, or discard this patch.
inc/customizer-colour-options.php 2 patches
Spacing   +61 added lines, -61 removed lines patch added patch discarded remove patch
@@ -1,66 +1,66 @@  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
 global $customizer_colour_names;
5 5
 global $customizer_colour_choices;
6 6
 
7
-$customizer_colour_names = apply_filters( 'lsx_customizer_colour_names', array(
8
-	'button_background_color'           => esc_html__( 'BUTTON: Background', 'lsx' ),
9
-	'button_background_hover_color'     => esc_html__( 'BUTTON: Background (hover)', 'lsx' ),
10
-	'button_text_color'                 => esc_html__( 'BUTTON: Text', 'lsx' ),
11
-	'button_text_color_hover'           => esc_html__( 'BUTTON: Text (hover)', 'lsx' ),
7
+$customizer_colour_names = apply_filters('lsx_customizer_colour_names', array(
8
+	'button_background_color'           => esc_html__('BUTTON: Background', 'lsx'),
9
+	'button_background_hover_color'     => esc_html__('BUTTON: Background (hover)', 'lsx'),
10
+	'button_text_color'                 => esc_html__('BUTTON: Text', 'lsx'),
11
+	'button_text_color_hover'           => esc_html__('BUTTON: Text (hover)', 'lsx'),
12 12
 
13
-	'button_cta_background_color'       => esc_html__( 'BUTTON CTA: Background', 'lsx' ),
14
-	'button_cta_background_hover_color' => esc_html__( 'BUTTON CTA: Background (hover)', 'lsx' ),
15
-	'button_cta_text_color'             => esc_html__( 'BUTTON CTA: Text', 'lsx' ),
16
-	'button_cta_text_color_hover'       => esc_html__( 'BUTTON CTA: Text (hover)', 'lsx' ),
13
+	'button_cta_background_color'       => esc_html__('BUTTON CTA: Background', 'lsx'),
14
+	'button_cta_background_hover_color' => esc_html__('BUTTON CTA: Background (hover)', 'lsx'),
15
+	'button_cta_text_color'             => esc_html__('BUTTON CTA: Text', 'lsx'),
16
+	'button_cta_text_color_hover'       => esc_html__('BUTTON CTA: Text (hover)', 'lsx'),
17 17
 
18
-	'top_menu_background_color'         => esc_html__( 'TOP MENU: Background', 'lsx' ),
19
-	'top_menu_text_color'               => esc_html__( 'TOP MENU: Text', 'lsx' ),
20
-	'top_menu_text_hover_color'         => esc_html__( 'TOP MENU: Text (hover)', 'lsx' ),
18
+	'top_menu_background_color'         => esc_html__('TOP MENU: Background', 'lsx'),
19
+	'top_menu_text_color'               => esc_html__('TOP MENU: Text', 'lsx'),
20
+	'top_menu_text_hover_color'         => esc_html__('TOP MENU: Text (hover)', 'lsx'),
21 21
 
22
-	'header_background_color'           => esc_html__( 'HEADER: Background', 'lsx' ),
23
-	'header_title_color'                => esc_html__( 'HEADER: Title', 'lsx' ),
24
-	'header_title_hover_color'          => esc_html__( 'HEADER: Title (hover)', 'lsx' ),
25
-	'header_description_color'          => esc_html__( 'HEADER: Description', 'lsx' ),
22
+	'header_background_color'           => esc_html__('HEADER: Background', 'lsx'),
23
+	'header_title_color'                => esc_html__('HEADER: Title', 'lsx'),
24
+	'header_title_hover_color'          => esc_html__('HEADER: Title (hover)', 'lsx'),
25
+	'header_description_color'          => esc_html__('HEADER: Description', 'lsx'),
26 26
 
27
-	'main_menu_background_hover1_color' => esc_html__( 'MENU: Background (L1 hover)', 'lsx' ),
28
-	'main_menu_background_hover2_color' => esc_html__( 'MENU: Background (L2 hover)', 'lsx' ),
29
-	'main_menu_text_color'              => esc_html__( 'MENU: Text (L1)', 'lsx' ),
30
-	'main_menu_text_hover1_color'       => esc_html__( 'MENU: Text (L1 hover)', 'lsx' ),
31
-	'main_menu_text_hover2_color'       => esc_html__( 'MENU: Text (L2 hover)', 'lsx' ),
27
+	'main_menu_background_hover1_color' => esc_html__('MENU: Background (L1 hover)', 'lsx'),
28
+	'main_menu_background_hover2_color' => esc_html__('MENU: Background (L2 hover)', 'lsx'),
29
+	'main_menu_text_color'              => esc_html__('MENU: Text (L1)', 'lsx'),
30
+	'main_menu_text_hover1_color'       => esc_html__('MENU: Text (L1 hover)', 'lsx'),
31
+	'main_menu_text_hover2_color'       => esc_html__('MENU: Text (L2 hover)', 'lsx'),
32 32
 
33
-	'banner_background_color'           => esc_html__( 'BANNER: Background', 'lsx' ),
34
-	'banner_text_color'                 => esc_html__( 'BANNER: Text', 'lsx' ),
35
-	'banner_text_image_color'           => esc_html__( 'BANNER: Text (over image)', 'lsx' ),
33
+	'banner_background_color'           => esc_html__('BANNER: Background', 'lsx'),
34
+	'banner_text_color'                 => esc_html__('BANNER: Text', 'lsx'),
35
+	'banner_text_image_color'           => esc_html__('BANNER: Text (over image)', 'lsx'),
36 36
 
37
-	'body_background_color'             => esc_html__( 'BODY: Background', 'lsx' ),
38
-	'body_line_color'                   => esc_html__( 'BODY: Line', 'lsx' ),
39
-	'body_text_heading_color'           => esc_html__( 'BODY: Text (heading)', 'lsx' ),
40
-	'body_text_color'                   => esc_html__( 'BODY: Text', 'lsx' ),
41
-	'body_link_color'                   => esc_html__( 'BODY: Link', 'lsx' ),
42
-	'body_link_hover_color'             => esc_html__( 'BODY: Link (hover)', 'lsx' ),
37
+	'body_background_color'             => esc_html__('BODY: Background', 'lsx'),
38
+	'body_line_color'                   => esc_html__('BODY: Line', 'lsx'),
39
+	'body_text_heading_color'           => esc_html__('BODY: Text (heading)', 'lsx'),
40
+	'body_text_color'                   => esc_html__('BODY: Text', 'lsx'),
41
+	'body_link_color'                   => esc_html__('BODY: Link', 'lsx'),
42
+	'body_link_hover_color'             => esc_html__('BODY: Link (hover)', 'lsx'),
43 43
 
44
-	'footer_cta_background_color'       => esc_html__( 'FOOTER CTA: Background', 'lsx' ),
45
-	'footer_cta_text_color'             => esc_html__( 'FOOTER CTA: Text', 'lsx' ),
46
-	'footer_cta_link_color'             => esc_html__( 'FOOTER CTA: Link', 'lsx' ),
47
-	'footer_cta_link_hover_color'       => esc_html__( 'FOOTER CTA: Link (hover)', 'lsx' ),
44
+	'footer_cta_background_color'       => esc_html__('FOOTER CTA: Background', 'lsx'),
45
+	'footer_cta_text_color'             => esc_html__('FOOTER CTA: Text', 'lsx'),
46
+	'footer_cta_link_color'             => esc_html__('FOOTER CTA: Link', 'lsx'),
47
+	'footer_cta_link_hover_color'       => esc_html__('FOOTER CTA: Link (hover)', 'lsx'),
48 48
 
49
-	'footer_widgets_background_color'   => esc_html__( 'FOOTER WIDGETS: Background', 'lsx' ),
50
-	'footer_widgets_text_color'         => esc_html__( 'FOOTER WIDGETS: Text', 'lsx' ),
51
-	'footer_widgets_link_color'         => esc_html__( 'FOOTER WIDGETS: Link', 'lsx' ),
52
-	'footer_widgets_link_hover_color'   => esc_html__( 'FOOTER WIDGETS: Link (hover)', 'lsx' ),
49
+	'footer_widgets_background_color'   => esc_html__('FOOTER WIDGETS: Background', 'lsx'),
50
+	'footer_widgets_text_color'         => esc_html__('FOOTER WIDGETS: Text', 'lsx'),
51
+	'footer_widgets_link_color'         => esc_html__('FOOTER WIDGETS: Link', 'lsx'),
52
+	'footer_widgets_link_hover_color'   => esc_html__('FOOTER WIDGETS: Link (hover)', 'lsx'),
53 53
 
54
-	'footer_background_color'           => esc_html__( 'FOOTER: Background', 'lsx' ),
55
-	'footer_text_color'                 => esc_html__( 'FOOTER: Text', 'lsx' ),
56
-	'footer_link_color'                 => esc_html__( 'FOOTER: Link', 'lsx' ),
57
-	'footer_link_hover_color'           => esc_html__( 'FOOTER: Link (hover)', 'lsx' )
58
-) );
54
+	'footer_background_color'           => esc_html__('FOOTER: Background', 'lsx'),
55
+	'footer_text_color'                 => esc_html__('FOOTER: Text', 'lsx'),
56
+	'footer_link_color'                 => esc_html__('FOOTER: Link', 'lsx'),
57
+	'footer_link_hover_color'           => esc_html__('FOOTER: Link (hover)', 'lsx')
58
+));
59 59
 
60
-$customizer_colour_choices = apply_filters( 'lsx_customizer_colour_choices', array(
60
+$customizer_colour_choices = apply_filters('lsx_customizer_colour_choices', array(
61 61
 	'default' => array(
62
-		'label'  => __( 'Default', 'lsx' ),
63
-		'colors' => apply_filters( 'lsx_customizer_colour_choices_default', array(
62
+		'label'  => __('Default', 'lsx'),
63
+		'colors' => apply_filters('lsx_customizer_colour_choices_default', array(
64 64
 			// Button
65 65
 			'#428bca', '#2a6496', '#ffffff', '#ffffff',
66 66
 			// Button CTA
@@ -81,11 +81,11 @@  discard block
 block discarded – undo
81 81
 			'#333333', '#eeeeee', '#dddddd', '#cccccc',
82 82
 			// Footer
83 83
 			'#232222', '#ffffff', '#337ab7', '#969696'
84
-		) )
84
+		))
85 85
 	),
86 86
 	'red' => array(
87
-		'label'  => __( 'Red', 'lsx' ),
88
-		'colors' => apply_filters( 'lsx_customizer_colour_choices_red', array(
87
+		'label'  => __('Red', 'lsx'),
88
+		'colors' => apply_filters('lsx_customizer_colour_choices_red', array(
89 89
 			// Button
90 90
 			'#b64d3f', '#87291c', '#ffffff', '#ffffff',
91 91
 			// Button CTA
@@ -106,11 +106,11 @@  discard block
 block discarded – undo
106 106
 			'#333333', '#eeeeee', '#dddddd', '#cccccc',
107 107
 			// Footer
108 108
 			'#232222', '#ffffff', '#b64d3f', '#969696'
109
-		) )
109
+		))
110 110
 	),
111 111
 	'orange' => array(
112
-		'label'  => __( 'Orange', 'lsx' ),
113
-		'colors' => apply_filters( 'lsx_customizer_colour_choices_orange', array(
112
+		'label'  => __('Orange', 'lsx'),
113
+		'colors' => apply_filters('lsx_customizer_colour_choices_orange', array(
114 114
 			// Button
115 115
 			'#fbaf3f', '#e49435', '#260e03', '#260e03',
116 116
 			// Button CTA
@@ -131,11 +131,11 @@  discard block
 block discarded – undo
131 131
 			'#333333', '#eeeeee', '#dddddd', '#cccccc',
132 132
 			// Footer
133 133
 			'#232222', '#ffffff', '#e4701e', '#969696'
134
-		) )
134
+		))
135 135
 	),
136 136
 	'green' => array(
137
-		'label'  => __( 'Green', 'lsx' ),
138
-		'colors' => apply_filters( 'lsx_customizer_colour_choices_green', array(
137
+		'label'  => __('Green', 'lsx'),
138
+		'colors' => apply_filters('lsx_customizer_colour_choices_green', array(
139 139
 			// Button
140 140
 			'#596b46', '#3d4a30', '#ffffff', '#ffffff',
141 141
 			// Button CTA
@@ -156,11 +156,11 @@  discard block
 block discarded – undo
156 156
 			'#333333', '#eeeeee', '#dddddd', '#cccccc',
157 157
 			// Footer
158 158
 			'#232222', '#ffffff', '#596b46', '#969696'
159
-		) )
159
+		))
160 160
 	),
161 161
 	'brown' => array(
162
-		'label'  => __( 'Brown', 'lsx' ),
163
-		'colors' => apply_filters( 'lsx_customizer_colour_choices_brown', array(
162
+		'label'  => __('Brown', 'lsx'),
163
+		'colors' => apply_filters('lsx_customizer_colour_choices_brown', array(
164 164
 			// Button
165 165
 			'#8c6a45', '#5b452e', '#ffffff', '#ffffff',
166 166
 			// Button CTA
@@ -181,8 +181,8 @@  discard block
 block discarded – undo
181 181
 			'#333333', '#eeeeee', '#dddddd', '#cccccc',
182 182
 			// Footer
183 183
 			'#232222', '#ffffff', '#8c6a45', '#969696'
184
-		) )
184
+		))
185 185
 	)
186
-) );
186
+));
187 187
 
188 188
 ?>
189 189
\ 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
@@ -1,5 +1,8 @@
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) return; // Exit if accessed directly
2
+if ( ! defined( 'ABSPATH' ) ) {
3
+	return;
4
+}
5
+// Exit if accessed directly
3 6
 
4 7
 /**
5 8
  * Customize Swatch Control Class
Please login to merge, or discard this patch.
inc/customizer-layout.php 2 patches
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@  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
  * Customize Swatch Control Class
6 6
  *
7 7
  * @since 1.0.0
8 8
  */
9
-if( !class_exists( 'WP_Customize_Control' ) ){
9
+if ( ! class_exists('WP_Customize_Control')) {
10 10
 	return;
11 11
 }
12 12
 class LSX_Customize_Layout_Control extends WP_Customize_Control {
@@ -38,9 +38,9 @@  discard block
 block discarded – undo
38 38
 	 * @param string $id
39 39
 	 * @param array $args
40 40
 	 */
41
-	public function __construct( $manager, $id, $args = array() ) {
42
-		parent::__construct( $manager, $id, $args );
43
-		if( !empty( $args['choices'] ) ){
41
+	public function __construct($manager, $id, $args = array()) {
42
+		parent::__construct($manager, $id, $args);
43
+		if ( ! empty($args['choices'])) {
44 44
 			$this->layouts = $args['choices'];
45 45
 		}
46 46
 	}
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 	 */
53 53
 	public function enqueue() {
54 54
 		// 
55
-		wp_enqueue_script( 'lsx-layout-control', get_template_directory_uri() .'/js/customizer-layout.js', array('jquery'), null, true );
55
+		wp_enqueue_script('lsx-layout-control', get_template_directory_uri() . '/js/customizer-layout.js', array('jquery'), null, true);
56 56
 	}
57 57
 
58 58
 	/**
@@ -62,26 +62,26 @@  discard block
 block discarded – undo
62 62
 	 */
63 63
 	public function render_content() {
64 64
 		
65
-		$post_id    = 'customize-control-' . str_replace( '[', '-', str_replace( ']', '', $this->id ) );
65
+		$post_id = 'customize-control-' . str_replace('[', '-', str_replace(']', '', $this->id));
66 66
 		$class = 'customize-control customize-control-' . $this->type;
67 67
 		$value = $this->value();
68 68
 
69 69
 		?>
70 70
 		<label>
71
-			<?php if ( ! empty( $this->label ) ) { ?>
72
-				<span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span>
71
+			<?php if ( ! empty($this->label)) { ?>
72
+				<span class="customize-control-title"><?php echo esc_html($this->label); ?></span>
73 73
 			<?php }
74
-			if ( ! empty( $this->description ) ) { ?>
74
+			if ( ! empty($this->description)) { ?>
75 75
 				<span class="description customize-control-description"><?php echo $this->description; ?></span>
76 76
 			<?php } ?>
77 77
 			<div class="layouts-selector">
78 78
 			<?php
79
-			foreach( $this->layouts as $layout ){
79
+			foreach ($this->layouts as $layout) {
80 80
 				$sel = 'border: 1px solid transparent;';
81
-				if( $value == $layout ){
81
+				if ($value == $layout) {
82 82
 					$sel = 'border: 1px solid rgb(43, 166, 203);';
83 83
 				}
84
-				echo '<img class="layout-button" style="padding:2px;'. $sel .'" src="' . get_template_directory_uri() .'/img/' . $layout . '.png" data-option="' . $layout . '">';
84
+				echo '<img class="layout-button" style="padding:2px;' . $sel . '" src="' . get_template_directory_uri() . '/img/' . $layout . '.png" data-option="' . $layout . '">';
85 85
 			}
86 86
 
87 87
 			?>
Please login to merge, or discard this patch.
Braces   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,8 @@
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) return; // Exit if accessed directly
2
+if ( ! defined( 'ABSPATH' ) ) {
3
+	return;
4
+}
5
+// Exit if accessed directly
3 6
 
4 7
 /**
5 8
  * Customize Swatch Control Class
Please login to merge, or discard this patch.
functions.php 2 patches
Braces   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,8 @@
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) return; // Exit if accessed directly
2
+if ( ! defined( 'ABSPATH' ) ) {
3
+	return;
4
+}
5
+// Exit if accessed directly
3 6
 
4 7
 /**
5 8
  * Customize Swatch Control Class
Please login to merge, or discard this patch.
Spacing   +44 added lines, -44 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.7.3');
10 10
 
@@ -21,22 +21,22 @@  discard block
 block discarded – undo
21 21
 require get_template_directory() . '/inc/comment-walker.php';
22 22
 require get_template_directory() . '/inc/jetpack.php';
23 23
 require get_template_directory() . '/inc/lazyload.php';
24
-if(class_exists('BuddyPress')){
24
+if (class_exists('BuddyPress')) {
25 25
 	require get_template_directory() . '/inc/buddypress.php';
26 26
 }
27
-if(class_exists('WooCommerce')){
27
+if (class_exists('WooCommerce')) {
28 28
 	require get_template_directory() . '/inc/woocommerce.php';
29 29
 }
30
-if(class_exists('WP_Job_Manager')){
30
+if (class_exists('WP_Job_Manager')) {
31 31
 	require get_template_directory() . '/inc/wp-job-manager.php';
32 32
 }
33
-if(class_exists('Tribe__Events__Main')){
33
+if (class_exists('Tribe__Events__Main')) {
34 34
 	require get_template_directory() . '/inc/the-events-calendar.php';
35 35
 }
36 36
 require get_template_directory() . '/inc/template-tags.php';
37 37
 require get_template_directory() . '/inc/extras.php';
38 38
 require get_template_directory() . '/inc/wp_bootstrap_navwalker.php';
39
-if(class_exists('Sensei_WC')){
39
+if (class_exists('Sensei_WC')) {
40 40
 	require get_template_directory() . '/inc/sensei.php';
41 41
 }
42 42
 
@@ -48,10 +48,10 @@  discard block
 block discarded – undo
48 48
  * @category	customizer
49 49
  * @return		$lsx_controls array()
50 50
  */
51
-function lsx_customizer_core_controls( $lsx_controls ) {
51
+function lsx_customizer_core_controls($lsx_controls) {
52 52
 	$lsx_controls['sections']['lsx-core'] = array(
53
-		'title'       =>  esc_html__( 'Core Settings', 'lsx' ),
54
-		'description' => __( 'Change the core settings.', 'lsx' ),
53
+		'title'       =>  esc_html__('Core Settings', 'lsx'),
54
+		'description' => __('Change the core settings.', 'lsx'),
55 55
 		'priority'    => 21
56 56
 	);
57 57
 
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 	);
63 63
 
64 64
 	$lsx_controls['fields']['lsx_lazyload_status'] = array(
65
-		'label'         =>  __( 'Lazy Loading Images', 'lsx' ),
65
+		'label'         =>  __('Lazy Loading Images', 'lsx'),
66 66
 		'section'       =>  'lsx-core',
67 67
 		'type'          =>  'checkbox',
68 68
 	);
@@ -74,14 +74,14 @@  discard block
 block discarded – undo
74 74
 	);
75 75
 
76 76
 	$lsx_controls['fields']['lsx_preloader_content_status'] = array(
77
-		'label'         =>  __( 'Preloader Content', 'lsx' ),
77
+		'label'         =>  __('Preloader Content', 'lsx'),
78 78
 		'section'       =>  'lsx-core',
79 79
 		'type'          =>  'checkbox',
80 80
 	);
81 81
 
82 82
 	return $lsx_controls;
83 83
 }
84
-add_filter( 'lsx_customizer_controls', 'lsx_customizer_core_controls' );
84
+add_filter('lsx_customizer_controls', 'lsx_customizer_core_controls');
85 85
 
86 86
 /**
87 87
  * Returns an array of the colour scheme picker.
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
  * @category	customizer
92 92
  * @return		$lsx_controls array()
93 93
  */
94
-function lsx_customizer_colour_scheme_controls( $lsx_controls ) {
94
+function lsx_customizer_colour_scheme_controls($lsx_controls) {
95 95
 	global $customizer_colour_names;
96 96
 	global $customizer_colour_choices;
97 97
 	
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 	);
103 103
 
104 104
 	$lsx_controls['fields']['color_scheme'] = array(
105
-		'label'         =>  esc_html__( 'Base Color Scheme', 'lsx' ),
105
+		'label'         =>  esc_html__('Base Color Scheme', 'lsx'),
106 106
 		'section'       =>  'colors',
107 107
 		'type'          =>  'select',
108 108
 		'priority'      =>  1,
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
 
113 113
 	$counter = 0;
114 114
 
115
-	foreach ( $customizer_colour_names as $key => $value ) {
115
+	foreach ($customizer_colour_names as $key => $value) {
116 116
 		$lsx_controls['settings'][$key] = array(
117 117
 			'default'       =>  $customizer_colour_choices['default']['colors'][$counter],
118 118
 			'type'	        =>  'theme_mod',
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
 
132 132
 	return $lsx_controls;
133 133
 }
134
-add_filter( 'lsx_customizer_controls', 'lsx_customizer_colour_scheme_controls' );
134
+add_filter('lsx_customizer_controls', 'lsx_customizer_colour_scheme_controls');
135 135
 
136 136
 /**
137 137
  * Returns an array of the layout panel.
@@ -142,56 +142,56 @@  discard block
 block discarded – undo
142 142
  * @return		$lsx_controls array()
143 143
  */
144 144
 function lsx_customizer_layout_controls($lsx_controls) {
145
-	$lsx_controls['settings']['lsx_header_layout']  = array(
145
+	$lsx_controls['settings']['lsx_header_layout'] = array(
146 146
 			'default'       =>  'inline', //Default setting/value to save
147 147
 			'type'        =>  'theme_mod', //Is this an 'option' or a 'theme_mod'?
148 148
 			'transport'     =>  'postMessage', //What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?
149 149
 	);
150 150
 	$lsx_controls['fields']['lsx_header_layout'] = array(
151
-			'label'         =>  __('Header','lsx'),
151
+			'label'         =>  __('Header', 'lsx'),
152 152
 			'section'       =>  'lsx-layout',
153 153
 			'control'   =>  'LSX_Customize_Header_Layout_Control',
154
-			'choices'		=>	array('central','expanded','inline')
154
+			'choices'		=>	array('central', 'expanded', 'inline')
155 155
 	);	
156 156
 	$lsx_controls['sections']['lsx-layout'] = array(
157
-			'title'       =>  esc_html__( 'Layout', 'lsx' ),
158
-			'description' => __( 'Change the layout sitewide. If your homepage is set to use a page with a template, the following will not apply to it.', 'lsx' ),
157
+			'title'       =>  esc_html__('Layout', 'lsx'),
158
+			'description' => __('Change the layout sitewide. If your homepage is set to use a page with a template, the following will not apply to it.', 'lsx'),
159 159
 			'priority' => 22
160 160
 	);
161
-	$lsx_controls['settings']['lsx_layout']  = array(
161
+	$lsx_controls['settings']['lsx_layout'] = array(
162 162
 			'default'       =>  '2cr', //Default setting/value to save
163 163
 			'type'        =>  'theme_mod', //Is this an 'option' or a 'theme_mod'?
164 164
 			'transport'     =>  'refresh', //What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?
165 165
 	);
166
-	$lsx_controls['settings']['lsx_header_fixed']  = array(
166
+	$lsx_controls['settings']['lsx_header_fixed'] = array(
167 167
 			'default'       =>  false, //Default setting/value to save
168 168
 			'sanitize_callback' => 'lsx_sanitize_checkbox',
169 169
 			'transport'     =>  'postMessage', //What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?
170 170
 	);
171 171
 	$lsx_controls['fields']['lsx_header_fixed'] = array(
172
-			'label'         =>  __('Fixed Header','lsx'),
172
+			'label'         =>  __('Fixed Header', 'lsx'),
173 173
 			'section'       =>  'lsx-layout',
174 174
 			'type'       =>  'checkbox',
175 175
 	);
176
-	$lsx_controls['settings']['lsx_header_search']  = array(
176
+	$lsx_controls['settings']['lsx_header_search'] = array(
177 177
 			'default'       =>  false, //Default setting/value to save
178 178
 			'sanitize_callback' => 'lsx_sanitize_checkbox',
179 179
 			'transport'     =>  'postMessage', //What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?
180 180
 	);
181 181
 	$lsx_controls['fields']['lsx_header_search'] = array(
182
-			'label'         =>  __('Search Box in Header','lsx'),
182
+			'label'         =>  __('Search Box in Header', 'lsx'),
183 183
 			'section'       =>  'lsx-layout',
184 184
 			'type'       =>  'checkbox',
185 185
 	);	
186 186
 	$lsx_controls['fields']['lsx_layout'] = array(
187
-			'label'         =>  __('Body','lsx'),
187
+			'label'         =>  __('Body', 'lsx'),
188 188
 			'section'       =>  'lsx-layout',
189 189
 			'control'   =>  'LSX_Customize_Layout_Control',
190
-			'choices'		=>	array('1c','2cr','2cl')
190
+			'choices'		=>	array('1c', '2cr', '2cl')
191 191
 	);	
192 192
 	return $lsx_controls;
193 193
 }
194
-add_filter('lsx_customizer_controls','lsx_customizer_layout_controls');
194
+add_filter('lsx_customizer_controls', 'lsx_customizer_layout_controls');
195 195
 
196 196
 /**
197 197
  * Returns an array of the font controls.
@@ -203,11 +203,11 @@  discard block
 block discarded – undo
203 203
  */
204 204
 function lsx_customizer_font_controls($lsx_controls) {
205 205
 	$lsx_controls['sections']['lsx-font'] = array(
206
-			'title'       =>  __( 'Font', 'lsx' ),
206
+			'title'       =>  __('Font', 'lsx'),
207 207
 			'description' => 'Change the fonts sitewide.',
208 208
 			'priority' => 41
209 209
 	);
210
-	$lsx_controls['settings']['lsx_font']  = array(
210
+	$lsx_controls['settings']['lsx_font'] = array(
211 211
 			'default'       =>  'raleway_open_sans', //Default setting/value to save
212 212
 			'type'        =>  'theme_mod', //Is this an 'option' or a 'theme_mod'?
213 213
 			'transport'     =>  'refresh', //What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?
@@ -221,13 +221,13 @@  discard block
 block discarded – undo
221 221
 			'choices'   =>  array(
222 222
 					'raleway_open_sans' => array(
223 223
 							'header'  => array(
224
-									"title" => __( 'Raleway', 'lsx' ),
224
+									"title" => __('Raleway', 'lsx'),
225 225
 									"location" => "Raleway",
226 226
 									"cssDeclaration" => "'Raleway', sans-serif",
227 227
 									"cssClass" => "raleway",
228 228
 							),
229 229
 							'body'  => array(
230
-									"title" => __( 'Open Sans', 'lsx' ),
230
+									"title" => __('Open Sans', 'lsx'),
231 231
 									"location" => "Open+Sans",
232 232
 									"cssDeclaration" => "'Open Sans', sans-serif",
233 233
 									"cssClass" => "openSans"
@@ -235,13 +235,13 @@  discard block
 block discarded – undo
235 235
 					),
236 236
 					'noto_serif_noto_sans' => array(
237 237
 							'header'  => array(
238
-									"title" => __( 'Noto Serif', 'lsx' ),
238
+									"title" => __('Noto Serif', 'lsx'),
239 239
 									"location" => "Noto+Serif",
240 240
 									"cssDeclaration" => "'Noto Serif', serif",
241 241
 									"cssClass" => "notoSerif",
242 242
 							),
243 243
 							'body'  => array(
244
-									"title" => __( 'Noto Sans', 'lsx' ),
244
+									"title" => __('Noto Sans', 'lsx'),
245 245
 									"location" => "Noto+Sans",
246 246
 									"cssDeclaration" => "'Noto Sans', sans-serif",
247 247
 									"cssClass" => "notoSans",
@@ -249,13 +249,13 @@  discard block
 block discarded – undo
249 249
 					),
250 250
 					'noto_sans_noto_sans' => array(
251 251
 					'header'  => array(
252
-					"title" => __( 'Noto Sans', 'lsx' ),
252
+					"title" => __('Noto Sans', 'lsx'),
253 253
 					"location" => "Noto+Sans",
254 254
 					"cssDeclaration" => "'Noto Sans', sans-serif",
255 255
 					"cssClass" => "notoSans",
256 256
 					),
257 257
 					'body'  => array(
258
-					"title" => __( 'Noto Sans', 'lsx' ),
258
+					"title" => __('Noto Sans', 'lsx'),
259 259
 					"location" => "Noto+Sans",
260 260
 					"cssDeclaration" => "'Noto Sans', sans-serif",
261 261
 					"cssClass" => "notoSans",
@@ -263,13 +263,13 @@  discard block
 block discarded – undo
263 263
 					),
264 264
 					'alegreya_open_sans' => array(
265 265
 					'header'  => array(
266
-					"title" => __( 'Alegreya', 'lsx' ),
266
+					"title" => __('Alegreya', 'lsx'),
267 267
 					"location" => "Alegreya",
268 268
 					"cssDeclaration" => "'Alegreya', serif",
269 269
 					"cssClass" => "alegreya",
270 270
 					),
271 271
 					'body'  => array(
272
-					"title" => __( 'Open Sans', 'lsx' ),
272
+					"title" => __('Open Sans', 'lsx'),
273 273
 					"location" => "Open+Sans",
274 274
 					"cssDeclaration" => "'Open Sans', sans-serif",
275 275
 					"cssClass" => "openSans"
@@ -280,7 +280,7 @@  discard block
 block discarded – undo
280 280
 	);	
281 281
 	return $lsx_controls;
282 282
 }
283
-add_filter('lsx_customizer_controls','lsx_customizer_font_controls');
283
+add_filter('lsx_customizer_controls', 'lsx_customizer_font_controls');
284 284
 
285 285
 /**
286 286
  * Returns an array of $controls for the customizer class to generate.
@@ -290,12 +290,12 @@  discard block
 block discarded – undo
290 290
  * @category	customizer
291 291
  * @return		$lsx_controls array()
292 292
  */
293
-function lsx_get_customizer_controls(){
293
+function lsx_get_customizer_controls() {
294 294
 	$lsx_controls = array();
295 295
 	$lsx_controls = apply_filters('lsx_customizer_controls', $lsx_controls);
296 296
 	return $lsx_controls;
297 297
 }
298
-$lsx_customizer = new LSX_Theme_Customizer( lsx_get_customizer_controls() );
298
+$lsx_customizer = new LSX_Theme_Customizer(lsx_get_customizer_controls());
299 299
 
300
-add_image_size( 'lsx-thumbnail-wide', 350, 230, true );
301
-add_image_size( 'lsx-thumbnail-single', 750, 350, true );
302 300
\ No newline at end of file
301
+add_image_size('lsx-thumbnail-wide', 350, 230, true);
302
+add_image_size('lsx-thumbnail-single', 750, 350, true);
303 303
\ No newline at end of file
Please login to merge, or discard this patch.
page-templates/template-full-width.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,9 +13,9 @@  discard block
 block discarded – undo
13 13
 
14 14
 			<?php lsx_content_top(); ?>		
15 15
 			
16
-				<?php while ( have_posts() ) : the_post(); ?>
16
+				<?php while (have_posts()) : the_post(); ?>
17 17
 		
18
-					<?php get_template_part( 'content', 'page' ); ?>
18
+					<?php get_template_part('content', 'page'); ?>
19 19
 		
20 20
 				<?php endwhile; // end of the loop. ?>		
21 21
 				
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 			
24 24
 			<?php
25 25
 				// If comments are open or we have at least one comment, load up the comment template
26
-				if ( comments_open() || '0' != get_comments_number() ) :
26
+				if (comments_open() || '0' != get_comments_number()) :
27 27
 					comments_template();
28 28
 				endif;
29 29
 			?>			
Please login to merge, or discard this patch.
archive.php 2 patches
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,9 +44,12 @@
 block discarded – undo
44 44
 			
45 45
 			<?php lsx_paging_nav(); ?>
46 46
 
47
-		<?php else : ?>
47
+		<?php else {
48
+	: ?>
48 49
 
49
-			<?php get_template_part( 'content', 'none' ); ?>
50
+			<?php get_template_part( 'content', 'none' );
51
+}
52
+?>
50 53
 
51 54
 		<?php endif; ?>
52 55
 
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 
12 12
 	<?php lsx_content_wrap_before(); ?>
13 13
 
14
-	<div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>">
14
+	<div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>">
15 15
 
16 16
 		<?php lsx_content_before(); ?>
17 17
 
@@ -19,12 +19,12 @@  discard block
 block discarded – undo
19 19
 
20 20
 		<?php lsx_content_top(); ?>
21 21
 
22
-		<?php if ( have_posts() ) : ?>
22
+		<?php if (have_posts()) : ?>
23 23
 			
24 24
 			<?php 
25
-			$layout = get_theme_mod('lsx_layout','2cr');
26
-			$layout = apply_filters( 'lsx_layout', $layout );
27
-			if('1c' === $layout && !is_post_type_archive('tribe_events')){
25
+			$layout = get_theme_mod('lsx_layout', '2cr');
26
+			$layout = apply_filters('lsx_layout', $layout);
27
+			if ('1c' === $layout && ! is_post_type_archive('tribe_events')) {
28 28
 				lsx_breadcrumbs();
29 29
 			}
30 30
 			?>
@@ -33,14 +33,14 @@  discard block
 block discarded – undo
33 33
 			?>			
34 34
 
35 35
 			<?php /* Start the Loop */ ?>
36
-			<?php while ( have_posts() ) : the_post(); ?>
36
+			<?php while (have_posts()) : the_post(); ?>
37 37
 
38 38
 				<?php
39 39
 					/* Include the Post-Format-specific template for the content.
40 40
 					 * If you want to override this in a child theme, then include a file
41 41
 					 * called content-___.php (where ___ is the Post Format name) and that will be used instead.
42 42
 					 */
43
-					get_template_part( 'content', get_post_format() );
43
+					get_template_part('content', get_post_format());
44 44
 				?>
45 45
 
46 46
 			<?php endwhile; ?>
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 
50 50
 		<?php else : ?>
51 51
 
52
-			<?php get_template_part( 'content', 'none' ); ?>
52
+			<?php get_template_part('content', 'none'); ?>
53 53
 
54 54
 		<?php endif; ?>
55 55
 
Please login to merge, or discard this patch.
index.php 2 patches
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,9 +44,12 @@
 block discarded – undo
44 44
 			
45 45
 			<?php lsx_paging_nav(); ?>
46 46
 
47
-		<?php else : ?>
47
+		<?php else {
48
+	: ?>
48 49
 
49
-			<?php get_template_part( 'content', 'none' ); ?>
50
+			<?php get_template_part( 'content', 'none' );
51
+}
52
+?>
50 53
 
51 54
 		<?php endif; ?>
52 55
 
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 
16 16
 	<?php lsx_content_wrap_before(); ?>
17 17
 
18
-	<div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>">
18
+	<div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>">
19 19
 
20 20
 		<?php lsx_content_before(); ?>
21 21
 
@@ -23,17 +23,17 @@  discard block
 block discarded – undo
23 23
 		
24 24
 		<?php lsx_content_top(); ?>
25 25
 
26
-		<?php if ( have_posts() ) : ?>
26
+		<?php if (have_posts()) : ?>
27 27
 
28 28
 			<?php /* Start the Loop */ ?>
29
-			<?php while ( have_posts() ) : the_post(); ?>
29
+			<?php while (have_posts()) : the_post(); ?>
30 30
 
31 31
 				<?php
32 32
 					/* Include the Post-Format-specific template for the content.
33 33
 					 * If you want to override this in a child theme, then include a file
34 34
 					 * called content-___.php (where ___ is the Post Format name) and that will be used instead.
35 35
 					 */
36
-					get_template_part( 'content', get_post_format() );
36
+					get_template_part('content', get_post_format());
37 37
 				?>
38 38
 
39 39
 			<?php endwhile; ?>
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 			
43 43
 		<?php else : ?>
44 44
 
45
-			<?php get_template_part( 'content', 'none' ); ?>
45
+			<?php get_template_part('content', 'none'); ?>
46 46
 
47 47
 		<?php endif; ?>
48 48
 
@@ -56,5 +56,5 @@  discard block
 block discarded – undo
56 56
 
57 57
 	<?php lsx_content_wrap_after(); ?>
58 58
 
59
-<?php get_sidebar( 'sidebar' ); ?>
59
+<?php get_sidebar('sidebar'); ?>
60 60
 <?php get_footer();
61 61
\ No newline at end of file
Please login to merge, or discard this patch.
inc/woocommerce.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -69,8 +69,8 @@
 block discarded – undo
69 69
 add_filter( 'woocommerce_enqueue_styles', '__return_empty_array' );
70 70
 
71 71
 function lsx_woocommerce_styles() {
72
-    wp_enqueue_style( 'woocommerce-layout', get_template_directory_uri() . '/css/woocommerce-layout.css', array(), WC_VERSION, 'all' );
73
-    wp_enqueue_style( 'woocommerce-smallscreen', get_template_directory_uri() . '/css/woocommerce-smallscreen.css', array( 'woocommerce-layout' ), WC_VERSION, 'only screen and (max-width: 767px)' );
74
-    wp_enqueue_style( 'woocommerce-general', get_template_directory_uri() . '/css/woocommerce.css', array(), WC_VERSION, 'all' );
72
+	wp_enqueue_style( 'woocommerce-layout', get_template_directory_uri() . '/css/woocommerce-layout.css', array(), WC_VERSION, 'all' );
73
+	wp_enqueue_style( 'woocommerce-smallscreen', get_template_directory_uri() . '/css/woocommerce-smallscreen.css', array( 'woocommerce-layout' ), WC_VERSION, 'only screen and (max-width: 767px)' );
74
+	wp_enqueue_style( 'woocommerce-general', get_template_directory_uri() . '/css/woocommerce.css', array(), WC_VERSION, 'all' );
75 75
 }
76 76
 add_action( 'wp_enqueue_scripts', 'lsx_woocommerce_styles' );
77 77
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -9,8 +9,8 @@  discard block
 block discarded – undo
9 9
 /*
10 10
  * Hooks
11 11
  */
12
-remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10);
13
-remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10);
12
+remove_action('woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10);
13
+remove_action('woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10);
14 14
 
15 15
 add_action('woocommerce_before_main_content', 'lsx_woocommerce_before_content', 10);
16 16
 add_action('woocommerce_after_main_content', 'lsx_woocommerce_after_content', 10);
@@ -25,10 +25,10 @@  discard block
 block discarded – undo
25 25
  * @subpackage woocommerce
26 26
  * @category 	layout
27 27
  */
28
-function lsx_woocommerce_before_content(){ ?>
28
+function lsx_woocommerce_before_content() { ?>
29 29
 	<?php lsx_content_wrap_before(); ?>
30 30
 
31
-	<div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>">
31
+	<div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>">
32 32
 
33 33
 		<?php lsx_content_before(); ?>
34 34
 
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
  * @subpackage woocommerce
44 44
  * @category 	layout
45 45
  */
46
-function lsx_woocommerce_after_content(){ ?>
46
+function lsx_woocommerce_after_content() { ?>
47 47
 		<?php lsx_content_bottom(); ?>
48 48
 
49 49
 		</main><!-- #main -->
@@ -66,11 +66,11 @@  discard block
 block discarded – undo
66 66
  * @subpackage woocommerce
67 67
  * @category 	styles
68 68
  */
69
-add_filter( 'woocommerce_enqueue_styles', '__return_empty_array' );
69
+add_filter('woocommerce_enqueue_styles', '__return_empty_array');
70 70
 
71 71
 function lsx_woocommerce_styles() {
72
-    wp_enqueue_style( 'woocommerce-layout', get_template_directory_uri() . '/css/woocommerce-layout.css', array(), WC_VERSION, 'all' );
73
-    wp_enqueue_style( 'woocommerce-smallscreen', get_template_directory_uri() . '/css/woocommerce-smallscreen.css', array( 'woocommerce-layout' ), WC_VERSION, 'only screen and (max-width: 767px)' );
74
-    wp_enqueue_style( 'woocommerce-general', get_template_directory_uri() . '/css/woocommerce.css', array(), WC_VERSION, 'all' );
72
+    wp_enqueue_style('woocommerce-layout', get_template_directory_uri() . '/css/woocommerce-layout.css', array(), WC_VERSION, 'all');
73
+    wp_enqueue_style('woocommerce-smallscreen', get_template_directory_uri() . '/css/woocommerce-smallscreen.css', array('woocommerce-layout'), WC_VERSION, 'only screen and (max-width: 767px)');
74
+    wp_enqueue_style('woocommerce-general', get_template_directory_uri() . '/css/woocommerce.css', array(), WC_VERSION, 'all');
75 75
 }
76
-add_action( 'wp_enqueue_scripts', 'lsx_woocommerce_styles' );
77 76
\ No newline at end of file
77
+add_action('wp_enqueue_scripts', 'lsx_woocommerce_styles');
78 78
\ No newline at end of file
Please login to merge, or discard this patch.
comment.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,17 +1,17 @@  discard block
 block discarded – undo
1 1
 <?php 
2
-	if ( isset( $GLOBALS['comment_depth'] ) ) {
3
-		$depth = intval( $GLOBALS['comment_depth'] );
2
+	if (isset($GLOBALS['comment_depth'])) {
3
+		$depth = intval($GLOBALS['comment_depth']);
4 4
 	} else {
5 5
 		$depth = 1;
6 6
 	}
7 7
 
8
-	$max_depth = intval( get_option( 'thread_comments_depth' ) );
8
+	$max_depth = intval(get_option('thread_comments_depth'));
9 9
 ?>
10 10
 
11 11
 <?php echo get_avatar($comment, '64'); ?>
12 12
 <div class="media-body">
13 13
   <h4 class="media-heading"><?php echo get_comment_author_link(); ?></h4>
14
-  <time datetime="<?php echo comment_date('c'); ?>"><a href="<?php echo esc_url(get_comment_link($comment->comment_ID)); ?>"><?php printf(esc_html__('%1$s on %2$s', 'lsx'), get_comment_date(),  get_comment_time()); ?></a></time>
14
+  <time datetime="<?php echo comment_date('c'); ?>"><a href="<?php echo esc_url(get_comment_link($comment->comment_ID)); ?>"><?php printf(esc_html__('%1$s on %2$s', 'lsx'), get_comment_date(), get_comment_time()); ?></a></time>
15 15
   <?php edit_comment_link(esc_html__('(Edit)', 'lsx'), '', ''); ?>
16 16
   
17 17
   <?php if ($comment->comment_approved == '0') : ?>
@@ -21,4 +21,4 @@  discard block
 block discarded – undo
21 21
 <?php endif; ?>
22 22
 
23 23
 <?php comment_text(); ?>
24
-<?php comment_reply_link( array( 'depth' => $depth, 'max_depth' => $max_depth ) );
25 24
\ No newline at end of file
25
+<?php comment_reply_link(array('depth' => $depth, 'max_depth' => $max_depth));
26 26
\ No newline at end of file
Please login to merge, or discard this patch.