Passed
Push — add/multiplan ( e46fc7...0a2963 )
by Warwick
04:26 queued 12s
created
templates/content-archive-recipe.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -13,10 +13,10 @@  discard block
 block discarded – undo
13 13
 $column_class = '4';
14 14
 // Check for shortcode overrides.
15 15
 if ( null !== $shortcode_args ) {
16
-	if ( isset( $shortcode_args['columns'] ) ) {
17
-		$column_class = $shortcode_args['columns'];
18
-		$column_class = \lsx_health_plan\functions\column_class( $column_class );
19
-	}
16
+     if ( isset( $shortcode_args['columns'] ) ) {
17
+          $column_class = $shortcode_args['columns'];
18
+          $column_class = \lsx_health_plan\functions\column_class( $column_class );
19
+     }
20 20
 }
21 21
 ?>
22 22
 
@@ -29,17 +29,17 @@  discard block
 block discarded – undo
29 29
 		<div class="recipe-feature-img">
30 30
 			<a href="<?php echo esc_url( get_permalink() ); ?>">
31 31
 			<?php
32
-			$featured_image = get_the_post_thumbnail();
33
-			if ( ! empty( $featured_image ) && '' !== $featured_image ) {
34
-				the_post_thumbnail( 'lsx-thumbnail-square', array(
35
-					'class' => 'aligncenter',
36
-				) );
37
-			} else {
38
-				?>
32
+               $featured_image = get_the_post_thumbnail();
33
+               if ( ! empty( $featured_image ) && '' !== $featured_image ) {
34
+                    the_post_thumbnail( 'lsx-thumbnail-square', array(
35
+                         'class' => 'aligncenter',
36
+                    ) );
37
+               } else {
38
+                    ?>
39 39
 				<img loading="lazy" src="<?php echo esc_attr( plugin_dir_url( __FILE__ ) . '../assets/images/placeholder.jpg' ); ?>">
40 40
 				<?php
41
-			}
42
-			?>
41
+               }
42
+               ?>
43 43
 			</a>
44 44
 		</div>
45 45
 		<div class="content-box white-bg">
Please login to merge, or discard this patch.
templates/content-exercise.php 1 patch
Indentation   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 
18 18
 $sharing = 'sharing-disabled';
19 19
 if ( class_exists( 'LSX_Sharing' ) || ( function_exists( 'sharing_display' ) || class_exists( 'Jetpack_Likes' ) ) ) :
20
-	$sharing = 'sharing-enabled';
20
+     $sharing = 'sharing-enabled';
21 21
 endif;
22 22
 
23 23
 ?>
@@ -38,19 +38,19 @@  discard block
 block discarded – undo
38 38
 			<?php if ( class_exists( 'LSX_Sharing' ) || ( function_exists( 'sharing_display' ) || class_exists( 'Jetpack_Likes' ) ) ) : ?>
39 39
 
40 40
 					<?php
41
-					if ( class_exists( 'LSX_Sharing' ) ) {
42
-						lsx_content_sharing();
43
-					} else {
44
-						if ( function_exists( 'sharing_display' ) ) {
45
-							sharing_display( '', true );
46
-						}
47
-
48
-						if ( class_exists( 'Jetpack_Likes' ) ) {
49
-							$custom_likes = new Jetpack_Likes();
50
-							echo wp_kses_post( $custom_likes->post_likes( '' ) );
51
-						}
52
-					}
53
-					?>
41
+                         if ( class_exists( 'LSX_Sharing' ) ) {
42
+                              lsx_content_sharing();
43
+                         } else {
44
+                              if ( function_exists( 'sharing_display' ) ) {
45
+                                   sharing_display( '', true );
46
+                              }
47
+
48
+                              if ( class_exists( 'Jetpack_Likes' ) ) {
49
+                                   $custom_likes = new Jetpack_Likes();
50
+                                   echo wp_kses_post( $custom_likes->post_likes( '' ) );
51
+                              }
52
+                         }
53
+                         ?>
54 54
 			<?php endif ?>
55 55
 
56 56
 			<?php lsx_health_plan_exercise_title( '<h2>', '</h2>' ); ?>
@@ -60,23 +60,23 @@  discard block
 block discarded – undo
60 60
 			<div class="col-md-6 exercise-image lsx-hp-shadow">
61 61
 
62 62
 			<?php
63
-			$lsx_hp = lsx_health_plan();
64
-
65
-			if ( $lsx_hp->frontend->gallery->has_gallery( get_the_ID() ) ) {
66
-				lsx_health_plan_gallery();
67
-			} else {
68
-				$featured_image = get_the_post_thumbnail();
69
-				if ( ! empty( $featured_image ) && '' !== $featured_image ) {
70
-					the_post_thumbnail( 'large', array(
71
-						'class' => 'aligncenter',
72
-					) );
73
-				} else {
74
-					?>
63
+               $lsx_hp = lsx_health_plan();
64
+
65
+               if ( $lsx_hp->frontend->gallery->has_gallery( get_the_ID() ) ) {
66
+                    lsx_health_plan_gallery();
67
+               } else {
68
+                    $featured_image = get_the_post_thumbnail();
69
+                    if ( ! empty( $featured_image ) && '' !== $featured_image ) {
70
+                         the_post_thumbnail( 'large', array(
71
+                              'class' => 'aligncenter',
72
+                         ) );
73
+                    } else {
74
+                         ?>
75 75
 					<img loading="lazy" src="<?php echo esc_attr( plugin_dir_url( __FILE__ ) . '../assets/images/placeholder.jpg' ); ?>">
76 76
 					<?php
77
-				}
78
-			}
79
-			?>
77
+                    }
78
+               }
79
+               ?>
80 80
 
81 81
 				<?php if ( ( ! empty( $exercise_type ) ) || ( ! empty( $equipment ) ) || ( ! empty( $muscle_group ) ) ) { ?>
82 82
 					<div class="exercise-data">
@@ -89,12 +89,12 @@  discard block
 block discarded – undo
89 89
 				<?php echo do_shortcode( '[lsx_health_plan_featured_tips_block]' ); ?>
90 90
 				<div  class="back-plan-btn">
91 91
 				<?php
92
-				if ( function_exists( 'wc_get_page_id' ) ) {
93
-					?>
92
+                    if ( function_exists( 'wc_get_page_id' ) ) {
93
+                         ?>
94 94
 					<a class="btn" href="<?php echo wp_kses_post( get_permalink( wc_get_page_id( 'myaccount' ) ) ); ?>"><?php esc_html_e( 'Back to my exercises', 'lsx-health-plan' ); ?></a>
95 95
 					<?php
96
-				}
97
-				?>
96
+                    }
97
+                    ?>
98 98
 				</div>
99 99
 			</div>
100 100
 		</div>
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 
107 107
 <?php
108 108
 if ( ! empty( $connected_articles ) ) {
109
-	lsx_hp_single_related( $connected_articles, __( 'Related articles', 'lsx-health-plan' ) );
109
+     lsx_hp_single_related( $connected_articles, __( 'Related articles', 'lsx-health-plan' ) );
110 110
 }
111 111
 ?>
112 112
 
Please login to merge, or discard this patch.
templates/tab-content-warm-up.php 1 patch
Indentation   +45 added lines, -45 removed lines patch added patch discarded remove patch
@@ -8,10 +8,10 @@  discard block
 block discarded – undo
8 8
 
9 9
 $warm_up = get_post_meta( get_the_ID(), 'plan_warmup', true );
10 10
 if ( false === $warm_up || '' === $warm_up ) {
11
-	$options = \lsx_health_plan\functions\get_option( 'all' );
12
-	if ( isset( $options['plan_warmup'] ) && '' !== $options['plan_warmup'] && ! empty( $options['plan_warmup'] ) ) {
13
-		$warm_up = $options['plan_warmup'];
14
-	}
11
+     $options = \lsx_health_plan\functions\get_option( 'all' );
12
+     if ( isset( $options['plan_warmup'] ) && '' !== $options['plan_warmup'] && ! empty( $options['plan_warmup'] ) ) {
13
+          $warm_up = $options['plan_warmup'];
14
+     }
15 15
 }
16 16
 
17 17
 ?>
@@ -19,25 +19,25 @@  discard block
 block discarded – undo
19 19
 <?php
20 20
 
21 21
 if ( false !== $warm_up && '' !== $warm_up ) {
22
-	if ( ! is_array( $warm_up ) ) {
23
-		$warm_up = array( $warm_up );
24
-	}
22
+     if ( ! is_array( $warm_up ) ) {
23
+          $warm_up = array( $warm_up );
24
+     }
25 25
 
26
-	$warmup_type  = array( 'page', 'workout', 'exercise' );
27
-	$warmup_query = new WP_Query(
28
-		array(
29
-			'post__in'  => $warm_up,
30
-			'post_type' => $warmup_type,
31
-		)
32
-	);
26
+     $warmup_type  = array( 'page', 'workout', 'exercise' );
27
+     $warmup_query = new WP_Query(
28
+          array(
29
+               'post__in'  => $warm_up,
30
+               'post_type' => $warmup_type,
31
+          )
32
+     );
33 33
 
34
-	if ( $warmup_query->have_posts() ) {
35
-		while ( $warmup_query->have_posts() ) {
36
-			$warmup_query->the_post();
37
-			lsx_entry_before();
38
-			if ( 'workout' === get_post_type() ) {
39
-				$connected_workouts = array( get_the_ID() );
40
-				?>
34
+     if ( $warmup_query->have_posts() ) {
35
+          while ( $warmup_query->have_posts() ) {
36
+               $warmup_query->the_post();
37
+               lsx_entry_before();
38
+               if ( 'workout' === get_post_type() ) {
39
+                    $connected_workouts = array( get_the_ID() );
40
+                    ?>
41 41
 				<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
42 42
 					<?php lsx_entry_top(); ?>
43 43
 					<div class="entry-content">
@@ -47,14 +47,14 @@  discard block
 block discarded – undo
47 47
 								<h2><?php esc_html_e( 'Warm Up', 'lsx-health-plan' ); ?></h2>
48 48
 							</div>
49 49
 						<?php
50
-							the_content();
51
-							wp_link_pages( array(
52
-								'before'      => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
53
-								'after'       => '</div></div>',
54
-								'link_before' => '<span>',
55
-								'link_after'  => '</span>',
56
-							) );
57
-						?>
50
+                                   the_content();
51
+                                   wp_link_pages( array(
52
+                                        'before'      => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
53
+                                        'after'       => '</div></div>',
54
+                                        'link_before' => '<span>',
55
+                                        'link_after'  => '</span>',
56
+                                   ) );
57
+                              ?>
58 58
 						</div>
59 59
 					</div><!-- .entry-content -->
60 60
 					<?php lsx_entry_bottom(); ?>
@@ -69,9 +69,9 @@  discard block
 block discarded – undo
69 69
 					<?php } ?>
70 70
 				</article><!-- #post-## -->
71 71
 				<?php
72
-				lsx_health_plan_workout_sets();
73
-			} else {
74
-				?>
72
+                    lsx_health_plan_workout_sets();
73
+               } else {
74
+                    ?>
75 75
 				<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
76 76
 					<?php lsx_entry_top(); ?>
77 77
 					<div class="entry-content">
@@ -81,25 +81,25 @@  discard block
 block discarded – undo
81 81
 								<h2><?php esc_html_e( 'Warm Up', 'lsx-health-plan' ); ?></h2>
82 82
 							</div>
83 83
 						<?php
84
-							the_content();
85
-							wp_link_pages( array(
86
-								'before'      => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
87
-								'after'       => '</div></div>',
88
-								'link_before' => '<span>',
89
-								'link_after'  => '</span>',
90
-							) );
91
-						?>
84
+                                   the_content();
85
+                                   wp_link_pages( array(
86
+                                        'before'      => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
87
+                                        'after'       => '</div></div>',
88
+                                        'link_before' => '<span>',
89
+                                        'link_after'  => '</span>',
90
+                                   ) );
91
+                              ?>
92 92
 						</div>
93 93
 					</div><!-- .entry-content -->
94 94
 					<?php lsx_entry_bottom(); ?>
95 95
 				</article><!-- #post-## -->
96 96
 				<?php
97
-			}
97
+               }
98 98
 
99
-			lsx_entry_after();
100
-		}
101
-		wp_reset_postdata();
102
-	}
99
+               lsx_entry_after();
100
+          }
101
+          wp_reset_postdata();
102
+     }
103 103
 }
104 104
 ?>
105 105
 </div>
Please login to merge, or discard this patch.
templates/content-archive-exercise.php 1 patch
Indentation   +51 added lines, -51 removed lines patch added patch discarded remove patch
@@ -18,40 +18,40 @@  discard block
 block discarded – undo
18 18
 
19 19
 // Check for shortcode overrides.
20 20
 if ( null !== $shortcode_args ) {
21
-	if ( isset( $shortcode_args['columns'] ) ) {
22
-		$column_class = $shortcode_args['columns'];
23
-		$column_class = \lsx_health_plan\functions\column_class( $column_class );
24
-	}
25
-	if ( isset( $shortcode_args['link'] ) ) {
26
-		$link_setting = $shortcode_args['link'];
27
-		// Setup our link and content.
28
-		switch ( $link_setting ) {
29
-			case 'single':
30
-				$link_html  = '<a href="' . get_permalink( $group['connected_exercises'] ) . '">';
31
-				$link_close = '</a>';
32
-				break;
21
+     if ( isset( $shortcode_args['columns'] ) ) {
22
+          $column_class = $shortcode_args['columns'];
23
+          $column_class = \lsx_health_plan\functions\column_class( $column_class );
24
+     }
25
+     if ( isset( $shortcode_args['link'] ) ) {
26
+          $link_setting = $shortcode_args['link'];
27
+          // Setup our link and content.
28
+          switch ( $link_setting ) {
29
+               case 'single':
30
+                    $link_html  = '<a href="' . get_permalink( $group['connected_exercises'] ) . '">';
31
+                    $link_close = '</a>';
32
+                    break;
33 33
 
34
-			case 'modal':
35
-				$link_html  = '<a data-toggle="modal" href="#workout-exercise-modal-' . $group['connected_exercises'] . '">';
36
-				$link_close = '</a>';
37
-				$modal_content_setting = \lsx_health_plan\functions\get_option( 'workout_tab_modal_content', 'excerpt' );
38
-				$modal_args = array(
39
-					'modal_content' => $modal_content_setting,
40
-				);
41
-				// We call the button to register the modal, but we do not output it.
42
-				lsx_health_plan_workout_exercise_button( $group['connected_exercises'], $group, false, $modal_args );
43
-				break;
34
+               case 'modal':
35
+                    $link_html  = '<a data-toggle="modal" href="#workout-exercise-modal-' . $group['connected_exercises'] . '">';
36
+                    $link_close = '</a>';
37
+                    $modal_content_setting = \lsx_health_plan\functions\get_option( 'workout_tab_modal_content', 'excerpt' );
38
+                    $modal_args = array(
39
+                         'modal_content' => $modal_content_setting,
40
+                    );
41
+                    // We call the button to register the modal, but we do not output it.
42
+                    lsx_health_plan_workout_exercise_button( $group['connected_exercises'], $group, false, $modal_args );
43
+                    break;
44 44
 
45
-			case 'none':
46
-			default:
47
-				$link_html  = '';
48
-				$link_close = '';
49
-				break;
50
-		}
51
-	}
52
-	if ( isset( $shortcode_args['description'] ) ) {
53
-		$content_setting = $shortcode_args['description'];
54
-	}
45
+               case 'none':
46
+               default:
47
+                    $link_html  = '';
48
+                    $link_close = '';
49
+                    break;
50
+          }
51
+     }
52
+     if ( isset( $shortcode_args['description'] ) ) {
53
+          $content_setting = $shortcode_args['description'];
54
+     }
55 55
 }
56 56
 
57 57
 ?>
@@ -63,17 +63,17 @@  discard block
 block discarded – undo
63 63
 		<div class="exercise-feature-img">
64 64
 			<a href="<?php echo esc_url( get_permalink() ); ?>">
65 65
 			<?php
66
-			$featured_image = get_the_post_thumbnail();
67
-			if ( ! empty( $featured_image ) && '' !== $featured_image ) {
68
-				the_post_thumbnail( 'medium', array(
69
-					'class' => 'aligncenter',
70
-				) );
71
-			} else {
72
-				?>
66
+               $featured_image = get_the_post_thumbnail();
67
+               if ( ! empty( $featured_image ) && '' !== $featured_image ) {
68
+                    the_post_thumbnail( 'medium', array(
69
+                         'class' => 'aligncenter',
70
+                    ) );
71
+               } else {
72
+                    ?>
73 73
 				<img loading="lazy" src="<?php echo esc_attr( plugin_dir_url( __FILE__ ) . '../assets/images/placeholder.jpg' ); ?>">
74 74
 				<?php
75
-			}
76
-			?>
75
+               }
76
+               ?>
77 77
 			</a>
78 78
 		</div>
79 79
 		<div class="content-box exercise-content-box white-bg">
@@ -82,16 +82,16 @@  discard block
 block discarded – undo
82 82
 				<?php lsx_health_plan_exercise_data(); ?>
83 83
 			</div>
84 84
 			<?php
85
-			if ( '' !== $content_setting && 'excerpt' === $content_setting ) {
86
-				if ( ! has_excerpt() ) {
87
-					$content = wp_trim_words( get_the_content(), 20 );
88
-					$content = '<p>' . $content . '</p>';
89
-				} else {
90
-					$content = apply_filters( 'the_excerpt', get_the_excerpt() );
91
-				}
92
-				echo wp_kses_post( $content );
93
-			}
94
-			?>
85
+               if ( '' !== $content_setting && 'excerpt' === $content_setting ) {
86
+                    if ( ! has_excerpt() ) {
87
+                         $content = wp_trim_words( get_the_content(), 20 );
88
+                         $content = '<p>' . $content . '</p>';
89
+                    } else {
90
+                         $content = apply_filters( 'the_excerpt', get_the_excerpt() );
91
+                    }
92
+                    echo wp_kses_post( $content );
93
+               }
94
+               ?>
95 95
 			<a href="<?php echo esc_url( get_permalink() ); ?>" class="btn border-btn"><?php esc_html_e( 'See exercise', 'lsx-health-plan' ); ?></a>
96 96
 		</div>
97 97
 		<?php lsx_entry_bottom(); ?>
Please login to merge, or discard this patch.
templates/tab-content-recipes.php 1 patch
Indentation   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -17,15 +17,15 @@  discard block
 block discarded – undo
17 17
 
18 18
 	<div class="entry-content">
19 19
 		<?php
20
-			//the_content();
20
+               //the_content();
21 21
 
22
-			wp_link_pages( array(
23
-				'before'      => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
24
-				'after'       => '</div></div>',
25
-				'link_before' => '<span>',
26
-				'link_after'  => '</span>',
27
-			) );
28
-		?>
22
+               wp_link_pages( array(
23
+                    'before'      => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
24
+                    'after'       => '</div></div>',
25
+                    'link_before' => '<span>',
26
+                    'link_after'  => '</span>',
27
+               ) );
28
+          ?>
29 29
 		<div class="single-plan-inner recipes-content">
30 30
 			<div class="single-plan-section-title recipes-plan title-lined">
31 31
 				<?php lsx_get_svg_icon( 'recipes.svg' ); ?>
@@ -34,30 +34,30 @@  discard block
 block discarded – undo
34 34
 			<div class="recipes">
35 35
 			<div class="row eating-row">
36 36
 			<?php
37
-			$connected_recipes = get_post_meta( get_the_ID(), 'connected_recipes', true );
38
-			if ( empty( $connected_recipes ) ) {
39
-				$options = \lsx_health_plan\functions\get_option( 'all' );
40
-				if ( isset( $options['connected_recipes'] ) && '' !== $options['connected_recipes'] && ! empty( $options['connected_recipes'] ) ) {
41
-					$connected_recipes = $options['connected_recipes'];
42
-					if ( ! array( $connected_recipes ) ) {
43
-						$connected_recipes = array( $connected_recipes );
44
-					}
45
-				}
46
-			}
47
-			$args    = array(
48
-				'orderby'   => 'date',
49
-				'order'     => 'DESC',
50
-				'post_type' => 'recipe',
51
-				'post__in'  => $connected_recipes,
52
-			);
53
-			$recipes = new WP_Query( $args );
37
+               $connected_recipes = get_post_meta( get_the_ID(), 'connected_recipes', true );
38
+               if ( empty( $connected_recipes ) ) {
39
+                    $options = \lsx_health_plan\functions\get_option( 'all' );
40
+                    if ( isset( $options['connected_recipes'] ) && '' !== $options['connected_recipes'] && ! empty( $options['connected_recipes'] ) ) {
41
+                         $connected_recipes = $options['connected_recipes'];
42
+                         if ( ! array( $connected_recipes ) ) {
43
+                              $connected_recipes = array( $connected_recipes );
44
+                         }
45
+                    }
46
+               }
47
+               $args    = array(
48
+                    'orderby'   => 'date',
49
+                    'order'     => 'DESC',
50
+                    'post_type' => 'recipe',
51
+                    'post__in'  => $connected_recipes,
52
+               );
53
+               $recipes = new WP_Query( $args );
54 54
 
55
-			if ( $recipes->have_posts() ) {
56
-				while ( $recipes->have_posts() ) {
57
-					$recipes->the_post();
58
-					$post_id = get_the_id();
55
+               if ( $recipes->have_posts() ) {
56
+                    while ( $recipes->have_posts() ) {
57
+                         $recipes->the_post();
58
+                         $post_id = get_the_id();
59 59
 
60
-					?>
60
+                         ?>
61 61
 					<div class="col-md-4 recipe-column">
62 62
 						<div class="content-box box-shadow">
63 63
 							<h3 class="recipe-title title-lined"><?php the_title(); ?></h3>
@@ -66,9 +66,9 @@  discard block
 block discarded – undo
66 66
 						</div>
67 67
 					</div>
68 68
 				<?php
69
-				}
70
-			}
71
-			?>
69
+                    }
70
+               }
71
+               ?>
72 72
 			<?php wp_reset_postdata(); ?>
73 73
 			</div>
74 74
 			</div>
Please login to merge, or discard this patch.
templates/archive-plan.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -23,11 +23,11 @@
 block discarded – undo
23 23
 					<?php if ( have_posts() ) : ?>
24 24
 						<?php
25 25
 
26
-						$count = 0;
26
+                              $count = 0;
27 27
 
28
-						while ( have_posts() ) :
29
-							the_post();
30
-							?>
28
+                              while ( have_posts() ) :
29
+                                   the_post();
30
+                                   ?>
31 31
 
32 32
 							<?php include LSX_HEALTH_PLAN_PATH . '/templates/content-archive-plan.php'; ?>
33 33
 
Please login to merge, or discard this patch.
templates/content-recipe.php 1 patch
Indentation   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -41,36 +41,36 @@  discard block
 block discarded – undo
41 41
 			<div class="post-sharing-wrapper">
42 42
 
43 43
 				<?php
44
-				if ( class_exists( 'LSX_Sharing' ) ) {
45
-					lsx_content_sharing();
46
-				} else {
47
-					if ( function_exists( 'sharing_display' ) ) {
48
-						sharing_display( '', true );
49
-					}
50
-
51
-					if ( class_exists( 'Jetpack_Likes' ) ) {
52
-						$custom_likes = new Jetpack_Likes();
53
-						echo wp_kses_post( $custom_likes->post_likes( '' ) );
54
-					}
55
-				}
56
-				?>
44
+                    if ( class_exists( 'LSX_Sharing' ) ) {
45
+                         lsx_content_sharing();
46
+                    } else {
47
+                         if ( function_exists( 'sharing_display' ) ) {
48
+                              sharing_display( '', true );
49
+                         }
50
+
51
+                         if ( class_exists( 'Jetpack_Likes' ) ) {
52
+                              $custom_likes = new Jetpack_Likes();
53
+                              echo wp_kses_post( $custom_likes->post_likes( '' ) );
54
+                         }
55
+                    }
56
+                    ?>
57 57
 		<?php endif ?>
58 58
 		</h2>
59 59
 		<?php echo wp_kses_post( lsx_hp_member_connected( $connected_members, 'recipe' ) ); ?>
60 60
 		<div class="row">
61 61
 			<div class="col-md-6 recipe-image lsx-hp-shadow">
62 62
 				<?php
63
-				$featured_image = get_the_post_thumbnail();
64
-				if ( ! empty( $featured_image ) && '' !== $featured_image ) {
65
-					the_post_thumbnail( 'large', array(
66
-						'class' => 'aligncenter',
67
-					) );
68
-				} else {
69
-					?>
63
+                    $featured_image = get_the_post_thumbnail();
64
+                    if ( ! empty( $featured_image ) && '' !== $featured_image ) {
65
+                         the_post_thumbnail( 'large', array(
66
+                              'class' => 'aligncenter',
67
+                         ) );
68
+                    } else {
69
+                         ?>
70 70
 					<img loading="lazy" src="<?php echo esc_attr( plugin_dir_url( __FILE__ ) . '../assets/images/placeholder.jpg' ); ?>">
71 71
 					<?php
72
-				}
73
-				?>
72
+                    }
73
+                    ?>
74 74
 				<?php if ( ( ! empty( $prep_time ) ) || ( ! empty( $cooking_time ) ) || ( ! empty( $serves ) ) || ( ! empty( $portion ) ) || ( ! empty( $energy ) ) || ( ! empty( $protein ) ) || ( ! empty( $carbohydrates ) ) || ( ! empty( $fibre ) ) || ( ! empty( $fat ) ) ) { ?>
75 75
 				<div class="recipe-data">
76 76
 					<?php lsx_health_plan_recipe_data(); ?>
@@ -82,12 +82,12 @@  discard block
 block discarded – undo
82 82
 				<?php echo do_shortcode( '[lsx_health_plan_featured_tips_block]' ); ?>
83 83
 				<div class="back-plan-btn">
84 84
 				<?php
85
-				if ( function_exists( 'wc_get_page_id' ) ) {
86
-					?>
85
+                    if ( function_exists( 'wc_get_page_id' ) ) {
86
+                         ?>
87 87
 					<a class="btn" href="<?php echo wp_kses_post( get_permalink( wc_get_page_id( 'myaccount' ) ) ); ?>"><?php esc_html_e( 'Back To My Plan', 'lsx-health-plan' ); ?></a>
88 88
 					<?php
89
-				}
90
-				?>
89
+                    }
90
+                    ?>
91 91
 				</div>
92 92
 			</div>
93 93
 		</div>
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 
101 101
 <?php
102 102
 if ( ! empty( $connected_articles ) ) {
103
-	lsx_hp_single_related( $connected_articles, __( 'Related articles', 'lsx-health-plan' ) );
103
+     lsx_hp_single_related( $connected_articles, __( 'Related articles', 'lsx-health-plan' ) );
104 104
 }
105 105
 ?>
106 106
 
Please login to merge, or discard this patch.
templates/tab-content-workout.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -27,18 +27,18 @@  discard block
 block discarded – undo
27 27
 
28 28
 	<div class="entry-content">
29 29
 		<?php
30
-			wp_link_pages(
31
-				array(
32
-					'before'      => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
33
-					'after'       => '</div></div>',
34
-					'link_before' => '<span>',
35
-					'link_after'  => '</span>',
36
-				)
37
-			);
38
-		?>
30
+               wp_link_pages(
31
+                    array(
32
+                         'before'      => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
33
+                         'after'       => '</div></div>',
34
+                         'link_before' => '<span>',
35
+                         'link_after'  => '</span>',
36
+                    )
37
+               );
38
+          ?>
39 39
 		<div class="single-plan-inner workout-content">
40 40
 			<?php
41
-			if ( is_singular( 'workout' ) ) { ?>
41
+               if ( is_singular( 'workout' ) ) { ?>
42 42
 				<div class="single-plan-section-title workout title-lined">
43 43
 					<?php lsx_get_svg_icon( 'work.svg' ); ?>
44 44
 					<h2><?php the_title(); ?></h2>
@@ -50,8 +50,8 @@  discard block
 block discarded – undo
50 50
 				</div>
51 51
 			<?php } ?>
52 52
 			<?php
53
-			if ( lsx_health_plan_has_warmup() && ( ! is_singular( 'workout' ) ) ) {
54
-				?>
53
+               if ( lsx_health_plan_has_warmup() && ( ! is_singular( 'workout' ) ) ) {
54
+                    ?>
55 55
 				<div class="workout-instructions">
56 56
 					<div class="row">
57 57
 						<div class="col-md-12">
@@ -63,8 +63,8 @@  discard block
 block discarded – undo
63 63
 					</div>
64 64
 				</div>
65 65
 				<?php
66
-			}
67
-			?>
66
+               }
67
+               ?>
68 68
 
69 69
 			<?php lsx_health_plan_workout_sets(); ?>
70 70
 		</div>
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 
77 77
 <?php
78 78
 if ( ! empty( $connected_articles ) ) {
79
-	lsx_hp_single_related( $connected_articles, __( 'Related articles', 'lsx-health-plan' ) );
79
+     lsx_hp_single_related( $connected_articles, __( 'Related articles', 'lsx-health-plan' ) );
80 80
 }
81 81
 ?>
82 82
 
Please login to merge, or discard this patch.
templates/tab-content-meal.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 	<div class="entry-content">
25 25
 		<div class="single-plan-inner meal-content">
26 26
 			<?php
27
-			if ( is_singular( 'meal' ) ) { ?>
27
+               if ( is_singular( 'meal' ) ) { ?>
28 28
 				<div class="single-plan-section-title meal-plan title-lined">
29 29
 					<?php lsx_get_svg_icon( 'meal.svg' ); ?>
30 30
 					<h2><?php the_title(); ?></h2>
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 
48 48
 <?php
49 49
 if ( ! empty( $connected_articles ) ) {
50
-	lsx_hp_single_related( $connected_articles, __( 'Related articles', 'lsx-health-plan' ) );
50
+     lsx_hp_single_related( $connected_articles, __( 'Related articles', 'lsx-health-plan' ) );
51 51
 }
52 52
 ?>
53 53
 
Please login to merge, or discard this patch.