Completed
Push — master ( 0970e3...ce8eb3 )
by Md. Mozahidur
02:06
created
page.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,12 +18,12 @@
 block discarded – undo
18 18
 		<div class="row">
19 19
 			<main id="main" class="site-main" role="main">
20 20
 				<?php
21
-				while ( have_posts() ) : the_post();
21
+				while (have_posts()) : the_post();
22 22
 
23
-					get_template_part( 'template-parts/content', 'page' );
23
+					get_template_part('template-parts/content', 'page');
24 24
 
25 25
 					// If comments are open or we have at least one comment, load up the comment template.
26
-					if ( comments_open() || get_comments_number() ) :
26
+					if (comments_open() || get_comments_number()) :
27 27
 						comments_template();
28 28
 					endif;
29 29
 
Please login to merge, or discard this patch.
functions.php 2 patches
Indentation   +9 added lines, -9 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
 /**
@@ -167,12 +167,12 @@  discard block
 block discarded – undo
167 167
  * Read More button in excerpt
168 168
  */
169 169
 function new_excerpt_more( $more ) {
170
-    return ' ';
170
+	return ' ';
171 171
 }
172 172
 add_filter( 'excerpt_more', 'new_excerpt_more' );
173 173
 /**
174
- * Implement the Custom Header feature.
175
- */
174
+	 * Implement the Custom Header feature.
175
+	 */
176 176
 require get_template_directory() . '/inc/custom-header.php';
177 177
 
178 178
 /**
Please login to merge, or discard this patch.
Spacing   +44 added lines, -44 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
  * @package Lighthouse
8 8
  */
9 9
 
10
-if ( ! function_exists( 'lighthouse_setup' ) ) :
10
+if ( ! function_exists('lighthouse_setup')) :
11 11
 /**
12 12
  * Sets up theme defaults and registers support for various WordPress features.
13 13
  *
@@ -22,10 +22,10 @@  discard block
 block discarded – undo
22 22
 	 * If you're building a theme based on Lighthouse, use a find and replace
23 23
 	 * to change 'lighthouse' to the name of your theme in all the template files.
24 24
 	 */
25
-	load_theme_textdomain( 'lighthouse', get_template_directory() . '/languages' );
25
+	load_theme_textdomain('lighthouse', get_template_directory().'/languages');
26 26
 
27 27
 	// Add default posts and comments RSS feed links to head.
28
-	add_theme_support( 'automatic-feed-links' );
28
+	add_theme_support('automatic-feed-links');
29 29
 
30 30
 	/*
31 31
 	 * Let WordPress manage the document title.
@@ -33,14 +33,14 @@  discard block
 block discarded – undo
33 33
 	 * hard-coded <title> tag in the document head, and expect WordPress to
34 34
 	 * provide it for us.
35 35
 	 */
36
-	add_theme_support( 'title-tag' );
36
+	add_theme_support('title-tag');
37 37
 
38 38
 	/*
39 39
 	 * Enable support for Post Thumbnails on posts and pages.
40 40
 	 *
41 41
 	 * @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/
42 42
 	 */
43
-	add_theme_support( 'post-thumbnails' );
43
+	add_theme_support('post-thumbnails');
44 44
 
45 45
 
46 46
 	/*
@@ -48,12 +48,12 @@  discard block
 block discarded – undo
48 48
 	 *
49 49
 	 * @link https://codex.wordpress.org/Function_Reference/get_search_form
50 50
 	 */
51
-	add_theme_support( 'html5', array( 'search-form' ) ); 
51
+	add_theme_support('html5', array('search-form')); 
52 52
 
53 53
 	// This theme uses wp_nav_menu() in one location.
54
-	register_nav_menus( array(
55
-		'primary' => esc_html__( 'Primary', 'lighthouse' ),
56
-	) );
54
+	register_nav_menus(array(
55
+		'primary' => esc_html__('Primary', 'lighthouse'),
56
+	));
57 57
 
58 58
 
59 59
 	/*
@@ -63,47 +63,47 @@  discard block
 block discarded – undo
63 63
 	function lighthouse_menus() {
64 64
 		register_nav_menus(
65 65
 			array(
66
-				'header-menu-left' => __( 'Header menu left', 'nav menu location', 'lighthouse' ),
67
-				'header-menu-right' => __( 'Header menu right' , 'nav menu location', 'lighthouse'),
68
-				'footer-menu' => __( 'Footer menu' , 'nav menu location', 'lighthouse'),
69
-				'footer-menu-bottom' => __( 'Footer menu bottom' , 'nav menu location', 'lighthouse')
66
+				'header-menu-left' => __('Header menu left', 'nav menu location', 'lighthouse'),
67
+				'header-menu-right' => __('Header menu right', 'nav menu location', 'lighthouse'),
68
+				'footer-menu' => __('Footer menu', 'nav menu location', 'lighthouse'),
69
+				'footer-menu-bottom' => __('Footer menu bottom', 'nav menu location', 'lighthouse')
70 70
 				)
71 71
 			);
72 72
 	}
73
-	add_action( 'init', 'lighthouse_menus' );
73
+	add_action('init', 'lighthouse_menus');
74 74
 
75 75
 	/*
76 76
 	 * Switch default core markup for search form, comment form, and comments
77 77
 	 * to output valid HTML5.
78 78
 	 */
79
-	add_theme_support( 'html5', array(
79
+	add_theme_support('html5', array(
80 80
 		'search-form',
81 81
 		'comment-form',
82 82
 		'comment-list',
83 83
 		'gallery',
84 84
 		'caption',
85
-	) );
85
+	));
86 86
 
87 87
 	/*
88 88
 	 * Enable support for Post Formats.
89 89
 	 * See https://developer.wordpress.org/themes/functionality/post-formats/
90 90
 	 */
91
-	add_theme_support( 'post-formats', array(
91
+	add_theme_support('post-formats', array(
92 92
 		'aside',
93 93
 		'image',
94 94
 		'video',
95 95
 		'quote',
96 96
 		'link',
97
-	) );
97
+	));
98 98
 
99 99
 	// Set up the WordPress core custom background feature.
100
-	add_theme_support( 'custom-background', apply_filters( 'lighthouse_custom_background_args', array(
100
+	add_theme_support('custom-background', apply_filters('lighthouse_custom_background_args', array(
101 101
 		'default-color' => 'ffffff',
102 102
 		'default-image' => '',
103
-	) ) );
103
+	)));
104 104
 }
105 105
 endif;
106
-add_action( 'after_setup_theme', 'lighthouse_setup' );
106
+add_action('after_setup_theme', 'lighthouse_setup');
107 107
 
108 108
 /**
109 109
  * Set the content width in pixels, based on the theme's design and stylesheet.
@@ -113,9 +113,9 @@  discard block
 block discarded – undo
113 113
  * @global int $content_width
114 114
  */
115 115
 function lighthouse_content_width() {
116
-	$GLOBALS['content_width'] = apply_filters( 'lighthouse_content_width', 640 );
116
+	$GLOBALS['content_width'] = apply_filters('lighthouse_content_width', 640);
117 117
 }
118
-add_action( 'after_setup_theme', 'lighthouse_content_width', 0 );
118
+add_action('after_setup_theme', 'lighthouse_content_width', 0);
119 119
 
120 120
 /**
121 121
  * Register widget area.
@@ -123,74 +123,74 @@  discard block
 block discarded – undo
123 123
  * @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar
124 124
  */
125 125
 function lighthouse_widgets_init() {
126
-	register_sidebar( array(
127
-		'name'          => esc_html__( 'Sidebar', 'lighthouse' ),
126
+	register_sidebar(array(
127
+		'name'          => esc_html__('Sidebar', 'lighthouse'),
128 128
 		'id'            => 'sidebar-1',
129 129
 		'description'   => '',
130 130
 		'before_widget' => '<section id="%1$s" class="widget %2$s">',
131 131
 		'after_widget'  => '</section>',
132 132
 		'before_title'  => '<h2 class="widget-title">',
133 133
 		'after_title'   => '</h2>',
134
-	) );
134
+	));
135 135
 }
136
-add_action( 'widgets_init', 'lighthouse_widgets_init' );
136
+add_action('widgets_init', 'lighthouse_widgets_init');
137 137
 
138 138
 /**
139 139
  * Enqueue scripts and styles.
140 140
  */
141 141
 function lighthouse_scripts() {
142 142
 
143
-	wp_enqueue_style( 'lighthouse-font-awesome-css', get_template_directory_uri() . '/css/font-awesome.min.css');
143
+	wp_enqueue_style('lighthouse-font-awesome-css', get_template_directory_uri().'/css/font-awesome.min.css');
144 144
 
145
-	wp_enqueue_style( 'lighthouse-style', get_stylesheet_uri() );
145
+	wp_enqueue_style('lighthouse-style', get_stylesheet_uri());
146 146
 
147 147
 	wp_enqueue_style('lighthouse-google-fonts', 'https://fonts.googleapis.com/css?family=Questrial');
148 148
 
149
-	wp_enqueue_script( 'lighthouse-bootstrap-js', get_template_directory_uri() . '/js/bootstrap.min.js', array('jquery'), '', true );
149
+	wp_enqueue_script('lighthouse-bootstrap-js', get_template_directory_uri().'/js/bootstrap.min.js', array('jquery'), '', true);
150 150
 
151
-	wp_enqueue_script( 'lighthouse-material-menu-js', get_template_directory_uri() . '/js/materialMenu.js', array('jquery'), '', true );
151
+	wp_enqueue_script('lighthouse-material-menu-js', get_template_directory_uri().'/js/materialMenu.js', array('jquery'), '', true);
152 152
 
153
-	wp_enqueue_script( 'lighthouse-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20120206', true );
153
+	wp_enqueue_script('lighthouse-navigation', get_template_directory_uri().'/js/navigation.js', array(), '20120206', true);
154 154
 
155
-	wp_enqueue_script( 'lighthouse-settings-js', get_template_directory_uri() . '/js/lighthouse-settings.js', array('jquery'), '', true );
155
+	wp_enqueue_script('lighthouse-settings-js', get_template_directory_uri().'/js/lighthouse-settings.js', array('jquery'), '', true);
156 156
 
157
-	wp_enqueue_script( 'lighthouse-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20130115', true );
157
+	wp_enqueue_script('lighthouse-skip-link-focus-fix', get_template_directory_uri().'/js/skip-link-focus-fix.js', array(), '20130115', true);
158 158
 
159
-	if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
160
-		wp_enqueue_script( 'comment-reply' );
159
+	if (is_singular() && comments_open() && get_option('thread_comments')) {
160
+		wp_enqueue_script('comment-reply');
161 161
 	}
162 162
 }
163
-add_action( 'wp_enqueue_scripts', 'lighthouse_scripts' );
163
+add_action('wp_enqueue_scripts', 'lighthouse_scripts');
164 164
 
165 165
 
166 166
 /**
167 167
  * Read More button in excerpt
168 168
  */
169
-function new_excerpt_more( $more ) {
169
+function new_excerpt_more($more) {
170 170
     return ' ';
171 171
 }
172
-add_filter( 'excerpt_more', 'new_excerpt_more' );
172
+add_filter('excerpt_more', 'new_excerpt_more');
173 173
 /**
174 174
  * Implement the Custom Header feature.
175 175
  */
176
-require get_template_directory() . '/inc/custom-header.php';
176
+require get_template_directory().'/inc/custom-header.php';
177 177
 
178 178
 /**
179 179
  * Custom template tags for this theme.
180 180
  */
181
-require get_template_directory() . '/inc/template-tags.php';
181
+require get_template_directory().'/inc/template-tags.php';
182 182
 
183 183
 /**
184 184
  * Custom functions that act independently of the theme templates.
185 185
  */
186
-require get_template_directory() . '/inc/extras.php';
186
+require get_template_directory().'/inc/extras.php';
187 187
 
188 188
 /**
189 189
  * Customizer additions.
190 190
  */
191
-require get_template_directory() . '/inc/customizer.php';
191
+require get_template_directory().'/inc/customizer.php';
192 192
 
193 193
 /**
194 194
  * Load Jetpack compatibility file.
195 195
  */
196
-require get_template_directory() . '/inc/jetpack.php';
196
+require get_template_directory().'/inc/jetpack.php';
Please login to merge, or discard this patch.
page-template/blog.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 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">
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 	<div class="container">
10 10
 		<div class="row">
11 11
 			<div class="col-md-6">
12
-				<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
12
+				<?php the_title('<h1 class="entry-title">', '</h1>'); ?>
13 13
 			</div>
14 14
 			<div class="col-md-6 search-area">
15 15
 										
@@ -25,15 +25,15 @@  discard block
 block discarded – undo
25 25
 	<div class="row">
26 26
 		<div class="col-md-9 blog-listing">
27 27
 			<?php 
28
-			$args = array( 'post_type' => 'post', 'posts_per_page' => -1 );
29
-			$loop = new WP_Query( $args );
28
+			$args = array('post_type' => 'post', 'posts_per_page' => -1);
29
+			$loop = new WP_Query($args);
30 30
 			$postid = get_the_ID();
31
-			while ( $loop->have_posts() ) : $loop->the_post();?>
31
+			while ($loop->have_posts()) : $loop->the_post(); ?>
32 32
 
33 33
 			<article id="post-<?php echo $postid; ?>">
34 34
 				<div class="row blog-item">
35 35
 					<?php
36
-					$thumb = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full');
36
+					$thumb = wp_get_attachment_image_src(get_post_thumbnail_id(), 'full');
37 37
 					$url = $thumb[0];
38 38
 					?>
39 39
 					<div class="col-sm-5 blog-thumb">
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 
68 68
 	</div>
69 69
 	<div class="col-md-3 sidebar" role="complementary">
70
-		<?php dynamic_sidebar( 'blog_widgets' ); ?>
70
+		<?php dynamic_sidebar('blog_widgets'); ?>
71 71
 	</div>
72 72
 </div><!-- .row -->
73 73
 </div><!-- .container -->
Please login to merge, or discard this patch.