Completed
Push — master ( e79207...d2e169 )
by Md. Mozahidur
02:40
created
includes/theme-settings.php 1 patch
Braces   +15 added lines, -5 removed lines patch added patch discarded remove patch
@@ -26,7 +26,9 @@  discard block
 block discarded – undo
26 26
 	$showitems = ($range * 2)+1;  
27 27
 
28 28
 	global $paged;
29
-	if(empty($paged)) $paged = 1;
29
+	if(empty($paged)) {
30
+		$paged = 1;
31
+	}
30 32
 
31 33
 	if($pages == '')
32 34
 	{
@@ -41,8 +43,12 @@  discard block
 block discarded – undo
41 43
 	if(1 != $pages)
42 44
 	{
43 45
 		echo "<div class=\"pagination\"><span>Page ".$paged." of ".$pages."</span>";
44
-		if($paged > 2 && $paged > $range+1 && $showitems < $pages) echo "<a href='".get_pagenum_link(1)."'>&laquo; First</a>";
45
-		if($paged > 1 && $showitems < $pages) echo "<a href='".get_pagenum_link($paged - 1)."'>&lsaquo; Previous</a>";
46
+		if($paged > 2 && $paged > $range+1 && $showitems < $pages) {
47
+			echo "<a href='".get_pagenum_link(1)."'>&laquo; First</a>";
48
+		}
49
+		if($paged > 1 && $showitems < $pages) {
50
+			echo "<a href='".get_pagenum_link($paged - 1)."'>&lsaquo; Previous</a>";
51
+		}
46 52
 
47 53
 		for ($i=1; $i <= $pages; $i++)
48 54
 		{
@@ -52,8 +58,12 @@  discard block
 block discarded – undo
52 58
 			}
53 59
 		}
54 60
 
55
-		if ($paged < $pages && $showitems < $pages) echo "<a href=\"".get_pagenum_link($paged + 1)."\">Next &rsaquo;</a>";  
56
-		if ($paged < $pages-1 &&  $paged+$range-1 < $pages && $showitems < $pages) echo "<a href='".get_pagenum_link($pages)."'>Last &raquo;</a>";
61
+		if ($paged < $pages && $showitems < $pages) {
62
+			echo "<a href=\"".get_pagenum_link($paged + 1)."\">Next &rsaquo;</a>";
63
+		}
64
+		if ($paged < $pages-1 &&  $paged+$range-1 < $pages && $showitems < $pages) {
65
+			echo "<a href='".get_pagenum_link($pages)."'>Last &raquo;</a>";
66
+		}
57 67
 		echo "</div>\n";
58 68
 	}
59 69
 }
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
@@ -37,9 +37,11 @@
 block discarded – undo
37 37
 
38 38
 			the_posts_navigation();
39 39
 
40
-		else :
40
+		else {
41
+			:
41 42
 
42 43
 			get_template_part( 'template-parts/content', 'none' );
44
+		}
43 45
 
44 46
 		endif; ?>
45 47
 
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
@@ -57,9 +57,11 @@
 block discarded – undo
57 57
 
58 58
 					the_posts_navigation();
59 59
 
60
-				else :
60
+				else {
61
+					:
61 62
 
62 63
 					get_template_part( 'template-parts/content', 'none' );
64
+				}
63 65
 
64 66
 				endif; ?>
65 67
 				</main><!-- #main -->
Please login to merge, or discard this patch.
includes/shortcodes.php 1 patch
Braces   +8 added lines, -4 removed lines patch added patch discarded remove patch
@@ -43,8 +43,10 @@  discard block
 block discarded – undo
43 43
 
44 44
 		echo '<a href=" ' . $message_link .' " " title="Click to read full message"> ' . $message .' </a> <span>-</span>';
45 45
 		endwhile;
46
-		else :
47
-			echo '<div class="col-xs-12">No Messages to Show!</div>';
46
+		else {
47
+			:
48
+			echo '<div class="col-xs-12">No Messages to Show!</div>';
49
+		}
48 50
 		endif;
49 51
 		echo '</div></div>';
50 52
 
@@ -124,8 +126,10 @@  discard block
 block discarded – undo
124 126
 	echo '</div>';
125 127
 
126 128
 	endwhile;
127
-	else :
128
-		echo '<div class="col-xs-12">Members Logo Slider not found! <be> please add some logo in theme setting page</div>';
129
+	else {
130
+		:
131
+		echo '<div class="col-xs-12">Members Logo Slider not found! <be> please add some logo in theme setting page</div>';
132
+	}
129 133
 	endif;
130 134
 	echo '</div></div>';
131 135
 
Please login to merge, or discard this patch.