Passed
Push — master ( 86dfed...3aa001 )
by Warwick
05:45
created

index.php (6 issues)

1
<?php
2
/**
3
 * The main template file.
4
 *
5
 * @package lsx
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 <?php echo esc_attr( lsx_post_wrapper_class() ); ?>">
23
				<?php
24
				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...
25
					the_post();
26
					lsx_get_template_part();
27
				endwhile;
28
				?>
29
			</div>
30
31
			<?php lsx_paging_nav(); ?>
32
33
		<?php else : ?>
0 ignored issues
show
Blank line found at start of control structure
Loading history...
34
35
			<?php get_template_part( 'partials/content', 'none' ); ?>
36
37
		<?php endif; ?>
38
39
		<?php lsx_content_bottom(); ?>
40
41
	</main><!-- #main -->
42
43
	<?php lsx_content_after(); ?>
44
45
</div><!-- #primary -->
46
47
<?php lsx_content_wrap_after(); ?>
48
49
<?php get_sidebar( 'sidebar' ); ?>
50
51
<?php
52
get_footer();
53