@@ -261,14 +261,14 @@ discard block |
||
| 261 | 261 | $out = load_textdomain( $domain, trailingslashit( LASSO_DIR ). 'languages/' . $domain . '-' . $locale . '.mo' ); |
| 262 | 262 | } |
| 263 | 263 | |
| 264 | - // new ajax function to lock post for editing |
|
| 264 | + // new ajax function to lock post for editing |
|
| 265 | 265 | public function editus_lock_post() |
| 266 | 266 | { |
| 267 | 267 | $post_id= $_POST["postid"]; |
| 268 | 268 | $locked = wp_check_post_lock($post_id); |
| 269 | 269 | |
| 270 | 270 | if (!$locked) { |
| 271 | - wp_set_post_lock($post_id); |
|
| 271 | + wp_set_post_lock($post_id); |
|
| 272 | 272 | echo "true"; |
| 273 | 273 | } else { |
| 274 | 274 | $user_info = get_userdata($locked); |
@@ -366,59 +366,59 @@ discard block |
||
| 366 | 366 | ); |
| 367 | 367 | foreach ($_POST as $key => $value) { |
| 368 | 368 | if ($key !="code" && $key !="action") { |
| 369 | - //$shortcode = $shortcode.$key.'="'.$value.'" '; |
|
| 369 | + //$shortcode = $shortcode.$key.'="'.$value.'" '; |
|
| 370 | 370 | $atts[$key] = $value; |
| 371 | 371 | } |
| 372 | 372 | } |
| 373 | 373 | if ($code == "aesop_video") { |
| 374 | - require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-video.php'); |
|
| 375 | - echo aesop_video_shortcode($atts); |
|
| 374 | + require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-video.php'); |
|
| 375 | + echo aesop_video_shortcode($atts); |
|
| 376 | 376 | } |
| 377 | 377 | else if ($code == "aesop_image") { |
| 378 | - require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-image.php'); |
|
| 379 | - echo aesop_image_shortcode($atts); |
|
| 378 | + require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-image.php'); |
|
| 379 | + echo aesop_image_shortcode($atts); |
|
| 380 | 380 | } |
| 381 | 381 | else if ($code == "aesop_quote") { |
| 382 | - require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-quote.php'); |
|
| 383 | - echo aesop_quote_shortcode($atts); |
|
| 382 | + require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-quote.php'); |
|
| 383 | + echo aesop_quote_shortcode($atts); |
|
| 384 | 384 | } |
| 385 | 385 | else if ($code == "aesop_parallax") { |
| 386 | - require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-parallax.php'); |
|
| 387 | - echo aesop_parallax_shortcode($atts); |
|
| 386 | + require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-parallax.php'); |
|
| 387 | + echo aesop_parallax_shortcode($atts); |
|
| 388 | 388 | } |
| 389 | 389 | else if ($code == "aesop_character") { |
| 390 | - require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-character.php'); |
|
| 391 | - echo aesop_character_shortcode($atts); |
|
| 390 | + require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-character.php'); |
|
| 391 | + echo aesop_character_shortcode($atts); |
|
| 392 | 392 | } |
| 393 | 393 | else if ($code == "aesop_collection") { |
| 394 | - require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-collections.php'); |
|
| 395 | - echo aesop_collection_shortcode($atts); |
|
| 394 | + require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-collections.php'); |
|
| 395 | + echo aesop_collection_shortcode($atts); |
|
| 396 | 396 | } |
| 397 | 397 | else if ($code == "aesop_chapter") { |
| 398 | - require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-heading.php'); |
|
| 399 | - echo aesop_chapter_shortcode($atts); |
|
| 398 | + require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-heading.php'); |
|
| 399 | + echo aesop_chapter_shortcode($atts); |
|
| 400 | 400 | } |
| 401 | 401 | else if ($code == "aesop_content") { |
| 402 | - require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-cbox.php'); |
|
| 403 | - echo aesop_content_shortcode($atts, $atts['content_data']); |
|
| 402 | + require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-cbox.php'); |
|
| 403 | + echo aesop_content_shortcode($atts, $atts['content_data']); |
|
| 404 | 404 | } |
| 405 | 405 | else if ($code == "aesop_gallery") { |
| 406 | - require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-gallery.php'); |
|
| 407 | - echo do_shortcode( '[aesop_gallery id="'.$atts["id"].'"]'); |
|
| 406 | + require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-gallery.php'); |
|
| 407 | + echo do_shortcode( '[aesop_gallery id="'.$atts["id"].'"]'); |
|
| 408 | 408 | } |
| 409 | 409 | else if ($code == "aesop_audio") { |
| 410 | - require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-audio.php'); |
|
| 411 | - echo aesop_audio_shortcode($atts); |
|
| 410 | + require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-audio.php'); |
|
| 411 | + echo aesop_audio_shortcode($atts); |
|
| 412 | 412 | } |
| 413 | 413 | else { |
| 414 | 414 | $code = '['.$code.' '; |
| 415 | 415 | foreach ($atts as $key => $value) { |
| 416 | - $code = ''.$key.'="'.$value.'" '; |
|
| 416 | + $code = ''.$key.'="'.$value.'" '; |
|
| 417 | 417 | } |
| 418 | 418 | $code = $code.']'; |
| 419 | 419 | echo do_shortcode($code); |
| 420 | - //require_once( ABSPATH . '/wp-content/plugins/aesop-events/public/includes/shortcode.php'); |
|
| 421 | - //echo aesop_audio_shortcode($atts); |
|
| 420 | + //require_once( ABSPATH . '/wp-content/plugins/aesop-events/public/includes/shortcode.php'); |
|
| 421 | + //echo aesop_audio_shortcode($atts); |
|
| 422 | 422 | } |
| 423 | 423 | |
| 424 | 424 | exit; |
@@ -429,14 +429,14 @@ discard block |
||
| 429 | 429 | $allow_new_category = lasso_editor_get_option( 'allow_new_category', 'lasso_editor' ); |
| 430 | 430 | |
| 431 | 431 | if ($taxonomy =='category') { |
| 432 | - // convert from names to category ids |
|
| 432 | + // convert from names to category ids |
|
| 433 | 433 | $cats = array(); |
| 434 | 434 | foreach ($value as $cat) { |
| 435 | 435 | $cat_id = get_cat_ID($cat); |
| 436 | 436 | if ($cat_id !=0) { |
| 437 | 437 | $cats [] = $cat_id; |
| 438 | 438 | } else if ($allow_new_category) { |
| 439 | - $cats [] = wp_create_category($cat); |
|
| 439 | + $cats [] = wp_create_category($cat); |
|
| 440 | 440 | } |
| 441 | 441 | } |
| 442 | 442 | $value = $cats; |
@@ -458,7 +458,7 @@ discard block |
||
| 458 | 458 | |
| 459 | 459 | public function set_date( $postid, $value) { |
| 460 | 460 | if( $value ) { |
| 461 | - wp_update_post( |
|
| 461 | + wp_update_post( |
|
| 462 | 462 | array ( |
| 463 | 463 | 'ID' => $postid, // ID of the post to update |
| 464 | 464 | 'post_date' => date( 'Y-m-d H:i:s', strtotime($value) ), |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | $toolbar_class = $toolbar_headings ? 'toolbar-extended' : false; |
| 152 | 152 | |
| 153 | 153 | // mobile styles |
| 154 | - $mobile_class = $is_mobile ? 'lasso-mobile' : false; |
|
| 154 | + $mobile_class = $is_mobile ? 'lasso-mobile' : false; |
|
| 155 | 155 | $mobile_style =$is_mobile ? 'style="bottom:0px;"' : null; |
| 156 | 156 | |
| 157 | 157 | //show color |
@@ -435,7 +435,7 @@ discard block |
||
| 435 | 435 | </div> |
| 436 | 436 | <?php |
| 437 | 437 | if ($allow_change_date) { |
| 438 | - $dateformat = get_option( 'date_format' ); |
|
| 438 | + $dateformat = get_option( 'date_format' ); |
|
| 439 | 439 | ?> |
| 440 | 440 | <label><?php _e( 'Post Date', 'lasso' ); ?></label> |
| 441 | 441 | <input type="text" class="editus_custom_date" name="post_date" value="<?php echo get_the_time($dateformat, $postid);?>"/> |
@@ -547,7 +547,7 @@ discard block |
||
| 547 | 547 | <?php |
| 548 | 548 | if ( !empty( $types ) ) { |
| 549 | 549 | // get the first element |
| 550 | - $type = reset($types); |
|
| 550 | + $type = reset($types); |
|
| 551 | 551 | $type = preg_replace( '/s\b/','', $type ); |
| 552 | 552 | printf( '<input type="hidden" name="object" value="%s">', lcfirst( esc_attr( $type ) ) ); |
| 553 | 553 | } |
@@ -575,8 +575,8 @@ discard block |
||
| 575 | 575 | global $post; |
| 576 | 576 | |
| 577 | 577 | global $wp_post_types; |
| 578 | - $labels = &$wp_post_types['post']->labels; |
|
| 579 | - $labels->name = 'Articles'; |
|
| 578 | + $labels = &$wp_post_types['post']->labels; |
|
| 579 | + $labels->name = 'Articles'; |
|
| 580 | 580 | |
| 581 | 581 | ob_start(); |
| 582 | 582 | |