Completed
Push — master ( da9712...10556d )
by Md. Mozahidur
02:03
created
page-template/blog.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 	<div class="container blog-wrapper">
10 10
 		<div class="row">
11 11
 			<div class="col-xs-12">
12
-				<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
12
+				<?php the_title('<h1 class="entry-title">', '</h1>'); ?>
13 13
 				<h3 class="sub-title">Read the latest articles, commentary in our news blogs</h3>
14 14
 			</div>
15 15
 		</div>
@@ -19,14 +19,14 @@  discard block
 block discarded – undo
19 19
 	<div class="row">
20 20
 		<div class="col-md-9 content-listing">
21 21
 			<?php 
22
-			$paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1;
22
+			$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
23 23
 			$args = array(
24 24
 				'post_type' => 'post',
25 25
 				'posts_per_page' => 6,
26 26
 				'paged' => $paged
27 27
 				);
28
-			$loop = new WP_Query( $args );
29
-			while($loop->have_posts()) : $loop->the_post();	
28
+			$loop = new WP_Query($args);
29
+			while ($loop->have_posts()) : $loop->the_post();	
30 30
 
31 31
 			$postid = get_the_ID();
32 32
 			?>
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 			<article id="post-<?php echo $postid; ?>">
35 35
 				<div class="row blog-item">
36 36
 					<?php
37
-					$thumb = wp_get_attachment_image_src( get_post_thumbnail_id(), 'lighthouse_blog_listing');
37
+					$thumb = wp_get_attachment_image_src(get_post_thumbnail_id(), 'lighthouse_blog_listing');
38 38
 					$url = $thumb[0];
39 39
 					$content = get_the_content();
40 40
 					?>
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 								<span class="date"><?php the_time(get_option('date_format')) ?></span>
54 54
 							</div>
55 55
 							<div class="entry-content">
56
-								<?php echo wp_trim_words( $content , '18' ) ?>
56
+								<?php echo wp_trim_words($content, '18') ?>
57 57
 							</div>
58 58
 							<div class="read-more">
59 59
 								<a href="<?php the_permalink() ?>" class="btn read-more-btn">Read More</a>
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 	</div>
75 75
 </div>
76 76
 <div class="col-md-3 sidebar" role="complementary">
77
-	<?php dynamic_sidebar( 'blog_widgets' ); ?>
77
+	<?php dynamic_sidebar('blog_widgets'); ?>
78 78
 </div>
79 79
 </div><!-- .row -->
80 80
 </div><!-- .container -->
Please login to merge, or discard this patch.
template-parts/content-search.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,9 +11,9 @@
 block discarded – undo
11 11
 
12 12
 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
13 13
 	<header class="entry-header">
14
-		<?php the_title( sprintf( '<h3 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h3>' ); ?>
14
+		<?php the_title(sprintf('<h3 class="entry-title"><a href="%s" rel="bookmark">', esc_url(get_permalink())), '</a></h3>'); ?>
15 15
 
16
-		<?php if ( 'post' === get_post_type() ) : ?>
16
+		<?php if ('post' === get_post_type()) : ?>
17 17
 		<div class="entry-meta">
18 18
 			<?php lighthouse_posted_on(); ?>
19 19
 		</div><!-- .entry-meta -->
Please login to merge, or discard this patch.
search.php 1 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.