Completed
Push — master ( 423b35...e79207 )
by Md. Mozahidur
02:17
created
archive.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.
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 2 patches
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.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,9 +33,9 @@
 block discarded – undo
33 33
 	while ( have_posts() ) {
34 34
 		the_post();
35 35
 		if ( is_search() ) :
36
-		    get_template_part( 'template-parts/content', 'search' );
36
+			get_template_part( 'template-parts/content', 'search' );
37 37
 		else :
38
-		    get_template_part( 'template-parts/content', get_post_format() );
38
+			get_template_part( 'template-parts/content', get_post_format() );
39 39
 		endif;
40 40
 	}
41 41
 }
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.
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.
includes/acf-settings.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -8,11 +8,11 @@  discard block
 block discarded – undo
8 8
  
9 9
 function my_acf_settings_path( $path ) {
10 10
  
11
-    // update path
12
-    $path = get_stylesheet_directory() . '/includes/acf/';
11
+	// update path
12
+	$path = get_stylesheet_directory() . '/includes/acf/';
13 13
     
14
-    // return
15
-    return $path;
14
+	// return
15
+	return $path;
16 16
 }
17 17
 
18 18
 // Customize ACF dir
@@ -20,11 +20,11 @@  discard block
 block discarded – undo
20 20
  
21 21
 function my_acf_settings_dir( $dir ) {
22 22
  
23
-    // update path
24
-    $dir = get_stylesheet_directory_uri() . '/includes/acf/';
23
+	// update path
24
+	$dir = get_stylesheet_directory_uri() . '/includes/acf/';
25 25
     
26
-    // return
27
-    return $dir;
26
+	// return
27
+	return $dir;
28 28
 }
29 29
 
30 30
 // Save ACF field as JSON
@@ -32,11 +32,11 @@  discard block
 block discarded – undo
32 32
  
33 33
 function my_acf_json_save_point( $path ) {
34 34
     
35
-    // update path
36
-    $path = get_stylesheet_directory() . '/includes/acf-json';
35
+	// update path
36
+	$path = get_stylesheet_directory() . '/includes/acf-json';
37 37
     
38
-    // return
39
-    return $path; 
38
+	// return
39
+	return $path; 
40 40
 }
41 41
 
42 42
 // Load ACF field from JSON
@@ -44,14 +44,14 @@  discard block
 block discarded – undo
44 44
 
45 45
 function my_acf_json_load_point( $paths ) {
46 46
     
47
-    // remove original path (optional)
48
-    unset($paths[0]);
47
+	// remove original path (optional)
48
+	unset($paths[0]);
49 49
     
50
-    // append path
51
-    $paths[] = get_stylesheet_directory() . '/includes/acf-json';
50
+	// append path
51
+	$paths[] = get_stylesheet_directory() . '/includes/acf-json';
52 52
     
53
-    // return
54
-    return $paths;
53
+	// return
54
+	return $paths;
55 55
 }
56 56
 
57 57
 
Please login to merge, or discard this patch.
includes/acf/acf.php 2 patches
Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -263,16 +263,16 @@  discard block
 block discarded – undo
263 263
 		// register post type 'acf-field-group'
264 264
 		register_post_type('acf-field-group', array(
265 265
 			'labels'			=> array(
266
-			    'name'					=> __( 'Field Groups', 'acf' ),
266
+				'name'					=> __( 'Field Groups', 'acf' ),
267 267
 				'singular_name'			=> __( 'Field Group', 'acf' ),
268
-			    'add_new'				=> __( 'Add New' , 'acf' ),
269
-			    'add_new_item'			=> __( 'Add New Field Group' , 'acf' ),
270
-			    'edit_item'				=> __( 'Edit Field Group' , 'acf' ),
271
-			    'new_item'				=> __( 'New Field Group' , 'acf' ),
272
-			    'view_item'				=> __( 'View Field Group', 'acf' ),
273
-			    'search_items'			=> __( 'Search Field Groups', 'acf' ),
274
-			    'not_found'				=> __( 'No Field Groups found', 'acf' ),
275
-			    'not_found_in_trash'	=> __( 'No Field Groups found in Trash', 'acf' ), 
268
+				'add_new'				=> __( 'Add New' , 'acf' ),
269
+				'add_new_item'			=> __( 'Add New Field Group' , 'acf' ),
270
+				'edit_item'				=> __( 'Edit Field Group' , 'acf' ),
271
+				'new_item'				=> __( 'New Field Group' , 'acf' ),
272
+				'view_item'				=> __( 'View Field Group', 'acf' ),
273
+				'search_items'			=> __( 'Search Field Groups', 'acf' ),
274
+				'not_found'				=> __( 'No Field Groups found', 'acf' ),
275
+				'not_found_in_trash'	=> __( 'No Field Groups found in Trash', 'acf' ), 
276 276
 			),
277 277
 			'public'			=> false,
278 278
 			'show_ui'			=> true,
@@ -295,16 +295,16 @@  discard block
 block discarded – undo
295 295
 		// register post type 'acf-field'
296 296
 		register_post_type('acf-field', array(
297 297
 			'labels'			=> array(
298
-			    'name'					=> __( 'Fields', 'acf' ),
298
+				'name'					=> __( 'Fields', 'acf' ),
299 299
 				'singular_name'			=> __( 'Field', 'acf' ),
300
-			    'add_new'				=> __( 'Add New' , 'acf' ),
301
-			    'add_new_item'			=> __( 'Add New Field' , 'acf' ),
302
-			    'edit_item'				=> __( 'Edit Field' , 'acf' ),
303
-			    'new_item'				=> __( 'New Field' , 'acf' ),
304
-			    'view_item'				=> __( 'View Field', 'acf' ),
305
-			    'search_items'			=> __( 'Search Fields', 'acf' ),
306
-			    'not_found'				=> __( 'No Fields found', 'acf' ),
307
-			    'not_found_in_trash'	=> __( 'No Fields found in Trash', 'acf' ), 
300
+				'add_new'				=> __( 'Add New' , 'acf' ),
301
+				'add_new_item'			=> __( 'Add New Field' , 'acf' ),
302
+				'edit_item'				=> __( 'Edit Field' , 'acf' ),
303
+				'new_item'				=> __( 'New Field' , 'acf' ),
304
+				'view_item'				=> __( 'View Field', 'acf' ),
305
+				'search_items'			=> __( 'Search Fields', 'acf' ),
306
+				'not_found'				=> __( 'No Fields found', 'acf' ),
307
+				'not_found_in_trash'	=> __( 'No Fields found in Trash', 'acf' ), 
308 308
 			),
309 309
 			'public'			=> false,
310 310
 			'show_ui'			=> false,
@@ -413,27 +413,27 @@  discard block
 block discarded – undo
413 413
 		
414 414
 			$where .= $wpdb->prepare(" AND {$wpdb->posts}.post_name = %s", $field_key );
415 415
 			
416
-	    }
416
+		}
417 417
 	    
418 418
 	    
419
-	    // acf_field_name
420
-	    if( $field_name = $wp_query->get('acf_field_name') ) {
419
+		// acf_field_name
420
+		if( $field_name = $wp_query->get('acf_field_name') ) {
421 421
 	    
422 422
 			$where .= $wpdb->prepare(" AND {$wpdb->posts}.post_excerpt = %s", $field_name );
423 423
 			
424
-	    }
424
+		}
425 425
 	    
426 426
 	    
427
-	    // acf_group_key
427
+		// acf_group_key
428 428
 		if( $group_key = $wp_query->get('acf_group_key') ) {
429 429
 		
430 430
 			$where .= $wpdb->prepare(" AND {$wpdb->posts}.post_name = %s", $group_key );
431 431
 			
432
-	    }
432
+		}
433 433
 	    
434 434
 	    
435
-	    // return
436
-	    return $where;
435
+		// return
436
+		return $where;
437 437
 	    
438 438
 	}
439 439
 	
Please login to merge, or discard this patch.
Braces   +10 added lines, -3 removed lines patch added patch discarded remove patch
@@ -11,7 +11,10 @@  discard block
 block discarded – undo
11 11
 Domain Path: /lang
12 12
 */
13 13
 
14
-if( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
14
+if( ! defined( 'ABSPATH' ) ) {
15
+	exit;
16
+}
17
+// Exit if accessed directly
15 18
 
16 19
 if( ! class_exists('acf') ) :
17 20
 
@@ -168,11 +171,15 @@  discard block
 block discarded – undo
168 171
 	function init() {
169 172
 		
170 173
 		// bail early if a plugin called get_field early
171
-		if( !did_action('plugins_loaded') ) return;
174
+		if( !did_action('plugins_loaded') ) {
175
+			return;
176
+		}
172 177
 		
173 178
 		
174 179
 		// bail early if already init
175
-		if( acf_get_setting('init') ) return;
180
+		if( acf_get_setting('init') ) {
181
+			return;
182
+		}
176 183
 		
177 184
 		
178 185
 		// only run once
Please login to merge, or discard this patch.
includes/acf/admin/field-group.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -282,13 +282,13 @@  discard block
 block discarded – undo
282 282
 		
283 283
 		
284 284
 		// append
285
-	    $html .= '<div id="acf-append-show-on-screen" class="acf-hidden">';
286
-	    $html .= '<label for="acf-field-key-hide"><input id="acf-field-key-hide" type="checkbox" value="1" name="show_field_keys" ' . $checked . ' /> ' . __('Field Keys','acf') . '</label>';
285
+		$html .= '<div id="acf-append-show-on-screen" class="acf-hidden">';
286
+		$html .= '<label for="acf-field-key-hide"><input id="acf-field-key-hide" type="checkbox" value="1" name="show_field_keys" ' . $checked . ' /> ' . __('Field Keys','acf') . '</label>';
287 287
 		$html .= '</div>';
288 288
 	    
289 289
 	    
290
-	    // return
291
-	    return $html;
290
+		// return
291
+		return $html;
292 292
 	    
293 293
 	}
294 294
 	
@@ -396,9 +396,9 @@  discard block
 block discarded – undo
396 396
 		// only save once! WordPress save's a revision as well.
397 397
 		if( wp_is_post_revision($post_id) ) {
398 398
 		
399
-	    	return $post_id;
399
+			return $post_id;
400 400
 	    	
401
-        }
401
+		}
402 402
         
403 403
         
404 404
 		// verify nonce
@@ -409,11 +409,11 @@  discard block
 block discarded – undo
409 409
 		}
410 410
         
411 411
         
412
-        // disable local to avoid conflicts between DB and local
412
+		// disable local to avoid conflicts between DB and local
413 413
 		acf_disable_local();
414 414
 		
415 415
         
416
-        // save fields
416
+		// save fields
417 417
 		unset( $_POST['acf_fields']['acfcloneindex'] );
418 418
 		
419 419
 		if( !empty($_POST['acf_fields']) ) {
@@ -453,10 +453,10 @@  discard block
 block discarded – undo
453 453
 		
454 454
 		
455 455
 		// delete fields
456
-        if( $_POST['_acf_delete_fields'] ) {
456
+		if( $_POST['_acf_delete_fields'] ) {
457 457
         	
458
-	    	$ids = explode('|', $_POST['_acf_delete_fields']);
459
-	    	$ids = array_map( 'intval', $ids );
458
+			$ids = explode('|', $_POST['_acf_delete_fields']);
459
+			$ids = array_map( 'intval', $ids );
460 460
 	    	
461 461
 			foreach( $ids as $id ) {
462 462
 			
@@ -468,20 +468,20 @@  discard block
 block discarded – undo
468 468
 				
469 469
 			}
470 470
 			
471
-        }
471
+		}
472 472
 		
473 473
 		
474 474
 		// add args
475
-        $_POST['acf_field_group']['ID'] = $post_id;
476
-        $_POST['acf_field_group']['title'] = $_POST['post_title'];
475
+		$_POST['acf_field_group']['ID'] = $post_id;
476
+		$_POST['acf_field_group']['title'] = $_POST['post_title'];
477 477
         
478 478
         
479 479
 		// save field group
480
-        acf_update_field_group( $_POST['acf_field_group'] );
480
+		acf_update_field_group( $_POST['acf_field_group'] );
481 481
 		
482 482
 		
483
-        // return
484
-        return $post_id;
483
+		// return
484
+		return $post_id;
485 485
 	}
486 486
 	
487 487
 	
Please login to merge, or discard this patch.
includes/acf/admin/field-groups.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -568,8 +568,8 @@  discard block
 block discarded – undo
568 568
 				
569 569
 			}
570 570
         
571
-        // status
572
-	    } elseif( $column == 'acf-fg-status' ) {
571
+		// status
572
+		} elseif( $column == 'acf-fg-status' ) {
573 573
 			
574 574
 			if( isset($this->sync[ $field_group['key'] ]) ) {
575 575
 				
@@ -587,12 +587,12 @@  discard block
 block discarded – undo
587 587
 				
588 588
 			}
589 589
 	    
590
-        // fields
591
-	    } elseif( $column == 'acf-fg-count' ) {
590
+		// fields
591
+		} elseif( $column == 'acf-fg-count' ) {
592 592
 			
593 593
 			echo acf_get_field_count( $field_group );
594 594
         
595
-        }
595
+		}
596 596
 		
597 597
 	}
598 598
 	
Please login to merge, or discard this patch.