Completed
Branch wp-theme-support (04709b)
by Sébastien
02:04
created
template/theme-support/understrap/content-alnp.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,9 +31,11 @@
 block discarded – undo
31 31
 	// Load content after the loop.
32 32
 	do_action( 'alnp_load_after_loop' );
33 33
 
34
-else :
34
+else {
35
+	:
35 36
 
36 37
 	// Load content if there are no more posts.
37 38
 	do_action( 'alnp_no_more_posts' );
39
+}
38 40
 
39 41
 endif; // END if have_posts()
Please login to merge, or discard this patch.
template/theme-support/twenty-eleven/content-alnp.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,9 +92,11 @@
 block discarded – undo
92 92
 	// Load content after the loop.
93 93
 	do_action( 'alnp_load_after_loop' );
94 94
 
95
-else :
95
+else {
96
+	:
96 97
 
97 98
 	// Load content if there are no more posts.
98 99
 	do_action( 'alnp_no_more_posts' );
100
+}
99 101
 
100 102
 endif; // END if have_posts()
Please login to merge, or discard this patch.
template/theme-support/make/content-alnp.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,9 +39,11 @@
 block discarded – undo
39 39
 	// Load content after the loop.
40 40
 	do_action( 'alnp_load_after_loop' );
41 41
 
42
-	else :
42
+	else {
43
+		:
43 44
 
44 45
 		// Load content if there are no more posts.
45 46
 		do_action( 'alnp_no_more_posts' );
47
+	}
46 48
 
47 49
 	endif; // END if have_posts()
Please login to merge, or discard this patch.
template/theme-support/twenty-ten/content-alnp.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,9 +77,11 @@
 block discarded – undo
77 77
 	// Load content after the loop.
78 78
 	do_action( 'alnp_load_after_loop' );
79 79
 
80
-else :
80
+else {
81
+	:
81 82
 
82 83
 	// Load content if there are no more posts.
83 84
 	do_action( 'alnp_no_more_posts' );
85
+}
84 86
 
85 87
 endif; // END if have_posts()
Please login to merge, or discard this patch.
template/content-alnp.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,9 +76,11 @@
 block discarded – undo
76 76
 	// Load content after the loop.
77 77
 	do_action( 'alnp_load_after_loop' );
78 78
 
79
-else :
79
+else {
80
+	:
80 81
 
81 82
 	// Load content if there are no more posts.
82 83
 	do_action( 'alnp_no_more_posts' );
84
+}
83 85
 
84 86
 endif; // END if have_posts()
Please login to merge, or discard this patch.
includes/theme-support/class-alnp-theme-support.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,9 @@
 block discarded – undo
46 46
 				// Preferred implementation, where theme provides an array of options
47 47
 				if ( isset( $theme_support[0] ) && is_array( $theme_support[0] ) ) {
48 48
 					foreach( $theme_support[0] as $key => $value ) {
49
-						if ( ! empty( $value ) ) update_option( 'auto_load_next_post_' . $key, $value );
49
+						if ( ! empty( $value ) ) {
50
+							update_option( 'auto_load_next_post_' . $key, $value );
51
+						}
50 52
 					}
51 53
 				}
52 54
 			}
Please login to merge, or discard this patch.
includes/auto-load-next-post-core-functions.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -44,11 +44,9 @@
 block discarded – undo
44 44
 
45 45
 	if ( file_exists( $child_path . 'content-alnp.php' ) ) {
46 46
 		$template_redirect = $child_path . 'content-alnp.php';
47
-	}
48
-	else if( file_exists( $template_path . 'content-alnp.php') ) {
47
+	} else if( file_exists( $template_path . 'content-alnp.php') ) {
49 48
 		$template_redirect = $template_path . 'content-alnp.php';
50
-	}
51
-	else if( file_exists( $default_path . '/template/content-alnp.php' ) ) {
49
+	} else if( file_exists( $default_path . '/template/content-alnp.php' ) ) {
52 50
 		$template_redirect = $default_path . '/template/content-alnp.php';
53 51
 	}
54 52
 
Please login to merge, or discard this patch.
includes/class-alnp-install.php 1 patch
Braces   +12 added lines, -4 removed lines patch added patch discarded remove patch
@@ -118,10 +118,18 @@
 block discarded – undo
118 118
 				$navigation_container = alnp_get_theme_support( 'navigation_container' );
119 119
 				$comments_container   = alnp_get_theme_support( 'comments_container' );
120 120
 
121
-				if ( ! empty( $content_container ) ) update_option( 'auto_load_next_post_content_container', $content_container );
122
-				if ( ! empty( $title_selector ) ) update_option( 'auto_load_next_post_title_selector', $title_selector );
123
-				if ( ! empty( $navigation_container ) ) update_option( 'auto_load_next_post_navigation_container', $navigation_container );
124
-				if ( ! empty( $comments_container ) ) update_option( 'auto_load_next_post_comments_container', $comments_container );
121
+				if ( ! empty( $content_container ) ) {
122
+					update_option( 'auto_load_next_post_content_container', $content_container );
123
+				}
124
+				if ( ! empty( $title_selector ) ) {
125
+					update_option( 'auto_load_next_post_title_selector', $title_selector );
126
+				}
127
+				if ( ! empty( $navigation_container ) ) {
128
+					update_option( 'auto_load_next_post_navigation_container', $navigation_container );
129
+				}
130
+				if ( ! empty( $comments_container ) ) {
131
+					update_option( 'auto_load_next_post_comments_container', $comments_container );
132
+				}
125 133
 			}
126 134
 		} // END set_theme_selectors()
127 135
 
Please login to merge, or discard this patch.
includes/customizer/class-alnp-customizer.php 1 patch
Braces   +8 added lines, -6 removed lines patch added patch discarded remove patch
@@ -164,8 +164,12 @@  discard block
 block discarded – undo
164 164
 		public function alnp_remove_widgets_panel( $components ) {
165 165
 			if ( $this->alnp_is_customizer() ) {
166 166
 				foreach( $components as $key => $component ) {
167
-					if ( $component == 'widgets' ) unset( $components[ 'widgets' ] );
168
-					if ( $component == 'nav_menus' ) unset( $components[ 'nav_menus' ] );
167
+					if ( $component == 'widgets' ) {
168
+						unset( $components[ 'widgets' ] );
169
+					}
170
+					if ( $component == 'nav_menus' ) {
171
+						unset( $components[ 'nav_menus' ] );
172
+					}
169 173
 				}
170 174
 			}
171 175
 
@@ -463,8 +467,7 @@  discard block
 block discarded – undo
463 467
 				return false;
464 468
 			} elseif ( is_home() ) {
465 469
 				return true;
466
-			}
467
-			elseif ( is_singular( apply_filters( 'alnp_customizer_posts_ready', array( 'post' ) ) ) ) {
470
+			} elseif ( is_singular( apply_filters( 'alnp_customizer_posts_ready', array( 'post' ) ) ) ) {
468 471
 				return true;
469 472
 			}
470 473
 
@@ -495,8 +498,7 @@  discard block
 block discarded – undo
495 498
 
496 499
 					return get_permalink( $id );
497 500
 				endwhile;
498
-			}
499
-			else {
501
+			} else {
500 502
 				return false;
501 503
 			}
502 504
 		} // END alnp_get_random_page_permalink()
Please login to merge, or discard this patch.