lightspeeddevelopment /
lsx-health-plan
| 1 | <?php |
||
| 2 | /** |
||
| 3 | * Template used to display the overview for the current section. |
||
| 4 | * |
||
| 5 | * @package lsx-health-plan |
||
| 6 | */ |
||
| 7 | |||
| 8 | $section_key = get_query_var( 'section' ); |
||
| 9 | $endpoint_key = get_query_var( 'endpoint' ); |
||
| 10 | if ( '' !== $section_key && '' === $endpoint && \lsx_health_plan\functions\plan\has_sections() ) { |
||
|
0 ignored issues
–
show
Coding Style
introduced
by
Loading history...
|
|||
| 11 | $section_info = \lsx_health_plan\functions\plan\get_section_info( $section_key ); |
||
| 12 | if ( isset( $section_info['description'] ) && '' !== $section_info['description'] ) { |
||
|
0 ignored issues
–
show
|
|||
| 13 | global $shortcode_args; |
||
| 14 | ?> |
||
| 15 | <?php lsx_entry_before(); ?> |
||
| 16 | |||
| 17 | <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
||
| 18 | |||
| 19 | <?php lsx_entry_top(); ?> |
||
| 20 | |||
| 21 | <div class="entry-meta"> |
||
| 22 | <?php lsx_post_meta_single_bottom(); ?> |
||
| 23 | </div><!-- .entry-meta --> |
||
| 24 | |||
| 25 | <div class="entry-content"> |
||
| 26 | <div class="overview"> |
||
| 27 | <?php |
||
| 28 | echo wp_kses_post( apply_filters( 'the_content', $section_info['description'] ) ); |
||
| 29 | |||
| 30 | wp_link_pages( array( |
||
|
0 ignored issues
–
show
|
|||
| 31 | 'before' => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">', |
||
| 32 | 'after' => '</div></div>', |
||
| 33 | 'link_before' => '<span>', |
||
| 34 | 'link_after' => '</span>', |
||
| 35 | ) ); |
||
|
0 ignored issues
–
show
For multi-line function calls, the closing parenthesis should be on a new line.
If a function call spawns multiple lines, the coding standard suggests to move the closing parenthesis to a new line: someFunctionCall(
$firstArgument,
$secondArgument,
$thirdArgument
); // Closing parenthesis on a new line.
Loading history...
|
|||
| 36 | ?> |
||
| 37 | </div> |
||
| 38 | </div><!-- .entry-content --> |
||
| 39 | <?php if ( null === $shortcode_args ) { ?> |
||
|
0 ignored issues
–
show
|
|||
| 40 | <?php if ( post_type_exists( 'tip' ) && lsx_health_plan_has_tips() ) { ?> |
||
|
0 ignored issues
–
show
|
|||
| 41 | <div class="tip-row extras-box"> |
||
| 42 | <div class="tip-right"> |
||
| 43 | <?php echo do_shortcode( '[lsx_health_plan_featured_tips_block]' ); ?> |
||
| 44 | </div> |
||
| 45 | </div> |
||
| 46 | <?php } ?> |
||
| 47 | <?php } ?> |
||
| 48 | |||
| 49 | <?php lsx_entry_bottom(); ?> |
||
| 50 | |||
| 51 | </article><!-- #post-## --> |
||
| 52 | |||
| 53 | <?php |
||
| 54 | } |
||
| 55 | } |
||
| 56 | ?> |
||
| 57 |