@@ -146,7 +146,7 @@ |
||
| 146 | 146 | $toolbar_headings = lasso_editor_get_option( 'toolbar_headings', 'lasso_editor' ); |
| 147 | 147 | |
| 148 | 148 | $toolbar_class = $toolbar_headings ? 'toolbar-extended' : false; |
| 149 | - $mobile_class = $is_mobile ? 'lasso-mobile' : false; |
|
| 149 | + $mobile_class = $is_mobile ? 'lasso-mobile' : false; |
|
| 150 | 150 | |
| 151 | 151 | $mobile_style =$is_mobile ? 'style="top:40px;"' : null; |
| 152 | 152 | |
@@ -264,7 +264,7 @@ discard block |
||
| 264 | 264 | ); |
| 265 | 265 | foreach ($_POST as $key => $value) { |
| 266 | 266 | if ($key !="code" && $key !="action") { |
| 267 | - //$shortcode = $shortcode.$key.'="'.$value.'" '; |
|
| 267 | + //$shortcode = $shortcode.$key.'="'.$value.'" '; |
|
| 268 | 268 | $atts[$key] = $value; |
| 269 | 269 | } |
| 270 | 270 | } |
@@ -274,37 +274,37 @@ discard block |
||
| 274 | 274 | }*/ |
| 275 | 275 | |
| 276 | 276 | if ($code == "aesop_image") { |
| 277 | - require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-image.php'); |
|
| 278 | - echo aesop_image_shortcode($atts); |
|
| 277 | + require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-image.php'); |
|
| 278 | + echo aesop_image_shortcode($atts); |
|
| 279 | 279 | } |
| 280 | 280 | if ($code == "aesop_quote") { |
| 281 | - require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-quote.php'); |
|
| 282 | - echo aesop_quote_shortcode($atts); |
|
| 281 | + require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-quote.php'); |
|
| 282 | + echo aesop_quote_shortcode($atts); |
|
| 283 | 283 | } |
| 284 | 284 | |
| 285 | 285 | if ($code == "aesop_parallax") { |
| 286 | - require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-parallax.php'); |
|
| 287 | - echo aesop_parallax_shortcode($atts); |
|
| 286 | + require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-parallax.php'); |
|
| 287 | + echo aesop_parallax_shortcode($atts); |
|
| 288 | 288 | } |
| 289 | 289 | |
| 290 | 290 | if ($code == "aesop_character") { |
| 291 | - require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-character.php'); |
|
| 292 | - echo aesop_character_shortcode($atts); |
|
| 291 | + require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-character.php'); |
|
| 292 | + echo aesop_character_shortcode($atts); |
|
| 293 | 293 | } |
| 294 | 294 | |
| 295 | 295 | if ($code == "aesop_collection") { |
| 296 | - require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-collections.php'); |
|
| 297 | - echo aesop_collection_shortcode($atts); |
|
| 296 | + require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-collections.php'); |
|
| 297 | + echo aesop_collection_shortcode($atts); |
|
| 298 | 298 | } |
| 299 | 299 | |
| 300 | 300 | if ($code == "aesop_chapter") { |
| 301 | - require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-heading.php'); |
|
| 302 | - echo aesop_chapter_shortcode($atts); |
|
| 301 | + require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-heading.php'); |
|
| 302 | + echo aesop_chapter_shortcode($atts); |
|
| 303 | 303 | } |
| 304 | 304 | |
| 305 | 305 | if ($code == "aesop_gallery") { |
| 306 | - require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-gallery.php'); |
|
| 307 | - echo do_shortcode( '[aesop_gallery id="'.$atts["id"].'"]'); |
|
| 306 | + require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-gallery.php'); |
|
| 307 | + echo do_shortcode( '[aesop_gallery id="'.$atts["id"].'"]'); |
|
| 308 | 308 | } |
| 309 | 309 | |
| 310 | 310 | exit; |
@@ -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', 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', LASSO_URL. "/public/assets/js/tour.js", array('jquery', 'lasso'), LASSO_VERSION, true); |
|
| 192 | + } |
|
| 193 | 193 | |
| 194 | 194 | } |
| 195 | 195 | |