@@ -31,9 +31,11 @@ |
||
| 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() |
@@ -31,9 +31,11 @@ |
||
| 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() |
@@ -31,9 +31,11 @@ |
||
| 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() |
@@ -31,9 +31,11 @@ |
||
| 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() |
@@ -31,9 +31,11 @@ |
||
| 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() |
@@ -31,9 +31,11 @@ |
||
| 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() |
@@ -32,8 +32,7 @@ |
||
| 32 | 32 | |
| 33 | 33 | // Delete Install Date |
| 34 | 34 | delete_option( 'auto_load_next_post_install_date' ); |
| 35 | - } |
|
| 36 | - else { |
|
| 35 | + } else { |
|
| 37 | 36 | // Delete Uninstall Data |
| 38 | 37 | delete_site_option( 'auto_load_next_post_uninstall_data' ); |
| 39 | 38 | |
@@ -128,10 +128,18 @@ discard block |
||
| 128 | 128 | $navigation_container = alnp_get_theme_support( 'navigation_container' ); |
| 129 | 129 | $comments_container = alnp_get_theme_support( 'comments_container' ); |
| 130 | 130 | |
| 131 | - if ( ! empty( $content_container ) ) update_option( 'auto_load_next_post_content_container', $content_container ); |
|
| 132 | - if ( ! empty( $title_selector ) ) update_option( 'auto_load_next_post_title_selector', $title_selector ); |
|
| 133 | - if ( ! empty( $navigation_container ) ) update_option( 'auto_load_next_post_navigation_container', $navigation_container ); |
|
| 134 | - if ( ! empty( $comments_container ) ) update_option( 'auto_load_next_post_comments_container', $comments_container ); |
|
| 131 | + if ( ! empty( $content_container ) ) { |
|
| 132 | + update_option( 'auto_load_next_post_content_container', $content_container ); |
|
| 133 | + } |
|
| 134 | + if ( ! empty( $title_selector ) ) { |
|
| 135 | + update_option( 'auto_load_next_post_title_selector', $title_selector ); |
|
| 136 | + } |
|
| 137 | + if ( ! empty( $navigation_container ) ) { |
|
| 138 | + update_option( 'auto_load_next_post_navigation_container', $navigation_container ); |
|
| 139 | + } |
|
| 140 | + if ( ! empty( $comments_container ) ) { |
|
| 141 | + update_option( 'auto_load_next_post_comments_container', $comments_container ); |
|
| 142 | + } |
|
| 135 | 143 | } |
| 136 | 144 | } // END set_theme_selectors() |
| 137 | 145 | |
@@ -150,8 +158,12 @@ discard block |
||
| 150 | 158 | $load_js_in_footer = alnp_get_theme_support( 'load_js_in_footer' ); |
| 151 | 159 | $lock_js_in_footer = alnp_get_theme_support( 'lock_js_in_footer' ); |
| 152 | 160 | |
| 153 | - if ( ! empty( $load_js_in_footer ) && $load_js_in_footer == 'yes' ) update_option( 'auto_load_next_post_load_js_in_footer', $load_js_in_footer ); |
|
| 154 | - if ( ! empty( $lock_js_in_footer ) && $lock_js_in_footer == 'yes' ) update_option( 'auto_load_next_post_lock_js_in_footer', $lock_js_in_footer ); |
|
| 161 | + if ( ! empty( $load_js_in_footer ) && $load_js_in_footer == 'yes' ) { |
|
| 162 | + update_option( 'auto_load_next_post_load_js_in_footer', $load_js_in_footer ); |
|
| 163 | + } |
|
| 164 | + if ( ! empty( $lock_js_in_footer ) && $lock_js_in_footer == 'yes' ) { |
|
| 165 | + update_option( 'auto_load_next_post_lock_js_in_footer', $lock_js_in_footer ); |
|
| 166 | + } |
|
| 155 | 167 | } |
| 156 | 168 | } // END set_js_in_footer() |
| 157 | 169 | |
@@ -258,8 +270,7 @@ discard block |
||
| 258 | 270 | |
| 259 | 271 | // Delete Install Date |
| 260 | 272 | delete_option( 'auto_load_next_post_install_date' ); |
| 261 | - } |
|
| 262 | - else { |
|
| 273 | + } else { |
|
| 263 | 274 | // Delete Uninstall Data |
| 264 | 275 | delete_site_option( 'auto_load_next_post_uninstall_data' ); |
| 265 | 276 | |
@@ -31,9 +31,11 @@ |
||
| 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() |