@@ -121,10 +121,18 @@ discard block |
||
121 | 121 | $navigation_container = alnp_get_theme_support( 'navigation_container' ); |
122 | 122 | $comments_container = alnp_get_theme_support( 'comments_container' ); |
123 | 123 | |
124 | - if ( ! empty( $content_container ) ) update_option( 'auto_load_next_post_content_container', $content_container ); |
|
125 | - if ( ! empty( $title_selector ) ) update_option( 'auto_load_next_post_title_selector', $title_selector ); |
|
126 | - if ( ! empty( $navigation_container ) ) update_option( 'auto_load_next_post_navigation_container', $navigation_container ); |
|
127 | - if ( ! empty( $comments_container ) ) update_option( 'auto_load_next_post_comments_container', $comments_container ); |
|
124 | + if ( ! empty( $content_container ) ) { |
|
125 | + update_option( 'auto_load_next_post_content_container', $content_container ); |
|
126 | + } |
|
127 | + if ( ! empty( $title_selector ) ) { |
|
128 | + update_option( 'auto_load_next_post_title_selector', $title_selector ); |
|
129 | + } |
|
130 | + if ( ! empty( $navigation_container ) ) { |
|
131 | + update_option( 'auto_load_next_post_navigation_container', $navigation_container ); |
|
132 | + } |
|
133 | + if ( ! empty( $comments_container ) ) { |
|
134 | + update_option( 'auto_load_next_post_comments_container', $comments_container ); |
|
135 | + } |
|
128 | 136 | } |
129 | 137 | } // END set_theme_selectors() |
130 | 138 | |
@@ -143,8 +151,12 @@ discard block |
||
143 | 151 | $load_js_in_footer = alnp_get_theme_support( 'load_js_in_footer' ); |
144 | 152 | $lock_js_in_footer = alnp_get_theme_support( 'lock_js_in_footer' ); |
145 | 153 | |
146 | - 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 ); |
|
147 | - 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 ); |
|
154 | + if ( ! empty( $load_js_in_footer ) && $load_js_in_footer == 'yes' ) { |
|
155 | + update_option( 'auto_load_next_post_load_js_in_footer', $load_js_in_footer ); |
|
156 | + } |
|
157 | + if ( ! empty( $lock_js_in_footer ) && $lock_js_in_footer == 'yes' ) { |
|
158 | + update_option( 'auto_load_next_post_lock_js_in_footer', $lock_js_in_footer ); |
|
159 | + } |
|
148 | 160 | } |
149 | 161 | } // END set_js_in_footer() |
150 | 162 |