@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | public function scripts(){ |
19 | 19 | |
20 | 20 | |
21 | - // for now editus is disabled for mobile. it will be reenabled when mobile platforms are better supported |
|
21 | + // for now editus is disabled for mobile. it will be reenabled when mobile platforms are better supported |
|
22 | 22 | if ( lasso_user_can('edit_posts')) { |
23 | 23 | |
24 | 24 | wp_enqueue_style('lasso-style', LASSO_URL.'/public/assets/css/lasso.css', LASSO_VERSION, true); |
@@ -181,15 +181,15 @@ discard block |
||
181 | 181 | if ($show_color) { |
182 | 182 | wp_enqueue_script('lasso', LASSO_URL. "/public/assets/js/lasso{$postfix}.js", array('jquery', 'iris'), LASSO_VERSION, true); |
183 | 183 | } else { |
184 | - wp_enqueue_script('lasso', LASSO_URL. "/public/assets/js/lasso{$postfix}.js", array('jquery'), LASSO_VERSION, true); |
|
184 | + wp_enqueue_script('lasso', LASSO_URL. "/public/assets/js/lasso{$postfix}.js", array('jquery'), LASSO_VERSION, true); |
|
185 | 185 | } |
186 | 186 | wp_localize_script('lasso', 'lasso_editor', apply_filters('lasso_localized_objects', $objects ) ); |
187 | 187 | |
188 | 188 | //enqueue js if tour is not hidden |
189 | - $tour_hidden = get_user_meta( get_current_user_ID(), 'lasso_hide_tour', true ); |
|
190 | - if ( lasso_user_can() && !$tour_hidden ){ |
|
191 | - wp_enqueue_script('lasso-tour', LASSO_URL. "/public/assets/js/tour.js", array('jquery', 'lasso'), LASSO_VERSION, true); |
|
192 | - } |
|
189 | + $tour_hidden = get_user_meta( get_current_user_ID(), 'lasso_hide_tour', true ); |
|
190 | + if ( lasso_user_can() && !$tour_hidden ){ |
|
191 | + wp_enqueue_script('lasso-tour', LASSO_URL. "/public/assets/js/tour.js", array('jquery', 'lasso'), LASSO_VERSION, true); |
|
192 | + } |
|
193 | 193 | |
194 | 194 | } |
195 | 195 |