Passed
Push — master ( e51c9a...41921a )
by Chris
04:16
created

partials/content-none.php (7 issues)

1
<?php
2
/**
3
 * The template part for displaying a message that posts cannot be found.
4
 *
5
 * @package lsx
6
 */
7
8
?>
9
10
<section class="no-results not-found">
11
	<header class="page-header">
12
		<h1 class="page-title"><?php esc_html_e( 'Nothing Found', 'lsx' ); ?></h1>
13
	</header><!-- .page-header -->
14
15
	<div class="page-content">
16
17
		<?php if ( is_home() && current_user_can( 'publish_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...
18
19
			<p><?php esc_html_e( 'Ready to publish your first post?', 'lsx' ); ?> <a href="<?php echo esc_url( admin_url( 'post-new.php' ) ); ?>"><?php esc_html_e( 'Get started here', 'lsx' ); ?></a></p>
20
21
		<?php elseif ( is_search() ) : ?>
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
			<p><?php esc_html_e( 'Your search for "', 'lsx' ); ?><?php echo get_search_query(); ?><?php esc_html_e( '" didn’t return any results… ', 'lsx' ); ?><br><?php esc_html_e( 'Please try another keyword', 'lsx' ); ?></p>
24
25
			<?php echo wp_kses_post( apply_filters( 'lsx_404_search_form', get_search_form() ) ); ?>
26
27
		<?php else : ?>
0 ignored issues
show
Blank line found at start of control structure
Loading history...
28
29
			<p><?php esc_html_e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'lsx' ); ?></p>
30
			<?php echo wp_kses_post( apply_filters( 'lsx_404_search_form', get_search_form() ) ); ?>
31
32
		<?php endif; ?>
33
34
	</div><!-- .page-content -->
35
</section><!-- .no-results -->
36