Completed
Push — master ( 0e00e1...c8b83c )
by Fernando
06:22
created
inc/template-tags.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
  */
12 12
 function lsx_breadcrumbs() {
13 13
   if (!function_exists('yoast_breadcrumb') && !function_exists('woocommerce_breadcrumb')) {
14
-    return null;
14
+	return null;
15 15
   }
16 16
   
17 17
   $show_on_front = get_option('show_on_front');
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 	 * Displays logo when applicable
69 69
 	 *
70 70
 	 * @return void
71
-	*/
71
+	 */
72 72
 	function lsx_site_title() {
73 73
 		?>
74 74
 			<div class="site-branding">
@@ -418,7 +418,7 @@  discard block
 block discarded – undo
418 418
 		
419 419
 		//print_r(get_nav_menu_locations());
420 420
 
421
-	    if(false != $nav_menu && isset($nav_menu['primary']) && 0 != $nav_menu['primary']){ ?>
421
+		if(false != $nav_menu && isset($nav_menu['primary']) && 0 != $nav_menu['primary']){ ?>
422 422
 			<nav class="primary-navbar collapse navbar-collapse">
423 423
 		    	<?php
424 424
 				wp_nav_menu( array(
@@ -546,9 +546,9 @@  discard block
 block discarded – undo
546 546
 				if(null != $tag_cloud){
547 547
 					printf( '<h2>'.__( '%1$s', 'lsx' ).'</h2>', $taxonomy );
548 548
 					echo '<aside id="'.$taxonomy_id.'" class="widget widget_'.$taxonomy_id.'">'.$tag_cloud.'</aside>';
549
-		        }
550
-	        }
551
-        } 
549
+				}
550
+			}
551
+		} 
552 552
 }
553 553
 
554 554
 /**
@@ -597,11 +597,11 @@  discard block
 block discarded – undo
597 597
 			<div class="container">
598 598
 				<nav class="top-menu">
599 599
 		    		<?php
600
-		    			wp_nav_menu( array(
600
+						wp_nav_menu( array(
601 601
 							'theme_location' => 'top-menu',
602 602
 							'walker' => new lsx_bootstrap_navwalker())
603 603
 						);
604
-		    		?>
604
+					?>
605 605
 		    	</nav>	
606 606
 	    	</div>
607 607
 	    </div>
Please login to merge, or discard this patch.
inc/wp-bootstrap-navwalker.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -159,17 +159,17 @@
 block discarded – undo
159 159
 	 * @return null Null on failure with no changes to parameters.
160 160
 	 */
161 161
 	public function display_element( $element, &$children_elements, $max_depth, $depth, $args, &$output ) {
162
-        if ( ! $element )
163
-            return;
162
+		if ( ! $element )
163
+			return;
164 164
 
165
-        $id_field = $this->db_fields['id'];
165
+		$id_field = $this->db_fields['id'];
166 166
 
167
-        // Display this element.
168
-        if ( is_object( $args[0] ) )
169
-           $args[0]->has_children = ! empty( $children_elements[ $element->$id_field ] );
167
+		// Display this element.
168
+		if ( is_object( $args[0] ) )
169
+		   $args[0]->has_children = ! empty( $children_elements[ $element->$id_field ] );
170 170
 
171
-        parent::display_element( $element, $children_elements, $max_depth, $depth, $args, $output );
172
-    }
171
+		parent::display_element( $element, $children_elements, $max_depth, $depth, $args, $output );
172
+	}
173 173
 
174 174
 	/**
175 175
 	 * Menu Fallback
Please login to merge, or discard this patch.
inc/comment-walker.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -14,25 +14,25 @@  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 37
   	<li id="comment-<?php comment_ID(); ?>" <?php comment_class('media comment-' . get_comment_ID()); ?>>
38 38
     <?php get_template_part('comment'); ?>
@@ -40,11 +40,11 @@  discard block
 block discarded – undo
40 40
   }
41 41
 
42 42
   function end_el(&$output, $comment, $depth = 0, $args = array()) {
43
-    if (!empty($args['end-callback'])) {
44
-      call_user_func($args['end-callback'], $comment, $args, $depth);
45
-      return;
46
-    }
47
-    echo "</div></li>\n";
43
+	if (!empty($args['end-callback'])) {
44
+	  call_user_func($args['end-callback'], $comment, $args, $depth);
45
+	  return;
46
+	}
47
+	echo "</div></li>\n";
48 48
   }
49 49
   
50 50
 }
Please login to merge, or discard this patch.
inc/extras.php 1 patch
Indentation   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 	
15 15
   // Add post/page slug
16 16
   if (is_single() || is_page() && !is_front_page()) {
17
-    $classes[] = basename(get_permalink());
17
+	$classes[] = basename(get_permalink());
18 18
   }
19 19
   
20 20
   if(!class_exists('Lsx_Banners')){
@@ -38,8 +38,8 @@  discard block
 block discarded – undo
38 38
   // Remove unnecessary classes
39 39
   $home_id_class = 'page-id-' . get_option('page_on_front');
40 40
   $remove_classes = array(
41
-    'page-template-default',
42
-    $home_id_class
41
+	'page-template-default',
42
+	$home_id_class
43 43
   );
44 44
   $classes = array_diff($classes, $remove_classes);
45 45
 
@@ -271,12 +271,12 @@  discard block
 block discarded – undo
271 271
 		 || (is_singular('jetpack-portfolio')) ) { ?>
272 272
 	        
273 273
 	        <?php 
274
-	        	$bg_image = '';
275
-	        	if(has_post_thumbnail()){
276
-	        		$bg_image = wp_get_attachment_image_src(get_post_thumbnail_id(get_the_ID()),'full');
277
-	        		$bg_image = $bg_image[0];
278
-	        	}
279
-	        ?>
274
+				$bg_image = '';
275
+				if(has_post_thumbnail()){
276
+					$bg_image = wp_get_attachment_image_src(get_post_thumbnail_id(get_the_ID()),'full');
277
+					$bg_image = $bg_image[0];
278
+				}
279
+			?>
280 280
 
281 281
 	   		<?php if ( ! empty( $bg_image ) ) : ?>
282 282
 	        
@@ -309,8 +309,8 @@  discard block
 block discarded – undo
309 309
  * @category mobile
310 310
  */
311 311
 function lsx_allow_sms_protocol( $protocols ) {
312
-    $protocols[] = 'sms';
313
-    return $protocols;
312
+	$protocols[] = 'sms';
313
+	return $protocols;
314 314
 }
315 315
 add_filter( 'kses_allowed_protocols', 'lsx_allow_sms_protocol' );
316 316
 
@@ -322,27 +322,27 @@  discard block
 block discarded – undo
322 322
 		$http_user_agent = sanitize_text_field( wp_unslash( $_SERVER['HTTP_USER_AGENT'] ) );
323 323
 		$http_user_agent = ! empty( $http_user_agent ) ? $http_user_agent : '';
324 324
 
325
-        global $is_lynx, $is_gecko, $is_ie, $is_opera, $is_ns4, $is_safari, $is_chrome, $is_iphone;
326
-        if($is_lynx) $classes[] = 'lynx';
327
-        elseif($is_gecko) $classes[] = 'gecko';
328
-        elseif($is_opera) $classes[] = 'opera';
329
-        elseif($is_ns4) $classes[] = 'ns4';
330
-        elseif($is_safari) $classes[] = 'safari';
331
-        elseif($is_chrome) $classes[] = 'chrome';
332
-        elseif($is_ie) {
333
-                $classes[] = 'ie';
334
-                if(preg_match('/MSIE ([0-9]+)([a-zA-Z0-9.]+)/', $http_user_agent, $browser_version))
335
-                $classes[] = 'ie'.$browser_version[1];
336
-        } else $classes[] = 'unknown';
337
-        if($is_iphone) $classes[] = 'iphone';
338
-        if ( stristr( $http_user_agent, "mac") ) {
339
-                 $classes[] = 'osx';
340
-           } elseif ( stristr( $http_user_agent, "linux") ) {
341
-                 $classes[] = 'linux';
342
-           } elseif ( stristr( $http_user_agent, "windows") ) {
343
-                 $classes[] = 'windows';
344
-           }
345
-        return $classes;
325
+		global $is_lynx, $is_gecko, $is_ie, $is_opera, $is_ns4, $is_safari, $is_chrome, $is_iphone;
326
+		if($is_lynx) $classes[] = 'lynx';
327
+		elseif($is_gecko) $classes[] = 'gecko';
328
+		elseif($is_opera) $classes[] = 'opera';
329
+		elseif($is_ns4) $classes[] = 'ns4';
330
+		elseif($is_safari) $classes[] = 'safari';
331
+		elseif($is_chrome) $classes[] = 'chrome';
332
+		elseif($is_ie) {
333
+				$classes[] = 'ie';
334
+				if(preg_match('/MSIE ([0-9]+)([a-zA-Z0-9.]+)/', $http_user_agent, $browser_version))
335
+				$classes[] = 'ie'.$browser_version[1];
336
+		} else $classes[] = 'unknown';
337
+		if($is_iphone) $classes[] = 'iphone';
338
+		if ( stristr( $http_user_agent, "mac") ) {
339
+				 $classes[] = 'osx';
340
+		   } elseif ( stristr( $http_user_agent, "linux") ) {
341
+				 $classes[] = 'linux';
342
+		   } elseif ( stristr( $http_user_agent, "windows") ) {
343
+				 $classes[] = 'windows';
344
+		   }
345
+		return $classes;
346 346
 }
347 347
 add_filter('body_class','mv_browser_body_class');
348 348
 
Please login to merge, or discard this patch.
inc/widgets.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -45,15 +45,15 @@
 block discarded – undo
45 45
 add_action( 'widgets_init', 'lsx_widget_area_init' );
46 46
 
47 47
 function lsx_sidebar_footer_params( $params ) {
48
-    $sidebar_id = $params[0]['id'];
48
+	$sidebar_id = $params[0]['id'];
49 49
 
50
-    if ( 'sidebar-footer' == $sidebar_id ) {
51
-        $total_widgets = wp_get_sidebars_widgets();
52
-        $sidebar_widgets = count($total_widgets[$sidebar_id]);
50
+	if ( 'sidebar-footer' == $sidebar_id ) {
51
+		$total_widgets = wp_get_sidebars_widgets();
52
+		$sidebar_widgets = count($total_widgets[$sidebar_id]);
53 53
 
54
-        $params[0]['before_widget'] = str_replace('class="styler', 'class="col-sm-' . floor(12 / $sidebar_widgets), $params[0]['before_widget']);
55
-    }
54
+		$params[0]['before_widget'] = str_replace('class="styler', 'class="col-sm-' . floor(12 / $sidebar_widgets), $params[0]['before_widget']);
55
+	}
56 56
 
57
-    return $params;
57
+	return $params;
58 58
 }
59 59
 add_filter( 'dynamic_sidebar_params', 'lsx_sidebar_footer_params' ); 
60 60
\ No newline at end of file
Please login to merge, or discard this patch.