Issues (311)

search.php (9 issues)

Labels
Severity
1
<?php
2
/**
3
 * The template for displaying search results pages
4
 *
5
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#search-result
6
 *
7
 * @package DesignFly
8
 */
9
10
get_header();
0 ignored issues
show
The function get_header was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

10
/** @scrutinizer ignore-call */ 
11
get_header();
Loading history...
11
?>
12
13
	<section id="search-wrapper" class="content-area container">
14
		<div class="row">
15
			<div class="col-md-8">
16
		<main id="main" class="site-main">
17
18
		<?php if ( have_posts() ) : ?>
0 ignored issues
show
The function have_posts was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

18
		<?php if ( /** @scrutinizer ignore-call */ have_posts() ) : ?>
Loading history...
19
20
			<header class="page-header">
21
				<h1 class="page-title">
22
					<?php
23
					/* translators: %s: search query. */
24
					printf( esc_html__( 'Search Results for: %s', 'designfly' ), '<span>' . get_search_query() . '</span>' );
0 ignored issues
show
The function esc_html__ was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

24
					printf( /** @scrutinizer ignore-call */ esc_html__( 'Search Results for: %s', 'designfly' ), '<span>' . get_search_query() . '</span>' );
Loading history...
The function get_search_query was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

24
					printf( esc_html__( 'Search Results for: %s', 'designfly' ), '<span>' . /** @scrutinizer ignore-call */ get_search_query() . '</span>' );
Loading history...
25
					?>
26
				</h1>
27
28
				<hr class="bar">
29
			</header><!-- .page-header -->
30
31
			<?php
32
			/* Start the Loop */
33
			while ( have_posts() ) :
34
				the_post();
0 ignored issues
show
The function the_post was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

34
				/** @scrutinizer ignore-call */ 
35
    the_post();
Loading history...
35
36
				/**
37
				 * Run the loop for the search to output the results.
38
				 * If you want to overload this in a child theme then include a file
39
				 * called content-search.php and that will be used instead.
40
				 */
41
				get_template_part( 'template-parts/content', 'blog-template' );
0 ignored issues
show
The function get_template_part was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

41
				/** @scrutinizer ignore-call */ 
42
    get_template_part( 'template-parts/content', 'blog-template' );
Loading history...
42
43
			endwhile;
44
45
			the_posts_navigation();
0 ignored issues
show
The function the_posts_navigation was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

45
			/** @scrutinizer ignore-call */ 
46
   the_posts_navigation();
Loading history...
46
47
		else :
48
49
			get_template_part( 'template-parts/content', 'none' );
50
51
		endif;
52
		?>
53
54
		</main><!-- #main -->
55
	</div>
56
57
	<div class="col-md-4">
58
		<?php get_sidebar(); ?>
0 ignored issues
show
The function get_sidebar was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

58
		<?php /** @scrutinizer ignore-call */ get_sidebar(); ?>
Loading history...
59
	</div>
60
	</section><!-- #primary -->
61
62
<?php
63
get_footer();
0 ignored issues
show
The function get_footer was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

63
/** @scrutinizer ignore-call */ 
64
get_footer();
Loading history...
64