Completed
Push — master ( 2cd94c...4b1ccd )
by Md. Mozahidur
04:06
created
search.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 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 Lighthouse
8
- */
3
+		 * The template for displaying search results pages.
4
+		 *
5
+		 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#search-result
6
+		 *
7
+		 * @package Lighthouse
8
+		 */
9 9
 
10 10
 get_header(); ?>
11 11
 
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -22,15 +22,15 @@  discard block
 block discarded – undo
22 22
 			<div class="col-md-9 content-listing">
23 23
 				<main id="main" class="site-main search-results" role="main">
24 24
 
25
-				<?php query_posts($query_string . '&showposts=99');
26
-				if ( have_posts() ) : ?>
25
+				<?php query_posts($query_string.'&showposts=99');
26
+				if (have_posts()) : ?>
27 27
 
28 28
 					<header class="page-header">
29 29
 						<div class="search-inner-page">
30
-							<form role="search" method="get" action="<?php echo esc_url( home_url( '/' ) ); ?>">
30
+							<form role="search" method="get" action="<?php echo esc_url(home_url('/')); ?>">
31 31
 							    <div class="search-wrap">
32
-							    	<label class="screen-reader-text" for="s"><?php _e( 'Search for:', 'presentation' ); ?></label>
33
-							        <input type="search" placeholder="<?php echo esc_attr( 'Search', 'presentation' ); ?>" name="s" value="<?php echo esc_attr( get_search_query() ); ?>" autocomplete="off"/>
32
+							    	<label class="screen-reader-text" for="s"><?php _e('Search for:', 'presentation'); ?></label>
33
+							        <input type="search" placeholder="<?php echo esc_attr('Search', 'presentation'); ?>" name="s" value="<?php echo esc_attr(get_search_query()); ?>" autocomplete="off"/>
34 34
 							         <button type="submit">
35 35
 						                Search
36 36
 						            </button>
@@ -38,20 +38,20 @@  discard block
 block discarded – undo
38 38
 							</form>
39 39
 						</div>
40 40
 
41
-						<h1 class="page-title"><?php printf( esc_html__( 'Search Results for: %s', 'lighthouse' ), '<span>“' . get_search_query() . '”</span>' ); ?></h1>
41
+						<h1 class="page-title"><?php printf(esc_html__('Search Results for: %s', 'lighthouse'), '<span>“'.get_search_query().'”</span>'); ?></h1>
42 42
 
43 43
 					</header><!-- .page-header -->
44 44
 
45 45
 					<?php
46 46
 					/* Start the Loop */
47
-					while ( have_posts() ) : the_post();
47
+					while (have_posts()) : the_post();
48 48
 
49 49
 						/**
50 50
 						 * Run the loop for the search to output the results.
51 51
 						 * If you want to overload this in a child theme then include a file
52 52
 						 * called content-search.php and that will be used instead.
53 53
 						 */
54
-						get_template_part( 'template-parts/content', 'search' );
54
+						get_template_part('template-parts/content', 'search');
55 55
 
56 56
 					endwhile;
57 57
 
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 
60 60
 				else :
61 61
 
62
-					get_template_part( 'template-parts/content', 'none' );
62
+					get_template_part('template-parts/content', 'none');
63 63
 
64 64
 				endif; ?>
65 65
 				</main><!-- #main -->
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 				</div>
70 70
 			</div><!-- .blog-listing -->
71 71
 		<div class="col-md-3 sidebar" role="complementary">
72
-			<?php dynamic_sidebar( 'blog_widgets' ); ?>
72
+			<?php dynamic_sidebar('blog_widgets'); ?>
73 73
 		</div>
74 74
 		</div><!-- .row -->
75 75
 	</div><!-- #primary -->
Please login to merge, or discard this patch.