Completed
Push — master ( 0e00e1...c8b83c )
by Fernando
06:22
created
inc/customizer.php 1 patch
Spacing   +44 added lines, -44 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
  * Customizer Configuration File
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * @author  [email protected] <lsdev.biz>
10 10
  * 
11 11
  */
12
-if ( ! class_exists( 'LSX_Theme_Customizer' ) ) {
12
+if ( ! class_exists('LSX_Theme_Customizer')) {
13 13
 	
14 14
 	class LSX_Theme_Customizer {
15 15
 
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 		 *
30 30
 		 * @since     1.0.0
31 31
 		 */
32
-		public function __construct( $controls ) {
32
+		public function __construct($controls) {
33 33
 			require get_template_directory() . '/inc/google-font.php';
34 34
 			require get_template_directory() . '/inc/google-font-collection.php';
35 35
 			require get_template_directory() . '/inc/customizer-core.php';
@@ -40,19 +40,19 @@  discard block
 block discarded – undo
40 40
 
41 41
 			$this->controls = $controls;
42 42
 
43
-			add_action( 'customize_preview_init', array($this,'customize_preview_js' ),20);
44
-			add_action( 'customize_register', array($this,'customizer'), 11 );
43
+			add_action('customize_preview_init', array($this, 'customize_preview_js'), 20);
44
+			add_action('customize_register', array($this, 'customizer'), 11);
45 45
 			
46
-			add_action( 'wp_ajax_customizer_site_title', array($this,'ajax_site_title') );
47
-			add_action( 'wp_ajax_nopriv_customizer_site_title', array($this,'ajax_site_title') );
46
+			add_action('wp_ajax_customizer_site_title', array($this, 'ajax_site_title'));
47
+			add_action('wp_ajax_nopriv_customizer_site_title', array($this, 'ajax_site_title'));
48 48
 		}
49 49
 		
50 50
 		/**
51 51
 		 * Binds JS handlers to make Theme Customizer preview reload changes asynchronously.
52 52
 		 */
53 53
 		function customize_preview_js() {
54
-			wp_enqueue_script( 'lsx_customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ) , wp_get_theme()->Version, true );
55
-			wp_localize_script( 'lsx_customizer', 'lsx_customizer_params', array( 'template_directory' => get_template_directory_uri() ) );
54
+			wp_enqueue_script('lsx_customizer', get_template_directory_uri() . '/js/customizer.js', array('customize-preview'), wp_get_theme()->Version, true);
55
+			wp_localize_script('lsx_customizer', 'lsx_customizer_params', array('template_directory' => get_template_directory_uri()));
56 56
 		}
57 57
 		
58 58
 		/**
@@ -60,40 +60,40 @@  discard block
 block discarded – undo
60 60
 		 *
61 61
 		 * @since     1.0.0
62 62
 		 */		
63
-		public function customizer( $wp_customize ) {
63
+		public function customizer($wp_customize) {
64 64
 			// start panels
65
-			if( !empty( $this->controls['panels'] ) ){
66
-				foreach( $this->controls['panels'] as $panel_slug => $args ){
67
-					$this->add_panel( $panel_slug, $args, $wp_customize );
65
+			if ( ! empty($this->controls['panels'])) {
66
+				foreach ($this->controls['panels'] as $panel_slug => $args) {
67
+					$this->add_panel($panel_slug, $args, $wp_customize);
68 68
 				}
69 69
 			}
70 70
 
71 71
 			// start sections
72
-			if( !empty( $this->controls['sections'] ) ){
73
-				foreach( $this->controls['sections'] as $section_slug => $args ){
74
-					$this->add_section( $section_slug, $args, $wp_customize );
72
+			if ( ! empty($this->controls['sections'])) {
73
+				foreach ($this->controls['sections'] as $section_slug => $args) {
74
+					$this->add_section($section_slug, $args, $wp_customize);
75 75
 				}
76 76
 			}
77 77
 
78 78
 			// start settings
79
-			if( !empty( $this->controls['settings'] ) ){
80
-				foreach( $this->controls['settings'] as $settings_slug => $args ){
81
-					$this->add_setting( $settings_slug, $args, $wp_customize );
79
+			if ( ! empty($this->controls['settings'])) {
80
+				foreach ($this->controls['settings'] as $settings_slug => $args) {
81
+					$this->add_setting($settings_slug, $args, $wp_customize);
82 82
 				}
83 83
 			}
84 84
 
85 85
 			// start fields
86
-			if( !empty( $this->controls['fields'] ) ){
87
-				foreach( $this->controls['fields'] as $field_slug => $args ){
88
-					$this->add_control( $field_slug, $args, $wp_customize );
86
+			if ( ! empty($this->controls['fields'])) {
87
+				foreach ($this->controls['fields'] as $field_slug => $args) {
88
+					$this->add_control($field_slug, $args, $wp_customize);
89 89
 				}
90 90
 			}
91 91
 			
92
-			$wp_customize->get_setting( 'blogname' )->transport = 'postMessage';
93
-			$wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage';
94
-			$wp_customize->get_setting( 'background_color' )->transport = 'postMessage';
92
+			$wp_customize->get_setting('blogname')->transport = 'postMessage';
93
+			$wp_customize->get_setting('blogdescription')->transport = 'postMessage';
94
+			$wp_customize->get_setting('background_color')->transport = 'postMessage';
95 95
 
96
-			$wp_customize->remove_control( 'background_color' );
96
+			$wp_customize->remove_control('background_color');
97 97
 		}
98 98
 
99 99
 		/**
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 		 *
102 102
 		 * @since     1.0.0
103 103
 		 */		
104
-		private function add_panel( $slug, $args, $wp_customize ) {
104
+		private function add_panel($slug, $args, $wp_customize) {
105 105
 			$default_args = array(
106 106
 				'title' 		=> null,
107 107
 				'description' 	=> null,
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 
110 110
 			$wp_customize->add_panel(
111 111
 				$slug,
112
-				array_merge( $default_args, $args )
112
+				array_merge($default_args, $args)
113 113
 			);
114 114
 		}
115 115
 
@@ -118,14 +118,14 @@  discard block
 block discarded – undo
118 118
 		 *
119 119
 		 * @since     1.0.0
120 120
 		 */		
121
-		private function add_section( $slug, $args, $wp_customize ) {
121
+		private function add_section($slug, $args, $wp_customize) {
122 122
 			$default_args = array(
123 123
 				'capability' => 'edit_theme_options', //Capability needed to tweak
124 124
 				'description' => null, //Descriptive tooltip
125 125
 			);
126 126
 
127
-			$wp_customize->add_section( $slug, 
128
-				array_merge( $default_args, $args )
127
+			$wp_customize->add_section($slug, 
128
+				array_merge($default_args, $args)
129 129
 			);
130 130
 		}
131 131
 
@@ -134,15 +134,15 @@  discard block
 block discarded – undo
134 134
 		 *
135 135
 		 * @since     1.0.0
136 136
 		 */		
137
-		private function add_setting( $slug, $args, $wp_customize ) {
138
-			$wp_customize->add_setting( $slug, //No need to use a SERIALIZED name, as `theme_mod` settings already live under one db record
139
-				array_merge( array(
137
+		private function add_setting($slug, $args, $wp_customize) {
138
+			$wp_customize->add_setting($slug, //No need to use a SERIALIZED name, as `theme_mod` settings already live under one db record
139
+				array_merge(array(
140 140
 					'default' 			=> null, //Default setting/value to save
141 141
 					'type' 				=> 'theme_mod', //Is this an 'option' or a 'theme_mod'?
142 142
 					'capability'		=> 'edit_theme_options', //Optional. Special permissions for accessing this setting.
143 143
 					'transport' 		=> 'postMessage', //What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?
144 144
 					'sanitize_callback'	=> 'lsx_sanitize_choices'
145
-				), $args )
145
+				), $args)
146 146
 			);
147 147
 		}
148 148
 
@@ -151,28 +151,28 @@  discard block
 block discarded – undo
151 151
 		 *
152 152
 		 * @since     1.0.0
153 153
 		 */		
154
-		private function add_control( $slug, $args, $wp_customize ) {
154
+		private function add_control($slug, $args, $wp_customize) {
155 155
 			$default_args = array(
156 156
 
157 157
 			);
158 158
 
159
-			if( isset( $args['control'] ) && class_exists( $args['control'] )){
159
+			if (isset($args['control']) && class_exists($args['control'])) {
160 160
 				
161 161
 				$control_class = $args['control'];
162
-				unset( $args['control'] );
162
+				unset($args['control']);
163 163
 
164
-				$control = new $control_class( $wp_customize, $slug, array_merge( $default_args, $args ) );
165
-				$wp_customize->add_control( $control );
164
+				$control = new $control_class($wp_customize, $slug, array_merge($default_args, $args));
165
+				$wp_customize->add_control($control);
166 166
 			
167
-			}else{
167
+			} else {
168 168
 				
169
-				if( isset( $args['control'] ) ){
170
-					unset( $args['control'] );
169
+				if (isset($args['control'])) {
170
+					unset($args['control']);
171 171
 				}
172 172
 
173 173
 				$wp_customize->add_control(
174 174
 					$slug,
175
-					array_merge( $default_args, $args )
175
+					array_merge($default_args, $args)
176 176
 				);
177 177
 			}
178 178
 		}
Please login to merge, or discard this patch.
inc/the-events-calendar.php 1 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.
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.
page.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 
15 15
 	<?php lsx_content_wrap_before(); ?>
16 16
 
17
-	<div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>">
17
+	<div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>">
18 18
 
19 19
 		<?php lsx_content_before(); ?>
20 20
 
@@ -22,9 +22,9 @@  discard block
 block discarded – undo
22 22
 
23 23
 			<?php lsx_content_top(); ?>
24 24
 
25
-			<?php while ( have_posts() ) : the_post(); ?>
25
+			<?php while (have_posts()) : the_post(); ?>
26 26
 
27
-				<?php get_template_part( 'content', get_post_type() ); ?>
27
+				<?php get_template_part('content', get_post_type()); ?>
28 28
 
29 29
 			<?php endwhile; // end of the loop. ?>
30 30
 			
Please login to merge, or discard this patch.
archive-jetpack-portfolio.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -10,23 +10,23 @@  discard block
 block discarded – undo
10 10
 
11 11
 			<?php lsx_content_top(); ?>
12 12
 			
13
-			<?php if(is_tax()){ ?> 
13
+			<?php if (is_tax()) { ?> 
14 14
 				<div class="entry-content">		
15 15
 					<?php the_archive_description(); ?>
16 16
 				</div>
17 17
 			<?php } ?>
18 18
 			
19 19
 			<?php
20
-				if ( post_type_exists( 'jetpack-portfolio' ) && have_posts() ) :
20
+				if (post_type_exists('jetpack-portfolio') && have_posts()) :
21 21
 			?>
22 22
 				
23
-				<?php if(!is_tax()){ lsx_portfolio_sorter(); } ?>
23
+				<?php if ( ! is_tax()) { lsx_portfolio_sorter(); } ?>
24 24
 
25 25
 				<div class="filter-items-wrapper lsx-portfolio-wrapper">
26 26
 					<div id="portfolio-infinite-scroll-wrapper" class="filter-items-container lsx-portfolio masonry">
27
-						<?php while ( have_posts() ) : the_post(); ?>
27
+						<?php while (have_posts()) : the_post(); ?>
28 28
 
29
-							<?php get_template_part( 'content', 'portfolio' ); ?>
29
+							<?php get_template_part('content', 'portfolio'); ?>
30 30
 
31 31
 						<?php endwhile; ?>
32 32
 					</div>
@@ -40,17 +40,17 @@  discard block
 block discarded – undo
40 40
 
41 41
 				<section class="no-results not-found">
42 42
 					<header class="page-header">
43
-						<h1 class="page-title"><?php esc_html_e( 'Nothing Found', 'lsx' ); ?></h1>
43
+						<h1 class="page-title"><?php esc_html_e('Nothing Found', 'lsx'); ?></h1>
44 44
 					</header><!-- .page-header -->
45 45
 
46 46
 					<div class="page-content">
47
-						<?php if ( current_user_can( 'publish_posts' ) ) : ?>
47
+						<?php if (current_user_can('publish_posts')) : ?>
48 48
 
49
-							<p><?php esc_html_e( 'Ready to publish your first project?', 'lsx' ); ?> <a href="<?php echo esc_url( admin_url( 'post-new.php?post_type=jetpack-portfolio' ) ) ?>"><?php esc_html_e( 'Get started here', 'lsx' ); ?></a></p>
49
+							<p><?php esc_html_e('Ready to publish your first project?', 'lsx'); ?> <a href="<?php echo esc_url(admin_url('post-new.php?post_type=jetpack-portfolio')) ?>"><?php esc_html_e('Get started here', 'lsx'); ?></a></p>
50 50
 
51 51
 						<?php else : ?>
52 52
 
53
-							<p><?php esc_html_e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'lsx' ); ?></p>
53
+							<p><?php esc_html_e('It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'lsx'); ?></p>
54 54
 							<?php get_search_form(); ?>
55 55
 
56 56
 						<?php endif; ?>
Please login to merge, or discard this patch.
page-templates/template-sitemap.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
 
6 6
 	<?php lsx_content_wrap_before(); ?>
7 7
 
8
-	<div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>">
8
+	<div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>">
9 9
 
10 10
 		<?php lsx_content_before(); ?>
11 11
 
@@ -13,7 +13,7 @@  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 18
 				<?php lsx_entry_before(); ?>
19 19
 
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
                         <?php lsx_sitemap_custom_post_type(); ?>
29 29
                     	
30 30
 					</div><!-- .entry-content -->
31
-					<?php edit_post_link( __( 'Edit', 'lsx' ), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>' ); ?>
31
+					<?php edit_post_link(__('Edit', 'lsx'), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>'); ?>
32 32
 
33 33
 					<?php lsx_entry_bottom(); ?>
34 34
 					
Please login to merge, or discard this patch.
archive.php 1 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.
404.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -7,22 +7,22 @@
 block discarded – undo
7 7
 
8 8
 get_header(); ?>
9 9
 
10
-	<div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>">
10
+	<div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>">
11 11
 		<main id="main" class="site-main">
12 12
 
13 13
 			<section class="error-404 not-found">
14 14
 				<header class="page-header">
15
-					<h1 class="page-title"><?php esc_html_e( 'Whoops!', 'lsx' ); ?></h1>
15
+					<h1 class="page-title"><?php esc_html_e('Whoops!', 'lsx'); ?></h1>
16 16
 				</header><!-- .page-header -->
17 17
 
18 18
 				<div class="page-content">
19
-					<p><?php esc_html_e( 'It looks like nothing was found at this location. Maybe try a search?', 'lsx' ); ?></p>
19
+					<p><?php esc_html_e('It looks like nothing was found at this location. Maybe try a search?', 'lsx'); ?></p>
20 20
 
21 21
 					</div> <!-- .row -->
22 22
 					<?php get_search_form(); ?>
23 23
 					<br />
24 24
 
25
-					<p><?php esc_html_e( 'Alternatively, you can check out the', 'lsx' ); ?> <a href="/sitemap"><strong><?php esc_html_e( 'sitemap', 'lsx' ); ?></strong></a></p>
25
+					<p><?php esc_html_e('Alternatively, you can check out the', 'lsx'); ?> <a href="/sitemap"><strong><?php esc_html_e('sitemap', 'lsx'); ?></strong></a></p>
26 26
 
27 27
 				</div><!-- .page-content -->
28 28
 			</section><!-- .error-404 -->
Please login to merge, or discard this patch.
inc/woocommerce.php 1 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.