Completed
Push — master ( 296a4e...80da17 )
by Fernando
05:58
created
image.php 1 patch
Indentation   +48 added lines, -48 removed lines patch added patch discarded remove patch
@@ -31,20 +31,20 @@  discard block
 block discarded – undo
31 31
  
32 32
                         <div class="entry-meta">
33 33
                             <?php
34
-                               $metadata = wp_get_attachment_metadata();
35
-                                printf( wp_kses_post( '%1$s <span class="entry-date"><time class="entry-date" datetime="%2$s" pubdate>%3$s</time></span> %4$s <a href="%5$s">%6$s &times; %7$s</a> %8$s <a href="%9$s" title="%10$s" rel="gallery">%10$s</a>' ),
36
-                                    esc_html__( 'Published', 'lsx' ),
37
-                                    esc_attr( get_the_date( 'c' ) ),
38
-                                    esc_html( get_the_date() ),
39
-                                    esc_html__( 'at', 'lsx' ),
40
-                                    esc_url( wp_get_attachment_url() ),
41
-                                    esc_attr( $metadata['width'] ),
42
-                                    esc_attr( $metadata['height'] ),
43
-                                    esc_html__( 'in', 'lsx' ),
44
-                                    esc_url( get_permalink( $post->post_parent ) ),
45
-                                    get_the_title( $post->post_parent )
46
-                                );
47
-                            ?>
34
+							   $metadata = wp_get_attachment_metadata();
35
+								printf( wp_kses_post( '%1$s <span class="entry-date"><time class="entry-date" datetime="%2$s" pubdate>%3$s</time></span> %4$s <a href="%5$s">%6$s &times; %7$s</a> %8$s <a href="%9$s" title="%10$s" rel="gallery">%10$s</a>' ),
36
+									esc_html__( 'Published', 'lsx' ),
37
+									esc_attr( get_the_date( 'c' ) ),
38
+									esc_html( get_the_date() ),
39
+									esc_html__( 'at', 'lsx' ),
40
+									esc_url( wp_get_attachment_url() ),
41
+									esc_attr( $metadata['width'] ),
42
+									esc_attr( $metadata['height'] ),
43
+									esc_html__( 'in', 'lsx' ),
44
+									esc_url( get_permalink( $post->post_parent ) ),
45
+									get_the_title( $post->post_parent )
46
+								);
47
+							?>
48 48
                             <?php edit_post_link( esc_html__( 'Edit', 'lsx' ), '<span class="sep"> | </span> <span class="edit-link">', '</span>' ); ?>
49 49
                         </div><!-- .entry-meta -->
50 50
  
@@ -59,34 +59,34 @@  discard block
 block discarded – undo
59 59
                         <div class="entry-attachment">
60 60
                             <div class="attachment">
61 61
                                 <?php
62
-                                    /**
63
-                                     * Grab the IDs of all the image attachments in a gallery so we can get the URL of the next adjacent image in a gallery,
64
-                                     * or the first image (if we're looking at the last image in a gallery), or, in a gallery of one, just the link to that image file
65
-                                     */
66
-                                    $attachments = array_values( get_children( array( 'post_parent' => $post->post_parent, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID' ) ) );
67
-                                    foreach ( $attachments as $k => $attachment ) {
68
-                                        if ( $attachment->ID == $post->ID )
69
-                                            break;
70
-                                    }
71
-                                    $k++;
72
-                                    // If there is more than 1 attachment in a gallery
73
-                                    if ( count( $attachments ) > 1 ) {
74
-                                        if ( isset( $attachments[ $k ] ) )
75
-                                            // get the URL of the next image attachment
76
-                                            $next_attachment_url = get_attachment_link( $attachments[ $k ]->ID );
77
-                                        else
78
-                                            // or get the URL of the first image attachment
79
-                                            $next_attachment_url = get_attachment_link( $attachments[ 0 ]->ID );
80
-                                    } else {
81
-                                        // or, if there's only 1 image, get the URL of the image
82
-                                        $next_attachment_url = wp_get_attachment_url();
83
-                                    }
84
-                                ?>
62
+									/**
63
+									 * Grab the IDs of all the image attachments in a gallery so we can get the URL of the next adjacent image in a gallery,
64
+									 * or the first image (if we're looking at the last image in a gallery), or, in a gallery of one, just the link to that image file
65
+									 */
66
+									$attachments = array_values( get_children( array( 'post_parent' => $post->post_parent, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID' ) ) );
67
+									foreach ( $attachments as $k => $attachment ) {
68
+										if ( $attachment->ID == $post->ID )
69
+											break;
70
+									}
71
+									$k++;
72
+									// If there is more than 1 attachment in a gallery
73
+									if ( count( $attachments ) > 1 ) {
74
+										if ( isset( $attachments[ $k ] ) )
75
+											// get the URL of the next image attachment
76
+											$next_attachment_url = get_attachment_link( $attachments[ $k ]->ID );
77
+										else
78
+											// or get the URL of the first image attachment
79
+											$next_attachment_url = get_attachment_link( $attachments[ 0 ]->ID );
80
+									} else {
81
+										// or, if there's only 1 image, get the URL of the image
82
+										$next_attachment_url = wp_get_attachment_url();
83
+									}
84
+								?>
85 85
  
86 86
                                 <a href="<?php echo esc_url( $next_attachment_url ); ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php
87
-                                    $attachment_size = apply_filters( 'shape_attachment_size', array( 1200, 1200 ) ); // Filterable image size.
88
-                                    echo wp_get_attachment_image( $post->ID, $attachment_size );
89
-                                ?></a>
87
+									$attachment_size = apply_filters( 'shape_attachment_size', array( 1200, 1200 ) ); // Filterable image size.
88
+									echo wp_get_attachment_image( $post->ID, $attachment_size );
89
+								?></a>
90 90
                             </div><!-- .attachment -->
91 91
  
92 92
                             <?php if ( ! empty( $post->post_excerpt ) ) : ?>
@@ -97,15 +97,15 @@  discard block
 block discarded – undo
97 97
                         </div><!-- .entry-attachment -->
98 98
  
99 99
                         <?php
100
-                            the_content();
100
+							the_content();
101 101
 
102
-                            wp_link_pages( array(
103
-                                'before' => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
104
-                                'after' => '</div></div>',
105
-                                'link_before' => '<span>',
106
-                                'link_after' => '</span>'
107
-                            ) );
108
-                        ?>
102
+							wp_link_pages( array(
103
+								'before' => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
104
+								'after' => '</div></div>',
105
+								'link_before' => '<span>',
106
+								'link_after' => '</span>'
107
+							) );
108
+						?>
109 109
  
110 110
                     </div><!-- .entry-content -->
111 111
                     
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/the-events-calendar.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
  */
19 19
 
20 20
 function lsx_events_styles() {
21
-    wp_enqueue_style( 'events', get_template_directory_uri() . '/css/the-events-calendar.css', array(), LSX_VERSION );
21
+	wp_enqueue_style( 'events', get_template_directory_uri() . '/css/the-events-calendar.css', array(), LSX_VERSION );
22 22
 }
23 23
 add_action( 'wp_enqueue_scripts', 'lsx_events_styles' );
24 24
 
Please login to merge, or discard this patch.
inc/wp-job-manager.php 1 patch
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', array(), LSX_VERSION );
17
+	wp_enqueue_style( 'wp_job_manager', get_template_directory_uri() . '/css/wp-job-manager.css', array(), LSX_VERSION );
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.
inc/woocommerce.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -69,8 +69,8 @@
 block discarded – undo
69 69
 add_filter( 'woocommerce_enqueue_styles', '__return_empty_array' );
70 70
 
71 71
 function lsx_woocommerce_styles() {
72
-    wp_enqueue_style( 'woocommerce-layout', get_template_directory_uri() . '/css/woocommerce-layout.css', array(), LSX_VERSION, 'all' );
73
-    wp_enqueue_style( 'woocommerce-smallscreen', get_template_directory_uri() . '/css/woocommerce-smallscreen.css', array( 'woocommerce-layout' ), LSX_VERSION, 'only screen and (max-width: 767px)' );
74
-    wp_enqueue_style( 'woocommerce-general', get_template_directory_uri() . '/css/woocommerce.css', array(), LSX_VERSION, 'all' );
72
+	wp_enqueue_style( 'woocommerce-layout', get_template_directory_uri() . '/css/woocommerce-layout.css', array(), LSX_VERSION, 'all' );
73
+	wp_enqueue_style( 'woocommerce-smallscreen', get_template_directory_uri() . '/css/woocommerce-smallscreen.css', array( 'woocommerce-layout' ), LSX_VERSION, 'only screen and (max-width: 767px)' );
74
+	wp_enqueue_style( 'woocommerce-general', get_template_directory_uri() . '/css/woocommerce.css', array(), LSX_VERSION, 'all' );
75 75
 }
76 76
 add_action( 'wp_enqueue_scripts', 'lsx_woocommerce_styles' );
77 77
\ No newline at end of file
Please login to merge, or discard this patch.
inc/template-tags.php 1 patch
Indentation   +6 added lines, -6 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">
@@ -462,7 +462,7 @@  discard block
 block discarded – undo
462 462
 		
463 463
 		//print_r(get_nav_menu_locations());
464 464
 
465
-	    if(false != $nav_menu && isset($nav_menu['primary']) && 0 != $nav_menu['primary']){ ?>
465
+		if(false != $nav_menu && isset($nav_menu['primary']) && 0 != $nav_menu['primary']){ ?>
466 466
 			<nav class="primary-navbar collapse navbar-collapse">
467 467
 		    	<?php
468 468
 				wp_nav_menu( array(
@@ -574,9 +574,9 @@  discard block
 block discarded – undo
574 574
 				if(null != $tag_cloud){
575 575
 					echo '<h2>' . esc_html( $taxonomy ) . '</h2>';
576 576
 					echo '<aside id="' . esc_attr( $taxonomy_id ) . '" class="widget widget_' . esc_attr( $taxonomy_id ) . '">' . esc_html( $tag_cloud ) . '</aside>';
577
-		        }
578
-	        }
579
-        } 
577
+				}
578
+			}
579
+		} 
580 580
 }
581 581
 
582 582
 /**
Please login to merge, or discard this patch.
inc/sensei.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@
 block discarded – undo
125 125
  * @category styles
126 126
  */
127 127
 function lsx_sensei_styles() {
128
-    wp_enqueue_style( 'sensei', get_template_directory_uri() . '/css/sensei.css', array(), LSX_VERSION );
128
+	wp_enqueue_style( 'sensei', get_template_directory_uri() . '/css/sensei.css', array(), LSX_VERSION );
129 129
 }
130 130
 add_action( 'wp_enqueue_scripts', 'lsx_sensei_styles' );
131 131
 
Please login to merge, or discard this patch.