Issues (1030)

templates/content-activity.php (11 issues)

1
<?php
2
/**
3
 * Activity Content Part
4
 *
5
 * @package  tour-operator
6
 * @category activity
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="activity-<?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-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
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...
34
35
		<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...
36
			lsx_to_entry_content_top();
37
			the_excerpt();
38
			lsx_to_entry_content_bottom();
39
		?></div>
0 ignored issues
show
Closing PHP tag must be on a line by itself
Loading history...
40
41
	<?php } ?>
42
43
	<?php lsx_entry_bottom(); ?>
44
45
</article>
46
47
<?php lsx_entry_after();
0 ignored issues
show
Opening PHP tag must be on a line by itself
Loading history...
48