Passed
Push — master ( 48b81b...0c8760 )
by Warwick
04:18
created
templates/archive-projects.php 2 patches
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.
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 
10 10
 <?php lsx_content_wrap_before(); ?>
11 11
 
12
-<div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>">
12
+<div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>">
13 13
 
14 14
 	<?php lsx_content_before(); ?>
15 15
 
@@ -18,39 +18,39 @@  discard block
 block discarded – undo
18 18
 		<?php lsx_content_top(); ?>
19 19
 
20 20
 		<?php
21
-		if ( ! function_exists( 'lsx_search' ) ) {
21
+		if ( ! function_exists('lsx_search')) {
22 22
 			$args = array(
23 23
 				'taxonomy'   => 'project-group',
24 24
 				'hide_empty' => false,
25 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 ) {
30
+			if (count($groups) > 0) {
31 31
 			?>
32 32
 
33 33
 			<ul class="nav nav-tabs lsx-projects-filter">
34 34
 				<?php
35 35
 					$group_selected_class = '';
36 36
 
37
-					if ( empty( $group_selected ) ) {
37
+					if (empty($group_selected)) {
38 38
 						$group_selected_class = ' class="active"';
39 39
 					}
40 40
 				?>
41 41
 
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>
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
-				<?php foreach ( $groups as $group ) : ?>
44
+				<?php foreach ($groups as $group) : ?>
45 45
 					<?php
46 46
 						$group_selected_class = '';
47 47
 
48
-						if ( (string) $group_selected === (string) $group->slug ) {
48
+						if ((string) $group_selected === (string) $group->slug) {
49 49
 							$group_selected_class = ' class="active"';
50 50
 						}
51 51
 					?>
52 52
 
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>
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
 
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 		}
60 60
 		?>
61 61
 
62
-		<?php if ( have_posts() ) : ?>
62
+		<?php if (have_posts()) : ?>
63 63
 
64 64
 			<div class="lsx-projects-container">
65 65
 				<div class="row row-flex lsx-projects-row">
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 					<?php
68 68
 						$count = 0;
69 69
 
70
-						while ( have_posts() ) {
70
+						while (have_posts()) {
71 71
 							the_post();
72 72
 							include LSX_PROJECTS_PATH . '/templates/content-archive-projects.php';
73 73
 						}
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 
81 81
 		<?php else : ?>
82 82
 
83
-			<?php get_template_part( 'partials/content', 'none' ); ?>
83
+			<?php get_template_part('partials/content', 'none'); ?>
84 84
 
85 85
 		<?php endif; ?>
86 86
 
Please login to merge, or discard this patch.