@@ -9,10 +9,10 @@ discard block |
||
9 | 9 | $column_class = '4'; |
10 | 10 | // Check for shortcode overrides. |
11 | 11 | if ( null !== $shortcode_args ) { |
12 | - if ( isset( $shortcode_args['columns'] ) ) { |
|
13 | - $column_class = $shortcode_args['columns']; |
|
14 | - $column_class = \lsx_health_plan\functions\column_class( $column_class ); |
|
15 | - } |
|
12 | + if ( isset( $shortcode_args['columns'] ) ) { |
|
13 | + $column_class = $shortcode_args['columns']; |
|
14 | + $column_class = \lsx_health_plan\functions\column_class( $column_class ); |
|
15 | + } |
|
16 | 16 | } |
17 | 17 | |
18 | 18 | lsx_entry_before(); |
@@ -23,27 +23,27 @@ discard block |
||
23 | 23 | <div class="col-xs-12 col-sm-6 col-md-<?php echo esc_attr( $column_class ); ?>"> |
24 | 24 | <div style="background-image:url('<?php echo esc_url( $featured_image ); ?>')" class="lsx-exercises-item bg-<?php echo esc_html( $image_size ); ?>"> |
25 | 25 | <?php |
26 | - if ( isset( $link ) && ( 'modal' === $link ) ) { |
|
27 | - echo wp_kses_post( lsx_health_plan_shortcode_exercise_button( $post_id, true ) ); |
|
28 | - } |
|
26 | + if ( isset( $link ) && ( 'modal' === $link ) ) { |
|
27 | + echo wp_kses_post( lsx_health_plan_shortcode_exercise_button( $post_id, true ) ); |
|
28 | + } |
|
29 | 29 | |
30 | - if ( 'item' === $link ) { |
|
31 | - ?> |
|
30 | + if ( 'item' === $link ) { |
|
31 | + ?> |
|
32 | 32 | <a href="<?php echo esc_url( get_permalink() ); ?>" class="exercise-link excerpt-<?php echo esc_html( $description ); ?>"> |
33 | 33 | <?php |
34 | - } else { |
|
35 | - ?> |
|
34 | + } else { |
|
35 | + ?> |
|
36 | 36 | <div class="exercise-link excerpt-<?php echo esc_html( $description ); ?>"> |
37 | 37 | <?php |
38 | - } |
|
39 | - ?> |
|
38 | + } |
|
39 | + ?> |
|
40 | 40 | |
41 | 41 | <?php lsx_health_plan_exercise_title( '<h4 class="lsx-exercises-title">', '</h4>', false ); ?> |
42 | 42 | <?php if ( isset( $description ) && ( 'none' !== $description ) ) { ?> |
43 | 43 | <?php |
44 | - if ( 'excerpt' === $description ) { |
|
45 | - $excerpt = \lsx_health_plan\functions\hp_excerpt( $post_id ); |
|
46 | - ?> |
|
44 | + if ( 'excerpt' === $description ) { |
|
45 | + $excerpt = \lsx_health_plan\functions\hp_excerpt( $post_id ); |
|
46 | + ?> |
|
47 | 47 | <p class="lsx-exercises-excerpt"><?php echo wp_kses_post( $excerpt ); ?></p> |
48 | 48 | <?php } ?> |
49 | 49 | <?php if ( 'full' === $description ) { ?> |
@@ -51,8 +51,8 @@ discard block |
||
51 | 51 | <?php } ?> |
52 | 52 | <?php } ?> |
53 | 53 | <?php |
54 | - if ( isset( $link ) && ( 'item' === $link ) ) { |
|
55 | - ?> |
|
54 | + if ( isset( $link ) && ( 'item' === $link ) ) { |
|
55 | + ?> |
|
56 | 56 | </a> |
57 | 57 | <?php } else { ?> |
58 | 58 | </div> |