@@ -17,7 +17,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 plans', '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 |
||
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 |