Completed
Push — master ( 556f73...911fab )
by Md. Mozahidur
02:37
created
footer.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * The template for displaying the footer.
4
- *
5
- * Contains the closing of the #content div and all content after.
6
- *
7
- * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
8
- *
9
- * @package Lighthouse
10
- */
3
+		 * The template for displaying the footer.
4
+		 *
5
+		 * Contains the closing of the #content div and all content after.
6
+		 *
7
+		 * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
8
+		 *
9
+		 * @package Lighthouse
10
+		 */
11 11
 
12 12
 ?>
13 13
 
Please login to merge, or discard this patch.
functions.php 1 patch
Indentation   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Lighthouse functions and definitions.
4
- *
5
- * @link https://developer.wordpress.org/themes/basics/theme-functions/
6
- *
7
- * @package Lighthouse
8
- */
3
+				 * Lighthouse functions and definitions.
4
+				 *
5
+				 * @link https://developer.wordpress.org/themes/basics/theme-functions/
6
+				 *
7
+				 * @package Lighthouse
8
+				 */
9 9
 
10 10
 if ( ! function_exists( 'lighthouse_setup' ) ) :
11 11
 /**
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
  * Read More button in excerpt
179 179
  */
180 180
 function new_excerpt_more( $more ) {
181
-    return ' ';
181
+	return ' ';
182 182
 }
183 183
 add_filter( 'excerpt_more', 'new_excerpt_more' );
184 184
 
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
  * Custome Lenght of excerpt
187 187
  */
188 188
 function custom_excerpt_length( $length ) {
189
-    return 18;
189
+	return 18;
190 190
 }
191 191
 add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );
192 192
 
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
 		echo '</div></div>';
238 238
 
239 239
 		endwhile;
240
-	    wp_reset_postdata();
240
+		wp_reset_postdata();
241 241
 	endif;
242 242
 		
243 243
 		echo '</div></div>';
@@ -249,39 +249,39 @@  discard block
 block discarded – undo
249 249
 // Numbered Pagination
250 250
 function pagination($pages = '', $range = 4)
251 251
 {  
252
-     $showitems = ($range * 2)+1;  
252
+	 $showitems = ($range * 2)+1;  
253 253
  
254
-     global $paged;
255
-     if(empty($paged)) $paged = 1;
254
+	 global $paged;
255
+	 if(empty($paged)) $paged = 1;
256 256
  
257
-     if($pages == '')
258
-     {
259
-         global $wp_query;
260
-         $pages = $wp_query->max_num_pages;
261
-         if(!$pages)
262
-         {
263
-             $pages = 1;
264
-         }
265
-     }   
257
+	 if($pages == '')
258
+	 {
259
+		 global $wp_query;
260
+		 $pages = $wp_query->max_num_pages;
261
+		 if(!$pages)
262
+		 {
263
+			 $pages = 1;
264
+		 }
265
+	 }   
266 266
  
267
-     if(1 != $pages)
268
-     {
269
-         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>";
267
+	 if(1 != $pages)
268
+	 {
269
+		 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 272
  
273
-         for ($i=1; $i <= $pages; $i++)
274
-         {
275
-             if (1 != $pages &&( !($i >= $paged+$range+1 || $i <= $paged-$range-1) || $pages <= $showitems ))
276
-             {
277
-                 echo ($paged == $i)? "<span class=\"current\">".$i."</span>":"<a href='".get_pagenum_link($i)."' class=\"inactive\">".$i."</a>";
278
-             }
279
-         }
273
+		 for ($i=1; $i <= $pages; $i++)
274
+		 {
275
+			 if (1 != $pages &&( !($i >= $paged+$range+1 || $i <= $paged-$range-1) || $pages <= $showitems ))
276
+			 {
277
+				 echo ($paged == $i)? "<span class=\"current\">".$i."</span>":"<a href='".get_pagenum_link($i)."' class=\"inactive\">".$i."</a>";
278
+			 }
279
+		 }
280 280
  
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>";
283
-         echo "</div>\n";
284
-     }
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>";
283
+		 echo "</div>\n";
284
+	 }
285 285
 }
286 286
 
287 287
 /**
Please login to merge, or discard this patch.
single.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
 							<?php
69 69
 							 $postslist = get_posts('numberposts=99&order=DESC&orderby=date');
70 70
 							 foreach ($postslist as $post) :
71
-							    setup_postdata($post);
71
+								setup_postdata($post);
72 72
 							 ?>
73 73
 							 <div class="col-xs-12">
74 74
 							 <div class="entry">
Please login to merge, or discard this patch.
page-template/blog.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Template Name: Blog
4
- *
5
- * @package Lighthouse
6
- */
3
+		 * Template Name: Blog
4
+		 *
5
+		 * @package Lighthouse
6
+		 */
7 7
 get_header(); ?>
8 8
 <div class="title-wrapper">
9 9
 	<div class="container blog-wrapper">
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 	<div class="row">
68 68
 		<div class="col-xs-12">
69 69
 		<?php if (function_exists("pagination")) {
70
-		    pagination($loop->max_num_pages);
70
+			pagination($loop->max_num_pages);
71 71
 		} ?>
72 72
 		</div>
73 73
 	</div>
Please login to merge, or discard this patch.
header.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * The header for our theme.
4
- *
5
- * This is the template that displays all of the <head> section and everything up until <div id="content">
6
- *
7
- * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
8
- *
9
- * @package Lighthouse
10
- */
3
+		 * The header for our theme.
4
+		 *
5
+		 * This is the template that displays all of the <head> section and everything up until <div id="content">
6
+		 *
7
+		 * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
8
+		 *
9
+		 * @package Lighthouse
10
+		 */
11 11
 
12 12
 ?><!DOCTYPE html>
13 13
 <html <?php language_attributes(); ?>>
Please login to merge, or discard this patch.