@@ -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 | |
@@ -142,8 +150,12 @@ discard block |
||
142 | 150 | $load_js_in_footer = alnp_get_theme_support( 'load_js_in_footer' ); |
143 | 151 | $lock_js_in_footer = alnp_get_theme_support( 'lock_js_in_footer' ); |
144 | 152 | |
145 | - 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 ); |
|
146 | - if ( ! empty( $lock_js_in_footer ) && $lock_js_in_footer == 'yes' ) update_option( 'auto_load_next_post_js_footer_locked', $lock_js_in_footer ); |
|
153 | + if ( ! empty( $load_js_in_footer ) && $load_js_in_footer == 'yes' ) { |
|
154 | + update_option( 'auto_load_next_post_load_js_in_footer', $load_js_in_footer ); |
|
155 | + } |
|
156 | + if ( ! empty( $lock_js_in_footer ) && $lock_js_in_footer == 'yes' ) { |
|
157 | + update_option( 'auto_load_next_post_js_footer_locked', $lock_js_in_footer ); |
|
158 | + } |
|
147 | 159 | } |
148 | 160 | } // END set_js_in_footer() |
149 | 161 |