Completed
Push — master ( 556f73...911fab )
by Md. Mozahidur
02:37
created
template-parts/content-none.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,9 +26,12 @@
 block discarded – undo
26 26
 			<?php
27 27
 				get_search_form();
28 28
 
29
-		else : ?>
29
+		else {
30
+			: ?>
30 31
 
31
-			<p><?php esc_html_e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'lighthouse' ); ?></p>
32
+			<p><?php esc_html_e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'lighthouse' );
33
+		}
34
+		?></p>
32 35
 			<?php
33 36
 				get_search_form();
34 37
 
Please login to merge, or discard this patch.
inc/jetpack.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,8 +34,10 @@
 block discarded – undo
34 34
 		the_post();
35 35
 		if ( is_search() ) :
36 36
 		    get_template_part( 'template-parts/content', 'search' );
37
-		else :
37
+		else {
38
+			:
38 39
 		    get_template_part( 'template-parts/content', get_post_format() );
40
+		}
39 41
 		endif;
40 42
 	}
41 43
 }
Please login to merge, or discard this patch.
inc/custom-header.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,11 +63,14 @@
 block discarded – undo
63 63
 		}
64 64
 	<?php
65 65
 		// If the user has set a custom color for the text use that.
66
-		else :
66
+		else {
67
+			:
67 68
 	?>
68 69
 		.site-title a,
69 70
 		.site-description {
70
-			color: #<?php echo esc_attr( $header_text_color ); ?>;
71
+			color: #<?php echo esc_attr( $header_text_color );
72
+		}
73
+		?>;
71 74
 		}
72 75
 	<?php endif; ?>
73 76
 	</style>
Please login to merge, or discard this patch.
archive.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,8 +34,10 @@
 block discarded – undo
34 34
 		the_post();
35 35
 		if ( is_search() ) :
36 36
 		    get_template_part( 'template-parts/content', 'search' );
37
-		else :
37
+		else {
38
+			:
38 39
 		    get_template_part( 'template-parts/content', get_post_format() );
40
+		}
39 41
 		endif;
40 42
 	}
41 43
 }
Please login to merge, or discard this patch.
index.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,8 +34,10 @@
 block discarded – undo
34 34
 		the_post();
35 35
 		if ( is_search() ) :
36 36
 		    get_template_part( 'template-parts/content', 'search' );
37
-		else :
37
+		else {
38
+			:
38 39
 		    get_template_part( 'template-parts/content', get_post_format() );
40
+		}
39 41
 		endif;
40 42
 	}
41 43
 }
Please login to merge, or discard this patch.
search.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,8 +34,10 @@
 block discarded – undo
34 34
 		the_post();
35 35
 		if ( is_search() ) :
36 36
 		    get_template_part( 'template-parts/content', 'search' );
37
-		else :
37
+		else {
38
+			:
38 39
 		    get_template_part( 'template-parts/content', get_post_format() );
40
+		}
39 41
 		endif;
40 42
 	}
41 43
 }
Please login to merge, or discard this patch.
functions.php 1 patch
Braces   +15 added lines, -5 removed lines patch added patch discarded remove patch
@@ -252,7 +252,9 @@  discard block
 block discarded – undo
252 252
      $showitems = ($range * 2)+1;  
253 253
  
254 254
      global $paged;
255
-     if(empty($paged)) $paged = 1;
255
+     if(empty($paged)) {
256
+     	$paged = 1;
257
+     }
256 258
  
257 259
      if($pages == '')
258 260
      {
@@ -267,8 +269,12 @@  discard block
 block discarded – undo
267 269
      if(1 != $pages)
268 270
      {
269 271
          echo "<div class=\"pagination\"><span>Page ".$paged." of ".$pages."</span>";
270
-         if($paged > 2 && $paged > $range+1 && $showitems < $pages) echo "<a href='".get_pagenum_link(1)."'>&laquo; First</a>";
271
-         if($paged > 1 && $showitems < $pages) echo "<a href='".get_pagenum_link($paged - 1)."'>&lsaquo; Previous</a>";
272
+         if($paged > 2 && $paged > $range+1 && $showitems < $pages) {
273
+         	echo "<a href='".get_pagenum_link(1)."'>&laquo; First</a>";
274
+         }
275
+         if($paged > 1 && $showitems < $pages) {
276
+         	echo "<a href='".get_pagenum_link($paged - 1)."'>&lsaquo; Previous</a>";
277
+         }
272 278
  
273 279
          for ($i=1; $i <= $pages; $i++)
274 280
          {
@@ -278,8 +284,12 @@  discard block
 block discarded – undo
278 284
              }
279 285
          }
280 286
  
281
-         if ($paged < $pages && $showitems < $pages) echo "<a href=\"".get_pagenum_link($paged + 1)."\">Next &rsaquo;</a>";  
282
-         if ($paged < $pages-1 &&  $paged+$range-1 < $pages && $showitems < $pages) echo "<a href='".get_pagenum_link($pages)."'>Last &raquo;</a>";
287
+         if ($paged < $pages && $showitems < $pages) {
288
+         	echo "<a href=\"".get_pagenum_link($paged + 1)."\">Next &rsaquo;</a>";
289
+         }
290
+         if ($paged < $pages-1 &&  $paged+$range-1 < $pages && $showitems < $pages) {
291
+         	echo "<a href='".get_pagenum_link($pages)."'>Last &raquo;</a>";
292
+         }
283 293
          echo "</div>\n";
284 294
      }
285 295
 }
Please login to merge, or discard this patch.