Test Setup Failed
Branch master (ac4436)
by Ashley
05:32
created
templates/taxonomy-week.php 2 patches
Spacing   +4 added lines, -4 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
 
@@ -17,12 +17,12 @@  discard block
 block discarded – undo
17 17
 
18 18
 		<?php lsx_content_top(); ?>
19 19
 
20
-		<?php if ( have_posts() ) : ?>
20
+		<?php if (have_posts()) : ?>
21 21
 
22 22
 			<div class="post-wrapper">
23 23
 
24 24
 				<?php
25
-				while ( have_posts() ) :
25
+				while (have_posts()) :
26 26
 					the_post();
27 27
 				?>
28 28
 
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 
37 37
 		<?php else : ?>
38 38
 
39
-			<?php get_template_part( 'partials/content', 'none' ); ?>
39
+			<?php get_template_part('partials/content', 'none'); ?>
40 40
 
41 41
 		<?php endif; ?>
42 42
 
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,9 +34,12 @@
 block discarded – undo
34 34
 
35 35
 			<?php lsx_paging_nav(); ?>
36 36
 
37
-		<?php else : ?>
37
+		<?php else {
38
+	: ?>
38 39
 
39
-			<?php get_template_part( 'partials/content', 'none' ); ?>
40
+			<?php get_template_part( 'partials/content', 'none' );
41
+}
42
+?>
40 43
 
41 44
 		<?php endif; ?>
42 45
 
Please login to merge, or discard this patch.
templates/featured-videos.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
  * @package lsx-health-plan
6 6
  */
7 7
 
8
-$args   = array(
8
+$args = array(
9 9
 	'orderby'        => 'date',
10 10
 	'order'          => 'DESC',
11 11
 	'post_type'      => 'video',
@@ -13,20 +13,20 @@  discard block
 block discarded – undo
13 13
 	'meta_key'       => 'video_featured_video',
14 14
 	'meta_compare'   => 'EXISTS',
15 15
 );
16
-$videos = new WP_Query( $args );
16
+$videos = new WP_Query($args);
17 17
 ?>
18 18
 
19 19
 <div id="lsx-videos-shortcode" class="daily-plan-block">
20
-	<h2 class="title-lined"><?php esc_html_e( 'Featured Workout', 'lsx-health-plan' ); ?></h2>
20
+	<h2 class="title-lined"><?php esc_html_e('Featured Workout', 'lsx-health-plan'); ?></h2>
21 21
 	<div class="lsx-videos-shortcode lsx-videos-slider slick-slider slick-dotted slick-has-arrows" data-slick="{'slidesToShow': 1, 'slidesToScroll': 1}" >
22 22
 		<?php
23
-		if ( $videos->have_posts() ) :
24
-			while ( $videos->have_posts() ) :
23
+		if ($videos->have_posts()) :
24
+			while ($videos->have_posts()) :
25 25
 				$videos->the_post();
26 26
 
27
-				$featured = get_post_meta( get_the_ID(), 'video_featured_video', true );
28
-				$giphy    = get_post_meta( get_the_ID(), 'video_giphy_source', true );
29
-				$youtube  = esc_url( get_post_meta( get_the_ID(), 'video_youtube_source', 1 ) );
27
+				$featured = get_post_meta(get_the_ID(), 'video_featured_video', true);
28
+				$giphy    = get_post_meta(get_the_ID(), 'video_giphy_source', true);
29
+				$youtube  = esc_url(get_post_meta(get_the_ID(), 'video_youtube_source', 1));
30 30
 				?>
31 31
 				<div class="lsx-videos-slot">
32 32
 					<div class="row">
@@ -36,10 +36,10 @@  discard block
 block discarded – undo
36 36
 						</div>
37 37
 						<div class="col-md-8">
38 38
 							<?php
39
-							if ( ! empty( $giphy ) ) {
39
+							if ( ! empty($giphy)) {
40 40
 								echo $giphy; // WPCS: XSS OK.
41
-							} elseif ( ! empty( $youtube ) ) {
42
-								echo wp_oembed_get( $youtube ); // WPCS: XSS OK.
41
+							} elseif ( ! empty($youtube)) {
42
+								echo wp_oembed_get($youtube); // WPCS: XSS OK.
43 43
 							}
44 44
 							?>
45 45
 						</div>
Please login to merge, or discard this patch.
templates/archive-recipe.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -14,13 +14,13 @@  discard block
 block discarded – undo
14 14
 	$redirect = '/content-restricted/?r=' . $page_id . '&wcm_redirect_to=archive&wcm_redirect_id=' . $page_id;
15 15
 ?>
16 16
 
17
-	<div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>">
17
+	<div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>">
18 18
 
19 19
 		<?php lsx_content_before(); ?>
20 20
 
21 21
 		<!-- Begining restricted content -->
22 22
 		<?php
23
-		if ( current_user_can( 'administrator', $page_id ) || current_user_can( 'wc_memberships_view_restricted_post_content', $page_id ) ) {
23
+		if (current_user_can('administrator', $page_id) || current_user_can('wc_memberships_view_restricted_post_content', $page_id)) {
24 24
 			?>
25 25
 			<main id="main" role="main">
26 26
 
@@ -28,9 +28,9 @@  discard block
 block discarded – undo
28 28
 
29 29
 				<div class="post-wrapper archive-plan">
30 30
 					<div class="row">
31
-						<?php if ( have_posts() ) : ?>
31
+						<?php if (have_posts()) : ?>
32 32
 							<?php
33
-							while ( have_posts() ) :
33
+							while (have_posts()) :
34 34
 								the_post();
35 35
 								?>
36 36
 
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 
41 41
 						<?php else : ?>
42 42
 
43
-							<?php get_template_part( 'partials/content', 'none' ); ?>
43
+							<?php get_template_part('partials/content', 'none'); ?>
44 44
 
45 45
 						<?php endif; ?>
46 46
 					</div>
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,9 +38,12 @@
 block discarded – undo
38 38
 
39 39
 							<?php endwhile; ?>
40 40
 
41
-						<?php else : ?>
41
+						<?php else {
42
+	: ?>
42 43
 
43
-							<?php get_template_part( 'partials/content', 'none' ); ?>
44
+							<?php get_template_part( 'partials/content', 'none' );
45
+}
46
+?>
44 47
 
45 48
 						<?php endif; ?>
46 49
 					</div>
Please login to merge, or discard this patch.
templates/tab-content-workout.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -28,35 +28,35 @@  discard block
 block discarded – undo
28 28
 		?>
29 29
 		<div class="single-plan-inner workout-content">
30 30
 			<?php
31
-			if ( ! is_singular( 'workout' ) ) { ?>
31
+			if ( ! is_singular('workout')) { ?>
32 32
 				<div class="single-plan-section-title workout">
33
-					<?php lsx_get_svg_icon( 'work.svg' ); ?>
34
-					<h2 class="title-lined"><?php esc_html_e( 'My Workout', 'lsx-health-plan' ); ?> <span class="blue-title"><?php the_title(); ?></span></h2>
33
+					<?php lsx_get_svg_icon('work.svg'); ?>
34
+					<h2 class="title-lined"><?php esc_html_e('My Workout', 'lsx-health-plan'); ?> <span class="blue-title"><?php the_title(); ?></span></h2>
35 35
 				</div>
36 36
 			<?php } ?>
37 37
 			<?php
38
-			if ( lsx_health_plan_has_warmup() && ( ! is_singular( 'workout' ) ) ) {
38
+			if (lsx_health_plan_has_warmup() && ( ! is_singular('workout'))) {
39 39
 				?>
40 40
 				<div class="workout-instructions">
41 41
 					<div class="row">
42 42
 						<div class="col-md-6">
43
-							<h3><?php esc_html_e( "Don't forget your warm up!", 'lsx-health-plan' ); ?></h3>
44
-							<p><?php esc_html_e( 'Be sure to do the warm-up before every workout session.', 'lsx-health-plan' ); ?></p>
43
+							<h3><?php esc_html_e("Don't forget your warm up!", 'lsx-health-plan'); ?></h3>
44
+							<p><?php esc_html_e('Be sure to do the warm-up before every workout session.', 'lsx-health-plan'); ?></p>
45 45
 						</div>
46 46
 						<div class="col-md-6">
47 47
 							<div class="single-plan-inner-buttons">
48 48
 								<?php
49
-								$download = \lsx_health_plan\functions\get_option( 'download_page', false );
50
-								if ( ! empty( $download ) ) {
49
+								$download = \lsx_health_plan\functions\get_option('download_page', false);
50
+								if ( ! empty($download)) {
51 51
 									?>
52 52
 									<div class="complete-plan-btn">
53 53
 										<?php
54
-										echo wp_kses_post( do_shortcode( '[download id="' . $download . '"]' ) );
54
+										echo wp_kses_post(do_shortcode('[download id="' . $download . '"]'));
55 55
 										?>
56 56
 									</div>
57 57
 								<?php } ?>
58 58
 								<div  class="back-plan-btn">
59
-									<a class="btn secondary-btn wrm-up-btn" href="<?php the_permalink(); ?>warm-up/"><?php esc_html_e( 'See Warm-Up', 'lsx-health-plan' ); ?></a>
59
+									<a class="btn secondary-btn wrm-up-btn" href="<?php the_permalink(); ?>warm-up/"><?php esc_html_e('See Warm-Up', 'lsx-health-plan'); ?></a>
60 60
 								</div>
61 61
 							</div>
62 62
 						</div>
@@ -66,32 +66,32 @@  discard block
 block discarded – undo
66 66
 			}
67 67
 			?>
68 68
 			<!-- Pre Workout-->
69
-			<?php lsx_workout_snacks( 'pre' ); ?>
69
+			<?php lsx_workout_snacks('pre'); ?>
70 70
 
71 71
 			<?php lsx_health_plan_workout_sets(); ?>
72 72
 
73 73
 			<!-- Post Workout-->
74
-			<?php lsx_workout_snacks( 'post' ); ?>
74
+			<?php lsx_workout_snacks('post'); ?>
75 75
 		</div>
76 76
 
77 77
 	</div><!-- .entry-content -->
78 78
 
79 79
 	<footer class="footer-meta clearfix">
80
-		<?php if ( has_tag() || class_exists( 'LSX_Sharing' ) || ( function_exists( 'sharing_display' ) || class_exists( 'Jetpack_Likes' ) ) ) : ?>
80
+		<?php if (has_tag() || class_exists('LSX_Sharing') || (function_exists('sharing_display') || class_exists('Jetpack_Likes'))) : ?>
81 81
 			<div class="post-tags-wrapper">
82 82
 				<?php lsx_content_post_tags(); ?>
83 83
 
84 84
 				<?php
85
-				if ( class_exists( 'LSX_Sharing' ) ) {
85
+				if (class_exists('LSX_Sharing')) {
86 86
 					lsx_content_sharing();
87 87
 				} else {
88
-					if ( function_exists( 'sharing_display' ) ) {
89
-						sharing_display( '', true );
88
+					if (function_exists('sharing_display')) {
89
+						sharing_display('', true);
90 90
 					}
91 91
 
92
-					if ( class_exists( 'Jetpack_Likes' ) ) {
92
+					if (class_exists('Jetpack_Likes')) {
93 93
 						$custom_likes = new Jetpack_Likes();
94
-						echo wp_kses_post( $custom_likes->post_likes( '' ) );
94
+						echo wp_kses_post($custom_likes->post_likes(''));
95 95
 					}
96 96
 				}
97 97
 				?>
Please login to merge, or discard this patch.
templates/taxonomy-recipe-type.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -14,13 +14,13 @@  discard block
 block discarded – undo
14 14
 	$redirect = '/content-restricted/?r=' . $page_id . '&wcm_redirect_to=archive&wcm_redirect_id=' . $page_id;
15 15
 ?>
16 16
 
17
-	<div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>">
17
+	<div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>">
18 18
 
19 19
 		<?php lsx_content_before(); ?>
20 20
 
21 21
 		<!-- Begining restricted content -->
22 22
 		<?php
23
-		if ( current_user_can( 'wc_memberships_view_restricted_post_content', $post_id ) ) {
23
+		if (current_user_can('wc_memberships_view_restricted_post_content', $post_id)) {
24 24
 			?>
25 25
 			<main id="main" role="main">
26 26
 
@@ -28,9 +28,9 @@  discard block
 block discarded – undo
28 28
 
29 29
 				<div class="post-wrapper archive-plan">
30 30
 					<div class="row">
31
-						<?php if ( have_posts() ) : ?>
31
+						<?php if (have_posts()) : ?>
32 32
 							<?php
33
-							while ( have_posts() ) :
33
+							while (have_posts()) :
34 34
 								the_post();
35 35
 								?>
36 36
 
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 
41 41
 						<?php else : ?>
42 42
 
43
-							<?php get_template_part( 'partials/content', 'none' ); ?>
43
+							<?php get_template_part('partials/content', 'none'); ?>
44 44
 
45 45
 						<?php endif; ?>
46 46
 					</div>
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 
53 53
 			<?php
54 54
 		} else {
55
-			wp_redirect( $redirect );
55
+			wp_redirect($redirect);
56 56
 			exit;
57 57
 		}
58 58
 		?>
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,9 +38,12 @@
 block discarded – undo
38 38
 
39 39
 							<?php endwhile; ?>
40 40
 
41
-						<?php else : ?>
41
+						<?php else {
42
+	: ?>
42 43
 
43
-							<?php get_template_part( 'partials/content', 'none' ); ?>
44
+							<?php get_template_part( 'partials/content', 'none' );
45
+}
46
+?>
44 47
 
45 48
 						<?php endif; ?>
46 49
 					</div>
Please login to merge, or discard this patch.
templates/tab-content-meal.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -16,8 +16,8 @@  discard block
 block discarded – undo
16 16
 
17 17
 	<div class="entry-content">
18 18
 		<div class="single-plan-section-title meal-plan">
19
-			<?php lsx_get_svg_icon( 'meal.svg' ); ?>
20
-			<h2 class="title-lined"><?php esc_html_e( 'My Meal Plan', 'lsx-health-plan' ); ?> <span class="blue-title"><?php the_title(); ?></span></h2>
19
+			<?php lsx_get_svg_icon('meal.svg'); ?>
20
+			<h2 class="title-lined"><?php esc_html_e('My Meal Plan', 'lsx-health-plan'); ?> <span class="blue-title"><?php the_title(); ?></span></h2>
21 21
 		</div>
22 22
 		<div class="single-plan-inner meal-content">
23 23
 			<?php require LSX_HEALTH_PLAN_PATH . 'templates/partials/meal-plans.php'; ?>
@@ -25,21 +25,21 @@  discard block
 block discarded – undo
25 25
 	</div><!-- .entry-content -->
26 26
 
27 27
 	<footer class="footer-meta clearfix">
28
-		<?php if ( has_tag() || class_exists( 'LSX_Sharing' ) || ( function_exists( 'sharing_display' ) || class_exists( 'Jetpack_Likes' ) ) ) : ?>
28
+		<?php if (has_tag() || class_exists('LSX_Sharing') || (function_exists('sharing_display') || class_exists('Jetpack_Likes'))) : ?>
29 29
 			<div class="post-tags-wrapper">
30 30
 				<?php lsx_content_post_tags(); ?>
31 31
 
32 32
 				<?php
33
-				if ( class_exists( 'LSX_Sharing' ) ) {
33
+				if (class_exists('LSX_Sharing')) {
34 34
 					lsx_content_sharing();
35 35
 				} else {
36
-					if ( function_exists( 'sharing_display' ) ) {
37
-						sharing_display( '', true );
36
+					if (function_exists('sharing_display')) {
37
+						sharing_display('', true);
38 38
 					}
39 39
 
40
-					if ( class_exists( 'Jetpack_Likes' ) ) {
40
+					if (class_exists('Jetpack_Likes')) {
41 41
 						$custom_likes = new Jetpack_Likes();
42
-						echo wp_kses_post( $custom_likes->post_likes( '' ) );
42
+						echo wp_kses_post($custom_likes->post_likes(''));
43 43
 					}
44 44
 				}
45 45
 				?>
Please login to merge, or discard this patch.
templates/table-exercise-data.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -5,17 +5,17 @@  discard block
 block discarded – undo
5 5
 $muscle_group = lsx_health_plan_muscle_group_equipment();
6 6
 
7 7
 ?>
8
-<?php if ( ( ! empty( $type ) ) || ( ! empty( $equipment ) ) || ( ! empty( $muscle_group ) ) ) { ?>
8
+<?php if (( ! empty($type)) || ( ! empty($equipment)) || ( ! empty($muscle_group))) { ?>
9 9
 <table class="exercise-table">
10 10
 	<tbody>
11 11
 		<?php
12
-		if ( ! empty( $type ) ) {
12
+		if ( ! empty($type)) {
13 13
 		?>
14 14
 			<tr class="types">
15
-				<td><?php esc_html_e( 'Type:', 'lsx-health-plan' ); ?>&nbsp</td>
15
+				<td><?php esc_html_e('Type:', 'lsx-health-plan'); ?>&nbsp</td>
16 16
 				<td>
17 17
 				<?php
18
-					echo wp_kses_post( $type );
18
+					echo wp_kses_post($type);
19 19
 				?>
20 20
 				</td>
21 21
 			</tr>
@@ -23,13 +23,13 @@  discard block
 block discarded – undo
23 23
 		}
24 24
 		?>
25 25
 		<?php
26
-		if ( ! empty( $muscle_group ) ) {
26
+		if ( ! empty($muscle_group)) {
27 27
 		?>
28 28
 			<tr class="muscle-group">
29
-				<td><?php esc_html_e( 'Muscle Group:', 'lsx-health-plan' ); ?>&nbsp</td>
29
+				<td><?php esc_html_e('Muscle Group:', 'lsx-health-plan'); ?>&nbsp</td>
30 30
 				<td>
31 31
 				<?php
32
-					echo wp_kses_post( $muscle_group );
32
+					echo wp_kses_post($muscle_group);
33 33
 				?>
34 34
 				</td>
35 35
 			</tr>
@@ -37,13 +37,13 @@  discard block
 block discarded – undo
37 37
 		}
38 38
 		?>
39 39
 		<?php
40
-		if ( ! empty( $equipment ) ) {
40
+		if ( ! empty($equipment)) {
41 41
 		?>
42 42
 			<tr class="equipment">
43
-				<td><?php esc_html_e( 'Equipment:', 'lsx-health-plan' ); ?>&nbsp</td>
43
+				<td><?php esc_html_e('Equipment:', 'lsx-health-plan'); ?>&nbsp</td>
44 44
 				<td>
45 45
 				<?php
46
-					echo wp_kses_post( $equipment );
46
+					echo wp_kses_post($equipment);
47 47
 				?>
48 48
 				</td>
49 49
 			</tr>
Please login to merge, or discard this patch.
templates/table-recipe-data.php 1 patch
Spacing   +41 added lines, -41 removed lines patch added patch discarded remove patch
@@ -1,17 +1,17 @@  discard block
 block discarded – undo
1 1
 <?php
2
-$prep_time     = get_post_meta( get_the_ID(), 'recipe_prep_time', true );
3
-$cooking_time  = get_post_meta( get_the_ID(), 'recipe_cooking_time', true );
4
-$serves        = get_post_meta( get_the_ID(), 'recipe_serves', true );
5
-$portion       = get_post_meta( get_the_ID(), 'recipe_portion', true );
6
-$energy        = get_post_meta( get_the_ID(), 'recipe_energy', true );
7
-$protein       = get_post_meta( get_the_ID(), 'recipe_protein', true );
8
-$carbohydrates = get_post_meta( get_the_ID(), 'recipe_carbohydrates', true );
9
-$fibre         = get_post_meta( get_the_ID(), 'recipe_fibre', true );
10
-$fat           = get_post_meta( get_the_ID(), 'recipe_fat', true );
2
+$prep_time     = get_post_meta(get_the_ID(), 'recipe_prep_time', true);
3
+$cooking_time  = get_post_meta(get_the_ID(), 'recipe_cooking_time', true);
4
+$serves        = get_post_meta(get_the_ID(), 'recipe_serves', true);
5
+$portion       = get_post_meta(get_the_ID(), 'recipe_portion', true);
6
+$energy        = get_post_meta(get_the_ID(), 'recipe_energy', true);
7
+$protein       = get_post_meta(get_the_ID(), 'recipe_protein', true);
8
+$carbohydrates = get_post_meta(get_the_ID(), 'recipe_carbohydrates', true);
9
+$fibre         = get_post_meta(get_the_ID(), 'recipe_fibre', true);
10
+$fat           = get_post_meta(get_the_ID(), 'recipe_fat', true);
11 11
 ?>
12
-<?php if ( ( ! empty( $prep_time ) ) || ( ! empty( $cooking_time ) ) || ( ! empty( $serves ) ) || ( ! empty( $portion ) ) ) { ?>
12
+<?php if (( ! empty($prep_time)) || ( ! empty($cooking_time)) || ( ! empty($serves)) || ( ! empty($portion))) { ?>
13 13
 <table class="recipe-table cooking-info-table">
14
-	<?php if ( is_single() && is_singular( 'recipe' ) ) { ?>
14
+	<?php if (is_single() && is_singular('recipe')) { ?>
15 15
 		<thead>
16 16
 			<tr>
17 17
 				<th>Cooking Info</th>
@@ -20,29 +20,29 @@  discard block
 block discarded – undo
20 20
 	<?php } ?>
21 21
 	<tbody>
22 22
 		<?php
23
-		if ( 1 >= (int) $serves ) {
23
+		if (1 >= (int) $serves) {
24 24
 			$serves       = '1';
25
-			$serves_label = __( 'Person', 'lsx-health-plan' );
25
+			$serves_label = __('Person', 'lsx-health-plan');
26 26
 		} else {
27
-			$serves_label = __( 'People', 'lsx-health-plan' );
27
+			$serves_label = __('People', 'lsx-health-plan');
28 28
 		}
29 29
 		?>
30 30
 		<tr class="serves">
31
-			<td><?php esc_html_e( 'Serves:', 'lsx-health-plan' ); ?>&nbsp</td>
31
+			<td><?php esc_html_e('Serves:', 'lsx-health-plan'); ?>&nbsp</td>
32 32
 			<td>
33 33
 			<?php
34
-				echo wp_kses_post( $serves ) . ' ' . esc_html( $serves_label );
34
+				echo wp_kses_post($serves) . ' ' . esc_html($serves_label);
35 35
 			?>
36 36
 			</td>
37 37
 		</tr>
38 38
 		<?php
39
-		if ( ! empty( $prep_time ) ) {
39
+		if ( ! empty($prep_time)) {
40 40
 		?>
41 41
 		<tr class="prep-time">
42
-		<td><?php esc_html_e( 'Prep time: ', 'lsx-health-plan' ); ?>&nbsp</td>
42
+		<td><?php esc_html_e('Prep time: ', 'lsx-health-plan'); ?>&nbsp</td>
43 43
 			<td>
44 44
 			<?php
45
-				echo wp_kses_post( $prep_time );
45
+				echo wp_kses_post($prep_time);
46 46
 			?>
47 47
 			</td>
48 48
 		</tr>
@@ -50,13 +50,13 @@  discard block
 block discarded – undo
50 50
 		}
51 51
 		?>
52 52
 		<?php
53
-		if ( ! empty( $cooking_time ) ) {
53
+		if ( ! empty($cooking_time)) {
54 54
 		?>
55 55
 		<tr class="cooking-time">
56
-			<td><?php esc_html_e( 'Cooking time: ', 'lsx-health-plan' ); ?>&nbsp</td>
56
+			<td><?php esc_html_e('Cooking time: ', 'lsx-health-plan'); ?>&nbsp</td>
57 57
 			<td>
58 58
 			<?php
59
-				echo wp_kses_post( $cooking_time );
59
+				echo wp_kses_post($cooking_time);
60 60
 			?>
61 61
 			</td>
62 62
 		</tr>
@@ -64,13 +64,13 @@  discard block
 block discarded – undo
64 64
 		}
65 65
 		?>
66 66
 		<?php
67
-		if ( ! empty( $portion ) ) {
67
+		if ( ! empty($portion)) {
68 68
 		?>
69 69
 		<tr class="portion-size">
70
-			<td><?php esc_html_e( 'Portion size: ', 'lsx-health-plan' ); ?>&nbsp</td>
70
+			<td><?php esc_html_e('Portion size: ', 'lsx-health-plan'); ?>&nbsp</td>
71 71
 			<td>
72 72
 			<?php
73
-				echo wp_kses_post( $portion );
73
+				echo wp_kses_post($portion);
74 74
 			?>
75 75
 			</td>
76 76
 		</tr>
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 	</tbody>
81 81
 </table>
82 82
 <?php } ?>
83
-<?php if ( is_single() && is_singular( 'recipe' ) && ( ( ! empty( $energy ) ) || ( ! empty( $protein ) ) || ( ! empty( $carbohydrates ) ) || ( ! empty( $fibre ) ) || ( ! empty( $fat ) ) ) ) { ?>
83
+<?php if (is_single() && is_singular('recipe') && (( ! empty($energy)) || ( ! empty($protein)) || ( ! empty($carbohydrates)) || ( ! empty($fibre)) || ( ! empty($fat)))) { ?>
84 84
 	<table class="recipe-table nutritional-info-table">
85 85
 		<thead>
86 86
 			<tr>
@@ -89,13 +89,13 @@  discard block
 block discarded – undo
89 89
 		</thead>
90 90
 		<tbody>
91 91
 			<?php
92
-			if ( ! empty( $energy ) ) {
92
+			if ( ! empty($energy)) {
93 93
 			?>
94 94
 			<tr class="energy">
95
-			<td><?php esc_html_e( 'Energy: ', 'lsx-health-plan' ); ?>&nbsp</td>
95
+			<td><?php esc_html_e('Energy: ', 'lsx-health-plan'); ?>&nbsp</td>
96 96
 				<td>
97 97
 				<?php
98
-					echo wp_kses_post( $energy );
98
+					echo wp_kses_post($energy);
99 99
 				?>
100 100
 				</td>
101 101
 			</tr>
@@ -103,13 +103,13 @@  discard block
 block discarded – undo
103 103
 			}
104 104
 			?>
105 105
 			<?php
106
-			if ( ! empty( $protein ) ) {
106
+			if ( ! empty($protein)) {
107 107
 			?>
108 108
 			<tr class="protein">
109
-			<td><?php esc_html_e( 'Protein: ', 'lsx-health-plan' ); ?>&nbsp</td>
109
+			<td><?php esc_html_e('Protein: ', 'lsx-health-plan'); ?>&nbsp</td>
110 110
 				<td>
111 111
 				<?php
112
-					echo wp_kses_post( $protein );
112
+					echo wp_kses_post($protein);
113 113
 				?>
114 114
 				</td>
115 115
 			</tr>
@@ -117,13 +117,13 @@  discard block
 block discarded – undo
117 117
 			}
118 118
 			?>
119 119
 			<?php
120
-			if ( ! empty( $carbohydrates ) ) {
120
+			if ( ! empty($carbohydrates)) {
121 121
 			?>
122 122
 			<tr class="carbohydrates">
123
-			<td><?php esc_html_e( 'Carbohydrates: ', 'lsx-health-plan' ); ?>&nbsp</td>
123
+			<td><?php esc_html_e('Carbohydrates: ', 'lsx-health-plan'); ?>&nbsp</td>
124 124
 				<td>
125 125
 				<?php
126
-					echo wp_kses_post( $carbohydrates );
126
+					echo wp_kses_post($carbohydrates);
127 127
 				?>
128 128
 				</td>
129 129
 			</tr>
@@ -131,13 +131,13 @@  discard block
 block discarded – undo
131 131
 			}
132 132
 			?>
133 133
 			<?php
134
-			if ( ! empty( $fibre ) ) {
134
+			if ( ! empty($fibre)) {
135 135
 			?>
136 136
 			<tr class="fibre">
137
-			<td><?php esc_html_e( 'Fibre: ', 'lsx-health-plan' ); ?>&nbsp</td>
137
+			<td><?php esc_html_e('Fibre: ', 'lsx-health-plan'); ?>&nbsp</td>
138 138
 				<td>
139 139
 				<?php
140
-					echo wp_kses_post( $fibre );
140
+					echo wp_kses_post($fibre);
141 141
 				?>
142 142
 				</td>
143 143
 			</tr>
@@ -145,13 +145,13 @@  discard block
 block discarded – undo
145 145
 			}
146 146
 			?>
147 147
 			<?php
148
-			if ( ! empty( $fat ) ) {
148
+			if ( ! empty($fat)) {
149 149
 			?>
150 150
 			<tr class="fat">
151
-			<td><?php esc_html_e( 'Fat: ', 'lsx-health-plan' ); ?>&nbsp</td>
151
+			<td><?php esc_html_e('Fat: ', 'lsx-health-plan'); ?>&nbsp</td>
152 152
 				<td>
153 153
 				<?php
154
-					echo wp_kses_post( $fat );
154
+					echo wp_kses_post($fat);
155 155
 				?>
156 156
 				</td>
157 157
 			</tr>
Please login to merge, or discard this patch.
templates/single-plan-tabs.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -8,42 +8,42 @@
 block discarded – undo
8 8
 ?>
9 9
 <div id="single-plan-nav">
10 10
 	<ul class="nav nav-pills">
11
-		<li class="<?php lsx_health_plan_nav_class( '' ); ?>"><a class="overview-tab" href="<?php the_permalink(); ?>"><?php lsx_get_svg_icon( 'eye.svg' ); ?> <?php esc_html_e( 'Overview', 'lsx-health-plan' ); ?></a></li>
11
+		<li class="<?php lsx_health_plan_nav_class(''); ?>"><a class="overview-tab" href="<?php the_permalink(); ?>"><?php lsx_get_svg_icon('eye.svg'); ?> <?php esc_html_e('Overview', 'lsx-health-plan'); ?></a></li>
12 12
 		<?php
13
-		if ( lsx_health_plan_has_warmup() ) {
14
-			$warm_up = \lsx_health_plan\functions\get_option( 'endpoint_warm_up', false );
15
-			if ( false === $warm_up ) {
13
+		if (lsx_health_plan_has_warmup()) {
14
+			$warm_up = \lsx_health_plan\functions\get_option('endpoint_warm_up', false);
15
+			if (false === $warm_up) {
16 16
 				$warm_up = 'warm-up';
17 17
 			}
18 18
 			?>
19
-				<li class="<?php lsx_health_plan_nav_class( 'warm-up' ); ?>"><a class="warm-up-tab" href="<?php the_permalink(); ?><?php echo esc_attr( $warm_up ); ?>/"><?php lsx_get_svg_icon( 'warm.svg' ); ?> <?php esc_html_e( 'Warm-up', 'lsx-health-plan' ); ?></a></li>				
19
+				<li class="<?php lsx_health_plan_nav_class('warm-up'); ?>"><a class="warm-up-tab" href="<?php the_permalink(); ?><?php echo esc_attr($warm_up); ?>/"><?php lsx_get_svg_icon('warm.svg'); ?> <?php esc_html_e('Warm-up', 'lsx-health-plan'); ?></a></li>				
20 20
 			<?php
21 21
 		}
22
-		if ( lsx_health_plan_has_workout() ) {
23
-			$workout = \lsx_health_plan\functions\get_option( 'endpoint_workout', false );
24
-			if ( false === $workout ) {
22
+		if (lsx_health_plan_has_workout()) {
23
+			$workout = \lsx_health_plan\functions\get_option('endpoint_workout', false);
24
+			if (false === $workout) {
25 25
 				$workout = 'workout';
26 26
 			}
27 27
 			?>
28
-				<li class="<?php lsx_health_plan_nav_class( 'workout' ); ?>"><a class="workout-tab" href="<?php the_permalink(); ?><?php echo esc_attr( $workout ); ?>/"><?php lsx_get_svg_icon( 'work.svg' ); ?> <?php esc_html_e( 'Workout', 'lsx-health-plan' ); ?></a></li>
28
+				<li class="<?php lsx_health_plan_nav_class('workout'); ?>"><a class="workout-tab" href="<?php the_permalink(); ?><?php echo esc_attr($workout); ?>/"><?php lsx_get_svg_icon('work.svg'); ?> <?php esc_html_e('Workout', 'lsx-health-plan'); ?></a></li>
29 29
 			<?php
30 30
 		}
31
-		if ( lsx_health_plan_has_meal() ) {
32
-			$meal = \lsx_health_plan\functions\get_option( 'endpoint_meal', false );
33
-			if ( false === $meal ) {
31
+		if (lsx_health_plan_has_meal()) {
32
+			$meal = \lsx_health_plan\functions\get_option('endpoint_meal', false);
33
+			if (false === $meal) {
34 34
 				$meal = 'meal';
35 35
 			}
36 36
 			?>
37
-				<li class="<?php lsx_health_plan_nav_class( 'meal' ); ?>"><a class="meal-plan-tab" href="<?php the_permalink(); ?><?php echo esc_attr( $meal ); ?>/"><?php lsx_get_svg_icon( 'meal.svg' ); ?> <?php esc_html_e( 'Meal Plan', 'lsx-health-plan' ); ?></a></li>
37
+				<li class="<?php lsx_health_plan_nav_class('meal'); ?>"><a class="meal-plan-tab" href="<?php the_permalink(); ?><?php echo esc_attr($meal); ?>/"><?php lsx_get_svg_icon('meal.svg'); ?> <?php esc_html_e('Meal Plan', 'lsx-health-plan'); ?></a></li>
38 38
 			<?php
39 39
 		}
40
-		if ( lsx_health_plan_has_recipe() ) {
41
-			$recipe = \lsx_health_plan\functions\get_option( 'endpoint_recipe', false );
42
-			if ( false === $recipe ) {
40
+		if (lsx_health_plan_has_recipe()) {
41
+			$recipe = \lsx_health_plan\functions\get_option('endpoint_recipe', false);
42
+			if (false === $recipe) {
43 43
 				$recipe = 'recipes';
44 44
 			}
45 45
 			?>
46
-				<li class="<?php lsx_health_plan_nav_class( 'recipes' ); ?>"><a class="recipes-tab" href="<?php the_permalink(); ?><?php echo esc_attr( $recipe ); ?>/"><?php lsx_get_svg_icon( 'recipes.svg' ); ?> <?php esc_html_e( 'Recipes', 'lsx-health-plan' ); ?></a></li>
46
+				<li class="<?php lsx_health_plan_nav_class('recipes'); ?>"><a class="recipes-tab" href="<?php the_permalink(); ?><?php echo esc_attr($recipe); ?>/"><?php lsx_get_svg_icon('recipes.svg'); ?> <?php esc_html_e('Recipes', 'lsx-health-plan'); ?></a></li>
47 47
 			<?php
48 48
 		}
49 49
 		?>
Please login to merge, or discard this patch.