Issues (4138)

templates/single-meal.php (6 issues)

1
<?php
2
/**
3
 * The Template for displaying the single meal plan and its connected items
4
 *
5
 * @package lsx-health-plan
6
 */
7
8
get_header(); ?>
9
10
<?php lsx_content_wrap_before(); ?>
11
12
<div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>">
13
14
	<?php lsx_content_before(); ?>
15
16
	<main id="main" class="site-main" role="main">
17
18
		<?php lsx_content_top(); ?>
19
20
		<?php if ( have_posts() ) : ?>
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...
21
22
			<div class="post-wrapper">
23
24
				<?php
25
				while ( have_posts() ) :
0 ignored issues
show
Expected 0 spaces after opening bracket; 1 found
Loading history...
Expected 0 spaces before closing bracket; 1 found
Loading history...
26
					the_post();
27
				?>
28
					<div class="meal-content">
29
					<?php the_content(); ?>
30
					</div>
31
					<?php include LSX_HEALTH_PLAN_PATH . '/templates/tab-content-meal.php'; ?>
32
				<?php endwhile; ?>
33
34
			</div>
35
36
			<?php lsx_paging_nav(); ?>
37
38
		<?php else : ?>
0 ignored issues
show
Blank line found at start of control structure
Loading history...
39
40
			<?php get_template_part( 'partials/content', 'none' ); ?>
41
42
		<?php endif; ?>
43
44
45
		<?php lsx_content_bottom(); ?>
46
47
	</main><!-- #main -->
48
49
	<?php lsx_content_after(); ?>
50
51
</div><!-- #primary -->
52
53
<?php lsx_content_wrap_after(); ?>
54
55
<?php get_sidebar(); ?>
56
57
<?php
58
get_footer();
59