Passed
Push — master ( 86dfed...3aa001 )
by Warwick
05:45
created
includes/classes/class-lsx-bootstrap-navwalker.php 1 patch
Indentation   +220 added lines, -220 removed lines patch added patch discarded remove patch
@@ -8,232 +8,232 @@
 block discarded – undo
8 8
  */
9 9
 
10 10
 if ( ! defined( 'ABSPATH' ) ) {
11
-	exit;
11
+     exit;
12 12
 }
13 13
 
14 14
 if ( ! class_exists( 'Walker_Nav_Menu' ) ) {
15
-	return;
15
+     return;
16 16
 }
17 17
 
18 18
 if ( ! class_exists( 'LSX_Bootstrap_Navwalker' ) ) :
19 19
 
20
-	/**
21
-	 * Cleaner Bootstrap walker
22
-	 *
23
-	 * @package    lsx
24
-	 * @subpackage navigation
25
-	 * @category   bootstrap-navigation-walker
26
-	 */
27
-	class LSX_Bootstrap_Navwalker extends Walker_Nav_Menu {
28
-
29
-		/**
30
-		 * Used to append additional content.
31
-		 *
32
-		 * @see Walker::start_lvl()
33
-		 * @since 3.0.0
34
-		 *
35
-		 * @param string $output Passed by reference. Used to append additional content.
36
-		 * @param int    $depth Depth of page. Used for padding.
37
-		 */
38
-		public function start_lvl( &$output, $depth = 0, $args = array() ) {
39
-			$indent  = str_repeat( "\t", $depth );
40
-			$output .= "\n$indent<ul role=\"menu\" class=\" dropdown-menu\">\n";
41
-		}
42
-
43
-		/**
44
-		 * Used to append additional content.
45
-		 * @param string $item Passed by reference.
46
-		 */
47
-		public function filter_default_pages( &$item ) {
48
-			return $item;
49
-		}
50
-
51
-		/**
52
-		 * @see Walker::start_el()
53
-		 * @since 3.0.0
54
-		 *
55
-		 * @param string $output Passed by reference. Used to append additional content.
56
-		 * @param object $item Menu item data object.
57
-		 * @param int $depth Depth of menu item. Used for padding.
58
-		 * @param int $current_page Menu item ID.
59
-		 * @param object $args
60
-		 */
61
-		public function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) {
62
-			$indent = ( $depth ) ? str_repeat( "\t", $depth ) : '';
63
-
64
-			/**
65
-			 * If this is a default menu being called we need to fix
66
-			 * the item object thats coming through.
67
-			 */
68
-			if ( ! isset( $item->title ) ) {
69
-				return;
70
-			}
71
-
72
-			/**
73
-			 * Dividers, Headers or Disabled
74
-			 * =============================
75
-			 * Determine whether the item is a Divider, Header, Disabled or regular
76
-			 * menu item. To prevent errors we use the strcasecmp() function to so a
77
-			 * comparison that is not case sensitive. The strcasecmp() function returns
78
-			 * a 0 if the strings are equal.
79
-			 */
80
-			if ( 0 == strcasecmp( $item->attr_title, 'divider' ) && 1 === $depth ) {
81
-				$output .= $indent . '<li role="presentation" class="divider">';
82
-			} elseif ( 0 == strcasecmp( $item->title, 'divider' ) && 1 === $depth ) {
83
-				$output .= $indent . '<li role="presentation" class="divider">';
84
-			} elseif ( 0 == strcasecmp( $item->attr_title, 'dropdown-header' ) && 1 === $depth ) {
85
-				$output .= $indent . '<li role="presentation" class="dropdown-header">' . esc_attr( $item->title );
86
-			} elseif ( 0 == strcasecmp( $item->attr_title, 'disabled' ) ) {
87
-				$output .= $indent . '<li role="presentation" class="disabled"><a href="#">' . esc_attr( $item->title ) . '</a>';
88
-			} else {
89
-				$class_names = '';
90
-				$value       = '';
91
-
92
-				$classes = empty( $item->classes ) ? array() : (array) $item->classes;
93
-				$classes[] = 'menu-item-' . $item->ID;
94
-
95
-				$classes = apply_filters( 'lsx_nav_menu_css_class', array_filter( $classes ), $item, $args, $depth );
96
-
97
-				$class_names = join( ' ', $classes );
98
-
99
-				if ( $args->has_children )
100
-					$class_names .= ' dropdown';
101
-
102
-				if ( in_array( 'current-menu-item', $classes ) )
103
-					$class_names .= ' active';
104
-
105
-				if ( in_array( 'current-menu-parent', $classes ) )
106
-					$class_names .= ' active';
107
-
108
-				//Check if this is ment to be a "social" type menu
109
-				$class_names = $class_names ? ' class="' . esc_attr( $class_names ) . '"' : '';
110
-
111
-				$id = apply_filters( 'nav_menu_item_id', 'menu-item-' . $item->ID, $item, $args );
112
-				$id = $id ? ' id="' . esc_attr( $id ) . '"' : '';
113
-
114
-				$output .= $indent . '<li' . $id . $value . $class_names . '>';
115
-
116
-				$atts = array();
117
-				$atts['title']  = ! empty( $item->attr_title ) ? $item->attr_title : $item->title;
118
-				$atts['target'] = ! empty( $item->target ) ? $item->target : '';
119
-				$atts['rel']    = ! empty( $item->xfn ) ? $item->xfn : '';
120
-
121
-				// If item has_children add atts to a.
122
-				if ( $args->has_children ) {
123
-					$atts['href']          = ! empty( $item->url ) ? $item->url : '';
124
-					$atts['data-toggle']   = 'dropdown';
125
-					$atts['class']         = 'dropdown-toggle';
126
-					$atts['aria-haspopup'] = 'true';
127
-				} else {
128
-					$atts['href'] = ! empty( $item->url ) ? $item->url : '';
129
-				}
130
-
131
-				$atts = apply_filters( 'nav_menu_link_attributes', $atts, $item, $args );
132
-
133
-				$attributes = '';
134
-				foreach ( $atts as $attr => $value ) {
135
-					if ( ! empty( $value ) ) {
136
-						$value = ( 'href' === $attr ) ? esc_url( $value ) : esc_attr( $value );
137
-						$attributes .= ' ' . $attr . '="' . $value . '"';
138
-					}
139
-				}
140
-
141
-				$item_output = $args->before;
142
-
143
-				$item_output .= '<a' . $attributes . '>';
144
-				$item_output .= $args->link_before . apply_filters( 'the_title', $item->title, $item->ID ) . $args->link_after;
145
-				$item_output .= ( $args->has_children && 0 === $depth ) ? ' <span class="caret"></span></a>' : '</a>';
146
-				$item_output .= $args->after;
147
-
148
-				$output .= apply_filters( 'walker_nav_menu_start_el', $item_output, $item, $depth, $args );
149
-			}
150
-		}
151
-
152
-		/**
153
-		 * Traverse elements to create list from elements.
154
-		 *
155
-		 * Display one element if the element doesn't have any children otherwise,
156
-		 * display the element and its children. Will only traverse up to the max
157
-		 * depth and no ignore elements under that depth.
158
-		 *
159
-		 * This method shouldn't be called directly, use the walk() method instead.
160
-		 *
161
-		 * @see Walker::start_el()
162
-		 * @since 2.5.0
163
-		 *
164
-		 * @param object $element Data object
165
-		 * @param array $children_elements List of elements to continue traversing.
166
-		 * @param int $max_depth Max depth to traverse.
167
-		 * @param int $depth Depth of current element.
168
-		 * @param array $args
169
-		 * @param string $output Passed by reference. Used to append additional content.
170
-		 * @return null Null on failure with no changes to parameters.
171
-		 */
172
-		public function display_element( $element, &$children_elements, $max_depth, $depth, $args, &$output ) {
173
-			if ( ! $element ) {
174
-				return;
175
-			}
176
-
177
-			$id_field = $this->db_fields['id'];
178
-
179
-			if ( is_object( $args[0] ) ) {
180
-				$args[0]->has_children = ! empty( $children_elements[ $element->$id_field ] );
181
-			}
182
-
183
-			parent::display_element( $element, $children_elements, $max_depth, $depth, $args, $output );
184
-		}
185
-
186
-		/**
187
-		 * Menu Fallback
188
-		 * =============
189
-		 * If this function is assigned to the wp_nav_menu's fallback_cb variable
190
-		 * and a manu has not been assigned to the theme location in the WordPress
191
-		 * menu manager the function with display nothing to a non-logged in user,
192
-		 * and will add a link to the WordPress menu manager if logged in as an admin.
193
-		 *
194
-		 * @param array $args passed from the wp_nav_menu function.
195
-		 *
196
-		 */
197
-		public static function fallback( $args ) {
198
-			if ( current_user_can( 'manage_options' ) ) {
199
-				$fb_output = null;
200
-
201
-				if ( $args['container'] ) {
202
-					$fb_output = '<' . $args['container'];
203
-
204
-					if ( $args['container_id'] ) {
205
-						$fb_output .= ' id="' . $args['container_id'] . '"';
206
-					}
207
-
208
-					if ( $args['container_class'] ) {
209
-						$fb_output .= ' class="' . $args['container_class'] . '"';
210
-					}
211
-
212
-					$fb_output .= '>';
213
-				}
214
-
215
-				$fb_output .= '<ul';
216
-
217
-				if ( $args['menu_id'] ) {
218
-					$fb_output .= ' id="' . $args['menu_id'] . '"';
219
-				}
220
-
221
-				if ( $args['menu_class'] ) {
222
-					$fb_output .= ' class="' . $args['menu_class'] . '"';
223
-				}
224
-
225
-				$fb_output .= '>';
226
-				$fb_output .= '<li><a href="' . esc_url( admin_url( 'nav-menus.php' ) ) . '">' . esc_html__( 'Add a menu', 'lsx' ) . '</a></li>';
227
-				$fb_output .= '</ul>';
228
-
229
-				if ( $args['container'] ) {
230
-					$fb_output .= '</' . $args['container'] . '>';
231
-				}
232
-
233
-				echo wp_kses_post( $fb_output );
234
-			}
235
-		}
236
-
237
-	}
20
+     /**
21
+      * Cleaner Bootstrap walker
22
+      *
23
+      * @package    lsx
24
+      * @subpackage navigation
25
+      * @category   bootstrap-navigation-walker
26
+      */
27
+     class LSX_Bootstrap_Navwalker extends Walker_Nav_Menu {
28
+
29
+          /**
30
+           * Used to append additional content.
31
+           *
32
+           * @see Walker::start_lvl()
33
+           * @since 3.0.0
34
+           *
35
+           * @param string $output Passed by reference. Used to append additional content.
36
+           * @param int    $depth Depth of page. Used for padding.
37
+           */
38
+          public function start_lvl( &$output, $depth = 0, $args = array() ) {
39
+               $indent  = str_repeat( "\t", $depth );
40
+               $output .= "\n$indent<ul role=\"menu\" class=\" dropdown-menu\">\n";
41
+          }
42
+
43
+          /**
44
+           * Used to append additional content.
45
+           * @param string $item Passed by reference.
46
+           */
47
+          public function filter_default_pages( &$item ) {
48
+               return $item;
49
+          }
50
+
51
+          /**
52
+           * @see Walker::start_el()
53
+           * @since 3.0.0
54
+           *
55
+           * @param string $output Passed by reference. Used to append additional content.
56
+           * @param object $item Menu item data object.
57
+           * @param int $depth Depth of menu item. Used for padding.
58
+           * @param int $current_page Menu item ID.
59
+           * @param object $args
60
+           */
61
+          public function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) {
62
+               $indent = ( $depth ) ? str_repeat( "\t", $depth ) : '';
63
+
64
+               /**
65
+                * If this is a default menu being called we need to fix
66
+                * the item object thats coming through.
67
+                */
68
+               if ( ! isset( $item->title ) ) {
69
+                    return;
70
+               }
71
+
72
+               /**
73
+                * Dividers, Headers or Disabled
74
+                * =============================
75
+                * Determine whether the item is a Divider, Header, Disabled or regular
76
+                * menu item. To prevent errors we use the strcasecmp() function to so a
77
+                * comparison that is not case sensitive. The strcasecmp() function returns
78
+                * a 0 if the strings are equal.
79
+                */
80
+               if ( 0 == strcasecmp( $item->attr_title, 'divider' ) && 1 === $depth ) {
81
+                    $output .= $indent . '<li role="presentation" class="divider">';
82
+               } elseif ( 0 == strcasecmp( $item->title, 'divider' ) && 1 === $depth ) {
83
+                    $output .= $indent . '<li role="presentation" class="divider">';
84
+               } elseif ( 0 == strcasecmp( $item->attr_title, 'dropdown-header' ) && 1 === $depth ) {
85
+                    $output .= $indent . '<li role="presentation" class="dropdown-header">' . esc_attr( $item->title );
86
+               } elseif ( 0 == strcasecmp( $item->attr_title, 'disabled' ) ) {
87
+                    $output .= $indent . '<li role="presentation" class="disabled"><a href="#">' . esc_attr( $item->title ) . '</a>';
88
+               } else {
89
+                    $class_names = '';
90
+                    $value       = '';
91
+
92
+                    $classes = empty( $item->classes ) ? array() : (array) $item->classes;
93
+                    $classes[] = 'menu-item-' . $item->ID;
94
+
95
+                    $classes = apply_filters( 'lsx_nav_menu_css_class', array_filter( $classes ), $item, $args, $depth );
96
+
97
+                    $class_names = join( ' ', $classes );
98
+
99
+                    if ( $args->has_children )
100
+                         $class_names .= ' dropdown';
101
+
102
+                    if ( in_array( 'current-menu-item', $classes ) )
103
+                         $class_names .= ' active';
104
+
105
+                    if ( in_array( 'current-menu-parent', $classes ) )
106
+                         $class_names .= ' active';
107
+
108
+                    //Check if this is ment to be a "social" type menu
109
+                    $class_names = $class_names ? ' class="' . esc_attr( $class_names ) . '"' : '';
110
+
111
+                    $id = apply_filters( 'nav_menu_item_id', 'menu-item-' . $item->ID, $item, $args );
112
+                    $id = $id ? ' id="' . esc_attr( $id ) . '"' : '';
113
+
114
+                    $output .= $indent . '<li' . $id . $value . $class_names . '>';
115
+
116
+                    $atts = array();
117
+                    $atts['title']  = ! empty( $item->attr_title ) ? $item->attr_title : $item->title;
118
+                    $atts['target'] = ! empty( $item->target ) ? $item->target : '';
119
+                    $atts['rel']    = ! empty( $item->xfn ) ? $item->xfn : '';
120
+
121
+                    // If item has_children add atts to a.
122
+                    if ( $args->has_children ) {
123
+                         $atts['href']          = ! empty( $item->url ) ? $item->url : '';
124
+                         $atts['data-toggle']   = 'dropdown';
125
+                         $atts['class']         = 'dropdown-toggle';
126
+                         $atts['aria-haspopup'] = 'true';
127
+                    } else {
128
+                         $atts['href'] = ! empty( $item->url ) ? $item->url : '';
129
+                    }
130
+
131
+                    $atts = apply_filters( 'nav_menu_link_attributes', $atts, $item, $args );
132
+
133
+                    $attributes = '';
134
+                    foreach ( $atts as $attr => $value ) {
135
+                         if ( ! empty( $value ) ) {
136
+                              $value = ( 'href' === $attr ) ? esc_url( $value ) : esc_attr( $value );
137
+                              $attributes .= ' ' . $attr . '="' . $value . '"';
138
+                         }
139
+                    }
140
+
141
+                    $item_output = $args->before;
142
+
143
+                    $item_output .= '<a' . $attributes . '>';
144
+                    $item_output .= $args->link_before . apply_filters( 'the_title', $item->title, $item->ID ) . $args->link_after;
145
+                    $item_output .= ( $args->has_children && 0 === $depth ) ? ' <span class="caret"></span></a>' : '</a>';
146
+                    $item_output .= $args->after;
147
+
148
+                    $output .= apply_filters( 'walker_nav_menu_start_el', $item_output, $item, $depth, $args );
149
+               }
150
+          }
151
+
152
+          /**
153
+           * Traverse elements to create list from elements.
154
+           *
155
+           * Display one element if the element doesn't have any children otherwise,
156
+           * display the element and its children. Will only traverse up to the max
157
+           * depth and no ignore elements under that depth.
158
+           *
159
+           * This method shouldn't be called directly, use the walk() method instead.
160
+           *
161
+           * @see Walker::start_el()
162
+           * @since 2.5.0
163
+           *
164
+           * @param object $element Data object
165
+           * @param array $children_elements List of elements to continue traversing.
166
+           * @param int $max_depth Max depth to traverse.
167
+           * @param int $depth Depth of current element.
168
+           * @param array $args
169
+           * @param string $output Passed by reference. Used to append additional content.
170
+           * @return null Null on failure with no changes to parameters.
171
+           */
172
+          public function display_element( $element, &$children_elements, $max_depth, $depth, $args, &$output ) {
173
+               if ( ! $element ) {
174
+                    return;
175
+               }
176
+
177
+               $id_field = $this->db_fields['id'];
178
+
179
+               if ( is_object( $args[0] ) ) {
180
+                    $args[0]->has_children = ! empty( $children_elements[ $element->$id_field ] );
181
+               }
182
+
183
+               parent::display_element( $element, $children_elements, $max_depth, $depth, $args, $output );
184
+          }
185
+
186
+          /**
187
+           * Menu Fallback
188
+           * =============
189
+           * If this function is assigned to the wp_nav_menu's fallback_cb variable
190
+           * and a manu has not been assigned to the theme location in the WordPress
191
+           * menu manager the function with display nothing to a non-logged in user,
192
+           * and will add a link to the WordPress menu manager if logged in as an admin.
193
+           *
194
+           * @param array $args passed from the wp_nav_menu function.
195
+           *
196
+           */
197
+          public static function fallback( $args ) {
198
+               if ( current_user_can( 'manage_options' ) ) {
199
+                    $fb_output = null;
200
+
201
+                    if ( $args['container'] ) {
202
+                         $fb_output = '<' . $args['container'];
203
+
204
+                         if ( $args['container_id'] ) {
205
+                              $fb_output .= ' id="' . $args['container_id'] . '"';
206
+                         }
207
+
208
+                         if ( $args['container_class'] ) {
209
+                              $fb_output .= ' class="' . $args['container_class'] . '"';
210
+                         }
211
+
212
+                         $fb_output .= '>';
213
+                    }
214
+
215
+                    $fb_output .= '<ul';
216
+
217
+                    if ( $args['menu_id'] ) {
218
+                         $fb_output .= ' id="' . $args['menu_id'] . '"';
219
+                    }
220
+
221
+                    if ( $args['menu_class'] ) {
222
+                         $fb_output .= ' class="' . $args['menu_class'] . '"';
223
+                    }
224
+
225
+                    $fb_output .= '>';
226
+                    $fb_output .= '<li><a href="' . esc_url( admin_url( 'nav-menus.php' ) ) . '">' . esc_html__( 'Add a menu', 'lsx' ) . '</a></li>';
227
+                    $fb_output .= '</ul>';
228
+
229
+                    if ( $args['container'] ) {
230
+                         $fb_output .= '</' . $args['container'] . '>';
231
+                    }
232
+
233
+                    echo wp_kses_post( $fb_output );
234
+               }
235
+          }
236
+
237
+     }
238 238
 
239 239
 endif;
Please login to merge, or discard this patch.
single.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -20,17 +20,17 @@  discard block
 block discarded – undo
20 20
 		<?php if ( have_posts() ) : ?>
21 21
 
22 22
 			<?php
23
-			while ( have_posts() ) :
24
-				the_post();
25
-			?>
23
+               while ( have_posts() ) :
24
+                    the_post();
25
+               ?>
26 26
 
27 27
 				<?php
28
-				if ( is_singular( 'post' ) ) {
29
-					get_template_part( 'partials/content', 'post' );
30
-				} else {
31
-					get_template_part( 'partials/content', 'custom' );
32
-				}
33
-				?>
28
+                    if ( is_singular( 'post' ) ) {
29
+                         get_template_part( 'partials/content', 'post' );
30
+                    } else {
31
+                         get_template_part( 'partials/content', 'custom' );
32
+                    }
33
+                    ?>
34 34
 
35 35
 			<?php endwhile; ?>
36 36
 
@@ -43,16 +43,16 @@  discard block
 block discarded – undo
43 43
 	<?php lsx_content_after(); ?>
44 44
 
45 45
 	<?php
46
-	if ( is_singular( 'post' ) ) {
47
-		lsx_post_nav();
48
-	}
49
-	?>
46
+     if ( is_singular( 'post' ) ) {
47
+          lsx_post_nav();
48
+     }
49
+     ?>
50 50
 
51 51
 	<?php
52
-	if ( comments_open() ) {
53
-		comments_template();
54
-	}
55
-	?>
52
+     if ( comments_open() ) {
53
+          comments_template();
54
+     }
55
+     ?>
56 56
 
57 57
 </div><!-- #primary -->
58 58
 
Please login to merge, or discard this patch.
comments.php 1 patch
Indentation   +47 added lines, -47 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
  */
7 7
 
8 8
 if ( post_password_required() ) {
9
-	return;
9
+     return;
10 10
 }
11 11
 
12 12
 $commenter = wp_get_current_commenter();
@@ -15,20 +15,20 @@  discard block
 block discarded – undo
15 15
 $html_req  = ( $req ? " required='required'" : '' );
16 16
 
17 17
 $comment_form_args = array(
18
-	'comment_field' => '<p class="comment-form-comment"><textarea placeholder="' . esc_html__( 'Comment', 'lsx' ) . '" id="comment" class="form-control" name="comment" cols="45" rows="8"' . $aria_req . $html_req . '></textarea></p>',
18
+     'comment_field' => '<p class="comment-form-comment"><textarea placeholder="' . esc_html__( 'Comment', 'lsx' ) . '" id="comment" class="form-control" name="comment" cols="45" rows="8"' . $aria_req . $html_req . '></textarea></p>',
19 19
 
20
-	'fields'        => array(
21
-		'author' => '<p class="comment-form-author"><label for="author">' . esc_html__( 'Name', 'lsx' ) . '</label> ' .
22
-			( $req ? '<span class="required">*</span>' : '' ) .
23
-			'<input class="form-control" placeholder="' . esc_html__( 'Name', 'lsx' ) . '" id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30"' . $aria_req . $html_req . '></p>',
20
+     'fields'        => array(
21
+          'author' => '<p class="comment-form-author"><label for="author">' . esc_html__( 'Name', 'lsx' ) . '</label> ' .
22
+               ( $req ? '<span class="required">*</span>' : '' ) .
23
+               '<input class="form-control" placeholder="' . esc_html__( 'Name', 'lsx' ) . '" id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30"' . $aria_req . $html_req . '></p>',
24 24
 
25
-		'email'  => '<p class="comment-form-email"><label for="email">' . esc_html__( 'Email', 'lsx' ) . '</label> ' .
26
-			( $req ? '<span class="required">*</span>' : '' ) .
27
-			'<input class="form-control" placeholder="' . esc_html__( 'Email', 'lsx' ) . '" id="email" name="email" type="text" value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30"' . $aria_req . $html_req . '></p>',
25
+          'email'  => '<p class="comment-form-email"><label for="email">' . esc_html__( 'Email', 'lsx' ) . '</label> ' .
26
+               ( $req ? '<span class="required">*</span>' : '' ) .
27
+               '<input class="form-control" placeholder="' . esc_html__( 'Email', 'lsx' ) . '" id="email" name="email" type="text" value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30"' . $aria_req . $html_req . '></p>',
28 28
 
29
-		'url'    => '<p class="comment-form-url"><label for="url">' . esc_html__( 'Website', 'lsx' ) . '</label>' .
30
-			'<input class="form-control" placeholder="' . esc_html__( 'Website', 'lsx' ) . '" id="url" name="url" type="text" value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30"></p>',
31
-	),
29
+          'url'    => '<p class="comment-form-url"><label for="url">' . esc_html__( 'Website', 'lsx' ) . '</label>' .
30
+               '<input class="form-control" placeholder="' . esc_html__( 'Website', 'lsx' ) . '" id="url" name="url" type="text" value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30"></p>',
31
+     ),
32 32
 );
33 33
 
34 34
 comment_form( $comment_form_args );
@@ -40,47 +40,47 @@  discard block
 block discarded – undo
40 40
 	<section id="comments">
41 41
 		<h3>
42 42
 			<?php
43
-				$comments_number = get_comments_number();
44
-
45
-			if ( '1' === $comments_number ) {
46
-				printf(
47
-					/* Translators: %s: post title */
48
-					esc_html_x( 'One Response to &ldquo;%s&rdquo;', 'comments.php', 'lsx' ),
49
-					get_the_title()
50
-				);
51
-			} else {
52
-				printf(
53
-					esc_html(
54
-						/* Translators: 1: number of comments, 2: post title */
55
-						_nx(
56
-							'%1$s Response to &ldquo;%2$s&rdquo;',
57
-							'%1$s Responses to &ldquo;%2$s&rdquo;',
58
-							$comments_number,
59
-							'comments.php',
60
-							'lsx'
61
-						)
62
-					),
63
-					esc_html( number_format_i18n( $comments_number ) ),
64
-					get_the_title()
65
-				);
66
-			}
67
-			?>
43
+                    $comments_number = get_comments_number();
44
+
45
+               if ( '1' === $comments_number ) {
46
+                    printf(
47
+                         /* Translators: %s: post title */
48
+                         esc_html_x( 'One Response to &ldquo;%s&rdquo;', 'comments.php', 'lsx' ),
49
+                         get_the_title()
50
+                    );
51
+               } else {
52
+                    printf(
53
+                         esc_html(
54
+                              /* Translators: 1: number of comments, 2: post title */
55
+                              _nx(
56
+                                   '%1$s Response to &ldquo;%2$s&rdquo;',
57
+                                   '%1$s Responses to &ldquo;%2$s&rdquo;',
58
+                                   $comments_number,
59
+                                   'comments.php',
60
+                                   'lsx'
61
+                              )
62
+                         ),
63
+                         esc_html( number_format_i18n( $comments_number ) ),
64
+                         get_the_title()
65
+                    );
66
+               }
67
+               ?>
68 68
 		</h3>
69 69
 
70 70
 		<ol class="media-list">
71 71
 			<?php
72
-				wp_list_comments(
73
-					array(
74
-						'walker' => new LSX_Walker_Comment(),
75
-					)
76
-				);
77
-			?>
72
+                    wp_list_comments(
73
+                         array(
74
+                              'walker' => new LSX_Walker_Comment(),
75
+                         )
76
+                    );
77
+               ?>
78 78
 		</ol>
79 79
 
80 80
 		<?php
81
-		$comment_pages_count = get_comment_pages_count();
82
-		if ( $comment_pages_count > 1 && get_option( 'page_comments' ) ) :
83
-			?>
81
+          $comment_pages_count = get_comment_pages_count();
82
+          if ( $comment_pages_count > 1 && get_option( 'page_comments' ) ) :
83
+               ?>
84 84
 			<nav>
85 85
 				<ul class="pager">
86 86
 					<?php if ( get_previous_comments_link() ) : ?>
@@ -116,5 +116,5 @@  discard block
 block discarded – undo
116 116
 	<?php lsx_comments_after(); ?>
117 117
 
118 118
 	<?php
119
-	endif;
119
+     endif;
120 120
 ?>
Please login to merge, or discard this patch.
sidebar-sitemap.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -11,9 +11,9 @@  discard block
 block discarded – undo
11 11
 $layout = apply_filters( 'lsx_layout', $layout );
12 12
 
13 13
 if ( 'posts' === $show_on_front && is_home() ) {
14
-	$sidebar = 'home';
14
+     $sidebar = 'home';
15 15
 } else {
16
-	$sidebar = 'sidebar-1';
16
+     $sidebar = 'sidebar-1';
17 17
 }
18 18
 
19 19
 if ( '1c' !== $layout ) : ?>
@@ -28,10 +28,10 @@  discard block
 block discarded – undo
28 28
 
29 29
 		<aside id="categories" class="widget widget_categories">
30 30
 			<?php
31
-				echo wp_tag_cloud( array(
32
-					'taxonomy' => 'category',
33
-				) );
34
-			?>
31
+                    echo wp_tag_cloud( array(
32
+                         'taxonomy' => 'category',
33
+                    ) );
34
+               ?>
35 35
 		</aside>
36 36
 
37 37
 		<?php lsx_sitemap_taxonomy_clouds(); ?>
Please login to merge, or discard this patch.
index.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -21,11 +21,11 @@
 block discarded – undo
21 21
 
22 22
 			<div class="post-wrapper <?php echo esc_attr( lsx_post_wrapper_class() ); ?>">
23 23
 				<?php
24
-				while ( have_posts() ) :
25
-					the_post();
26
-					lsx_get_template_part();
27
-				endwhile;
28
-				?>
24
+                    while ( have_posts() ) :
25
+                         the_post();
26
+                         lsx_get_template_part();
27
+                    endwhile;
28
+                    ?>
29 29
 			</div>
30 30
 
31 31
 			<?php lsx_paging_nav(); ?>
Please login to merge, or discard this patch.
searchform.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -8,11 +8,11 @@
 block discarded – undo
8 8
 $style = 'body #searchform { display: block; }';
9 9
 
10 10
 if ( is_customize_preview() ) {
11
-	$search_form = get_theme_mod( 'lsx_header_search', false );
11
+     $search_form = get_theme_mod( 'lsx_header_search', false );
12 12
 
13
-	if ( false === $search_form ) {
14
-		$style = 'body #searchform { display: none; }';
15
-	}
13
+     if ( false === $search_form ) {
14
+          $style = 'body #searchform { display: none; }';
15
+     }
16 16
 }
17 17
 ?>
18 18
 
Please login to merge, or discard this patch.
footer.php 1 patch
Indentation   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -22,49 +22,49 @@
 block discarded – undo
22 22
 
23 23
 						<p class="credit <?php if ( has_nav_menu( 'social' ) || has_nav_menu( 'footer' ) ) echo 'credit-float'; ?>">
24 24
 							<?php
25
-								printf(
26
-									/* Translators: 1: current year, 2: blog name */
27
-									esc_html__( '&#169; %1$s %2$s All Rights Reserved', 'lsx' ),
28
-									esc_html( date_i18n( 'Y' ) ),
29
-									esc_html( get_bloginfo( 'name' ) )
30
-								);
31
-								?>
25
+                                        printf(
26
+                                             /* Translators: 1: current year, 2: blog name */
27
+                                             esc_html__( '&#169; %1$s %2$s All Rights Reserved', 'lsx' ),
28
+                                             esc_html( date_i18n( 'Y' ) ),
29
+                                             esc_html( get_bloginfo( 'name' ) )
30
+                                        );
31
+                                        ?>
32 32
 
33 33
 							<?php if ( apply_filters( 'lsx_credit_link', true ) ) : ?>
34 34
 								<?php
35
-									printf(
36
-										/* Translators: 1: theme name, 2: author name and link */
37
-										esc_html__( ' | %1$s is a WordPress theme developed by %2$s.', 'lsx' ),
38
-										'LSX',
39
-										'<a href="https://www.lsdev.biz/" rel="nofollow noreferrer noopener" title="LightSpeed WordPress Development - Unlocking the full value of your business, online" rel="author nofollow noopener noreferrer" >LightSpeed</a>'
40
-									);
41
-								?>
35
+                                             printf(
36
+                                                  /* Translators: 1: theme name, 2: author name and link */
37
+                                                  esc_html__( ' | %1$s is a WordPress theme developed by %2$s.', 'lsx' ),
38
+                                                  'LSX',
39
+                                                  '<a href="https://www.lsdev.biz/" rel="nofollow noreferrer noopener" title="LightSpeed WordPress Development - Unlocking the full value of your business, online" rel="author nofollow noopener noreferrer" >LightSpeed</a>'
40
+                                             );
41
+                                        ?>
42 42
 							<?php endif; ?>
43 43
 						</p>
44 44
 
45 45
 						<?php if ( has_nav_menu( 'social' ) ) : ?>
46 46
 							<nav id="social-navigation" class="social-navigation">
47 47
 								<?php
48
-									wp_nav_menu(
49
-										array(
50
-											'theme_location' => 'social',
51
-											'depth' => 1,
52
-										)
53
-									);
54
-								?>
48
+                                             wp_nav_menu(
49
+                                                  array(
50
+                                                       'theme_location' => 'social',
51
+                                                       'depth' => 1,
52
+                                                  )
53
+                                             );
54
+                                        ?>
55 55
 							</nav><!-- .social-navigation -->
56 56
 						<?php endif; ?>
57 57
 
58 58
 						<?php if ( has_nav_menu( 'footer' ) ) : ?>
59 59
 							<nav id="footer-navigation" class="footer-navigation">
60 60
 								<?php
61
-									wp_nav_menu(
62
-										array(
63
-											'theme_location' => 'footer',
64
-											'depth' => 1,
65
-										)
66
-									);
67
-								?>
61
+                                             wp_nav_menu(
62
+                                                  array(
63
+                                                       'theme_location' => 'footer',
64
+                                                       'depth' => 1,
65
+                                                  )
66
+                                             );
67
+                                        ?>
68 68
 							</nav><!-- .footer-navigation -->
69 69
 						<?php endif; ?>
70 70
 
Please login to merge, or discard this patch.
comment.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -6,9 +6,9 @@  discard block
 block discarded – undo
6 6
  */
7 7
 
8 8
 if ( isset( $GLOBALS['comment_depth'] ) ) {
9
-	$depth = intval( $GLOBALS['comment_depth'] );
9
+     $depth = intval( $GLOBALS['comment_depth'] );
10 10
 } else {
11
-	$depth = 1;
11
+     $depth = 1;
12 12
 }
13 13
 
14 14
 $max_depth = intval( get_option( 'thread_comments_depth' ) );
@@ -21,13 +21,13 @@  discard block
 block discarded – undo
21 21
 	<time datetime="<?php echo comment_date( 'c' ); ?>">
22 22
 		<a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>">
23 23
 			<?php
24
-				printf(
25
-					/* Translators: 1: post date, 2: post time */
26
-					esc_html__( '%1$s on %2$s', 'lsx' ),
27
-					get_comment_date(),
28
-					get_comment_time()
29
-				);
30
-				?>
24
+                    printf(
25
+                         /* Translators: 1: post date, 2: post time */
26
+                         esc_html__( '%1$s on %2$s', 'lsx' ),
27
+                         get_comment_date(),
28
+                         get_comment_time()
29
+                    );
30
+                    ?>
31 31
 		</a>
32 32
 	</time>
33 33
 
@@ -43,8 +43,8 @@  discard block
 block discarded – undo
43 43
 comment_text();
44 44
 
45 45
 comment_reply_link(
46
-	array(
47
-		'depth'     => $depth,
48
-		'max_depth' => $max_depth,
49
-	)
46
+     array(
47
+          'depth'     => $depth,
48
+          'max_depth' => $max_depth,
49
+     )
50 50
 );
Please login to merge, or discard this patch.
partials/content-post.php 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -15,15 +15,15 @@  discard block
 block discarded – undo
15 15
 
16 16
 	<div class="entry-content">
17 17
 		<?php
18
-			the_content();
19
-
20
-			wp_link_pages( array(
21
-				'before'      => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
22
-				'after'       => '</div></div>',
23
-				'link_before' => '<span>',
24
-				'link_after'  => '</span>',
25
-			) );
26
-		?>
18
+               the_content();
19
+
20
+               wp_link_pages( array(
21
+                    'before'      => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
22
+                    'after'       => '</div></div>',
23
+                    'link_before' => '<span>',
24
+                    'link_after'  => '</span>',
25
+               ) );
26
+          ?>
27 27
 	</div><!-- .entry-content -->
28 28
 
29 29
 	<footer class="footer-meta clearfix">
@@ -32,19 +32,19 @@  discard block
 block discarded – undo
32 32
 				<?php lsx_content_post_tags(); ?>
33 33
 
34 34
 				<?php
35
-				if ( class_exists( 'LSX_Sharing' ) ) {
36
-					lsx_content_sharing();
37
-				} else {
38
-					if ( function_exists( 'sharing_display' ) ) {
39
-						sharing_display( '', true );
40
-					}
41
-
42
-					if ( class_exists( 'Jetpack_Likes' ) ) {
43
-						$custom_likes = new Jetpack_Likes();
44
-						echo wp_kses_post( $custom_likes->post_likes( '' ) );
45
-					}
46
-				}
47
-				?>
35
+                    if ( class_exists( 'LSX_Sharing' ) ) {
36
+                         lsx_content_sharing();
37
+                    } else {
38
+                         if ( function_exists( 'sharing_display' ) ) {
39
+                              sharing_display( '', true );
40
+                         }
41
+
42
+                         if ( class_exists( 'Jetpack_Likes' ) ) {
43
+                              $custom_likes = new Jetpack_Likes();
44
+                              echo wp_kses_post( $custom_likes->post_likes( '' ) );
45
+                         }
46
+                    }
47
+                    ?>
48 48
 		<?php endif ?>
49 49
 	</footer><!-- .footer-meta -->
50 50
 
Please login to merge, or discard this patch.