Passed
Branch master (2d09fd)
by Ashley
03:51
created
page-templates/template-no-sidebar.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-templates/template-portfolio.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -17,8 +17,8 @@  discard block
 block discarded – undo
17 17
 
18 18
 			<?php lsx_content_top(); ?>
19 19
 
20
-			<?php if(have_posts()) { ?>
21
-				<?php while(have_posts()) { the_post(); ?>
20
+			<?php if (have_posts()) { ?>
21
+				<?php while (have_posts()) { the_post(); ?>
22 22
 					<div class="entry-content">
23 23
 						
24 24
 						<?php the_content(); ?>
@@ -29,10 +29,10 @@  discard block
 block discarded – undo
29 29
 			<?php } ?>
30 30
 
31 31
 			<?php
32
-				if ( get_query_var( 'paged' ) ) :
33
-					$paged = get_query_var( 'paged' );
34
-				elseif ( get_query_var( 'page' ) ) :
35
-					$paged = get_query_var( 'page' );
32
+				if (get_query_var('paged')) :
33
+					$paged = get_query_var('paged');
34
+				elseif (get_query_var('page')) :
35
+					$paged = get_query_var('page');
36 36
 				else :
37 37
 					$paged = 1;
38 38
 				endif;
@@ -41,18 +41,18 @@  discard block
 block discarded – undo
41 41
 					'post_type'      => 'jetpack-portfolio',
42 42
 					'posts_per_page' => -1,
43 43
 				);
44
-				$project_query = new WP_Query ( $args );
45
-				if ( post_type_exists( 'jetpack-portfolio' ) && $project_query -> have_posts() ) :
44
+				$project_query = new WP_Query($args);
45
+				if (post_type_exists('jetpack-portfolio') && $project_query -> have_posts()) :
46 46
 			?>
47 47
 			
48 48
 				<?php lsx_portfolio_sorter(); ?>
49 49
 
50 50
 				<div class="filter-items-wrapper lsx-portfolio-wrapper">
51 51
 					<div class="filter-items-container lsx-portfolio masonry">
52
-						<?php while ( $project_query -> have_posts() ) : $project_query -> the_post(); ?>
52
+						<?php while ($project_query -> have_posts()) : $project_query -> the_post(); ?>
53 53
 
54
-							<?php if(has_post_thumbnail()) { ?>
55
-								<?php get_template_part( 'content', 'portfolio' ); ?>
54
+							<?php if (has_post_thumbnail()) { ?>
55
+								<?php get_template_part('content', 'portfolio'); ?>
56 56
 							<?php } ?>
57 57
 
58 58
 						<?php endwhile; ?>
@@ -63,17 +63,17 @@  discard block
 block discarded – undo
63 63
 
64 64
 				<section class="no-results not-found">
65 65
 					<header class="page-header">
66
-						<h1 class="page-title"><?php _e( 'Nothing Found', 'lsx' ); ?></h1>
66
+						<h1 class="page-title"><?php _e('Nothing Found', 'lsx'); ?></h1>
67 67
 					</header><!-- .page-header -->
68 68
 
69 69
 					<div class="page-content">
70
-						<?php if ( current_user_can( 'publish_posts' ) ) : ?>
70
+						<?php if (current_user_can('publish_posts')) : ?>
71 71
 
72
-							<p><?php printf( __( 'Ready to publish your first project? <a href="%1$s">Get started here</a>.', 'lsx' ), esc_url( admin_url( 'post-new.php?post_type=jetpack-portfolio' ) ) ); ?></p>
72
+							<p><?php printf(__('Ready to publish your first project? <a href="%1$s">Get started here</a>.', 'lsx'), esc_url(admin_url('post-new.php?post_type=jetpack-portfolio'))); ?></p>
73 73
 
74 74
 						<?php else : ?>
75 75
 
76
-							<p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'lsx' ); ?></p>
76
+							<p><?php _e('It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'lsx'); ?></p>
77 77
 							<?php get_search_form(); ?>
78 78
 
79 79
 						<?php endif; ?>
Please login to merge, or discard this patch.
page-templates/template-sitemap.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -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.
content-portfolio.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
 
8 8
 
9 9
 $type_class = "filter-item column-3 ";
10
-$types = get_the_terms( get_the_ID(), 'jetpack-portfolio-type');
10
+$types = get_the_terms(get_the_ID(), 'jetpack-portfolio-type');
11 11
 if ($types) {
12 12
 	foreach ($types as $type) {
13 13
 		$type_class .= $type->slug . " ";
@@ -18,13 +18,13 @@  discard block
 block discarded – undo
18 18
 <article id="post-<?php the_ID(); ?>" data-column="<?php echo 3; ?>" <?php post_class($type_class); ?>>
19 19
 	<div class="portfolio-content-wrapper">
20 20
 		<div class="portfolio-thumbnail">
21
-			<?php if ( has_post_thumbnail() ) : ?>
21
+			<?php if (has_post_thumbnail()) : ?>
22 22
 				<a href="<?php the_permalink(); ?>">
23
-					<?php lsx_thumbnail( 'lsx-thumbnail-wide' ); ?>
23
+					<?php lsx_thumbnail('lsx-thumbnail-wide'); ?>
24 24
 				</a>
25 25
 			<?php endif; ?>
26 26
 		</div>
27 27
 		
28
-		<?php the_title( '<a class="portfolio-title" href="' . esc_url( get_permalink() ) . '" rel="bookmark"><span>', '</span></a>' ); ?>
28
+		<?php the_title('<a class="portfolio-title" href="' . esc_url(get_permalink()) . '" rel="bookmark"><span>', '</span></a>'); ?>
29 29
 	</div>
30 30
 </article>
31 31
\ No newline at end of file
Please login to merge, or discard this patch.
search.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -18,19 +18,19 @@  discard block
 block discarded – undo
18 18
 		<?php lsx_content_top(); ?>	
19 19
 		
20 20
 		<?php 
21
-		$layout = get_theme_mod('lsx_layout','2cr');
22
-		$layout = apply_filters( 'lsx_layout', $layout );
23
-		if('1c' === $layout){
21
+		$layout = get_theme_mod('lsx_layout', '2cr');
22
+		$layout = apply_filters('lsx_layout', $layout);
23
+		if ('1c' === $layout) {
24 24
 			lsx_breadcrumbs();
25 25
 		}
26 26
 		?>	
27 27
 
28
-		<?php if ( have_posts() ) : global $lsx_archive; $lsx_archive = 1; ?>
28
+		<?php if (have_posts()) : global $lsx_archive; $lsx_archive = 1; ?>
29 29
 
30 30
 			<?php /* Start the Loop */ ?>
31
-			<?php while ( have_posts() ) : the_post(); ?>
31
+			<?php while (have_posts()) : the_post(); ?>
32 32
 
33
-				<?php lsx_get_template_part( 'content', get_post_type() ); ?>
33
+				<?php lsx_get_template_part('content', get_post_type()); ?>
34 34
 
35 35
 			<?php endwhile; ?>
36 36
 
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 
39 39
 		<?php else : ?>
40 40
 
41
-			<?php lsx_get_template_part( 'content', 'none' ); ?>
41
+			<?php lsx_get_template_part('content', 'none'); ?>
42 42
 
43 43
 		<?php endif; $lsx_archive = 0; ?>
44 44
 
Please login to merge, or discard this patch.
404.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,17 +12,17 @@
 block discarded – undo
12 12
 
13 13
 			<section class="error-404 not-found">
14 14
 				<header class="page-header">
15
-					<h1 class="page-title"><?php _e( 'Whoops!', 'lsx' ); ?></h1>
15
+					<h1 class="page-title"><?php _e('Whoops!', 'lsx'); ?></h1>
16 16
 				</header><!-- .page-header -->
17 17
 
18 18
 				<div class="page-content">
19
-					<p><?php _e( 'It looks like nothing was found at this location. Maybe try a search?', 'lsx' ); ?></p>
19
+					<p><?php _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 _e( 'Alternatively, you can check out the', 'lsx' ); ?> <a href="/sitemap"><strong><?php _e( 'sitemap', 'lsx' ); ?></strong></a></p>
25
+					<p><?php _e('Alternatively, you can check out the', 'lsx'); ?> <a href="/sitemap"><strong><?php _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.
content-post.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -12,17 +12,17 @@  discard block
 block discarded – undo
12 12
 
13 13
 	<?php
14 14
 	$format = get_post_format();
15
-	if ( false === $format ) {
15
+	if (false === $format) {
16 16
 		$format = 'standard';
17 17
 	}
18 18
 	$format_link = get_post_format_link($format);
19 19
 	$format = lsx_translate_format_to_fontawesome($format);
20 20
 	?>
21 21
 
22
-	<?php if ( ! is_single() ) { ?>
22
+	<?php if ( ! is_single()) { ?>
23 23
 		<header class="entry-header">
24 24
 			<h1 class="entry-title">
25
-				<?php if ( has_post_thumbnail() ) { ?>
25
+				<?php if (has_post_thumbnail()) { ?>
26 26
 					<a href="<?php echo esc_url($format_link) ?>" class="format-link has-thumb fa fa-<?php echo $format ?>"></a>
27 27
 				<?php } else { ?>
28 28
 					<a href="<?php echo esc_url($format_link) ?>" class="format-link fa fa-<?php echo $format ?>"></a>
@@ -39,37 +39,37 @@  discard block
 block discarded – undo
39 39
 
40 40
 	<div class="entry-content">
41 41
 		<?php
42
-		if ( ! is_singular() ) {
42
+		if ( ! is_singular()) {
43 43
 			the_excerpt();
44 44
 		} else {
45 45
 			the_content();
46 46
 
47
-			wp_link_pages( array(
47
+			wp_link_pages(array(
48 48
 				'before' => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
49 49
 				'after' => '</div></div>',
50 50
 				'link_before' => '<span>',
51 51
 				'link_after' => '</span>'
52
-			) );
52
+			));
53 53
 		} ?>
54 54
 	</div><!-- .entry-content -->
55 55
 
56 56
 	<footer class="footer-meta">
57
-		<?php if ( has_tag() || ( function_exists( 'sharing_display' ) || class_exists( 'Jetpack_Likes' ) ) ) : ?>
57
+		<?php if (has_tag() || (function_exists('sharing_display') || class_exists('Jetpack_Likes'))) : ?>
58 58
 			<div class="post-tags-wrapper">
59
-				<?php if ( has_tag() ) : ?>
59
+				<?php if (has_tag()) : ?>
60 60
 					<div class="post-tags">
61
-						<span><?php _e('Tagged as:','lsx'); ?></span> <?php echo get_the_tag_list(''); ?>
61
+						<span><?php _e('Tagged as:', 'lsx'); ?></span> <?php echo get_the_tag_list(''); ?>
62 62
 					</div>
63 63
 				<?php endif ?>
64 64
 
65 65
 				<?php  
66
-					if ( function_exists( 'sharing_display' ) ) {
67
-						sharing_display( '', true );
66
+					if (function_exists('sharing_display')) {
67
+						sharing_display('', true);
68 68
 					}
69 69
 					
70
-					if ( class_exists( 'Jetpack_Likes' ) ) {
70
+					if (class_exists('Jetpack_Likes')) {
71 71
 						$custom_likes = new Jetpack_Likes;
72
-						echo $custom_likes->post_likes( '' );
72
+						echo $custom_likes->post_likes('');
73 73
 					}
74 74
 				?>
75 75
 			</div>
@@ -77,8 +77,8 @@  discard block
 block discarded – undo
77 77
 
78 78
 		<?php
79 79
 			// If comments are open or we have at least one comment, load up the comment template
80
-			if ( comments_open() || '0' != get_comments_number() ) : ?>
81
-				<a class="comments-link post-meta-link" data-toggle="collapse" href="#comments-collapse"><strong><?php echo get_comments_number() ?></strong> <?php _e('Comments','lsx'); ?> <span class="fa fa-chevron-down"></span></a>
80
+			if (comments_open() || '0' != get_comments_number()) : ?>
81
+				<a class="comments-link post-meta-link" data-toggle="collapse" href="#comments-collapse"><strong><?php echo get_comments_number() ?></strong> <?php _e('Comments', 'lsx'); ?> <span class="fa fa-chevron-down"></span></a>
82 82
 
83 83
 				<div class="collapse" id="comments-collapse">
84 84
 					<?php 
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 		<?php endif; ?>
89 89
 	</footer><!-- .footer-meta -->
90 90
 	
91
-	<?php edit_post_link( __( 'Edit', 'lsx' ), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>' ); ?>
91
+	<?php edit_post_link(__('Edit', 'lsx'), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>'); ?>
92 92
 				
93 93
 	<?php lsx_portfolio_related_posts(); ?>
94 94
 
Please login to merge, or discard this patch.
functions.php 1 patch
Spacing   +45 added lines, -45 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,25 +21,25 @@  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
-if(true === apply_filters( 'amp_is_enabled', true ) ){
36
+if (true === apply_filters('amp_is_enabled', true)) {
37 37
 	require get_template_directory() . '/inc/amp.php';
38 38
 }
39 39
 require get_template_directory() . '/inc/template-tags.php';
40 40
 require get_template_directory() . '/inc/extras.php';
41 41
 require get_template_directory() . '/inc/wp_bootstrap_navwalker.php';
42
-if(class_exists('Sensei_WC')){
42
+if (class_exists('Sensei_WC')) {
43 43
 	require get_template_directory() . '/inc/sensei.php';
44 44
 }
45 45
 
@@ -51,10 +51,10 @@  discard block
 block discarded – undo
51 51
  * @category	customizer
52 52
  * @return		$lsx_controls array()
53 53
  */
54
-function lsx_customizer_core_controls( $lsx_controls ) {
54
+function lsx_customizer_core_controls($lsx_controls) {
55 55
 	$lsx_controls['sections']['lsx-core'] = array(
56
-		'title'       =>  esc_html__( 'Core Settings', 'lsx' ),
57
-		'description' => __( 'Change the core settings.', 'lsx' ),
56
+		'title'       =>  esc_html__('Core Settings', 'lsx'),
57
+		'description' => __('Change the core settings.', 'lsx'),
58 58
 		'priority'    => 21
59 59
 	);
60 60
 
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 	);
66 66
 
67 67
 	$lsx_controls['fields']['lsx_lazyload_status'] = array(
68
-		'label'         =>  __( 'Lazy Loading Images', 'lsx' ),
68
+		'label'         =>  __('Lazy Loading Images', 'lsx'),
69 69
 		'section'       =>  'lsx-core',
70 70
 		'type'          =>  'checkbox',
71 71
 	);
@@ -77,14 +77,14 @@  discard block
 block discarded – undo
77 77
 	);
78 78
 
79 79
 	$lsx_controls['fields']['lsx_preloader_content_status'] = array(
80
-		'label'         =>  __( 'Preloader Content', 'lsx' ),
80
+		'label'         =>  __('Preloader Content', 'lsx'),
81 81
 		'section'       =>  'lsx-core',
82 82
 		'type'          =>  'checkbox',
83 83
 	);
84 84
 
85 85
 	return $lsx_controls;
86 86
 }
87
-add_filter( 'lsx_customizer_controls', 'lsx_customizer_core_controls' );
87
+add_filter('lsx_customizer_controls', 'lsx_customizer_core_controls');
88 88
 
89 89
 /**
90 90
  * Returns an array of the colour scheme picker.
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
  * @category	customizer
95 95
  * @return		$lsx_controls array()
96 96
  */
97
-function lsx_customizer_colour_scheme_controls( $lsx_controls ) {
97
+function lsx_customizer_colour_scheme_controls($lsx_controls) {
98 98
 	global $customizer_colour_names;
99 99
 	global $customizer_colour_choices;
100 100
 	
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
 	);
106 106
 
107 107
 	$lsx_controls['fields']['color_scheme'] = array(
108
-		'label'         =>  esc_html__( 'Base Color Scheme', 'lsx' ),
108
+		'label'         =>  esc_html__('Base Color Scheme', 'lsx'),
109 109
 		'section'       =>  'colors',
110 110
 		'type'          =>  'select',
111 111
 		'priority'      =>  1,
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 
116 116
 	$counter = 0;
117 117
 
118
-	foreach ( $customizer_colour_names as $key => $value ) {
118
+	foreach ($customizer_colour_names as $key => $value) {
119 119
 		$lsx_controls['settings'][$key] = array(
120 120
 			'default'       =>  $customizer_colour_choices['default']['colors'][$counter],
121 121
 			'type'	        =>  'theme_mod',
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
 
135 135
 	return $lsx_controls;
136 136
 }
137
-add_filter( 'lsx_customizer_controls', 'lsx_customizer_colour_scheme_controls' );
137
+add_filter('lsx_customizer_controls', 'lsx_customizer_colour_scheme_controls');
138 138
 
139 139
 /**
140 140
  * Returns an array of the layout panel.
@@ -145,56 +145,56 @@  discard block
 block discarded – undo
145 145
  * @return		$lsx_controls array()
146 146
  */
147 147
 function lsx_customizer_layout_controls($lsx_controls) {
148
-	$lsx_controls['settings']['lsx_header_layout']  = array(
148
+	$lsx_controls['settings']['lsx_header_layout'] = array(
149 149
 			'default'       =>  'inline', //Default setting/value to save
150 150
 			'type'        =>  'theme_mod', //Is this an 'option' or a 'theme_mod'?
151 151
 			'transport'     =>  'postMessage', //What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?
152 152
 	);
153 153
 	$lsx_controls['fields']['lsx_header_layout'] = array(
154
-			'label'         =>  __('Header','lsx'),
154
+			'label'         =>  __('Header', 'lsx'),
155 155
 			'section'       =>  'lsx-layout',
156 156
 			'control'   =>  'LSX_Customize_Header_Layout_Control',
157
-			'choices'		=>	array('central','expanded','inline')
157
+			'choices'		=>	array('central', 'expanded', 'inline')
158 158
 	);	
159 159
 	$lsx_controls['sections']['lsx-layout'] = array(
160
-			'title'       =>  esc_html__( 'Layout', 'lsx' ),
161
-			'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' ),
160
+			'title'       =>  esc_html__('Layout', 'lsx'),
161
+			'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'),
162 162
 			'priority' => 22
163 163
 	);
164
-	$lsx_controls['settings']['lsx_layout']  = array(
164
+	$lsx_controls['settings']['lsx_layout'] = array(
165 165
 			'default'       =>  '2cr', //Default setting/value to save
166 166
 			'type'        =>  'theme_mod', //Is this an 'option' or a 'theme_mod'?
167 167
 			'transport'     =>  'refresh', //What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?
168 168
 	);
169
-	$lsx_controls['settings']['lsx_header_fixed']  = array(
169
+	$lsx_controls['settings']['lsx_header_fixed'] = array(
170 170
 			'default'       =>  false, //Default setting/value to save
171 171
 			'sanitize_callback' => 'lsx_sanitize_checkbox',
172 172
 			'transport'     =>  'postMessage', //What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?
173 173
 	);
174 174
 	$lsx_controls['fields']['lsx_header_fixed'] = array(
175
-			'label'         =>  __('Fixed Header','lsx'),
175
+			'label'         =>  __('Fixed Header', 'lsx'),
176 176
 			'section'       =>  'lsx-layout',
177 177
 			'type'       =>  'checkbox',
178 178
 	);
179
-	$lsx_controls['settings']['lsx_header_search']  = array(
179
+	$lsx_controls['settings']['lsx_header_search'] = array(
180 180
 			'default'       =>  false, //Default setting/value to save
181 181
 			'sanitize_callback' => 'lsx_sanitize_checkbox',
182 182
 			'transport'     =>  'postMessage', //What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?
183 183
 	);
184 184
 	$lsx_controls['fields']['lsx_header_search'] = array(
185
-			'label'         =>  __('Search Box in Header','lsx'),
185
+			'label'         =>  __('Search Box in Header', 'lsx'),
186 186
 			'section'       =>  'lsx-layout',
187 187
 			'type'       =>  'checkbox',
188 188
 	);	
189 189
 	$lsx_controls['fields']['lsx_layout'] = array(
190
-			'label'         =>  __('Body','lsx'),
190
+			'label'         =>  __('Body', 'lsx'),
191 191
 			'section'       =>  'lsx-layout',
192 192
 			'control'   =>  'LSX_Customize_Layout_Control',
193
-			'choices'		=>	array('1c','2cr','2cl')
193
+			'choices'		=>	array('1c', '2cr', '2cl')
194 194
 	);	
195 195
 	return $lsx_controls;
196 196
 }
197
-add_filter('lsx_customizer_controls','lsx_customizer_layout_controls');
197
+add_filter('lsx_customizer_controls', 'lsx_customizer_layout_controls');
198 198
 
199 199
 /**
200 200
  * Returns an array of the font controls.
@@ -206,11 +206,11 @@  discard block
 block discarded – undo
206 206
  */
207 207
 function lsx_customizer_font_controls($lsx_controls) {
208 208
 	$lsx_controls['sections']['lsx-font'] = array(
209
-			'title'       =>  __( 'Font', 'lsx' ),
209
+			'title'       =>  __('Font', 'lsx'),
210 210
 			'description' => 'Change the fonts sitewide.',
211 211
 			'priority' => 41
212 212
 	);
213
-	$lsx_controls['settings']['lsx_font']  = array(
213
+	$lsx_controls['settings']['lsx_font'] = array(
214 214
 			'default'       =>  'raleway_open_sans', //Default setting/value to save
215 215
 			'type'        =>  'theme_mod', //Is this an 'option' or a 'theme_mod'?
216 216
 			'transport'     =>  'refresh', //What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?
@@ -224,13 +224,13 @@  discard block
 block discarded – undo
224 224
 			'choices'   =>  array(
225 225
 					'raleway_open_sans' => array(
226 226
 							'header'  => array(
227
-									"title" => __( 'Raleway', 'lsx' ),
227
+									"title" => __('Raleway', 'lsx'),
228 228
 									"location" => "Raleway",
229 229
 									"cssDeclaration" => "'Raleway', sans-serif",
230 230
 									"cssClass" => "raleway",
231 231
 							),
232 232
 							'body'  => array(
233
-									"title" => __( 'Open Sans', 'lsx' ),
233
+									"title" => __('Open Sans', 'lsx'),
234 234
 									"location" => "Open+Sans",
235 235
 									"cssDeclaration" => "'Open Sans', sans-serif",
236 236
 									"cssClass" => "openSans"
@@ -238,13 +238,13 @@  discard block
 block discarded – undo
238 238
 					),
239 239
 					'noto_serif_noto_sans' => array(
240 240
 							'header'  => array(
241
-									"title" => __( 'Noto Serif', 'lsx' ),
241
+									"title" => __('Noto Serif', 'lsx'),
242 242
 									"location" => "Noto+Serif",
243 243
 									"cssDeclaration" => "'Noto Serif', serif",
244 244
 									"cssClass" => "notoSerif",
245 245
 							),
246 246
 							'body'  => array(
247
-									"title" => __( 'Noto Sans', 'lsx' ),
247
+									"title" => __('Noto Sans', 'lsx'),
248 248
 									"location" => "Noto+Sans",
249 249
 									"cssDeclaration" => "'Noto Sans', sans-serif",
250 250
 									"cssClass" => "notoSans",
@@ -252,13 +252,13 @@  discard block
 block discarded – undo
252 252
 					),
253 253
 					'noto_sans_noto_sans' => array(
254 254
 					'header'  => array(
255
-					"title" => __( 'Noto Sans', 'lsx' ),
255
+					"title" => __('Noto Sans', 'lsx'),
256 256
 					"location" => "Noto+Sans",
257 257
 					"cssDeclaration" => "'Noto Sans', sans-serif",
258 258
 					"cssClass" => "notoSans",
259 259
 					),
260 260
 					'body'  => array(
261
-					"title" => __( 'Noto Sans', 'lsx' ),
261
+					"title" => __('Noto Sans', 'lsx'),
262 262
 					"location" => "Noto+Sans",
263 263
 					"cssDeclaration" => "'Noto Sans', sans-serif",
264 264
 					"cssClass" => "notoSans",
@@ -266,13 +266,13 @@  discard block
 block discarded – undo
266 266
 					),
267 267
 					'alegreya_open_sans' => array(
268 268
 					'header'  => array(
269
-					"title" => __( 'Alegreya', 'lsx' ),
269
+					"title" => __('Alegreya', 'lsx'),
270 270
 					"location" => "Alegreya",
271 271
 					"cssDeclaration" => "'Alegreya', serif",
272 272
 					"cssClass" => "alegreya",
273 273
 					),
274 274
 					'body'  => array(
275
-					"title" => __( 'Open Sans', 'lsx' ),
275
+					"title" => __('Open Sans', 'lsx'),
276 276
 					"location" => "Open+Sans",
277 277
 					"cssDeclaration" => "'Open Sans', sans-serif",
278 278
 					"cssClass" => "openSans"
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
 	);	
284 284
 	return $lsx_controls;
285 285
 }
286
-add_filter('lsx_customizer_controls','lsx_customizer_font_controls');
286
+add_filter('lsx_customizer_controls', 'lsx_customizer_font_controls');
287 287
 
288 288
 /**
289 289
  * Returns an array of $controls for the customizer class to generate.
@@ -293,12 +293,12 @@  discard block
 block discarded – undo
293 293
  * @category	customizer
294 294
  * @return		$lsx_controls array()
295 295
  */
296
-function lsx_get_customizer_controls(){
296
+function lsx_get_customizer_controls() {
297 297
 	$lsx_controls = array();
298 298
 	$lsx_controls = apply_filters('lsx_customizer_controls', $lsx_controls);
299 299
 	return $lsx_controls;
300 300
 }
301
-$lsx_customizer = new LSX_Theme_Customizer( lsx_get_customizer_controls() );
301
+$lsx_customizer = new LSX_Theme_Customizer(lsx_get_customizer_controls());
302 302
 
303
-add_image_size( 'lsx-thumbnail-wide', 350, 230, true );
304
-add_image_size( 'lsx-thumbnail-single', 750, 350, true );
305 303
\ No newline at end of file
304
+add_image_size('lsx-thumbnail-wide', 350, 230, true);
305
+add_image_size('lsx-thumbnail-single', 750, 350, true);
306 306
\ No newline at end of file
Please login to merge, or discard this patch.
index.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -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.