1 | <?php |
||
2 | /** |
||
3 | * Review Content Part |
||
4 | * |
||
5 | * @package tour-operator |
||
6 | * @category review |
||
7 | */ |
||
8 | |||
9 | global $lsx_to_archive, $post; |
||
10 | |||
11 | if ( 1 !== $lsx_to_archive ) { |
||
0 ignored issues
–
show
Coding Style
introduced
by
![]() |
|||
12 | $lsx_to_archive = false; |
||
13 | } |
||
14 | ?> |
||
15 | |||
16 | <?php lsx_entry_before(); ?> |
||
17 | |||
18 | <article id="review-<?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-section-inner"> |
||
25 | <h3 class="lsx-to-summary-title"><?php the_title(); ?></h3> |
||
26 | <div class="lsx-to-review-content"><?php the_content(); ?></div> |
||
27 | |||
28 | <h3 class="lsx-to-summary-title"><?php esc_html_e( 'Trip Details', 'to-reviews' ); ?></h3> |
||
29 | <?php lsx_to_fast_facts(); ?> |
||
30 | </div> |
||
31 | |||
32 | <?php lsx_to_sharing(); ?> |
||
33 | </div> |
||
34 | |||
35 | <?php } elseif ( is_search() || empty( tour_operator()->options[ get_post_type() ]['disable_entry_text'] ) ) { ?> |
||
0 ignored issues
–
show
|
|||
36 | |||
37 | <div <?php lsx_to_entry_class( 'entry-content' ); ?>><?php |
||
0 ignored issues
–
show
|
|||
38 | lsx_to_entry_content_top(); |
||
39 | the_excerpt(); |
||
40 | lsx_to_entry_content_bottom(); |
||
41 | ?></div> |
||
0 ignored issues
–
show
|
|||
42 | |||
43 | <?php } ?> |
||
44 | |||
45 | <?php lsx_entry_bottom(); ?> |
||
46 | |||
47 | </article> |
||
48 | |||
49 | <?php lsx_entry_after(); |
||
0 ignored issues
–
show
|
|||
50 |