Issues (1057)

templates/content-review.php (11 issues)

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
Expected 0 spaces after opening bracket; 1 found
Loading history...
Expected 0 spaces before closing bracket; 1 found
Loading history...
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
Expected 0 spaces after opening bracket; 1 found
Loading history...
Expected 0 spaces before closing bracket; 1 found
Loading history...
Blank line found at start of control structure
Loading history...
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
Expected 0 spaces after opening bracket; 1 found
Loading history...
Expected 0 spaces before closing bracket; 1 found
Loading history...
Blank line found at start of control structure
Loading history...
36
37
		<div <?php lsx_to_entry_class( 'entry-content' ); ?>><?php
0 ignored issues
show
Opening PHP tag must be on a line by itself
Loading history...
38
			lsx_to_entry_content_top();
39
			the_excerpt();
40
			lsx_to_entry_content_bottom();
41
		?></div>
0 ignored issues
show
Closing PHP tag must be on a line by itself
Loading history...
42
43
	<?php } ?>
44
45
	<?php lsx_entry_bottom(); ?>
46
47
</article>
48
49
<?php lsx_entry_after();
0 ignored issues
show
Opening PHP tag must be on a line by itself
Loading history...
50