Passed
Push — master ( 48b81b...0c8760 )
by Warwick
04:18
created
templates/archive-projects.php 1 patch
Indentation   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -18,46 +18,46 @@  discard block
 block discarded – undo
18 18
 		<?php lsx_content_top(); ?>
19 19
 
20 20
 		<?php
21
-		if ( ! function_exists( 'lsx_search' ) ) {
22
-			$args = array(
23
-				'taxonomy'   => 'project-group',
24
-				'hide_empty' => false,
25
-			);
21
+          if ( ! function_exists( 'lsx_search' ) ) {
22
+               $args = array(
23
+                    'taxonomy'   => 'project-group',
24
+                    'hide_empty' => false,
25
+               );
26 26
 
27
-			$groups = get_terms( $args );
28
-			$group_selected = get_query_var( 'project-group' );
27
+               $groups = get_terms( $args );
28
+               $group_selected = get_query_var( 'project-group' );
29 29
 
30
-			if ( count( $groups ) > 0 ) {
31
-			?>
30
+               if ( count( $groups ) > 0 ) {
31
+               ?>
32 32
 
33 33
 			<ul class="nav nav-tabs lsx-projects-filter">
34 34
 				<?php
35
-					$group_selected_class = '';
35
+                         $group_selected_class = '';
36 36
 
37
-					if ( empty( $group_selected ) ) {
38
-						$group_selected_class = ' class="active"';
39
-					}
40
-				?>
37
+                         if ( empty( $group_selected ) ) {
38
+                              $group_selected_class = ' class="active"';
39
+                         }
40
+                    ?>
41 41
 
42 42
 				<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>
43 43
 
44 44
 				<?php foreach ( $groups as $group ) : ?>
45 45
 					<?php
46
-						$group_selected_class = '';
46
+                              $group_selected_class = '';
47 47
 
48
-						if ( (string) $group_selected === (string) $group->slug ) {
49
-							$group_selected_class = ' class="active"';
50
-						}
51
-					?>
48
+                              if ( (string) $group_selected === (string) $group->slug ) {
49
+                                   $group_selected_class = ' class="active"';
50
+                              }
51
+                         ?>
52 52
 
53 53
 					<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>
54 54
 				<?php endforeach; ?>
55 55
 			</ul>
56 56
 
57 57
 			<?php
58
-			}
59
-		}
60
-		?>
58
+               }
59
+          }
60
+          ?>
61 61
 
62 62
 		<?php if ( have_posts() ) : ?>
63 63
 
@@ -65,13 +65,13 @@  discard block
 block discarded – undo
65 65
 				<div class="row row-flex lsx-projects-row">
66 66
 
67 67
 					<?php
68
-						$count = 0;
68
+                              $count = 0;
69 69
 
70
-						while ( have_posts() ) {
71
-							the_post();
72
-							include LSX_PROJECTS_PATH . '/templates/content-archive-projects.php';
73
-						}
74
-					?>
70
+                              while ( have_posts() ) {
71
+                                   the_post();
72
+                                   include LSX_PROJECTS_PATH . '/templates/content-archive-projects.php';
73
+                              }
74
+                         ?>
75 75
 
76 76
 				</div>
77 77
 			</div>
Please login to merge, or discard this patch.