Passed
Push — master ( 4db3df...ea3467 )
by Virginia
03:49
created
templates/content-archive-projects.php 2 patches
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.
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -9,53 +9,53 @@
 block discarded – undo
9 9
 
10 10
 	$groups = '';
11 11
 	$groups_class = '';
12
-	$terms = get_the_terms( get_the_ID(), 'project-group' );
12
+	$terms = get_the_terms(get_the_ID(), 'project-group');
13 13
 
14
-	if ( $terms && ! is_wp_error( $terms ) ) {
14
+	if ($terms && ! is_wp_error($terms)) {
15 15
 		$groups = array();
16 16
 		$groups_class = array();
17 17
 
18
-		foreach ( $terms as $term ) {
19
-			$groups[] = '<a href="' . get_term_link( $term ) . '">' . $term->name . '</a>';
18
+		foreach ($terms as $term) {
19
+			$groups[] = '<a href="' . get_term_link($term) . '">' . $term->name . '</a>';
20 20
 			$groups_class[] = 'filter-' . $term->slug;
21 21
 		}
22 22
 
23
-		$groups = join( ', ', $groups );
24
-		$groups_class = join( ' ', $groups_class );
23
+		$groups = join(', ', $groups);
24
+		$groups_class = join(' ', $groups_class);
25 25
 	}
26 26
 ?>
27 27
 
28
-<div class="col-xs-12 col-sm-6 col-md-6 lsx-projects-column <?php echo esc_attr( $groups_class ); ?>">
28
+<div class="col-xs-12 col-sm-6 col-md-6 lsx-projects-column <?php echo esc_attr($groups_class); ?>">
29 29
 	<article class="lsx-projects-slot">
30
-		<?php if ( ! empty( lsx_get_thumbnail( 'lsx-thumbnail-single' ) ) ) : ?>
31
-			<?php if ( ! isset( $lsx_projects_frontend->options['display'] ) || ! isset( $lsx_projects_frontend->options['display']['team_disable_single'] ) ) : ?>
32
-				<a href="<?php the_permalink(); ?>"><figure class="lsx-projects-avatar"><?php lsx_thumbnail( 'lsx-thumbnail-single' ); ?></figure></a>
30
+		<?php if ( ! empty(lsx_get_thumbnail('lsx-thumbnail-single'))) : ?>
31
+			<?php if ( ! isset($lsx_projects_frontend->options['display']) || ! isset($lsx_projects_frontend->options['display']['team_disable_single'])) : ?>
32
+				<a href="<?php the_permalink(); ?>"><figure class="lsx-projects-avatar"><?php lsx_thumbnail('lsx-thumbnail-single'); ?></figure></a>
33 33
 			<?php else : ?>
34
-				<figure class="lsx-projects-avatar"><?php lsx_thumbnail( 'lsx-thumbnail-single' ); ?></figure>
34
+				<figure class="lsx-projects-avatar"><?php lsx_thumbnail('lsx-thumbnail-single'); ?></figure>
35 35
 			<?php endif; ?>
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" />' );
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 42
 			}
43 43
 		}
44 44
 		?>
45 45
 
46 46
 		<h5 class="lsx-projects-title">
47
-			<?php if ( ! isset( $lsx_projects_frontend->options['display'] ) || ! isset( $lsx_projects_frontend->options['display']['team_disable_single'] ) ) : ?>
47
+			<?php if ( ! isset($lsx_projects_frontend->options['display']) || ! isset($lsx_projects_frontend->options['display']['team_disable_single'])) : ?>
48 48
 				<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
49 49
 			<?php else : ?>
50 50
 				<?php the_title(); ?>
51 51
 			<?php endif; ?>
52 52
 		</h5>
53 53
 
54
-		<?php if ( ! empty( $groups ) ) : ?>
55
-			<p class="lsx-projects-groups"><?php echo wp_kses_post( $groups ); ?></p>
54
+		<?php if ( ! empty($groups)) : ?>
55
+			<p class="lsx-projects-groups"><?php echo wp_kses_post($groups); ?></p>
56 56
 		<?php endif; ?>
57 57
 
58 58
 		<!--<div class="lsx-projects-content"><?php the_excerpt(); ?></div>-->
59
-		<div class="lsx-projects-content"><a href="<?php the_permalink(); ?>" class="moretag"><?php esc_html_e( 'View more', 'lsx-projects' ); ?></a></div>
59
+		<div class="lsx-projects-content"><a href="<?php the_permalink(); ?>" class="moretag"><?php esc_html_e('View more', 'lsx-projects'); ?></a></div>
60 60
 	</article>
61 61
 </div>
Please login to merge, or discard this patch.
templates/archive-projects.php 2 patches
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.
Spacing   +12 added lines, -12 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
 
@@ -23,33 +23,33 @@  discard block
 block discarded – undo
23 23
 				'hide_empty' => false,
24 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 ) :
29
+			if (count($groups) > 0) :
30 30
 			?>
31 31
 
32 32
 			<ul class="nav nav-tabs lsx-projects-filter">
33 33
 				<?php
34 34
 					$group_selected_class = '';
35 35
 
36
-					if ( empty( $group_selected ) ) {
36
+					if (empty($group_selected)) {
37 37
 						$group_selected_class = ' class="active"';
38 38
 					}
39 39
 				?>
40 40
 
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>
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
-				<?php foreach ( $groups as $group ) : ?>
43
+				<?php foreach ($groups as $group) : ?>
44 44
 					<?php
45 45
 						$group_selected_class = '';
46 46
 
47
-						if ( (string) $group_selected === (string) $group->slug ) {
47
+						if ((string) $group_selected === (string) $group->slug) {
48 48
 							$group_selected_class = ' class="active"';
49 49
 						}
50 50
 					?>
51 51
 
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>
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
 
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 			endif;
58 58
 		?>
59 59
 
60
-		<?php if ( have_posts() ) : ?>
60
+		<?php if (have_posts()) : ?>
61 61
 
62 62
 			<div class="lsx-projects-container">
63 63
 				<div class="row row-flex lsx-projects-row">
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 					<?php
66 66
 						$count = 0;
67 67
 
68
-						while ( have_posts() ) {
68
+						while (have_posts()) {
69 69
 							the_post();
70 70
 							include LSX_PROJECTS_PATH . '/templates/content-archive-projects.php';
71 71
 						}
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 
79 79
 		<?php else : ?>
80 80
 
81
-			<?php get_template_part( 'partials/content', 'none' ); ?>
81
+			<?php get_template_part('partials/content', 'none'); ?>
82 82
 
83 83
 		<?php endif; ?>
84 84
 
Please login to merge, or discard this patch.