Passed
Branch master (2d09fd)
by Ashley
03:51
created
inc/customizer-header-fixed.php 2 patches
Spacing   +10 added lines, -10 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
  * Customizer Header Fixed 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_Header_Fixed_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-header-fixed-control', get_template_directory_uri() .'/js/customizer-header-fixed.js', array('jquery'), null, true );
55
+		wp_enqueue_script('lsx-header-fixed-control', get_template_directory_uri() . '/js/customizer-header-fixed.js', array('jquery'), null, true);
56 56
 	}
57 57
 
58 58
 	/**
@@ -62,16 +62,16 @@  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="header-fixed">
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
  * Customizer Header Fixed Class
Please login to merge, or discard this patch.
inc/nav.php 2 patches
Spacing   +8 added lines, -8 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
  * Cleaner walker for wp_nav_menu()
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 		$item_html = '';
26 26
 		
27 27
 		//If there is no menu set, dont use the pages, the objects are not the same as whats supposed to be used.
28
-		if(isset($item->title)){
28
+		if (isset($item->title)) {
29 29
 
30 30
 			parent::start_el($item_html, $item, $depth, $args);
31 31
 	
@@ -45,10 +45,10 @@  discard block
 block discarded – undo
45 45
 	}
46 46
 
47 47
 	function display_element($element, &$children_elements, $max_depth, $depth = 0, $args, &$output) {
48
-		$element->is_dropdown = ((!empty($children_elements[$element->ID]) && (($depth+1) < $max_depth || ($max_depth === 0))));
48
+		$element->is_dropdown = (( ! empty($children_elements[$element->ID]) && (($depth + 1) < $max_depth || ($max_depth === 0))));
49 49
 
50 50
 		if ($element->is_dropdown) {
51
-			if ($depth>0) {
51
+			if ($depth > 0) {
52 52
 				$element->classes[] = 'dropdown-submenu';
53 53
 			} else {
54 54
 				$element->classes[] = 'dropdown';
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 	$classes = preg_replace('/(current(-menu-|[-_]page[-_])(item|parent|ancestor))/', 'active', $classes);
69 69
 	$classes = preg_replace('/^((menu|page)[-_\w+]+)+/', '', $classes);
70 70
 
71
-	$classes[] = 'menu-'.$slug;
71
+	$classes[] = 'menu-' . $slug;
72 72
 
73 73
 	$classes = array_unique($classes);
74 74
 
@@ -86,15 +86,15 @@  discard block
 block discarded – undo
86 86
 function lsx_nav_menu_args($args = '') {
87 87
 	$roots_nav_menu_args['container'] = false;
88 88
 
89
-	if (!$args['items_wrap']) {
89
+	if ( ! $args['items_wrap']) {
90 90
 		$roots_nav_menu_args['items_wrap'] = '<ul class="%2$s">%3$s</ul>';
91 91
 	}
92 92
 
93
-	if (current_theme_supports('bootstrap-top-navbar') && !$args['depth']) {
93
+	if (current_theme_supports('bootstrap-top-navbar') && ! $args['depth']) {
94 94
 		$roots_nav_menu_args['depth'] = 2;
95 95
 	}
96 96
 
97
-	if (!$args['walker']) {
97
+	if ( ! $args['walker']) {
98 98
 		$roots_nav_menu_args['walker'] = new LSX_Nav_Walker();
99 99
 	}
100 100
 
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
  * Cleaner walker for wp_nav_menu()
Please login to merge, or discard this patch.
inc/google-font.php 3 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 
13 13
 	/**
14 14
 	 * Constructor
15
-	**/
15
+	 **/
16 16
 	public function __construct($title, $location, $cssDeclaration, $cssClass)
17 17
 	{
18 18
 		$this->title = $title;
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 	/**
25 25
 	 * Getters
26 26
 	 * taken from: http://stackoverflow.com/questions/4478661/getter-and-setter
27
-	**/
27
+	 **/
28 28
 	public function __get($property) 
29 29
 	{
30 30
 		if (property_exists($this, $property)) {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 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
  * Google_Font Class
5 5
 **/
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
  * Google_Font Class
5 8
 **/
Please login to merge, or discard this patch.
inc/hooks.php 1 patch
Spacing   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -24,11 +24,11 @@  discard block
 block discarded – undo
24 24
  * $lsx_supports[] = 'body';
25 25
  */
26 26
  function lsx_body_top() {
27
-	 do_action( 'lsx_body_top' );
27
+	 do_action('lsx_body_top');
28 28
  }
29 29
 
30 30
  function lsx_body_bottom() {
31
-	 do_action( 'lsx_body_bottom' );
31
+	 do_action('lsx_body_bottom');
32 32
  }
33 33
  
34 34
 /**
@@ -37,11 +37,11 @@  discard block
 block discarded – undo
37 37
 * $lsx_supports[] = 'head';
38 38
 */
39 39
 function lsx_head_top() {
40
-	do_action( 'lsx_head_top' );
40
+	do_action('lsx_head_top');
41 41
 }
42 42
 
43 43
 function lsx_head_bottom() {
44
-	do_action( 'lsx_head_bottom' );
44
+	do_action('lsx_head_bottom');
45 45
 }
46 46
 
47 47
 /**
@@ -50,27 +50,27 @@  discard block
 block discarded – undo
50 50
 * $lsx_supports[] = 'header';
51 51
 */
52 52
 function lsx_header_before() {
53
-	do_action( 'lsx_header_before' );
53
+	do_action('lsx_header_before');
54 54
 }
55 55
 
56 56
 function lsx_header_after() {
57
-	do_action( 'lsx_header_after' );
57
+	do_action('lsx_header_after');
58 58
 }
59 59
 
60 60
 function lsx_header_top() {
61
-	do_action( 'lsx_header_top' );
61
+	do_action('lsx_header_top');
62 62
 }
63 63
 
64 64
 function lsx_header_bottom() {
65
-	do_action( 'lsx_header_bottom' );
65
+	do_action('lsx_header_bottom');
66 66
 }
67 67
 
68 68
 function lsx_nav_before() {
69
-	do_action( 'lsx_nav_before' );
69
+	do_action('lsx_nav_before');
70 70
 }
71 71
 
72 72
 function lsx_nav_after() {
73
-	do_action( 'lsx_nav_after' );
73
+	do_action('lsx_nav_after');
74 74
 }
75 75
 
76 76
 /**
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
  */
81 81
 
82 82
 function lsx_banner_content() {
83
-	do_action( 'lsx_banner_content' );
83
+	do_action('lsx_banner_content');
84 84
 }
85 85
 
86 86
 /**
@@ -89,27 +89,27 @@  discard block
 block discarded – undo
89 89
 * $lsx_supports[] = 'content';
90 90
 */
91 91
 function lsx_content_wrap_before() {
92
-	do_action( 'lsx_content_wrap_before' );
92
+	do_action('lsx_content_wrap_before');
93 93
 }
94 94
 
95 95
 function lsx_content_wrap_after() {
96
-	do_action( 'lsx_content_wrap_after' );
96
+	do_action('lsx_content_wrap_after');
97 97
 }
98 98
 
99 99
 function lsx_content_before() {
100
-	do_action( 'lsx_content_before' );
100
+	do_action('lsx_content_before');
101 101
 }
102 102
 
103 103
 function lsx_content_after() {
104
-	do_action( 'lsx_content_after' );
104
+	do_action('lsx_content_after');
105 105
 }
106 106
 
107 107
 function lsx_content_top() {
108
-	do_action( 'lsx_content_top' );
108
+	do_action('lsx_content_top');
109 109
 }
110 110
 
111 111
 function lsx_content_bottom() {
112
-	do_action( 'lsx_content_bottom' );
112
+	do_action('lsx_content_bottom');
113 113
 }
114 114
 
115 115
 /**
@@ -118,19 +118,19 @@  discard block
 block discarded – undo
118 118
 * $lsx_supports[] = 'entry';
119 119
 */
120 120
 function lsx_entry_before() {
121
-	do_action( 'lsx_entry_before' );
121
+	do_action('lsx_entry_before');
122 122
 }
123 123
 
124 124
 function lsx_entry_after() {
125
-	do_action( 'lsx_entry_after' );
125
+	do_action('lsx_entry_after');
126 126
 }
127 127
 
128 128
 function lsx_entry_top() {
129
-	do_action( 'lsx_entry_top' );
129
+	do_action('lsx_entry_top');
130 130
 }
131 131
 
132 132
 function lsx_entry_bottom() {
133
-	do_action( 'lsx_entry_bottom' );
133
+	do_action('lsx_entry_bottom');
134 134
 }
135 135
 
136 136
 /**
@@ -139,11 +139,11 @@  discard block
 block discarded – undo
139 139
 * $lsx_supports[] = 'comments';
140 140
 */
141 141
 function lsx_comments_before() {
142
-	do_action( 'lsx_comments_before' );
142
+	do_action('lsx_comments_before');
143 143
 }
144 144
 
145 145
 function lsx_comments_after() {
146
-	do_action( 'lsx_comments_after' );
146
+	do_action('lsx_comments_after');
147 147
 }
148 148
 
149 149
 /**
@@ -152,19 +152,19 @@  discard block
 block discarded – undo
152 152
 * $lsx_supports[] = 'sidebar';
153 153
 */
154 154
 function lsx_sidebars_before() {
155
-	do_action( 'lsx_sidebars_before' );
155
+	do_action('lsx_sidebars_before');
156 156
 }
157 157
 
158 158
 function lsx_sidebars_after() {
159
-	do_action( 'lsx_sidebars_after' );
159
+	do_action('lsx_sidebars_after');
160 160
 }
161 161
 
162 162
 function lsx_sidebar_top() {
163
-	do_action( 'lsx_sidebar_top' );
163
+	do_action('lsx_sidebar_top');
164 164
 }
165 165
 
166 166
 function lsx_sidebar_bottom() {
167
-	do_action( 'lsx_sidebar_bottom' );
167
+	do_action('lsx_sidebar_bottom');
168 168
 }
169 169
 
170 170
 /**
@@ -173,17 +173,17 @@  discard block
 block discarded – undo
173 173
 * $lsx_supports[] = 'footer';
174 174
 */
175 175
 function lsx_footer_before() {
176
-	do_action( 'lsx_footer_before' );
176
+	do_action('lsx_footer_before');
177 177
 }
178 178
 
179 179
 function lsx_footer_after() {
180
-	do_action( 'lsx_footer_after' );
180
+	do_action('lsx_footer_after');
181 181
 }
182 182
 
183 183
 function lsx_footer_top() {
184
-	do_action( 'lsx_footer_top' );
184
+	do_action('lsx_footer_top');
185 185
 }
186 186
 
187 187
 function lsx_footer_bottom() {
188
-	do_action( 'lsx_footer_bottom' );
188
+	do_action('lsx_footer_bottom');
189 189
 }
190 190
\ No newline at end of file
Please login to merge, or discard this patch.
inc/comment-walker.php 3 patches
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -14,27 +14,27 @@  discard block
 block discarded – undo
14 14
  */
15 15
 class LSX_Walker_Comment extends Walker_Comment {
16 16
   function start_lvl(&$output, $depth = 0, $args = array()) {
17
-    $GLOBALS['comment_depth'] = $depth + 1; ?>
17
+	$GLOBALS['comment_depth'] = $depth + 1; ?>
18 18
     <ul <?php comment_class('media unstyled comment-' . get_comment_ID()); ?>>
19 19
     <?php
20 20
   }
21 21
 
22 22
   function end_lvl(&$output, $depth = 0, $args = array()) {
23
-    $GLOBALS['comment_depth'] = $depth + 1;
24
-    echo '</ul>';
23
+	$GLOBALS['comment_depth'] = $depth + 1;
24
+	echo '</ul>';
25 25
   }
26 26
 
27 27
   function start_el(&$output, $comment, $depth = 0, $args = array(), $id = 0) {
28
-    $depth++;
29
-    $GLOBALS['comment_depth'] = $depth;
30
-    $GLOBALS['comment'] = $comment;
28
+	$depth++;
29
+	$GLOBALS['comment_depth'] = $depth;
30
+	$GLOBALS['comment'] = $comment;
31 31
 
32
-    if (!empty($args['callback'])) {
33
-      call_user_func($args['callback'], $comment, $args, $depth);
34
-      return;
35
-    }
32
+	if (!empty($args['callback'])) {
33
+	  call_user_func($args['callback'], $comment, $args, $depth);
34
+	  return;
35
+	}
36 36
 
37
-    extract($args, EXTR_SKIP);?>
37
+	extract($args, EXTR_SKIP);?>
38 38
 
39 39
   	<li id="comment-<?php comment_ID(); ?>" <?php comment_class('media comment-' . get_comment_ID()); ?>>
40 40
     <?php get_template_part('comment'); ?>
@@ -42,11 +42,11 @@  discard block
 block discarded – undo
42 42
   }
43 43
 
44 44
   function end_el(&$output, $comment, $depth = 0, $args = array()) {
45
-    if (!empty($args['end-callback'])) {
46
-      call_user_func($args['end-callback'], $comment, $args, $depth);
47
-      return;
48
-    }
49
-    echo "</div></li>\n";
45
+	if (!empty($args['end-callback'])) {
46
+	  call_user_func($args['end-callback'], $comment, $args, $depth);
47
+	  return;
48
+	}
49
+	echo "</div></li>\n";
50 50
   }
51 51
   
52 52
 }
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 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
  * lsx Comment Walker
@@ -29,12 +29,12 @@  discard block
 block discarded – undo
29 29
     $GLOBALS['comment_depth'] = $depth;
30 30
     $GLOBALS['comment'] = $comment;
31 31
 
32
-    if (!empty($args['callback'])) {
32
+    if ( ! empty($args['callback'])) {
33 33
       call_user_func($args['callback'], $comment, $args, $depth);
34 34
       return;
35 35
     }
36 36
 
37
-    extract($args, EXTR_SKIP);?>
37
+    extract($args, EXTR_SKIP); ?>
38 38
 
39 39
   	<li id="comment-<?php comment_ID(); ?>" <?php comment_class('media comment-' . get_comment_ID()); ?>>
40 40
     <?php get_template_part('comment'); ?>
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
   }
43 43
 
44 44
   function end_el(&$output, $comment, $depth = 0, $args = array()) {
45
-    if (!empty($args['end-callback'])) {
45
+    if ( ! empty($args['end-callback'])) {
46 46
       call_user_func($args['end-callback'], $comment, $args, $depth);
47 47
       return;
48 48
     }
@@ -64,13 +64,13 @@  discard block
 block discarded – undo
64 64
  * @subpackage layout
65 65
  */
66 66
 function lsx_comment_form_fields_filter($fields) {	
67
-	foreach($fields as &$field){
68
-		if(stristr('class=', $field)){
67
+	foreach ($fields as &$field) {
68
+		if (stristr('class=', $field)) {
69 69
 			$field = str_replace('class="', 'class="form-control ', $field);
70
-		}else{
70
+		} else {
71 71
 			$field = str_replace('<input', '<input class="form-control" ', $field);
72 72
 		}
73 73
 	}
74 74
 	return $fields;
75 75
 }
76
-add_filter( 'comment_form_default_fields', 'lsx_comment_form_fields_filter');
76
+add_filter('comment_form_default_fields', 'lsx_comment_form_fields_filter');
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,8 @@  discard block
 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
  * lsx Comment Walker
@@ -67,7 +70,7 @@  discard block
 block discarded – undo
67 70
 	foreach($fields as &$field){
68 71
 		if(stristr('class=', $field)){
69 72
 			$field = str_replace('class="', 'class="form-control ', $field);
70
-		}else{
73
+		} else{
71 74
 			$field = str_replace('<input', '<input class="form-control" ', $field);
72 75
 		}
73 76
 	}
Please login to merge, or discard this patch.
inc/widgets.php 3 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -46,16 +46,16 @@
 block discarded – undo
46 46
 
47 47
 function lsx_sidebar_footer_params( $params ) {
48 48
 
49
-    $sidebar_id = $params[0]['id'];
49
+	$sidebar_id = $params[0]['id'];
50 50
 
51
-    if ( $sidebar_id == 'sidebar-footer' ) {
51
+	if ( $sidebar_id == 'sidebar-footer' ) {
52 52
 
53
-        $total_widgets = wp_get_sidebars_widgets();
54
-        $sidebar_widgets = count($total_widgets[$sidebar_id]);
53
+		$total_widgets = wp_get_sidebars_widgets();
54
+		$sidebar_widgets = count($total_widgets[$sidebar_id]);
55 55
 
56
-        $params[0]['before_widget'] = str_replace('class="styler', 'class="col-sm-' . floor(12 / $sidebar_widgets), $params[0]['before_widget']);
57
-    }
56
+		$params[0]['before_widget'] = str_replace('class="styler', 'class="col-sm-' . floor(12 / $sidebar_widgets), $params[0]['before_widget']);
57
+	}
58 58
 
59
-    return $params;
59
+	return $params;
60 60
 }
61 61
 add_filter( 'dynamic_sidebar_params', 'lsx_sidebar_footer_params' ); 
62 62
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -1,54 +1,54 @@  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
  * Register widgetized area and update sidebar with default widgets.
6 6
  */
7 7
 function lsx_widget_area_init() {
8 8
 	
9
-	register_sidebar( array(
10
-		'name'          => __( 'Home', 'lsx' ),
9
+	register_sidebar(array(
10
+		'name'          => __('Home', 'lsx'),
11 11
 		'id'            => 'sidebar-home',
12 12
 		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
13 13
 		'after_widget'  => '</aside>',
14 14
 		'before_title'  => '<h3 class="widget-title">',
15 15
 		'after_title'   => '</h3>',
16
-	) );
16
+	));
17 17
 	
18
-	register_sidebar( array(
19
-		'name'          => __( 'Sidebar', 'lsx' ),
18
+	register_sidebar(array(
19
+		'name'          => __('Sidebar', 'lsx'),
20 20
 		'id'            => 'sidebar-1',
21 21
 		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
22 22
 		'after_widget'  => '</aside>',
23 23
 		'before_title'  => '<h3 class="widget-title">',
24 24
 		'after_title'   => '</h3>',
25
-	) );
25
+	));
26 26
 
27
-	register_sidebar( array(
28
-		'name'          => __( 'Footer', 'lsx' ),
27
+	register_sidebar(array(
28
+		'name'          => __('Footer', 'lsx'),
29 29
 		'id'            => 'sidebar-footer',
30 30
 		'before_widget' => '<div class="styler"><aside id="%1$s" class="widget %2$s">',
31 31
 		'after_widget'  => '</aside></div>',
32 32
 		'before_title'  => '<h3 class="widget-title">',
33 33
 		'after_title'   => '</h3>',
34
-	) );
34
+	));
35 35
 
36
-	register_sidebar( array(
37
-		'name'          => __( 'Footer Call to Action', 'lsx' ),
36
+	register_sidebar(array(
37
+		'name'          => __('Footer Call to Action', 'lsx'),
38 38
 		'id'            => 'sidebar-footer-cta',
39 39
 		'before_widget' => '<div class="styler"><aside id="%1$s" class="widget %2$s">',
40 40
 		'after_widget'  => '</aside></div>',
41 41
 		'before_title'  => '<h3 class="widget-title">',
42 42
 		'after_title'   => '</h3>',
43
-	) );
43
+	));
44 44
 }
45
-add_action( 'widgets_init', 'lsx_widget_area_init' );
45
+add_action('widgets_init', 'lsx_widget_area_init');
46 46
 
47
-function lsx_sidebar_footer_params( $params ) {
47
+function lsx_sidebar_footer_params($params) {
48 48
 
49 49
     $sidebar_id = $params[0]['id'];
50 50
 
51
-    if ( $sidebar_id == 'sidebar-footer' ) {
51
+    if ($sidebar_id == 'sidebar-footer') {
52 52
 
53 53
         $total_widgets = wp_get_sidebars_widgets();
54 54
         $sidebar_widgets = count($total_widgets[$sidebar_id]);
@@ -58,4 +58,4 @@  discard block
 block discarded – undo
58 58
 
59 59
     return $params;
60 60
 }
61
-add_filter( 'dynamic_sidebar_params', 'lsx_sidebar_footer_params' ); 
62 61
\ No newline at end of file
62
+add_filter('dynamic_sidebar_params', 'lsx_sidebar_footer_params'); 
63 63
\ 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
  * Register widgetized area and update sidebar with default widgets.
Please login to merge, or discard this patch.
inc/wp-job-manager.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,6 +14,6 @@
 block discarded – undo
14 14
  */
15 15
 
16 16
 function lsx_wp_job_manager_styles() {
17
-    wp_enqueue_style( 'wp_job_manager', get_template_directory_uri() . '/css/wp-job-manager.css' );
17
+	wp_enqueue_style( 'wp_job_manager', get_template_directory_uri() . '/css/wp-job-manager.css' );
18 18
 }
19 19
 add_action( 'wp_enqueue_scripts', 'lsx_wp_job_manager_styles' );
20 20
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,6 +14,6 @@
 block discarded – undo
14 14
  */
15 15
 
16 16
 function lsx_wp_job_manager_styles() {
17
-    wp_enqueue_style( 'wp_job_manager', get_template_directory_uri() . '/css/wp-job-manager.css' );
17
+    wp_enqueue_style('wp_job_manager', get_template_directory_uri() . '/css/wp-job-manager.css');
18 18
 }
19
-add_action( 'wp_enqueue_scripts', 'lsx_wp_job_manager_styles' );
20 19
\ No newline at end of file
20
+add_action('wp_enqueue_scripts', 'lsx_wp_job_manager_styles');
21 21
\ No newline at end of file
Please login to merge, or discard this patch.
inc/customizer-header-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
  * Customizer Header 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_Header_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-header-layout-control', get_template_directory_uri() .'/js/customizer-header-layout.js', array('jquery'), null, true );
55
+		wp_enqueue_script('lsx-header-layout-control', get_template_directory_uri() . '/js/customizer-header-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="header-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="header-layout-button" style="padding:2px;'. $sel .'" src="' . get_template_directory_uri() .'/img/header-' . $layout . '.png" data-option="' . $layout . '">';
84
+				echo '<img class="header-layout-button" style="padding:2px;' . $sel . '" src="' . get_template_directory_uri() . '/img/header-' . $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
  * Customizer Header Swatch Control Class
Please login to merge, or discard this patch.
inc/google-font-collection.php 3 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 
13 13
 	/**
14 14
 	 * Constructor
15
-	**/
15
+	 **/
16 16
 	public function __construct($fonts)
17 17
 	{
18 18
 		if(empty($fonts))
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 	/**
34 34
 	 * getFontFamilyNameArray Function
35 35
 	 * this function returns an array containing all of the font family names
36
-	**/
36
+	 **/
37 37
 	function getFontFamilyNameArray()
38 38
 	{
39 39
 		$result;
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 	/**
48 48
 	 * getTitle
49 49
 	 * this function returns the font title
50
-	**/
50
+	 **/
51 51
 	function getTitle($key)
52 52
 	{
53 53
 		return $this->fonts[$key]->__get("title");
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 	/**
57 57
 	 * getLocation
58 58
 	 * this function returns the font location
59
-	**/
59
+	 **/
60 60
 	function getLocation($key)
61 61
 	{
62 62
 		return $this->fonts[$key]->__get("location");
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 	/**
66 66
 	 * getCssDeclaration
67 67
 	 * this function returns the font css declaration
68
-	**/
68
+	 **/
69 69
 	function getCssDeclaration($key)
70 70
 	{
71 71
 		return $this->fonts[$key]->__get("cssDeclaration");
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 	 * this function returns an array of css classes
78 78
 	 * this function is used when displaying the fancy list of fonts in the theme customizer
79 79
 	 * this function is used to send a JS file an array for the postMessage transport option in the theme customizer
80
-	**/
80
+	 **/
81 81
 	function getCssClassArray()
82 82
 	{
83 83
 		$result;
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
 	/**
92 92
 	 * getTotalNumberOfFonts
93 93
 	 * this function returns the total number of fonts
94
-	**/
94
+	 **/
95 95
 	function getTotalNumberOfFonts()
96 96
 	{
97 97
 		return count($this->fonts);
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 	/**
101 101
 	 * printThemeCustomizerCssLocations
102 102
 	 * this function prints the links to the css files for the theme customizer
103
-	**/
103
+	 **/
104 104
 	function printThemeCustomizerCssLocations()
105 105
 	{
106 106
 		foreach ($this->fonts as $key => $value) 
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
 	/**
117 117
 	 * printThemeCustomizerCssClasses
118 118
 	 * this function prints the theme customizer css classes necessary to display all of the fonts
119
-	**/
119
+	 **/
120 120
 	function printThemeCustomizerCssClasses()
121 121
 	{
122 122
 		?>
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 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
  * Google Font_Collection Class
5 5
 **/
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 	**/
16 16
 	public function __construct($fonts)
17 17
 	{
18
-		if(empty($fonts))
18
+		if (empty($fonts))
19 19
 		{
20 20
 			//we didn't get the required data
21 21
 			return false;
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 		// create fonts
25 25
 		foreach ($fonts as $key => $value) 
26 26
 		{	
27
-			if( empty( $value["system"] ) ){
27
+			if (empty($value["system"])) {
28 28
 				$this->fonts[$value["title"]] = new LSX_Google_Font($value["title"], $value["location"], $value["cssDeclaration"], $value["cssClass"]);
29 29
 			}
30 30
 		}
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 		foreach ($this->fonts as $key => $value) 
107 107
 		{
108 108
 			$protocol = 'http';
109
-			if(is_ssl()){ $protocol.='s'; }
109
+			if (is_ssl()) { $protocol .= 's'; }
110 110
 			?>
111 111
 			<link href="<?php echo $protocol; ?>://fonts.googleapis.com/css?family=<?php echo $value->__get("location"); ?>" rel='stylesheet' type='text/css'>
112 112
 			<?php
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
  * Google Font_Collection Class
5 8
 **/
Please login to merge, or discard this patch.