1 | <?php |
||
2 | /** |
||
3 | * Template used to display post content on single pages. |
||
4 | * |
||
5 | * @package lsx-health-plan |
||
6 | */ |
||
7 | |||
8 | global $shortcode_args; |
||
9 | |||
10 | ?> |
||
11 | |||
12 | <?php lsx_entry_before(); ?> |
||
13 | |||
14 | <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
||
15 | |||
16 | <?php lsx_entry_top(); ?> |
||
17 | |||
18 | <div class="entry-meta"> |
||
19 | <?php lsx_post_meta_single_bottom(); ?> |
||
20 | </div><!-- .entry-meta --> |
||
21 | |||
22 | <div class="entry-content"> |
||
23 | <div class="overview"> |
||
24 | <?php |
||
25 | the_content(); |
||
26 | |||
27 | wp_link_pages( array( |
||
0 ignored issues
–
show
Coding Style
introduced
by
![]() |
|||
28 | 'before' => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">', |
||
29 | 'after' => '</div></div>', |
||
30 | 'link_before' => '<span>', |
||
31 | 'link_after' => '</span>', |
||
32 | ) ); |
||
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.
![]() |
|||
33 | ?> |
||
34 | </div> |
||
35 | </div><!-- .entry-content --> |
||
36 | <?php if ( null === $shortcode_args ) { ?> |
||
0 ignored issues
–
show
|
|||
37 | <?php if ( post_type_exists( 'tip' ) && lsx_health_plan_has_tips() ) { ?> |
||
0 ignored issues
–
show
|
|||
38 | <div class="tip-row extras-box"> |
||
39 | <div class="tip-right"> |
||
40 | <?php echo do_shortcode( '[lsx_health_plan_featured_tips_block' ); ?> |
||
41 | </div> |
||
42 | </div> |
||
43 | <?php } ?> |
||
44 | <?php } ?> |
||
45 | |||
46 | <?php lsx_entry_bottom(); ?> |
||
47 | |||
48 | </article><!-- #post-## --> |
||
49 | |||
50 | <?php |
||
51 | lsx_entry_after(); |
||
52 |