lightspeeddevelopment /
to-specials
| 1 | <?php |
||
| 2 | /** |
||
| 3 | * Special Content Part |
||
| 4 | * |
||
| 5 | * @package tour-operator |
||
| 6 | * @category special |
||
| 7 | */ |
||
| 8 | |||
| 9 | global $lsx_to_archive, $post; |
||
| 10 | |||
| 11 | if ( 1 !== $lsx_to_archive ) { |
||
|
0 ignored issues
–
show
Coding Style
introduced
by
Loading history...
|
|||
| 12 | $lsx_to_archive = false; |
||
| 13 | } |
||
| 14 | ?> |
||
| 15 | |||
| 16 | <?php lsx_entry_before(); ?> |
||
| 17 | |||
| 18 | <article id="special-<?php echo esc_attr( $post->post_name ); ?>" <?php post_class( 'lsx-to-archive-container' ); ?>> |
||
| 19 | <?php lsx_entry_top(); ?> |
||
| 20 | |||
| 21 | <?php if ( is_single() && false === $lsx_to_archive ) { ?> |
||
|
0 ignored issues
–
show
|
|||
| 22 | |||
| 23 | <div <?php lsx_to_entry_class( 'entry-content' ); ?>> |
||
| 24 | <div class="lsx-to-summary"> |
||
| 25 | <h2 class="lsx-to-summary-title"><?php the_title(); ?></h2> |
||
| 26 | </div> |
||
| 27 | |||
| 28 | <?php lsx_to_price( '<p class="lsx-to-meta-data lsx-to-meta-data-big lsx-to-meta-data-price"><span class="lsx-to-meta-data-key">' . esc_html__( 'From price', 'tour-operator' ) . ':</span> ', '</p>' ); ?> |
||
| 29 | <?php the_content(); ?> |
||
| 30 | <?php lsx_to_sharing(); ?> |
||
| 31 | </div> |
||
| 32 | |||
| 33 | <?php } elseif ( is_search() || empty( tour_operator()->options[ get_post_type() ]['disable_entry_text'] ) ) { ?> |
||
|
0 ignored issues
–
show
|
|||
| 34 | |||
| 35 | <div <?php lsx_to_entry_class( 'entry-content' ); ?>><?php |
||
|
0 ignored issues
–
show
|
|||
| 36 | lsx_to_entry_content_top(); |
||
| 37 | the_excerpt(); |
||
| 38 | lsx_to_entry_content_bottom(); |
||
| 39 | ?></div> |
||
|
0 ignored issues
–
show
|
|||
| 40 | |||
| 41 | <?php } ?> |
||
| 42 | |||
| 43 | <?php lsx_entry_bottom(); ?> |
||
| 44 | |||
| 45 | </article> |
||
| 46 | |||
| 47 | <?php lsx_entry_after(); |
||
|
0 ignored issues
–
show
|
|||
| 48 |