|
@@ -128,10 +128,18 @@ discard block |
|
|
block discarded – undo |
|
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 |
|
|
block discarded – undo |
|
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 |
|
|
block discarded – undo |
|
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
|
|