@@ -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 | |
@@ -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() |
@@ -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() |
@@ -127,10 +127,18 @@ discard block |
||
| 127 | 127 | $navigation_container = alnp_get_theme_support( 'navigation_container' ); |
| 128 | 128 | $comments_container = alnp_get_theme_support( 'comments_container' ); |
| 129 | 129 | |
| 130 | - if ( ! empty( $content_container ) ) update_option( 'auto_load_next_post_content_container', $content_container ); |
|
| 131 | - if ( ! empty( $title_selector ) ) update_option( 'auto_load_next_post_title_selector', $title_selector ); |
|
| 132 | - if ( ! empty( $navigation_container ) ) update_option( 'auto_load_next_post_navigation_container', $navigation_container ); |
|
| 133 | - if ( ! empty( $comments_container ) ) update_option( 'auto_load_next_post_comments_container', $comments_container ); |
|
| 130 | + if ( ! empty( $content_container ) ) { |
|
| 131 | + update_option( 'auto_load_next_post_content_container', $content_container ); |
|
| 132 | + } |
|
| 133 | + if ( ! empty( $title_selector ) ) { |
|
| 134 | + update_option( 'auto_load_next_post_title_selector', $title_selector ); |
|
| 135 | + } |
|
| 136 | + if ( ! empty( $navigation_container ) ) { |
|
| 137 | + update_option( 'auto_load_next_post_navigation_container', $navigation_container ); |
|
| 138 | + } |
|
| 139 | + if ( ! empty( $comments_container ) ) { |
|
| 140 | + update_option( 'auto_load_next_post_comments_container', $comments_container ); |
|
| 141 | + } |
|
| 134 | 142 | } |
| 135 | 143 | } // END set_theme_selectors() |
| 136 | 144 | |
@@ -149,8 +157,12 @@ discard block |
||
| 149 | 157 | $load_js_in_footer = alnp_get_theme_support( 'load_js_in_footer' ); |
| 150 | 158 | $lock_js_in_footer = alnp_get_theme_support( 'lock_js_in_footer' ); |
| 151 | 159 | |
| 152 | - 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 ); |
|
| 153 | - 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 ); |
|
| 160 | + if ( ! empty( $load_js_in_footer ) && $load_js_in_footer == 'yes' ) { |
|
| 161 | + update_option( 'auto_load_next_post_load_js_in_footer', $load_js_in_footer ); |
|
| 162 | + } |
|
| 163 | + if ( ! empty( $lock_js_in_footer ) && $lock_js_in_footer == 'yes' ) { |
|
| 164 | + update_option( 'auto_load_next_post_lock_js_in_footer', $lock_js_in_footer ); |
|
| 165 | + } |
|
| 154 | 166 | } |
| 155 | 167 | } // END set_js_in_footer() |
| 156 | 168 | |
@@ -166,7 +178,9 @@ discard block |
||
| 166 | 178 | if ( is_alnp_supported() ) { |
| 167 | 179 | $directory = alnp_get_theme_support( 'directory_post' ); |
| 168 | 180 | |
| 169 | - if ( ! empty( $directory ) ) update_option( 'auto_load_next_post_directory_post', $directory ); |
|
| 181 | + if ( ! empty( $directory ) ) { |
|
| 182 | + update_option( 'auto_load_next_post_directory_post', $directory ); |
|
| 183 | + } |
|
| 170 | 184 | } |
| 171 | 185 | } // END set_template_directory() |
| 172 | 186 | |
@@ -271,8 +285,7 @@ discard block |
||
| 271 | 285 | |
| 272 | 286 | // Delete user interactions |
| 273 | 287 | $wpdb->query("DELETE FROM $wpdb->usermeta WHERE meta_key LIKE 'auto_load_next_post_%'"); |
| 274 | - } |
|
| 275 | - else { |
|
| 288 | + } else { |
|
| 276 | 289 | // Delete Uninstall Data |
| 277 | 290 | delete_site_option( 'auto_load_next_post_uninstall_data' ); |
| 278 | 291 | |