Passed
Push — master ( 4db3df...ea3467 )
by Virginia
03:49
created
templates/content-archive-projects.php 1 patch
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -5,24 +5,24 @@  discard block
 block discarded – undo
5 5
 ?>
6 6
 
7 7
 <?php
8
-	global $lsx_projects_frontend;
8
+     global $lsx_projects_frontend;
9 9
 
10
-	$groups = '';
11
-	$groups_class = '';
12
-	$terms = get_the_terms( get_the_ID(), 'project-group' );
10
+     $groups = '';
11
+     $groups_class = '';
12
+     $terms = get_the_terms( get_the_ID(), 'project-group' );
13 13
 
14
-	if ( $terms && ! is_wp_error( $terms ) ) {
15
-		$groups = array();
16
-		$groups_class = array();
14
+     if ( $terms && ! is_wp_error( $terms ) ) {
15
+          $groups = array();
16
+          $groups_class = array();
17 17
 
18
-		foreach ( $terms as $term ) {
19
-			$groups[] = '<a href="' . get_term_link( $term ) . '">' . $term->name . '</a>';
20
-			$groups_class[] = 'filter-' . $term->slug;
21
-		}
18
+          foreach ( $terms as $term ) {
19
+               $groups[] = '<a href="' . get_term_link( $term ) . '">' . $term->name . '</a>';
20
+               $groups_class[] = 'filter-' . $term->slug;
21
+          }
22 22
 
23
-		$groups = join( ', ', $groups );
24
-		$groups_class = join( ' ', $groups_class );
25
-	}
23
+          $groups = join( ', ', $groups );
24
+          $groups_class = join( ' ', $groups_class );
25
+     }
26 26
 ?>
27 27
 
28 28
 <div class="col-xs-12 col-sm-6 col-md-6 lsx-projects-column <?php echo esc_attr( $groups_class ); ?>">
@@ -36,12 +36,12 @@  discard block
 block discarded – undo
36 36
 		<?php endif; ?>
37 37
 
38 38
 		<?php
39
-		if ( empty( lsx_get_thumbnail( 'lsx-thumbnail-single' ) ) ) {
40
-			if ( ! empty( projects_get_option( 'projects_placeholder' ) ) ) {
41
-				echo wp_kses_post( '<img src="' . projects_get_option( 'projects_placeholder' ) . '" width="auto" alt="placeholder" />' );
42
-			}
43
-		}
44
-		?>
39
+          if ( empty( lsx_get_thumbnail( 'lsx-thumbnail-single' ) ) ) {
40
+               if ( ! empty( projects_get_option( 'projects_placeholder' ) ) ) {
41
+                    echo wp_kses_post( '<img src="' . projects_get_option( 'projects_placeholder' ) . '" width="auto" alt="placeholder" />' );
42
+               }
43
+          }
44
+          ?>
45 45
 
46 46
 		<h5 class="lsx-projects-title">
47 47
 			<?php if ( ! isset( $lsx_projects_frontend->options['display'] ) || ! isset( $lsx_projects_frontend->options['display']['team_disable_single'] ) ) : ?>
Please login to merge, or discard this patch.
templates/archive-projects.php 1 patch
Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -18,44 +18,44 @@  discard block
 block discarded – undo
18 18
 		<?php lsx_content_top(); ?>
19 19
 
20 20
 		<?php
21
-			$args = array(
22
-				'taxonomy'   => 'project-group',
23
-				'hide_empty' => false,
24
-			);
21
+               $args = array(
22
+                    'taxonomy'   => 'project-group',
23
+                    'hide_empty' => false,
24
+               );
25 25
 
26
-			$groups = get_terms( $args );
27
-			$group_selected = get_query_var( 'project-group' );
26
+               $groups = get_terms( $args );
27
+               $group_selected = get_query_var( 'project-group' );
28 28
 
29
-			if ( count( $groups ) > 0 ) :
30
-			?>
29
+               if ( count( $groups ) > 0 ) :
30
+               ?>
31 31
 
32 32
 			<ul class="nav nav-tabs lsx-projects-filter">
33 33
 				<?php
34
-					$group_selected_class = '';
34
+                         $group_selected_class = '';
35 35
 
36
-					if ( empty( $group_selected ) ) {
37
-						$group_selected_class = ' class="active"';
38
-					}
39
-				?>
36
+                         if ( empty( $group_selected ) ) {
37
+                              $group_selected_class = ' class="active"';
38
+                         }
39
+                    ?>
40 40
 
41 41
 				<li<?php echo wp_kses_post( $group_selected_class ); ?>><a href="<?php echo empty( $group_selected ) ? '#' : esc_url( get_post_type_archive_link( 'project' ) ); ?>" data-filter="*"><?php esc_html_e( 'All', 'lsx-projects' ); ?></a></li>
42 42
 
43 43
 				<?php foreach ( $groups as $group ) : ?>
44 44
 					<?php
45
-						$group_selected_class = '';
45
+                              $group_selected_class = '';
46 46
 
47
-						if ( (string) $group_selected === (string) $group->slug ) {
48
-							$group_selected_class = ' class="active"';
49
-						}
50
-					?>
47
+                              if ( (string) $group_selected === (string) $group->slug ) {
48
+                                   $group_selected_class = ' class="active"';
49
+                              }
50
+                         ?>
51 51
 
52 52
 					<li<?php echo wp_kses_post( $group_selected_class ); ?>><a href="<?php echo empty( $group_selected ) ? '#' : esc_url( get_term_link( $group ) ); ?>" data-filter=".filter-<?php echo esc_attr( $group->slug ); ?>"><?php echo esc_attr( $group->name ); ?></a></li>
53 53
 				<?php endforeach; ?>
54 54
 			</ul>
55 55
 
56 56
 			<?php
57
-			endif;
58
-		?>
57
+               endif;
58
+          ?>
59 59
 
60 60
 		<?php if ( have_posts() ) : ?>
61 61
 
@@ -63,13 +63,13 @@  discard block
 block discarded – undo
63 63
 				<div class="row row-flex lsx-projects-row">
64 64
 
65 65
 					<?php
66
-						$count = 0;
66
+                              $count = 0;
67 67
 
68
-						while ( have_posts() ) {
69
-							the_post();
70
-							include LSX_PROJECTS_PATH . '/templates/content-archive-projects.php';
71
-						}
72
-					?>
68
+                              while ( have_posts() ) {
69
+                                   the_post();
70
+                                   include LSX_PROJECTS_PATH . '/templates/content-archive-projects.php';
71
+                              }
72
+                         ?>
73 73
 
74 74
 				</div>
75 75
 			</div>
Please login to merge, or discard this patch.