Completed
Push — master ( b3eac7...35130c )
by
unknown
40s
created
public/includes/lasso.php 2 patches
Indentation   +136 added lines, -136 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 		
60 60
 		add_action( 'wp_ajax_get_aesop_component',     array( $this, 'get_aesop_component' ) );
61 61
 		add_action( 'wp_ajax_editus_do_shortcode',     array( $this, 'editus_do_shortcode' ) );
62
-        add_action( 'wp_ajax_editus_do_block',     array( $this, 'editus_do_block' ) );
62
+		add_action( 'wp_ajax_editus_do_block',     array( $this, 'editus_do_block' ) );
63 63
 		add_action( 'wp_ajax_editus_lock_post',     array( $this, 'editus_lock_post' ) );
64 64
 		add_action( 'wp_ajax_editus_unlock_post',     array( $this, 'editus_unlock_post' ) );
65 65
 		add_action( 'wp_ajax_editus_hide_tour',     array( $this, 'editus_hide_tour' ) );
@@ -69,19 +69,19 @@  discard block
 block discarded – undo
69 69
 		add_action( 'wp_ajax_editus_featured_img',     array( $this, 'set_featured_img' ) );
70 70
 		add_action( 'wp_ajax_editus_del_featured_img',     array( $this, 'del_featured_img' ) );
71 71
         
72
-        add_action( 'wp_ajax_editus_publish_post',     array( $this, 'on_publish_post' ) );
72
+		add_action( 'wp_ajax_editus_publish_post',     array( $this, 'on_publish_post' ) );
73 73
         
74
-        add_action( 'wp_ajax_editus_create_gallery',     array( $this, 'create_gallery' ) );
75
-        add_action( 'wp_ajax_editus_update_gallery',     array( $this, 'update_gallery' ) );
74
+		add_action( 'wp_ajax_editus_create_gallery',     array( $this, 'create_gallery' ) );
75
+		add_action( 'wp_ajax_editus_update_gallery',     array( $this, 'update_gallery' ) );
76 76
 
77 77
 		// enable saving custom fields through REST API
78 78
 		self::enable_metasave('post');
79 79
 		self::enable_metasave('page');
80 80
         
81
-        $default_post_types = apply_filters( 'lasso_allowed_post_types', array( 'post', 'page'));
81
+		$default_post_types = apply_filters( 'lasso_allowed_post_types', array( 'post', 'page'));
82 82
 		$allowed_post_types = lasso_editor_get_option( 'allowed_post_types', 'lasso_editor',  $default_post_types);
83
-        foreach ( $allowed_post_types  as $post_type ) {
84
-           self::enable_metasave($post_type);
83
+		foreach ( $allowed_post_types  as $post_type ) {
84
+		   self::enable_metasave($post_type);
85 85
 		}
86 86
 		//enqueue assets
87 87
 		new assets();
@@ -278,14 +278,14 @@  discard block
 block discarded – undo
278 278
 		$out = load_textdomain( $domain, trailingslashit( LASSO_DIR ). 'languages/' . $domain . '-' . $locale . '.mo' );
279 279
 	}
280 280
 	
281
-    // new ajax function to lock post for editing
281
+	// new ajax function to lock post for editing
282 282
 	public function editus_lock_post()
283 283
 	{
284 284
 		$post_id= $_POST["postid"];
285 285
 		$locked = wp_check_post_lock($post_id);
286 286
 		
287 287
 		if (!$locked) {
288
-		    wp_set_post_lock($post_id);
288
+			wp_set_post_lock($post_id);
289 289
 			echo "true";
290 290
 		} else {
291 291
 			$user_info = get_userdata($locked);
@@ -298,9 +298,9 @@  discard block
 block discarded – undo
298 298
 	{
299 299
 		$post_id= $_POST["postid"];
300 300
 		$locked = wp_check_post_lock($post_id);
301
-        if (!$locked) {
302
-            delete_post_meta( $post_id, '_edit_lock');
303
-        }
301
+		if (!$locked) {
302
+			delete_post_meta( $post_id, '_edit_lock');
303
+		}
304 304
 		echo "true";
305 305
 		
306 306
 		exit;
@@ -328,14 +328,14 @@  discard block
 block discarded – undo
328 328
 		$status = isset( $data['status'] ) ? $data['status'] : false;
329 329
 		$postid = isset( $data['postid'] ) ? $data['postid'] : false;
330 330
 		$slug   = isset( $data['story_slug'] ) ? $data['story_slug'] : false;
331
-        $excerpt   = isset( $data['excerpt'] ) ? $data['excerpt'] : false;
331
+		$excerpt   = isset( $data['excerpt'] ) ? $data['excerpt'] : false;
332 332
 	
333 333
 
334 334
 		$args = array(
335 335
 			'ID'   			=> (int) $postid,
336 336
 			'post_name'  	=> $slug,
337 337
 			'post_status' 	=> $status,
338
-            'post_excerpt'  => wp_strip_all_tags($excerpt,true)
338
+			'post_excerpt'  => wp_strip_all_tags($excerpt,true)
339 339
 		);
340 340
 		
341 341
 		
@@ -410,12 +410,12 @@  discard block
 block discarded – undo
410 410
 		exit;
411 411
 	}
412 412
     
413
-    public function editus_do_block()
413
+	public function editus_do_block()
414 414
 	{
415 415
 		
416 416
 		$code= $_POST["code"];
417 417
 
418
-        $out = do_blocks( $code );
418
+		$out = do_blocks( $code );
419 419
 		
420 420
 		echo $out;
421 421
 		exit;
@@ -434,67 +434,67 @@  discard block
 block discarded – undo
434 434
 			}
435 435
 		}
436 436
 		if ($code == "aesop_video") {
437
-		    require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-video.php');
438
-		    echo aesop_video_shortcode($atts);
437
+			require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-video.php');
438
+			echo aesop_video_shortcode($atts);
439 439
 		}
440 440
 		else if ($code == "aesop_image") {
441
-		    require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-image.php');
442
-		    echo aesop_image_shortcode($atts);
441
+			require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-image.php');
442
+			echo aesop_image_shortcode($atts);
443 443
 		}
444 444
 		else if ($code == "aesop_quote") {
445
-		    require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-quote.php');
446
-		    echo aesop_quote_shortcode($atts);
445
+			require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-quote.php');
446
+			echo aesop_quote_shortcode($atts);
447 447
 		}
448 448
 		else if ($code == "aesop_parallax") {
449
-		    require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-parallax.php');
450
-		    echo aesop_parallax_shortcode($atts);
449
+			require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-parallax.php');
450
+			echo aesop_parallax_shortcode($atts);
451 451
 		}
452 452
 		else if ($code == "aesop_character") {
453
-		    require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-character.php');
454
-		    echo aesop_character_shortcode($atts);
453
+			require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-character.php');
454
+			echo aesop_character_shortcode($atts);
455 455
 		}
456 456
 		else if ($code == "aesop_collection") {
457
-		    require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-collections.php');
458
-		    echo aesop_collection_shortcode($atts);
457
+			require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-collections.php');
458
+			echo aesop_collection_shortcode($atts);
459 459
 		}
460 460
 		else if ($code == "aesop_chapter") {
461
-		    require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-heading.php');
462
-		    echo aesop_chapter_shortcode($atts);
461
+			require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-heading.php');
462
+			echo aesop_chapter_shortcode($atts);
463 463
 		}
464 464
 		else if ($code == "aesop_content") {
465
-		    require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-cbox.php');
466
-		    echo aesop_content_shortcode($atts, $atts['content_data']);
465
+			require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-cbox.php');
466
+			echo aesop_content_shortcode($atts, $atts['content_data']);
467 467
 		}
468 468
 		else if ($code == "aesop_gallery") {
469
-		    require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-gallery.php');
470
-		    echo do_shortcode( '[aesop_gallery id="'.$atts["id"].'"]');
469
+			require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-gallery.php');
470
+			echo do_shortcode( '[aesop_gallery id="'.$atts["id"].'"]');
471 471
 		}
472 472
 		else if ($code == "aesop_audio") {
473
-		    require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-audio.php');
474
-		    echo aesop_audio_shortcode($atts);
473
+			require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-audio.php');
474
+			echo aesop_audio_shortcode($atts);
475 475
 		}
476 476
 		else if ($code == "aesop_document") {
477
-		    require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-document.php');
478
-		    echo aesop_document_shortcode($atts);
477
+			require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-document.php');
478
+			echo aesop_document_shortcode($atts);
479 479
 		}
480 480
 		else if ($code == "aesop_timeline_stop") {		
481
-		    require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-timeline.php');
482
-		    echo aesop_timeline_stop_shortcode($atts);
481
+			require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-timeline.php');
482
+			echo aesop_timeline_stop_shortcode($atts);
483 483
 		}
484
-        /*else if ($code == "aesop_content") {
484
+		/*else if ($code == "aesop_content") {
485 485
 		    require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-content.php');
486 486
 		    echo aesop_content_shortcode($atts);
487 487
 		}*/
488
-        else if ($code == "aesop_wpimg") {
489
-            self::wpimg($atts);
488
+		else if ($code == "aesop_wpimg") {
489
+			self::wpimg($atts);
490 490
 		}
491 491
 		else if ($code == "aesop_wpimg-block") {
492
-            self::wpimg_block($atts);
492
+			self::wpimg_block($atts);
493 493
 		}
494 494
 		else {
495 495
 			$code = '['.$code.' ';
496 496
 			foreach ($atts as $key => $value) {
497
-			    $code = ''.$key.'="'.$value.'" ';
497
+				$code = ''.$key.'="'.$value.'" ';
498 498
 			}
499 499
 			$code = $code.']';
500 500
 			echo do_shortcode($code);
@@ -503,102 +503,102 @@  discard block
 block discarded – undo
503 503
 		exit; 
504 504
 	}
505 505
     
506
-    public static function wpimg($atts) {
506
+	public static function wpimg($atts) {
507 507
 
508
-        echo '<figure data-component-type="wpimg"';
508
+		echo '<figure data-component-type="wpimg"';
509 509
         
510
-        $extra = "";
510
+		$extra = "";
511 511
         
512
-        // try to use srcset and sizes on new WP installs
512
+		// try to use srcset and sizes on new WP installs
513 513
 		if ( function_exists('wp_get_attachment_image_srcset') && $attachment_id = attachment_url_to_postid( $atts['img'] ) ) {
514 514
 			$srcset = wp_get_attachment_image_srcset( $attachment_id, 'full' );
515 515
 			$sizes = wp_get_attachment_image_sizes( $attachment_id, 'full' );
516
-            $extra = "srcset='$srcset' sizes='$sizes' ";
517
-        }
518
-        if ($atts['align']=="left") {
519
-            $extra .= 'class="alignleft';
520
-        } else if ($atts['align']=="right") {
521
-            $extra .= 'class="alignright';
522
-        } else {
523
-            $extra .= 'class="aligncenter';
524
-        }
525
-        if ($atts['imgwidth'] || $atts['imgheight']) {
526
-            if ($atts['imgwidth']) {
527
-                $extra .= 'width:'. $atts['imgwidth'].';';
528
-            }
529
-            if ($atts['imgheight']) {
530
-                $extra .= 'height:'. $atts['imgheight'].';';
531
-            }
516
+			$extra = "srcset='$srcset' sizes='$sizes' ";
517
+		}
518
+		if ($atts['align']=="left") {
519
+			$extra .= 'class="alignleft';
520
+		} else if ($atts['align']=="right") {
521
+			$extra .= 'class="alignright';
522
+		} else {
523
+			$extra .= 'class="aligncenter';
524
+		}
525
+		if ($atts['imgwidth'] || $atts['imgheight']) {
526
+			if ($atts['imgwidth']) {
527
+				$extra .= 'width:'. $atts['imgwidth'].';';
528
+			}
529
+			if ($atts['imgheight']) {
530
+				$extra .= 'height:'. $atts['imgheight'].';';
531
+			}
532 532
             
533
-        }
534
-        $extra .= '"';
533
+		}
534
+		$extra .= '"';
535 535
         
536
-        foreach ($atts as $key => $value) {
536
+		foreach ($atts as $key => $value) {
537 537
 			 echo ' data-'.$key.'="'.$value.'"';
538 538
 		}
539
-        //echo ' class="wp-image- lasso--wpimg__wrap lasso-component">';
540
-        echo ' class="wp-caption lasso-component">';
541
-        $hrefset = false;
542
-        if ($atts['link'] != '' && (!isset($atts['linkoption']) || $atts['linkoption']=="url" ))
543
-        {
544
-            echo '<a href="' . $atts['link'] . '">';
545
-            $hrefset = true;
546
-        } else if (isset($atts['linkoption']) && $atts['linkoption'] == 'img' ) {
547
-            echo '<a href="' . $atts['img'] . '">';
548
-            $hrefset = true;
549
-        }
550
-        echo '<img src="' . $atts['img'] . '" alt="'. $atts['alt']  .  '" '. $extra. '>';
551
-        if ($hrefset)
552
-        {
553
-            echo '</a>';
554
-        }
555
-        if ($atts['caption'])
556
-        {
557
-            echo '<figcaption class="wp-caption-text">'.$atts['caption'].'</figcaption>';
558
-        }
559
-        echo '</figure>';
560
-        echo '<p><br></p>';
561
-        return;
562
-    }
539
+		//echo ' class="wp-image- lasso--wpimg__wrap lasso-component">';
540
+		echo ' class="wp-caption lasso-component">';
541
+		$hrefset = false;
542
+		if ($atts['link'] != '' && (!isset($atts['linkoption']) || $atts['linkoption']=="url" ))
543
+		{
544
+			echo '<a href="' . $atts['link'] . '">';
545
+			$hrefset = true;
546
+		} else if (isset($atts['linkoption']) && $atts['linkoption'] == 'img' ) {
547
+			echo '<a href="' . $atts['img'] . '">';
548
+			$hrefset = true;
549
+		}
550
+		echo '<img src="' . $atts['img'] . '" alt="'. $atts['alt']  .  '" '. $extra. '>';
551
+		if ($hrefset)
552
+		{
553
+			echo '</a>';
554
+		}
555
+		if ($atts['caption'])
556
+		{
557
+			echo '<figcaption class="wp-caption-text">'.$atts['caption'].'</figcaption>';
558
+		}
559
+		echo '</figure>';
560
+		echo '<p><br></p>';
561
+		return;
562
+	}
563 563
 	
564 564
 	public static function wpimg_block($atts) {
565 565
 		$imgextra = '';
566 566
 		if (!empty($atts['id'])) {
567 567
 			$imgextra = 'class="wp-image-'.$atts['id'].'"';
568 568
 		}
569
-        $figclass = 'aligncenter';
570
-        if ($atts['align']=="left") {
571
-            $figclass = 'alignleft';
572
-        } else if ($atts['align']=="right") {
573
-            $figclass = 'alignright';
574
-        } else {
575
-            $figclass = 'aligncenter';
576
-        }
569
+		$figclass = 'aligncenter';
570
+		if ($atts['align']=="left") {
571
+			$figclass = 'alignleft';
572
+		} else if ($atts['align']=="right") {
573
+			$figclass = 'alignright';
574
+		} else {
575
+			$figclass = 'aligncenter';
576
+		}
577 577
         
578
-        if ($atts['align']=="left" || $atts['align']=="right") {
579
-            echo '<div class="wp-block-image" data-component-type="wpimg-block">';
580
-            echo '<figure class="'.$figclass.' size-large" contenteditable="false">'; 
581
-        } else {      
582
-            echo '<figure class="wp-block-image '.$figclass.' size-large" contenteditable="false">';  
583
-        }        
584
-        if (!empty($atts['link'])) {
585
-            echo '<a href="'.$atts['link'].'">';
586
-        }        
587
-        echo '<img src="' . $atts['img'] . '" alt="'. $atts['alt']  . '"' . $imgextra . ' >';
588
-        if ($atts['caption'])
589
-        {
590
-            echo '<figcaption>'.$atts['caption'].'</figcaption>';
591
-        }
592
-        if (!empty($atts['link'])) {
593
-            echo '</a>';
594
-        }
595
-        echo '</figure>';
596
-        if ($atts['align']=="left" || $atts['align']=="right") {
597
-            echo '</div>';
598
-        }  
599
-        echo '<p><br></p>';
600
-        return;
601
-    }
578
+		if ($atts['align']=="left" || $atts['align']=="right") {
579
+			echo '<div class="wp-block-image" data-component-type="wpimg-block">';
580
+			echo '<figure class="'.$figclass.' size-large" contenteditable="false">'; 
581
+		} else {      
582
+			echo '<figure class="wp-block-image '.$figclass.' size-large" contenteditable="false">';  
583
+		}        
584
+		if (!empty($atts['link'])) {
585
+			echo '<a href="'.$atts['link'].'">';
586
+		}        
587
+		echo '<img src="' . $atts['img'] . '" alt="'. $atts['alt']  . '"' . $imgextra . ' >';
588
+		if ($atts['caption'])
589
+		{
590
+			echo '<figcaption>'.$atts['caption'].'</figcaption>';
591
+		}
592
+		if (!empty($atts['link'])) {
593
+			echo '</a>';
594
+		}
595
+		echo '</figure>';
596
+		if ($atts['align']=="left" || $atts['align']=="right") {
597
+			echo '</div>';
598
+		}  
599
+		echo '<p><br></p>';
600
+		return;
601
+	}
602 602
 	
603 603
 	
604 604
 	public function get_ase_options()
@@ -634,12 +634,12 @@  discard block
 block discarded – undo
634 634
 		exit;
635 635
 	}
636 636
     
637
-    /* This function doesn't actually publish post, but should be called when a post is published */
638
-    public function on_publish_post( ) {
637
+	/* This function doesn't actually publish post, but should be called when a post is published */
638
+	public function on_publish_post( ) {
639 639
 
640 640
 		$post_id = isset( $_POST['postid'] ) ? $_POST['postid'] : false;
641 641
         
642
-        do_action( 'transition_post_status', 'publish', 'draft', get_post( $post_id ) );
642
+		do_action( 'transition_post_status', 'publish', 'draft', get_post( $post_id ) );
643 643
 
644 644
 		exit;
645 645
 	}
@@ -697,14 +697,14 @@  discard block
 block discarded – undo
697 697
 			$allow_new_category = lasso_editor_get_option( 'allow_new_category', 'lasso_editor' );
698 698
 			
699 699
 			if ($taxonomy =='category') {
700
-                // convert from names to category ids
700
+				// convert from names to category ids
701 701
 				$cats = array();
702 702
 				foreach ($value as $cat) {
703 703
 					$cat_id = get_cat_ID($cat);
704 704
 					if ($cat_id !=0) {
705 705
 						$cats [] = $cat_id;
706 706
 					} else if ($allow_new_category) {
707
-					    $cats [] = wp_create_category($cat);
707
+						$cats [] = wp_create_category($cat);
708 708
 					}
709 709
 				}
710 710
 				$value = $cats;
@@ -724,7 +724,7 @@  discard block
 block discarded – undo
724 724
 		}
725 725
 	}
726 726
     
727
-    public function create_gallery( ) {
727
+	public function create_gallery( ) {
728 728
 
729 729
 		$postid  	= isset( $_POST['postid'] ) ? $_POST['postid'] : false;
730 730
         
@@ -778,10 +778,10 @@  discard block
 block discarded – undo
778 778
 			'message' => 'gallery-created',
779 779
 			'id' => $postid)
780 780
 		);
781
-        exit;
781
+		exit;
782 782
 	}
783 783
     
784
-    public function update_gallery( ) {
784
+	public function update_gallery( ) {
785 785
         
786 786
 		$options      = isset( $_POST['fields'] ) ? $_POST['fields'] : false;
787 787
         
@@ -797,12 +797,12 @@  discard block
 block discarded – undo
797 797
 
798 798
 		self::save_gallery_options( $postid, $gallery_ids, $options, $type );
799 799
 
800
-        echo json_encode( array('message' => 'gallery-updated') );
800
+		echo json_encode( array('message' => 'gallery-updated') );
801 801
 
802
-        exit;
802
+		exit;
803 803
 	}
804 804
     
805
-    public function save_gallery_options( $postid, $gallery_ids, $options, $type = false ) {
805
+	public function save_gallery_options( $postid, $gallery_ids, $options, $type = false ) {
806 806
 
807 807
 		// gallery width
808 808
 		$gallery_width = isset( $options['width'] ) ? $options['width'] : false;
@@ -886,7 +886,7 @@  discard block
 block discarded – undo
886 886
 	public function set_date( $postid, $value) {
887 887
 		if( $value ) {
888 888
 			$value = self::getEnglishMonthName($value)." ".date("H:i:s", current_time( 'timestamp', 1 ));
889
-            wp_update_post(
889
+			wp_update_post(
890 890
 				array (
891 891
 					'ID'            => $postid, // ID of the post to update
892 892
 					'post_date'     => date( 'Y-m-d H:i:s',  strtotime($value) ),
Please login to merge, or discard this patch.
Spacing   +195 added lines, -195 removed lines patch added patch discarded remove patch
@@ -52,35 +52,35 @@  discard block
 block discarded – undo
52 52
 		require_once LASSO_DIR.'/public/includes/wrap-shortcodes.php';
53 53
 
54 54
 		// Activate plugin when new blog is added
55
-		add_action( 'wpmu_new_blog', array( $this, 'activate_new_site' ) );
55
+		add_action('wpmu_new_blog', array($this, 'activate_new_site'));
56 56
 
57 57
 		// Load plugin text domain
58
-		add_action( 'init', array( $this, 'load_plugin_textdomain' ) );
58
+		add_action('init', array($this, 'load_plugin_textdomain'));
59 59
 		
60
-		add_action( 'wp_ajax_get_aesop_component',     array( $this, 'get_aesop_component' ) );
61
-		add_action( 'wp_ajax_editus_do_shortcode',     array( $this, 'editus_do_shortcode' ) );
62
-        add_action( 'wp_ajax_editus_do_block',     array( $this, 'editus_do_block' ) );
63
-		add_action( 'wp_ajax_editus_lock_post',     array( $this, 'editus_lock_post' ) );
64
-		add_action( 'wp_ajax_editus_unlock_post',     array( $this, 'editus_unlock_post' ) );
65
-		add_action( 'wp_ajax_editus_hide_tour',     array( $this, 'editus_hide_tour' ) );
66
-		add_action( 'wp_ajax_editus_set_post_setting',     array( $this, 'editus_set_post_setting' ) );
67
-		add_action( 'wp_ajax_editus_get_ase_options',     array( $this, 'get_ase_options' ) );
68
-		add_action( 'wp_ajax_editus_delete_post',     array( $this, 'delete_post' ) );
69
-		add_action( 'wp_ajax_editus_featured_img',     array( $this, 'set_featured_img' ) );
70
-		add_action( 'wp_ajax_editus_del_featured_img',     array( $this, 'del_featured_img' ) );
60
+		add_action('wp_ajax_get_aesop_component', array($this, 'get_aesop_component'));
61
+		add_action('wp_ajax_editus_do_shortcode', array($this, 'editus_do_shortcode'));
62
+        add_action('wp_ajax_editus_do_block', array($this, 'editus_do_block'));
63
+		add_action('wp_ajax_editus_lock_post', array($this, 'editus_lock_post'));
64
+		add_action('wp_ajax_editus_unlock_post', array($this, 'editus_unlock_post'));
65
+		add_action('wp_ajax_editus_hide_tour', array($this, 'editus_hide_tour'));
66
+		add_action('wp_ajax_editus_set_post_setting', array($this, 'editus_set_post_setting'));
67
+		add_action('wp_ajax_editus_get_ase_options', array($this, 'get_ase_options'));
68
+		add_action('wp_ajax_editus_delete_post', array($this, 'delete_post'));
69
+		add_action('wp_ajax_editus_featured_img', array($this, 'set_featured_img'));
70
+		add_action('wp_ajax_editus_del_featured_img', array($this, 'del_featured_img'));
71 71
         
72
-        add_action( 'wp_ajax_editus_publish_post',     array( $this, 'on_publish_post' ) );
72
+        add_action('wp_ajax_editus_publish_post', array($this, 'on_publish_post'));
73 73
         
74
-        add_action( 'wp_ajax_editus_create_gallery',     array( $this, 'create_gallery' ) );
75
-        add_action( 'wp_ajax_editus_update_gallery',     array( $this, 'update_gallery' ) );
74
+        add_action('wp_ajax_editus_create_gallery', array($this, 'create_gallery'));
75
+        add_action('wp_ajax_editus_update_gallery', array($this, 'update_gallery'));
76 76
 
77 77
 		// enable saving custom fields through REST API
78 78
 		self::enable_metasave('post');
79 79
 		self::enable_metasave('page');
80 80
         
81
-        $default_post_types = apply_filters( 'lasso_allowed_post_types', array( 'post', 'page'));
82
-		$allowed_post_types = lasso_editor_get_option( 'allowed_post_types', 'lasso_editor',  $default_post_types);
83
-        foreach ( $allowed_post_types  as $post_type ) {
81
+        $default_post_types = apply_filters('lasso_allowed_post_types', array('post', 'page'));
82
+		$allowed_post_types = lasso_editor_get_option('allowed_post_types', 'lasso_editor', $default_post_types);
83
+        foreach ($allowed_post_types  as $post_type) {
84 84
            self::enable_metasave($post_type);
85 85
 		}
86 86
 		//enqueue assets
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 	public static function get_instance() {
110 110
 
111 111
 		// If the single instance hasn't been set, set it now.
112
-		if ( null == self::$instance ) {
112
+		if (null == self::$instance) {
113 113
 			self::$instance = new self;
114 114
 		}
115 115
 
@@ -126,18 +126,18 @@  discard block
 block discarded – undo
126 126
 	 *                                       WPMU is disabled or plugin is
127 127
 	 *                                       activated on an individual blog.
128 128
 	 */
129
-	public static function activate( $network_wide ) {
129
+	public static function activate($network_wide) {
130 130
 
131
-		if ( function_exists( 'is_multisite' ) && is_multisite() ) {
131
+		if (function_exists('is_multisite') && is_multisite()) {
132 132
 
133
-			if ( $network_wide  ) {
133
+			if ($network_wide) {
134 134
 
135 135
 				// Get all blog ids
136 136
 				$blog_ids = self::get_blog_ids();
137 137
 
138
-				foreach ( $blog_ids as $blog_id ) {
138
+				foreach ($blog_ids as $blog_id) {
139 139
 
140
-					switch_to_blog( $blog_id );
140
+					switch_to_blog($blog_id);
141 141
 					self::single_activate();
142 142
 				}
143 143
 
@@ -163,18 +163,18 @@  discard block
 block discarded – undo
163 163
 	 *                                       WPMU is disabled or plugin is
164 164
 	 *                                       deactivated on an individual blog.
165 165
 	 */
166
-	public static function deactivate( $network_wide ) {
166
+	public static function deactivate($network_wide) {
167 167
 
168
-		if ( function_exists( 'is_multisite' ) && is_multisite() ) {
168
+		if (function_exists('is_multisite') && is_multisite()) {
169 169
 
170
-			if ( $network_wide ) {
170
+			if ($network_wide) {
171 171
 
172 172
 				// Get all blog ids
173 173
 				$blog_ids = self::get_blog_ids();
174 174
 
175
-				foreach ( $blog_ids as $blog_id ) {
175
+				foreach ($blog_ids as $blog_id) {
176 176
 
177
-					switch_to_blog( $blog_id );
177
+					switch_to_blog($blog_id);
178 178
 					self::single_deactivate();
179 179
 
180 180
 				}
@@ -198,13 +198,13 @@  discard block
 block discarded – undo
198 198
 	 *
199 199
 	 * @param int     $blog_id ID of the new blog.
200 200
 	 */
201
-	public function activate_new_site( $blog_id ) {
201
+	public function activate_new_site($blog_id) {
202 202
 
203
-		if ( 1 !== did_action( 'wpmu_new_blog' ) ) {
203
+		if (1 !== did_action('wpmu_new_blog')) {
204 204
 			return;
205 205
 		}
206 206
 
207
-		switch_to_blog( $blog_id );
207
+		switch_to_blog($blog_id);
208 208
 		self::single_activate();
209 209
 		restore_current_blog();
210 210
 
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
 			WHERE archived = '0' AND spam = '0'
230 230
 			AND deleted = '0'";
231 231
 
232
-		return $wpdb->get_col( $sql );
232
+		return $wpdb->get_col($sql);
233 233
 
234 234
 	}
235 235
 
@@ -240,18 +240,18 @@  discard block
 block discarded – undo
240 240
 	 */
241 241
 	private static function single_activate() {
242 242
 
243
-		$curr_version = get_option( 'lasso_version' );
243
+		$curr_version = get_option('lasso_version');
244 244
 
245 245
 		// update upgraded from
246
-		if ( $curr_version ) {
247
-			update_option( 'lasso_updated_from', $curr_version );
246
+		if ($curr_version) {
247
+			update_option('lasso_updated_from', $curr_version);
248 248
 		}
249 249
 
250 250
 		// update lasso version option
251
-		update_option( 'lasso_version', LASSO_VERSION );
251
+		update_option('lasso_version', LASSO_VERSION);
252 252
 
253 253
 		// set transietn for activation welcome
254
-		set_transient( '_lasso_welcome_redirect', true, 30 );
254
+		set_transient('_lasso_welcome_redirect', true, 30);
255 255
 
256 256
 
257 257
 	}
@@ -273,15 +273,15 @@  discard block
 block discarded – undo
273 273
 	public function load_plugin_textdomain() {
274 274
 
275 275
 		$domain = $this->plugin_slug;
276
-		$locale = apply_filters( 'plugin_locale', get_locale(), $domain );
276
+		$locale = apply_filters('plugin_locale', get_locale(), $domain);
277 277
 
278
-		$out = load_textdomain( $domain, trailingslashit( LASSO_DIR ). 'languages/' . $domain . '-' . $locale . '.mo' );
278
+		$out = load_textdomain($domain, trailingslashit(LASSO_DIR).'languages/'.$domain.'-'.$locale.'.mo');
279 279
 	}
280 280
 	
281 281
     // new ajax function to lock post for editing
282 282
 	public function editus_lock_post()
283 283
 	{
284
-		$post_id= $_POST["postid"];
284
+		$post_id = $_POST["postid"];
285 285
 		$locked = wp_check_post_lock($post_id);
286 286
 		
287 287
 		if (!$locked) {
@@ -289,17 +289,17 @@  discard block
 block discarded – undo
289 289
 			echo "true";
290 290
 		} else {
291 291
 			$user_info = get_userdata($locked);
292
-			echo _e( 'Post being edited by ', 'lasso' ).$user_info->first_name .  " " . $user_info->last_name;
292
+			echo _e('Post being edited by ', 'lasso').$user_info->first_name." ".$user_info->last_name;
293 293
 		}
294 294
 		exit;
295 295
 	}
296 296
 	
297 297
 	public function editus_unlock_post()
298 298
 	{
299
-		$post_id= $_POST["postid"];
299
+		$post_id = $_POST["postid"];
300 300
 		$locked = wp_check_post_lock($post_id);
301 301
         if (!$locked) {
302
-            delete_post_meta( $post_id, '_edit_lock');
302
+            delete_post_meta($post_id, '_edit_lock');
303 303
         }
304 304
 		echo "true";
305 305
 		
@@ -311,7 +311,7 @@  discard block
 block discarded – undo
311 311
 	{
312 312
 		$user_id = get_current_user_ID();
313 313
 				
314
-		update_user_meta( $user_id, 'lasso_hide_tour', true );
314
+		update_user_meta($user_id, 'lasso_hide_tour', true);
315 315
 		exit;
316 316
 	}
317 317
 	
@@ -320,51 +320,51 @@  discard block
 block discarded – undo
320 320
 		$data = array();
321 321
 		parse_str($_POST['data'], $data);
322 322
 		
323
-		if (!wp_verify_nonce( $data[ 'nonce' ], 'lasso-update-post-settings' )) {
323
+		if (!wp_verify_nonce($data['nonce'], 'lasso-update-post-settings')) {
324 324
 			wp_send_json_error();
325 325
 			exit;
326 326
 		}
327 327
 		
328
-		$status = isset( $data['status'] ) ? $data['status'] : false;
329
-		$postid = isset( $data['postid'] ) ? $data['postid'] : false;
330
-		$slug   = isset( $data['story_slug'] ) ? $data['story_slug'] : false;
331
-        $excerpt   = isset( $data['excerpt'] ) ? $data['excerpt'] : false;
328
+		$status = isset($data['status']) ? $data['status'] : false;
329
+		$postid = isset($data['postid']) ? $data['postid'] : false;
330
+		$slug   = isset($data['story_slug']) ? $data['story_slug'] : false;
331
+        $excerpt = isset($data['excerpt']) ? $data['excerpt'] : false;
332 332
 	
333 333
 
334 334
 		$args = array(
335 335
 			'ID'   			=> (int) $postid,
336 336
 			'post_name'  	=> $slug,
337 337
 			'post_status' 	=> $status,
338
-            'post_excerpt'  => wp_strip_all_tags($excerpt,true)
338
+            'post_excerpt'  => wp_strip_all_tags($excerpt, true)
339 339
 		);
340 340
 		
341 341
 		
342 342
 
343
-		wp_update_post( apply_filters( 'lasso_object_status_update_args', $args ) );
343
+		wp_update_post(apply_filters('lasso_object_status_update_args', $args));
344 344
 		
345 345
 		// update categories
346
-		$cats  = isset( $data['story_cats'] ) ? $data['story_cats'] : false;
346
+		$cats = isset($data['story_cats']) ? $data['story_cats'] : false;
347 347
 		
348
-		self::set_post_terms( $postid, $cats, 'category' );
348
+		self::set_post_terms($postid, $cats, 'category');
349 349
 		
350 350
 		// update tags
351
-		$tags = isset( $data['story_tags'] ) ? $data['story_tags'] : false;
352
-		self::set_post_terms( $postid, $tags, 'post_tag' );
351
+		$tags = isset($data['story_tags']) ? $data['story_tags'] : false;
352
+		self::set_post_terms($postid, $tags, 'post_tag');
353 353
 		
354 354
 		// update custom taxonomy
355
-		$custom_taxonomies = isset( $data['story_custom_taxonomies'] ) ? json_decode($data['story_custom_taxonomies']) : false;
355
+		$custom_taxonomies = isset($data['story_custom_taxonomies']) ? json_decode($data['story_custom_taxonomies']) : false;
356 356
         
357 357
 		foreach ($custom_taxonomies as $x => $x_value) {
358
-			self::set_post_terms( $postid, $x_value, $x );
358
+			self::set_post_terms($postid, $x_value, $x);
359 359
 		}
360 360
 		
361 361
 		//update date
362
-		$date  = isset( $data['post_date'] ) ? $data['post_date'] : false;
363
-		self::set_date( $postid, $date );
362
+		$date = isset($data['post_date']) ? $data['post_date'] : false;
363
+		self::set_date($postid, $date);
364 364
 		
365
-		do_action( 'lasso_post_updated', $postid, $slug, $status, get_current_user_ID() );
366
-		$response= array(
367
-			'link'   => get_permalink($postid). (($status=='publish') ? '' : '&preview=true')
365
+		do_action('lasso_post_updated', $postid, $slug, $status, get_current_user_ID());
366
+		$response = array(
367
+			'link'   => get_permalink($postid).(($status == 'publish') ? '' : '&preview=true')
368 368
 		);
369 369
 		wp_send_json_success($response);
370 370
 		exit;
@@ -372,11 +372,11 @@  discard block
 block discarded – undo
372 372
 	
373 373
 	public static function enable_metasave($type)
374 374
 	{
375
-		register_rest_field( $type, 'metadata', array(
376
-			'get_callback' => function ( $data ) {
377
-				return get_post_meta( $data['id']);//, '', '' );
375
+		register_rest_field($type, 'metadata', array(
376
+			'get_callback' => function($data) {
377
+				return get_post_meta($data['id']); //, '', '' );
378 378
 			}, 
379
-			'update_callback' => function( $data, $post ) {
379
+			'update_callback' => function($data, $post) {
380 380
 				foreach ($data as $key => $value) {
381 381
 					update_post_meta($post->ID, $key, $value);
382 382
 				}
@@ -388,13 +388,13 @@  discard block
 block discarded – undo
388 388
 	public function editus_do_shortcode()
389 389
 	{
390 390
 		
391
-		$code= $_POST["code"];
391
+		$code = $_POST["code"];
392 392
 		$code = str_replace('\"', '"', $code);
393 393
 		
394
-		$code_wrapped = lasso_wrap_shortcodes( $code);
395
-		$out =  do_shortcode($code);
394
+		$code_wrapped = lasso_wrap_shortcodes($code);
395
+		$out = do_shortcode($code);
396 396
 		if ($out != '') {
397
-			$out =  do_shortcode($code_wrapped);
397
+			$out = do_shortcode($code_wrapped);
398 398
 			echo $out;
399 399
 			exit;
400 400
 		}
@@ -404,7 +404,7 @@  discard block
 block discarded – undo
404 404
 		/** @var \WP_Embed $wp_embed */
405 405
 		global $wp_embed;
406 406
 		$wp_embed->post_ID = $_POST["ID"];
407
-		$out =$wp_embed->run_shortcode( $code_wrapped );
407
+		$out = $wp_embed->run_shortcode($code_wrapped);
408 408
 		
409 409
 		echo $out;
410 410
 		exit;
@@ -413,9 +413,9 @@  discard block
 block discarded – undo
413 413
     public function editus_do_block()
414 414
 	{
415 415
 		
416
-		$code= $_POST["code"];
416
+		$code = $_POST["code"];
417 417
 
418
-        $out = do_blocks( $code );
418
+        $out = do_blocks($code);
419 419
 		
420 420
 		echo $out;
421 421
 		exit;
@@ -425,60 +425,60 @@  discard block
 block discarded – undo
425 425
 	{
426 426
 		
427 427
 		
428
-		$code= $_POST["code"];
428
+		$code = $_POST["code"];
429 429
 		$atts = array(
430 430
 		 );
431 431
 		foreach ($_POST as $key => $value) {
432
-			if ($key !="code" && $key !="action") {
432
+			if ($key != "code" && $key != "action") {
433 433
 				$atts[$key] = $value;
434 434
 			}
435 435
 		}
436 436
 		if ($code == "aesop_video") {
437
-		    require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-video.php');
437
+		    require_once(ABSPATH.'/wp-content/plugins/aesop-story-engine/public/includes/components/component-video.php');
438 438
 		    echo aesop_video_shortcode($atts);
439 439
 		}
440 440
 		else if ($code == "aesop_image") {
441
-		    require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-image.php');
441
+		    require_once(ABSPATH.'/wp-content/plugins/aesop-story-engine/public/includes/components/component-image.php');
442 442
 		    echo aesop_image_shortcode($atts);
443 443
 		}
444 444
 		else if ($code == "aesop_quote") {
445
-		    require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-quote.php');
445
+		    require_once(ABSPATH.'/wp-content/plugins/aesop-story-engine/public/includes/components/component-quote.php');
446 446
 		    echo aesop_quote_shortcode($atts);
447 447
 		}
448 448
 		else if ($code == "aesop_parallax") {
449
-		    require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-parallax.php');
449
+		    require_once(ABSPATH.'/wp-content/plugins/aesop-story-engine/public/includes/components/component-parallax.php');
450 450
 		    echo aesop_parallax_shortcode($atts);
451 451
 		}
452 452
 		else if ($code == "aesop_character") {
453
-		    require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-character.php');
453
+		    require_once(ABSPATH.'/wp-content/plugins/aesop-story-engine/public/includes/components/component-character.php');
454 454
 		    echo aesop_character_shortcode($atts);
455 455
 		}
456 456
 		else if ($code == "aesop_collection") {
457
-		    require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-collections.php');
457
+		    require_once(ABSPATH.'/wp-content/plugins/aesop-story-engine/public/includes/components/component-collections.php');
458 458
 		    echo aesop_collection_shortcode($atts);
459 459
 		}
460 460
 		else if ($code == "aesop_chapter") {
461
-		    require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-heading.php');
461
+		    require_once(ABSPATH.'/wp-content/plugins/aesop-story-engine/public/includes/components/component-heading.php');
462 462
 		    echo aesop_chapter_shortcode($atts);
463 463
 		}
464 464
 		else if ($code == "aesop_content") {
465
-		    require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-cbox.php');
465
+		    require_once(ABSPATH.'/wp-content/plugins/aesop-story-engine/public/includes/components/component-cbox.php');
466 466
 		    echo aesop_content_shortcode($atts, $atts['content_data']);
467 467
 		}
468 468
 		else if ($code == "aesop_gallery") {
469
-		    require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-gallery.php');
470
-		    echo do_shortcode( '[aesop_gallery id="'.$atts["id"].'"]');
469
+		    require_once(ABSPATH.'/wp-content/plugins/aesop-story-engine/public/includes/components/component-gallery.php');
470
+		    echo do_shortcode('[aesop_gallery id="'.$atts["id"].'"]');
471 471
 		}
472 472
 		else if ($code == "aesop_audio") {
473
-		    require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-audio.php');
473
+		    require_once(ABSPATH.'/wp-content/plugins/aesop-story-engine/public/includes/components/component-audio.php');
474 474
 		    echo aesop_audio_shortcode($atts);
475 475
 		}
476 476
 		else if ($code == "aesop_document") {
477
-		    require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-document.php');
477
+		    require_once(ABSPATH.'/wp-content/plugins/aesop-story-engine/public/includes/components/component-document.php');
478 478
 		    echo aesop_document_shortcode($atts);
479 479
 		}
480 480
 		else if ($code == "aesop_timeline_stop") {		
481
-		    require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-timeline.php');
481
+		    require_once(ABSPATH.'/wp-content/plugins/aesop-story-engine/public/includes/components/component-timeline.php');
482 482
 		    echo aesop_timeline_stop_shortcode($atts);
483 483
 		}
484 484
         /*else if ($code == "aesop_content") {
@@ -510,24 +510,24 @@  discard block
 block discarded – undo
510 510
         $extra = "";
511 511
         
512 512
         // try to use srcset and sizes on new WP installs
513
-		if ( function_exists('wp_get_attachment_image_srcset') && $attachment_id = attachment_url_to_postid( $atts['img'] ) ) {
514
-			$srcset = wp_get_attachment_image_srcset( $attachment_id, 'full' );
515
-			$sizes = wp_get_attachment_image_sizes( $attachment_id, 'full' );
513
+		if (function_exists('wp_get_attachment_image_srcset') && $attachment_id = attachment_url_to_postid($atts['img'])) {
514
+			$srcset = wp_get_attachment_image_srcset($attachment_id, 'full');
515
+			$sizes = wp_get_attachment_image_sizes($attachment_id, 'full');
516 516
             $extra = "srcset='$srcset' sizes='$sizes' ";
517 517
         }
518
-        if ($atts['align']=="left") {
518
+        if ($atts['align'] == "left") {
519 519
             $extra .= 'class="alignleft';
520
-        } else if ($atts['align']=="right") {
520
+        } else if ($atts['align'] == "right") {
521 521
             $extra .= 'class="alignright';
522 522
         } else {
523 523
             $extra .= 'class="aligncenter';
524 524
         }
525 525
         if ($atts['imgwidth'] || $atts['imgheight']) {
526 526
             if ($atts['imgwidth']) {
527
-                $extra .= 'width:'. $atts['imgwidth'].';';
527
+                $extra .= 'width:'.$atts['imgwidth'].';';
528 528
             }
529 529
             if ($atts['imgheight']) {
530
-                $extra .= 'height:'. $atts['imgheight'].';';
530
+                $extra .= 'height:'.$atts['imgheight'].';';
531 531
             }
532 532
             
533 533
         }
@@ -539,15 +539,15 @@  discard block
 block discarded – undo
539 539
         //echo ' class="wp-image- lasso--wpimg__wrap lasso-component">';
540 540
         echo ' class="wp-caption lasso-component">';
541 541
         $hrefset = false;
542
-        if ($atts['link'] != '' && (!isset($atts['linkoption']) || $atts['linkoption']=="url" ))
542
+        if ($atts['link'] != '' && (!isset($atts['linkoption']) || $atts['linkoption'] == "url"))
543 543
         {
544
-            echo '<a href="' . $atts['link'] . '">';
544
+            echo '<a href="'.$atts['link'].'">';
545 545
             $hrefset = true;
546
-        } else if (isset($atts['linkoption']) && $atts['linkoption'] == 'img' ) {
547
-            echo '<a href="' . $atts['img'] . '">';
546
+        } else if (isset($atts['linkoption']) && $atts['linkoption'] == 'img') {
547
+            echo '<a href="'.$atts['img'].'">';
548 548
             $hrefset = true;
549 549
         }
550
-        echo '<img src="' . $atts['img'] . '" alt="'. $atts['alt']  .  '" '. $extra. '>';
550
+        echo '<img src="'.$atts['img'].'" alt="'.$atts['alt'].'" '.$extra.'>';
551 551
         if ($hrefset)
552 552
         {
553 553
             echo '</a>';
@@ -567,15 +567,15 @@  discard block
 block discarded – undo
567 567
 			$imgextra = 'class="wp-image-'.$atts['id'].'"';
568 568
 		}
569 569
         $figclass = 'aligncenter';
570
-        if ($atts['align']=="left") {
570
+        if ($atts['align'] == "left") {
571 571
             $figclass = 'alignleft';
572
-        } else if ($atts['align']=="right") {
572
+        } else if ($atts['align'] == "right") {
573 573
             $figclass = 'alignright';
574 574
         } else {
575 575
             $figclass = 'aligncenter';
576 576
         }
577 577
         
578
-        if ($atts['align']=="left" || $atts['align']=="right") {
578
+        if ($atts['align'] == "left" || $atts['align'] == "right") {
579 579
             echo '<div class="wp-block-image" data-component-type="wpimg-block">';
580 580
             echo '<figure class="'.$figclass.' size-large" contenteditable="false">'; 
581 581
         } else {      
@@ -584,7 +584,7 @@  discard block
 block discarded – undo
584 584
         if (!empty($atts['link'])) {
585 585
             echo '<a href="'.$atts['link'].'">';
586 586
         }        
587
-        echo '<img src="' . $atts['img'] . '" alt="'. $atts['alt']  . '"' . $imgextra . ' >';
587
+        echo '<img src="'.$atts['img'].'" alt="'.$atts['alt'].'"'.$imgextra.' >';
588 588
         if ($atts['caption'])
589 589
         {
590 590
             echo '<figcaption>'.$atts['caption'].'</figcaption>';
@@ -593,7 +593,7 @@  discard block
 block discarded – undo
593 593
             echo '</a>';
594 594
         }
595 595
         echo '</figure>';
596
-        if ($atts['align']=="left" || $atts['align']=="right") {
596
+        if ($atts['align'] == "left" || $atts['align'] == "right") {
597 597
             echo '</div>';
598 598
         }  
599 599
         echo '<p><br></p>';
@@ -604,20 +604,20 @@  discard block
 block discarded – undo
604 604
 	public function get_ase_options()
605 605
 	{
606 606
 		$blob = lasso_editor_options_blob();
607
-		$code= $_POST["component"];
607
+		$code = $_POST["component"];
608 608
 		echo $blob[$code];
609 609
 		exit; 
610 610
 	}
611 611
 	
612 612
 	public function delete_post( ) {
613 613
 
614
-		$postid = isset( $_POST['postid'] ) ? $_POST['postid'] : false;
614
+		$postid = isset($_POST['postid']) ? $_POST['postid'] : false;
615 615
 
616 616
 		// bail out if the current user can't publish posts
617
-		if ( !lasso_user_can( 'delete_post', $postid ) )
617
+		if (!lasso_user_can('delete_post', $postid))
618 618
 			return;
619 619
 		
620
-		if (!wp_verify_nonce( $_POST[ 'nonce' ], 'lasso_delete_post' )) {
620
+		if (!wp_verify_nonce($_POST['nonce'], 'lasso_delete_post')) {
621 621
 			wp_send_json_error();
622 622
 			exit;
623 623
 		}
@@ -627,9 +627,9 @@  discard block
 block discarded – undo
627 627
 			'post_status' 	=> 'trash'
628 628
 		);
629 629
 
630
-		wp_update_post( apply_filters( 'lasso_object_deleted_args', $args ) );
630
+		wp_update_post(apply_filters('lasso_object_deleted_args', $args));
631 631
 
632
-		do_action( 'lasso_object_deleted', $postid, get_current_user_ID() );
632
+		do_action('lasso_object_deleted', $postid, get_current_user_ID());
633 633
 
634 634
 		exit;
635 635
 	}
@@ -637,40 +637,40 @@  discard block
 block discarded – undo
637 637
     /* This function doesn't actually publish post, but should be called when a post is published */
638 638
     public function on_publish_post( ) {
639 639
 
640
-		$post_id = isset( $_POST['postid'] ) ? $_POST['postid'] : false;
640
+		$post_id = isset($_POST['postid']) ? $_POST['postid'] : false;
641 641
         
642
-        do_action( 'transition_post_status', 'publish', 'draft', get_post( $post_id ) );
642
+        do_action('transition_post_status', 'publish', 'draft', get_post($post_id));
643 643
 
644 644
 		exit;
645 645
 	}
646 646
 	
647 647
 	public function set_featured_img( ) {
648 648
 
649
-		$postid  	= isset( $_POST['postid'] ) ? $_POST['postid'] : false;
650
-		$image_id  	= isset( $_POST['image_id'] ) ? absint( $_POST['image_id'] ) : false;
651
-		if (!wp_verify_nonce( $_POST[ 'nonce' ], 'lasso_gallery' )) {
649
+		$postid = isset($_POST['postid']) ? $_POST['postid'] : false;
650
+		$image_id = isset($_POST['image_id']) ? absint($_POST['image_id']) : false;
651
+		if (!wp_verify_nonce($_POST['nonce'], 'lasso_gallery')) {
652 652
 			wp_send_json_error();
653 653
 			exit;
654 654
 		}	
655 655
 
656
-		set_post_thumbnail( $postid, $image_id );
656
+		set_post_thumbnail($postid, $image_id);
657 657
 
658
-		do_action( 'lasso_featured_image_set', $postid, $image_id, get_current_user_ID() );
658
+		do_action('lasso_featured_image_set', $postid, $image_id, get_current_user_ID());
659 659
 
660 660
 		exit;
661 661
 	}
662 662
 	
663 663
 	public function del_featured_img( ) {
664 664
 
665
-		$postid  = isset( $_POST['postid'] ) ? $_POST['postid'] : false;
666
-		if (!wp_verify_nonce( $_POST[ 'nonce' ], 'lasso_gallery' )) {
665
+		$postid = isset($_POST['postid']) ? $_POST['postid'] : false;
666
+		if (!wp_verify_nonce($_POST['nonce'], 'lasso_gallery')) {
667 667
 			wp_send_json_error();
668 668
 			exit;
669 669
 		}	
670 670
 
671
-		delete_post_thumbnail( $postid );
671
+		delete_post_thumbnail($postid);
672 672
 
673
-		do_action( 'lasso_featured_image_deleted', $postid, get_current_user_ID() );
673
+		do_action('lasso_featured_image_deleted', $postid, get_current_user_ID());
674 674
 
675 675
 		exit;
676 676
 	}
@@ -691,17 +691,17 @@  discard block
 block discarded – undo
691 691
 		return self::$revisions;
692 692
 	}*/
693 693
 	
694
-	public function set_post_terms( $postid, $value, $taxonomy ) {
695
-		if( $value ) {
696
-			$value = explode( ',', $value );
697
-			$allow_new_category = lasso_editor_get_option( 'allow_new_category', 'lasso_editor' );
694
+	public function set_post_terms($postid, $value, $taxonomy) {
695
+		if ($value) {
696
+			$value = explode(',', $value);
697
+			$allow_new_category = lasso_editor_get_option('allow_new_category', 'lasso_editor');
698 698
 			
699
-			if ($taxonomy =='category') {
699
+			if ($taxonomy == 'category') {
700 700
                 // convert from names to category ids
701 701
 				$cats = array();
702 702
 				foreach ($value as $cat) {
703 703
 					$cat_id = get_cat_ID($cat);
704
-					if ($cat_id !=0) {
704
+					if ($cat_id != 0) {
705 705
 						$cats [] = $cat_id;
706 706
 					} else if ($allow_new_category) {
707 707
 					    $cats [] = wp_create_category($cat);
@@ -710,71 +710,71 @@  discard block
 block discarded – undo
710 710
 				$value = $cats;
711 711
 			}
712 712
 	
713
-			$result = wp_set_object_terms( $postid, $value, $taxonomy );
713
+			$result = wp_set_object_terms($postid, $value, $taxonomy);
714 714
 		}
715
-		else  {
715
+		else {
716 716
 			//remove all terms from post
717
-			$result = wp_set_object_terms( $postid, null, $taxonomy );
717
+			$result = wp_set_object_terms($postid, null, $taxonomy);
718 718
 		}
719 719
 
720
-		if ( ! is_wp_error( $result ) ) {
720
+		if (!is_wp_error($result)) {
721 721
 			return true;
722
-		}else{
722
+		} else {
723 723
 			return false;
724 724
 		}
725 725
 	}
726 726
     
727 727
     public function create_gallery( ) {
728 728
 
729
-		$postid  	= isset( $_POST['postid'] ) ? $_POST['postid'] : false;
729
+		$postid = isset($_POST['postid']) ? $_POST['postid'] : false;
730 730
         
731
-		if (!wp_verify_nonce( $_POST[ 'nonce' ], 'lasso_gallery' )) {
731
+		if (!wp_verify_nonce($_POST['nonce'], 'lasso_gallery')) {
732 732
 			wp_send_json_error();
733 733
 			exit;
734 734
 		}	
735 735
 
736
-		if (  ! lasso_user_can( 'publish_posts' ) ) {
736
+		if (!lasso_user_can('publish_posts')) {
737 737
 			return false;
738 738
 
739 739
 		}
740 740
 
741
-		$gallery_ids = isset( $_POST['gallery_ids'] ) ? $_POST['gallery_ids'] : false;
741
+		$gallery_ids = isset($_POST['gallery_ids']) ? $_POST['gallery_ids'] : false;
742 742
 
743 743
 		// bail if no gallery ids
744
-		if ( empty( $gallery_ids ) ) {
744
+		if (empty($gallery_ids)) {
745 745
 			return false;
746 746
 		}
747 747
 
748
-		$type   		 = isset( $_POST['gallery_type'] ) ? $_POST['gallery_type'] : false;
749
-		$edgallerytitle	 = isset( $_POST['edgallerytitle'] ) ? $_POST['edgallerytitle'] : $postid.'-'.rand();
748
+		$type = isset($_POST['gallery_type']) ? $_POST['gallery_type'] : false;
749
+		$edgallerytitle = isset($_POST['edgallerytitle']) ? $_POST['edgallerytitle'] : $postid.'-'.rand();
750 750
 
751 751
 		// insert a new gallery
752 752
 		$args = array(
753
-			'post_title'    => $edgallerytitle ,
753
+			'post_title'    => $edgallerytitle,
754 754
 			'post_status'   => 'publish',
755 755
 			'post_type'     => 'ai_galleries'
756 756
 		);
757 757
 
758
-		$postid = wp_insert_post( apply_filters( 'lasso_insert_gallery_args', $args ) );
758
+		$postid = wp_insert_post(apply_filters('lasso_insert_gallery_args', $args));
759 759
 
760 760
 		// update gallery ids
761
-		if ( $gallery_ids ) {
761
+		if ($gallery_ids) {
762 762
 
763
-			update_post_meta( $postid, '_ase_gallery_images', $gallery_ids );
763
+			update_post_meta($postid, '_ase_gallery_images', $gallery_ids);
764 764
 
765 765
 		}
766 766
 
767 767
 		// update the gallery type
768
-		if ( !empty( $type ) ) {
768
+		if (!empty($type)) {
769 769
 
770
-			update_post_meta( $postid, 'aesop_gallery_type', $type );
770
+			update_post_meta($postid, 'aesop_gallery_type', $type);
771 771
 
772 772
 		}
773 773
 
774
-		do_action( 'lasso_gallery_published', $postid, $gallery_ids, get_current_user_ID() );
774
+		do_action('lasso_gallery_published', $postid, $gallery_ids, get_current_user_ID());
775 775
 
776 776
 
777
-		echo json_encode( array(
777
+		echo json_encode(array(
778 778
 			'message' => 'gallery-created',
779 779
 			'id' => $postid)
780 780
 		);
@@ -783,114 +783,114 @@  discard block
 block discarded – undo
783 783
     
784 784
     public function update_gallery( ) {
785 785
         
786
-		$options      = isset( $_POST['fields'] ) ? $_POST['fields'] : false;
786
+		$options      = isset($_POST['fields']) ? $_POST['fields'] : false;
787 787
         
788
-		$postid   	  = !empty( $options ) ? (int) $options['id'] : false;
789
-		$gallery_ids  = isset( $_POST['gallery_ids'] ) ? $_POST['gallery_ids'] : false;
790
-		if ( $_POST[ 'gallery_type' ] ) {
791
-			$type = $_POST[ 'gallery_type' ];
792
-		}elseif ( ! empty( $options ) && $options[ 'galleryType' ] ) {
793
-			$type = $options[ 'galleryType' ];
794
-		}else{
788
+		$postid = !empty($options) ? (int) $options['id'] : false;
789
+		$gallery_ids  = isset($_POST['gallery_ids']) ? $_POST['gallery_ids'] : false;
790
+		if ($_POST['gallery_type']) {
791
+			$type = $_POST['gallery_type'];
792
+		}elseif (!empty($options) && $options['galleryType']) {
793
+			$type = $options['galleryType'];
794
+		} else {
795 795
 			$type = false;
796 796
 		}
797 797
 
798
-		self::save_gallery_options( $postid, $gallery_ids, $options, $type );
798
+		self::save_gallery_options($postid, $gallery_ids, $options, $type);
799 799
 
800
-        echo json_encode( array('message' => 'gallery-updated') );
800
+        echo json_encode(array('message' => 'gallery-updated'));
801 801
 
802 802
         exit;
803 803
 	}
804 804
     
805
-    public function save_gallery_options( $postid, $gallery_ids, $options, $type = false ) {
805
+    public function save_gallery_options($postid, $gallery_ids, $options, $type = false) {
806 806
 
807 807
 		// gallery width
808
-		$gallery_width = isset( $options['width'] ) ? $options['width'] : false;
808
+		$gallery_width = isset($options['width']) ? $options['width'] : false;
809 809
 
810 810
 		// gallery grid item width
811
-		$item_width = isset( $options['itemwidth'] ) ? $options['itemwidth'] : false;
811
+		$item_width = isset($options['itemwidth']) ? $options['itemwidth'] : false;
812 812
 
813 813
 		// caption
814
-		$caption = isset( $options['caption'] ) ? $options['caption'] : false;
814
+		$caption = isset($options['caption']) ? $options['caption'] : false;
815 815
 
816 816
 		// gallery transition
817
-		$transition = isset( $options['transition'] ) ? $options['transition'] : false;
817
+		$transition = isset($options['transition']) ? $options['transition'] : false;
818 818
 
819 819
 		// gallery transition speed
820
-		$transitionSpeed = isset( $options['speed'] ) ? $options['speed'] : false;
820
+		$transitionSpeed = isset($options['speed']) ? $options['speed'] : false;
821 821
 
822 822
 		// gallery hide thumbs
823
-		$hideThumbs = isset( $options['hideThumbs'] ) ? $options['hideThumbs'] : false;
823
+		$hideThumbs = isset($options['hideThumbs']) ? $options['hideThumbs'] : false;
824 824
 
825 825
 		// photoset layout hardwired to on for now
826
-		$psLayout = isset( $options['pslayout'] ) ? $options['pslayout'] : false;
826
+		$psLayout = isset($options['pslayout']) ? $options['pslayout'] : false;
827 827
 
828 828
 		// photoset layout
829
-		$psLightbox = 'on';//isset( $options['pslightbox'] ) ? $options['pslightbox'] : false;
829
+		$psLightbox = 'on'; //isset( $options['pslightbox'] ) ? $options['pslightbox'] : false;
830 830
 		
831 831
 		// hero gallery height
832
-		$gallery_height = isset( $options['height'] ) ? $options['height'] : false;
832
+		$gallery_height = isset($options['height']) ? $options['height'] : false;
833 833
 
834 834
 		// update gallery ids
835
-		if ( !empty( $gallery_ids ) ) {
835
+		if (!empty($gallery_ids)) {
836 836
 
837
-			update_post_meta( $postid, '_ase_gallery_images', $gallery_ids );
837
+			update_post_meta($postid, '_ase_gallery_images', $gallery_ids);
838 838
 
839 839
 		}
840 840
 
841
-		update_post_meta( $postid, 'aesop_gallery_type', sanitize_text_field( trim( $type ) ) );
841
+		update_post_meta($postid, 'aesop_gallery_type', sanitize_text_field(trim($type)));
842 842
 
843
-		update_post_meta( $postid, 'aesop_gallery_width', sanitize_text_field( trim( $gallery_width ) ) );
843
+		update_post_meta($postid, 'aesop_gallery_width', sanitize_text_field(trim($gallery_width)));
844 844
 
845
-		update_post_meta( $postid, 'aesop_grid_gallery_width', sanitize_text_field( trim( $item_width ) ) );
845
+		update_post_meta($postid, 'aesop_grid_gallery_width', sanitize_text_field(trim($item_width)));
846 846
 
847
-		update_post_meta( $postid, 'aesop_gallery_caption', sanitize_text_field( trim( $caption ) ) );
847
+		update_post_meta($postid, 'aesop_gallery_caption', sanitize_text_field(trim($caption)));
848 848
 
849
-		update_post_meta( $postid, 'aesop_thumb_gallery_transition', sanitize_text_field( trim( $transition ) ) );
849
+		update_post_meta($postid, 'aesop_thumb_gallery_transition', sanitize_text_field(trim($transition)));
850 850
 
851
-		update_post_meta( $postid, 'aesop_thumb_gallery_transition_speed', absint( trim( $transitionSpeed ) ) );
851
+		update_post_meta($postid, 'aesop_thumb_gallery_transition_speed', absint(trim($transitionSpeed)));
852 852
 
853
-		update_post_meta( $postid, 'aesop_thumb_gallery_hide_thumbs', sanitize_text_field( trim( $hideThumbs ) ) );
853
+		update_post_meta($postid, 'aesop_thumb_gallery_hide_thumbs', sanitize_text_field(trim($hideThumbs)));
854 854
 
855
-		update_post_meta( $postid, 'aesop_photoset_gallery_layout', sanitize_text_field( trim( $psLayout ) ) );
855
+		update_post_meta($postid, 'aesop_photoset_gallery_layout', sanitize_text_field(trim($psLayout)));
856 856
 
857
-		update_post_meta( $postid, 'aesop_photoset_gallery_lightbox', sanitize_text_field( trim( $psLightbox ) ) );
857
+		update_post_meta($postid, 'aesop_photoset_gallery_lightbox', sanitize_text_field(trim($psLightbox)));
858 858
 		
859
-		update_post_meta( $postid, 'aesop_hero_gallery_height', sanitize_text_field( trim( $gallery_height ) ) );
859
+		update_post_meta($postid, 'aesop_hero_gallery_height', sanitize_text_field(trim($gallery_height)));
860 860
 		
861 861
 		//hardwired for now
862 862
 		
863
-		update_post_meta( $postid, 'aesop_hero_gallery_transition_speed', 300 );
863
+		update_post_meta($postid, 'aesop_hero_gallery_transition_speed', 300);
864 864
 
865 865
 	}
866 866
 	
867
-	function getEnglishMonthName($foreignMonthName){
867
+	function getEnglishMonthName($foreignMonthName) {
868 868
 
869 869
 		  setlocale(LC_ALL, 'en_US');
870 870
 
871
-		  $month_numbers = range(1,12);
871
+		  $month_numbers = range(1, 12);
872 872
 
873
-		  foreach($month_numbers as $month)
874
-			$english_months[] = strftime('%B',mktime(0,0,0,$month,1,2011));
873
+		  foreach ($month_numbers as $month)
874
+			$english_months[] = strftime('%B', mktime(0, 0, 0, $month, 1, 2011));
875 875
 
876 876
 		  setlocale(LC_ALL, get_locale());
877 877
 
878
-		  foreach($month_numbers as $month)
879
-			$foreign_months[] = utf8_encode(strftime('%B',mktime(0,0,0,$month,1,2011)));
878
+		  foreach ($month_numbers as $month)
879
+			$foreign_months[] = utf8_encode(strftime('%B', mktime(0, 0, 0, $month, 1, 2011)));
880 880
 
881 881
 		  return str_replace($foreign_months, $english_months, $foreignMonthName);
882 882
 	}
883 883
 
884 884
 
885 885
 	
886
-	public function set_date( $postid, $value) {
887
-		if( $value ) {
888
-			$value = self::getEnglishMonthName($value)." ".date("H:i:s", current_time( 'timestamp', 1 ));
886
+	public function set_date($postid, $value) {
887
+		if ($value) {
888
+			$value = self::getEnglishMonthName($value)." ".date("H:i:s", current_time('timestamp', 1));
889 889
             wp_update_post(
890
-				array (
890
+				array(
891 891
 					'ID'            => $postid, // ID of the post to update
892
-					'post_date'     => date( 'Y-m-d H:i:s',  strtotime($value) ),
893
-					'post_date_gmt'     => gmdate( 'Y-m-d H:i:s',  strtotime($value) ),
892
+					'post_date'     => date('Y-m-d H:i:s', strtotime($value)),
893
+					'post_date_gmt'     => gmdate('Y-m-d H:i:s', strtotime($value)),
894 894
 				)
895 895
 			);
896 896
 		}
Please login to merge, or discard this patch.
public/includes/editor-modules.php 2 patches
Indentation   +196 added lines, -196 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
 				height: 42px;
115 115
 			}
116 116
 		<?php
117
-            } 
117
+			} 
118 118
 		} else { 
119 119
 		?> 
120 120
 
@@ -123,8 +123,8 @@  discard block
 block discarded – undo
123 123
             }
124 124
             
125 125
         <?php
126
-        }
127
-        ?>
126
+		}
127
+		?>
128 128
         </style>
129 129
 		<div id="lasso--controls" class="lasso-post-status--<?php echo sanitize_html_class( $status );?> <?php echo sanitize_html_class( $custom_classes );?>" data-post-id="<?php echo get_the_ID();?>" >
130 130
 
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
 	
241 241
 	$sc_saving_class = ('on' == $shortcodify_disabled || $ase_status == 'ase-not-active')  ? 'shortcodify-disabled' : 'shortcodify-enabled';
242 242
 
243
-    $use_wp_block_image = lasso_editor_get_option('use_wp_block_image', 'lasso_editor','off');
243
+	$use_wp_block_image = lasso_editor_get_option('use_wp_block_image', 'lasso_editor','off');
244 244
 
245 245
 	?>
246 246
 	<div class="lasso--text-popup lasso-editor-controls--wrap <?php echo $toolbar_class.' '.$ase_status.' '.sanitize_html_class( $custom_classes );?>"  style="display:none;">
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
 function lasso_editor_text_toolbar() {
299 299
 
300 300
 	ob_start();
301
-    $text_select_popup = lasso_editor_get_option('text_select_popup', 'lasso_editor', false);
301
+	$text_select_popup = lasso_editor_get_option('text_select_popup', 'lasso_editor', false);
302 302
 
303 303
 	
304 304
 	$is_mobile = wp_is_mobile();
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
 	$toolbar_class  = $toolbar_headings ? 'toolbar-extended' : false;
318 318
 	
319 319
 	// mobile styles
320
-    $mobile_class = $is_mobile ? 'lasso-mobile' : false;
320
+	$mobile_class = $is_mobile ? 'lasso-mobile' : false;
321 321
 	$mobile_style =$is_mobile ? 'style="bottom:0px;"' : null;
322 322
 	
323 323
 	//show color
@@ -332,7 +332,7 @@  discard block
 block discarded – undo
332 332
 	
333 333
 	$sc_saving_class = ('on' == $shortcodify_disabled || $ase_status == 'ase-not-active')  ? 'shortcodify-disabled' : 'shortcodify-enabled';
334 334
 
335
-    $use_wp_block_image = lasso_editor_get_option('use_wp_block_image', 'lasso_editor','off');
335
+	$use_wp_block_image = lasso_editor_get_option('use_wp_block_image', 'lasso_editor','off');
336 336
 
337 337
 	?>
338 338
 	<div class="lasso--toolbar_wrap lasso-editor-controls--wrap <?php echo $toolbar_class.' '.$mobile_class.' '.$ase_status.' '.sanitize_html_class( $custom_classes );?>" <?php echo $mobile_style ?>>
@@ -556,7 +556,7 @@  discard block
 block discarded – undo
556 556
 	
557 557
 	//editor options
558 558
 	$allow_change_date = lasso_editor_get_option('allow_change_date', 'lasso_editor');
559
-    $allow_edit_excerpt = lasso_editor_get_option('allow_edit_excerpt', 'lasso_editor');
559
+	$allow_edit_excerpt = lasso_editor_get_option('allow_edit_excerpt', 'lasso_editor');
560 560
 	$no_url_setting = lasso_editor_get_option('no_url_setting', 'lasso_editor');
561 561
 	$support_custom_taxonomy   = lasso_editor_get_option( 'support_custom_taxonomy', 'lasso_editor' );
562 562
 	
@@ -577,7 +577,7 @@  discard block
 block discarded – undo
577 577
 	// do we support pending status
578 578
 	$no_pending_status = lasso_editor_get_option('no_pending_status', 'lasso_editor');
579 579
     
580
-    $excerpt = $post->post_excerpt;
580
+	$excerpt = $post->post_excerpt;
581 581
 
582 582
 ?>
583 583
 	<div id="lasso--post-settings__modal" class="lasso--modal lassoShowAnimate <?php echo sanitize_html_class( $custom_classes );?>">
@@ -674,7 +674,7 @@  discard block
 block discarded – undo
674 674
 						}?>
675 675
 						<?php 
676 676
 						if ($allow_change_date) { 
677
-						    $dateformat = get_option( 'date_format' ); 
677
+							$dateformat = get_option( 'date_format' ); 
678 678
 						?>
679 679
 						    <label><?php _e( 'Post Date', 'lasso' ); ?></label>
680 680
 							<input type="text" class="editus_custom_date" name="post_date" value="<?php echo get_the_time($dateformat, $postid);?>"/>
@@ -768,8 +768,8 @@  discard block
 block discarded – undo
768 768
 								$types = lasso_post_types_names();
769 769
 								if ( !empty( $types ) ) {
770 770
 									foreach( $types as $name => $label ) 
771
-                                    {   	
772
-                                        $type = $name;									
771
+									{   	
772
+										$type = $name;									
773 773
 										//$type = preg_replace( '/s\b/','', $name );
774 774
 										if ($type == 'page' && !current_user_can('edit_pages')) {
775 775
 											continue;
@@ -791,7 +791,7 @@  discard block
 block discarded – undo
791 791
 						if ( !empty( $types ) ) {
792 792
 							// get the first element
793 793
 							$keys = array_keys($types);
794
-						    $type =$keys[0];						
794
+							$type =$keys[0];						
795 795
 							//$type = preg_replace( '/s\b/','', $type );
796 796
 							printf( '<input type="hidden" name="object" value="%s">', lcfirst( esc_attr( $type ) ) );		
797 797
 						}
@@ -819,8 +819,8 @@  discard block
 block discarded – undo
819 819
 	global $post;
820 820
 	
821 821
 	global $wp_post_types;
822
-    $labels = &$wp_post_types['post']->labels;
823
-    $labels->name = 'Articles';
822
+	$labels = &$wp_post_types['post']->labels;
823
+	$labels->name = 'Articles';
824 824
 
825 825
 	ob_start();
826 826
 
@@ -880,7 +880,7 @@  discard block
 block discarded – undo
880 880
 	ob_start();
881 881
 
882 882
 
883
-    $use_old_wpimg = lasso_editor_get_option('use_old_wpimg', 'lasso_editor','off');
883
+	$use_old_wpimg = lasso_editor_get_option('use_old_wpimg', 'lasso_editor','off');
884 884
     
885 885
 	// let users add custom css classes
886 886
 	$custom_classes = apply_filters( 'lasso_wpimg_classes', '' );
@@ -982,10 +982,10 @@  discard block
 block discarded – undo
982 982
 function lasso_editor_options_blob() {
983 983
 
984 984
 	$codes   = function_exists( 'aesop_shortcodes' ) ? aesop_shortcodes() : array();
985
-    $codes   = add_wpimg_options( $codes );
985
+	$codes   = add_wpimg_options( $codes );
986 986
 	$codes   = add_wpimg_block_options( $codes );
987 987
 	$codes   = add_wpcover_block_options( $codes );
988
-    $codes   = apply_filters( 'lasso_custom_options', $codes );
988
+	$codes   = apply_filters( 'lasso_custom_options', $codes );
989 989
 	$galleries  = function_exists( 'lasso_editor_galleries_exist' ) && lasso_editor_galleries_exist() ? 'has-galleries' : 'creating-gallery';
990 990
 
991 991
 	$nonce = wp_create_nonce( 'lasso_gallery' );
@@ -1087,9 +1087,9 @@  discard block
 block discarded – undo
1087 1087
 		$return .= '</form>';
1088 1088
 
1089 1089
 		// extra JS codes
1090
-        if (isset($shortcode['codes'])) {
1091
-		    $return .= $shortcode['codes'];
1092
-        }
1090
+		if (isset($shortcode['codes'])) {
1091
+			$return .= $shortcode['codes'];
1092
+		}
1093 1093
 		$blob[$slug] = $return;
1094 1094
 	}
1095 1095
 
@@ -1098,95 +1098,95 @@  discard block
 block discarded – undo
1098 1098
 
1099 1099
 
1100 1100
 function add_wpimg_options( $shortcodes ) {
1101
-    $custom = array(
1102
-        'wpimg'    => array(
1103
-            'name'     => __( 'Image', 'lasso' ),
1104
-            'type'     => 'single',
1105
-            'atts'     => array(
1106
-                'img'    => array(
1107
-                    'type'  => 'media_upload',
1108
-                    'default'  => '',
1109
-                    'desc'   => __( 'Image URL', 'lasso' ),
1110
-                    'tip'  => __( 'URL for the image. Click <em>Select Media</em> to open the WordPress Media Library.', 'aesop-core' )
1111
-                ),
1112
-                'align'    => array(
1113
-                    'type'  => 'select',
1114
-                    'values'  => array(						
1115
-                        array(
1116
-                            'value' => 'center',
1117
-                            'name' => __( 'Center', 'aesop-core' )
1118
-                        ),
1119
-                        array(
1120
-                            'value' => 'left',
1121
-                            'name' => __( 'Left', 'aesop-core' )
1122
-                        ),
1123
-                        array(
1124
-                            'value' => 'right',
1125
-                            'name' => __( 'Right', 'aesop-core' )
1126
-                        ),
1127
-                    ),
1128
-                    'default'  => 'center',
1129
-                    'desc'   => __( 'Alignment', 'lasso' ),
1130
-                    'tip'=>''
1131
-                ),			
1101
+	$custom = array(
1102
+		'wpimg'    => array(
1103
+			'name'     => __( 'Image', 'lasso' ),
1104
+			'type'     => 'single',
1105
+			'atts'     => array(
1106
+				'img'    => array(
1107
+					'type'  => 'media_upload',
1108
+					'default'  => '',
1109
+					'desc'   => __( 'Image URL', 'lasso' ),
1110
+					'tip'  => __( 'URL for the image. Click <em>Select Media</em> to open the WordPress Media Library.', 'aesop-core' )
1111
+				),
1112
+				'align'    => array(
1113
+					'type'  => 'select',
1114
+					'values'  => array(						
1115
+						array(
1116
+							'value' => 'center',
1117
+							'name' => __( 'Center', 'aesop-core' )
1118
+						),
1119
+						array(
1120
+							'value' => 'left',
1121
+							'name' => __( 'Left', 'aesop-core' )
1122
+						),
1123
+						array(
1124
+							'value' => 'right',
1125
+							'name' => __( 'Right', 'aesop-core' )
1126
+						),
1127
+					),
1128
+					'default'  => 'center',
1129
+					'desc'   => __( 'Alignment', 'lasso' ),
1130
+					'tip'=>''
1131
+				),			
1132 1132
                 
1133
-                'imgwidth'    => array(
1134
-                    'type'  => 'text_small',
1135
-                    'default'  => '300px',
1136
-                    'desc'   => __( 'Image Width', 'lasso' ),
1137
-                    'tip'  => __( 'Width of the image. You can enter the size in pixels or percentage such as <code>40%</code> or <code>500px</code>.', 'aesop-core' )
1138
-                ),
1139
-                'imgheight'    => array(
1140
-                    'type'  => 'text_small',
1141
-                    'default'  => '',
1142
-                    'desc'   => __( 'Image Height', 'lasso' ),
1143
-                    'tip'  => __( 'Used only for the Panorama mode. Can be set using pixel values such as <code>500px</code>. If unspecified, the original height would be used. ', 'aesop-core' )
1144
-                ),	
1145
-                'linkoption'    => array(
1146
-                    'type'  => 'select',
1147
-                    'values'  => array(						
1148
-                        array(
1149
-                            'value' => 'none',
1150
-                            'name' => __( 'None', 'aesop-core' )
1151
-                        ),
1152
-                        array(
1153
-                            'value' => 'img',
1154
-                            'name' => __( 'Image', 'aesop-core' )
1155
-                        ),
1156
-                        array(
1157
-                            'value' => 'url',
1158
-                            'name' => __( 'URL', 'aesop-core' )
1159
-                        ),
1160
-                    ),
1161
-                    'default'  => 'none',
1162
-                    'desc'   => __( 'Link', 'lasso' ),
1163
-                    'tip'  => __( 'Click leads to:', 'lasso' )
1164
-                ),				
1133
+				'imgwidth'    => array(
1134
+					'type'  => 'text_small',
1135
+					'default'  => '300px',
1136
+					'desc'   => __( 'Image Width', 'lasso' ),
1137
+					'tip'  => __( 'Width of the image. You can enter the size in pixels or percentage such as <code>40%</code> or <code>500px</code>.', 'aesop-core' )
1138
+				),
1139
+				'imgheight'    => array(
1140
+					'type'  => 'text_small',
1141
+					'default'  => '',
1142
+					'desc'   => __( 'Image Height', 'lasso' ),
1143
+					'tip'  => __( 'Used only for the Panorama mode. Can be set using pixel values such as <code>500px</code>. If unspecified, the original height would be used. ', 'aesop-core' )
1144
+				),	
1145
+				'linkoption'    => array(
1146
+					'type'  => 'select',
1147
+					'values'  => array(						
1148
+						array(
1149
+							'value' => 'none',
1150
+							'name' => __( 'None', 'aesop-core' )
1151
+						),
1152
+						array(
1153
+							'value' => 'img',
1154
+							'name' => __( 'Image', 'aesop-core' )
1155
+						),
1156
+						array(
1157
+							'value' => 'url',
1158
+							'name' => __( 'URL', 'aesop-core' )
1159
+						),
1160
+					),
1161
+					'default'  => 'none',
1162
+					'desc'   => __( 'Link', 'lasso' ),
1163
+					'tip'  => __( 'Click leads to:', 'lasso' )
1164
+				),				
1165 1165
                 
1166
-                'link'    => array(
1167
-                    'type'  => 'text',
1168
-                    'default'  => '',
1169
-                    'desc'   => __( 'URL Link', 'lasso' ),
1170
-                    'tip'  => __( 'URL link', 'lasso' )
1171
-                ),
1172
-                'alt'    => array(
1173
-                    'type'  => 'text',
1174
-                    'default'  => '',
1175
-                    'desc'   => __( 'Image ALT', 'lasso' ),
1176
-                    'tip'  => __( 'ALT tag used for the image. Primarily used for SEO purposes.', 'lasso' )
1177
-                ),
1166
+				'link'    => array(
1167
+					'type'  => 'text',
1168
+					'default'  => '',
1169
+					'desc'   => __( 'URL Link', 'lasso' ),
1170
+					'tip'  => __( 'URL link', 'lasso' )
1171
+				),
1172
+				'alt'    => array(
1173
+					'type'  => 'text',
1174
+					'default'  => '',
1175
+					'desc'   => __( 'Image ALT', 'lasso' ),
1176
+					'tip'  => __( 'ALT tag used for the image. Primarily used for SEO purposes.', 'lasso' )
1177
+				),
1178 1178
                 
1179
-                'caption'    => array(
1180
-                    'type'  => 'text_area',
1181
-                    'default'  => '',
1182
-                    'desc'   => __( 'Caption', 'lasso' ),
1183
-                    'tip'  => __( 'Optional caption for the image.', 'lasso' )
1184
-                ),
1179
+				'caption'    => array(
1180
+					'type'  => 'text_area',
1181
+					'default'  => '',
1182
+					'desc'   => __( 'Caption', 'lasso' ),
1183
+					'tip'  => __( 'Optional caption for the image.', 'lasso' )
1184
+				),
1185 1185
                 
1186 1186
 
1187
-            ),
1188
-            'desc'     => __( 'An image.', 'aesop-core' ),
1189
-            'codes'    => '<script>	            
1187
+			),
1188
+			'desc'     => __( 'An image.', 'aesop-core' ),
1189
+			'codes'    => '<script>	            
1190 1190
 						jQuery(document).ready(function($){
1191 1191
                             function linkSetting(l){								
1192 1192
 							    if ( l=="url") {
@@ -1206,101 +1206,101 @@  discard block
 block discarded – undo
1206 1206
 							})
1207 1207
 						});
1208 1208
 			           </script>'
1209
-        )
1210
-    );
1209
+		)
1210
+	);
1211 1211
 
1212
-    return array_merge( $shortcodes, $custom );
1212
+	return array_merge( $shortcodes, $custom );
1213 1213
 }
1214 1214
 
1215 1215
 function add_wpimg_block_options( $shortcodes ) {
1216
-    $custom = array(
1217
-        'wpimg-block'    => array(
1218
-            'name'     => __( 'Image', 'lasso' ),
1219
-            'type'     => 'single',
1220
-            'atts'     => array(
1221
-                'img'    => array(
1222
-                    'type'  => 'media_upload',
1223
-                    'default'  => '',
1224
-                    'desc'   => __( 'Image URL', 'lasso' ),
1225
-                    'tip'  => __( 'URL for the image. Click <em>Select Media</em> to open the WordPress Media Library.', 'aesop-core' )
1226
-                ),
1227
-                'align'    => array(
1228
-                    'type'  => 'select',
1229
-                    'values'  => array(						
1230
-                        array(
1231
-                            'value' => 'center',
1232
-                            'name' => __( 'Center', 'aesop-core' )
1233
-                        ),
1234
-                        array(
1235
-                            'value' => 'left',
1236
-                            'name' => __( 'Left', 'aesop-core' )
1237
-                        ),
1238
-                        array(
1239
-                            'value' => 'right',
1240
-                            'name' => __( 'Right', 'aesop-core' )
1241
-                        ),
1242
-                    ),
1243
-                    'default'  => 'center',
1244
-                    'desc'   => __( 'Alignment', 'lasso' ),
1245
-                    'tip'=>''
1246
-                ),		
1247
-                'alt'    => array(
1248
-                    'type'  => 'text',
1249
-                    'default'  => '',
1250
-                    'desc'   => __( 'Image ALT', 'lasso' ),
1251
-                    'tip'  => __( 'ALT tag used for the image. Primarily used for SEO purposes.', 'lasso' )
1252
-                ),
1253
-                'caption'    => array(
1254
-                    'type'  => 'text',
1255
-                    'default'  => '',
1256
-                    'desc'   => __( 'Caption', 'lasso' ),
1257
-                    'tip'  => __( 'Optional caption for the image.', 'lasso' )
1258
-                ),
1259
-                'link'    => array(
1260
-                    'type'  => 'text',
1261
-                    'default'  => '',
1262
-                    'desc'   => __( 'Link URL', 'lasso' ),
1263
-                    'tip'  => __( 'Optional URL to link.', 'lasso' )
1264
-                ),
1216
+	$custom = array(
1217
+		'wpimg-block'    => array(
1218
+			'name'     => __( 'Image', 'lasso' ),
1219
+			'type'     => 'single',
1220
+			'atts'     => array(
1221
+				'img'    => array(
1222
+					'type'  => 'media_upload',
1223
+					'default'  => '',
1224
+					'desc'   => __( 'Image URL', 'lasso' ),
1225
+					'tip'  => __( 'URL for the image. Click <em>Select Media</em> to open the WordPress Media Library.', 'aesop-core' )
1226
+				),
1227
+				'align'    => array(
1228
+					'type'  => 'select',
1229
+					'values'  => array(						
1230
+						array(
1231
+							'value' => 'center',
1232
+							'name' => __( 'Center', 'aesop-core' )
1233
+						),
1234
+						array(
1235
+							'value' => 'left',
1236
+							'name' => __( 'Left', 'aesop-core' )
1237
+						),
1238
+						array(
1239
+							'value' => 'right',
1240
+							'name' => __( 'Right', 'aesop-core' )
1241
+						),
1242
+					),
1243
+					'default'  => 'center',
1244
+					'desc'   => __( 'Alignment', 'lasso' ),
1245
+					'tip'=>''
1246
+				),		
1247
+				'alt'    => array(
1248
+					'type'  => 'text',
1249
+					'default'  => '',
1250
+					'desc'   => __( 'Image ALT', 'lasso' ),
1251
+					'tip'  => __( 'ALT tag used for the image. Primarily used for SEO purposes.', 'lasso' )
1252
+				),
1253
+				'caption'    => array(
1254
+					'type'  => 'text',
1255
+					'default'  => '',
1256
+					'desc'   => __( 'Caption', 'lasso' ),
1257
+					'tip'  => __( 'Optional caption for the image.', 'lasso' )
1258
+				),
1259
+				'link'    => array(
1260
+					'type'  => 'text',
1261
+					'default'  => '',
1262
+					'desc'   => __( 'Link URL', 'lasso' ),
1263
+					'tip'  => __( 'Optional URL to link.', 'lasso' )
1264
+				),
1265 1265
                
1266 1266
 
1267
-            ),
1268
-            'desc'     => __( 'A WP Image Block.', 'aesop-core' ),
1269
-            'codes'    => '<script>	            
1267
+			),
1268
+			'desc'     => __( 'A WP Image Block.', 'aesop-core' ),
1269
+			'codes'    => '<script>	            
1270 1270
 						jQuery(document).ready(function($){
1271 1271
                             
1272 1272
 						});
1273 1273
 			           </script>'
1274
-        )
1275
-    );
1274
+		)
1275
+	);
1276 1276
 
1277
-    return array_merge( $shortcodes, $custom );
1277
+	return array_merge( $shortcodes, $custom );
1278 1278
 }
1279 1279
 
1280 1280
 function add_wpcover_block_options( $shortcodes ) {
1281
-    $custom = array(
1282
-        'wpcover-block'    => array(
1283
-            'name'     => __( 'Cover', 'lasso' ),
1284
-            'type'     => 'single',
1285
-            'atts'     => array(
1286
-                'img'    => array(
1287
-                    'type'  => 'media_upload',
1288
-                    'default'  => '',
1289
-                    'desc'   => __( 'Image URL', 'lasso' ),
1290
-                    'tip'  => __( 'URL for the image. Click <em>Select Media</em> to open the WordPress Media Library.', 'aesop-core' )
1291
-                )
1292
-
1293
-            ),
1294
-            'desc'     => __( 'A WP Cover Block.', 'aesop-core' ),
1295
-            'codes'    => '<script>	            
1281
+	$custom = array(
1282
+		'wpcover-block'    => array(
1283
+			'name'     => __( 'Cover', 'lasso' ),
1284
+			'type'     => 'single',
1285
+			'atts'     => array(
1286
+				'img'    => array(
1287
+					'type'  => 'media_upload',
1288
+					'default'  => '',
1289
+					'desc'   => __( 'Image URL', 'lasso' ),
1290
+					'tip'  => __( 'URL for the image. Click <em>Select Media</em> to open the WordPress Media Library.', 'aesop-core' )
1291
+				)
1292
+
1293
+			),
1294
+			'desc'     => __( 'A WP Cover Block.', 'aesop-core' ),
1295
+			'codes'    => '<script>	            
1296 1296
 						jQuery(document).ready(function($){
1297 1297
                             
1298 1298
 						});
1299 1299
 			           </script>'
1300
-        )
1301
-    );
1300
+		)
1301
+	);
1302 1302
 
1303
-    return array_merge( $shortcodes, $custom );
1303
+	return array_merge( $shortcodes, $custom );
1304 1304
 }
1305 1305
 
1306 1306
 /**
@@ -1345,23 +1345,23 @@  discard block
 block discarded – undo
1345 1345
  * @return string
1346 1346
  */
1347 1347
 function lasso_editor_adjustBrightness($hex, $steps) { 
1348
-    $steps = max(-255, min(255, $steps));
1348
+	$steps = max(-255, min(255, $steps));
1349 1349
 
1350
-    // Normalize into a six character long hex string
1351
-    $hex = str_replace('#', '', $hex);
1352
-    if (strlen($hex) == 3) {
1353
-        $hex = str_repeat(substr($hex,0,1), 2).str_repeat(substr($hex,1,1), 2).str_repeat(substr($hex,2,1), 2);
1354
-    }
1350
+	// Normalize into a six character long hex string
1351
+	$hex = str_replace('#', '', $hex);
1352
+	if (strlen($hex) == 3) {
1353
+		$hex = str_repeat(substr($hex,0,1), 2).str_repeat(substr($hex,1,1), 2).str_repeat(substr($hex,2,1), 2);
1354
+	}
1355 1355
 
1356
-    // Split into three parts: R, G and B
1357
-    $color_parts = str_split($hex, 2);
1358
-    $return = '#';
1356
+	// Split into three parts: R, G and B
1357
+	$color_parts = str_split($hex, 2);
1358
+	$return = '#';
1359 1359
 
1360
-    foreach ($color_parts as $color) {
1361
-        $color   = hexdec($color); // Convert to decimal
1362
-        $color   = max(0,min(255,$color + $steps)); // Adjust color
1363
-        $return .= str_pad(dechex($color), 2, '0', STR_PAD_LEFT); // Make two char hex code
1364
-    }
1360
+	foreach ($color_parts as $color) {
1361
+		$color   = hexdec($color); // Convert to decimal
1362
+		$color   = max(0,min(255,$color + $steps)); // Adjust color
1363
+		$return .= str_pad(dechex($color), 2, '0', STR_PAD_LEFT); // Make two char hex code
1364
+	}
1365 1365
 
1366
-    return $return;
1366
+	return $return;
1367 1367
 }
Please login to merge, or discard this patch.
Spacing   +359 added lines, -359 removed lines patch added patch discarded remove patch
@@ -11,39 +11,39 @@  discard block
 block discarded – undo
11 11
  *
12 12
  * @since 1.0
13 13
  */
14
-add_action( 'wp_footer', 'lasso_editor_controls' );
14
+add_action('wp_footer', 'lasso_editor_controls');
15 15
 function lasso_editor_controls() {
16 16
 
17 17
 	global $post;
18 18
 
19
-	if ( lasso_user_can('edit_posts') ) {
19
+	if (lasso_user_can('edit_posts')) {
20 20
 
21
-		$status = get_post_status( get_the_ID() );
22
-		$use_old_ui   = lasso_editor_get_option( 'use_old_ui', 'lasso_editor' );
23
-		$button_color1 = lasso_editor_get_option('button-color1', 'lasso_editor','#0000ff');
24
-		$button_color2 = lasso_editor_get_option('button-color2', 'lasso_editor','#000000');
25
-		$dialog_color = lasso_editor_get_option('dialog-color', 'lasso_editor','#000055');
26
-		$text_color = lasso_editor_get_option('text-color', 'lasso_editor','#ffffff');
21
+		$status = get_post_status(get_the_ID());
22
+		$use_old_ui   = lasso_editor_get_option('use_old_ui', 'lasso_editor');
23
+		$button_color1 = lasso_editor_get_option('button-color1', 'lasso_editor', '#0000ff');
24
+		$button_color2 = lasso_editor_get_option('button-color2', 'lasso_editor', '#000000');
25
+		$dialog_color = lasso_editor_get_option('dialog-color', 'lasso_editor', '#000055');
26
+		$text_color = lasso_editor_get_option('text-color', 'lasso_editor', '#ffffff');
27 27
 		$hover_color1 = lasso_editor_adjustBrightness($button_color1, 50);
28 28
 		$hover_color2 = lasso_editor_adjustBrightness($button_color2, 50);
29 29
 
30 30
 		// let users add custom css classes
31
-		$custom_classes = apply_filters( 'lasso_control_classes', '' );
31
+		$custom_classes = apply_filters('lasso_control_classes', '');
32 32
 
33 33
 		$post_access_class   = '';
34
-		$post_new_disabled   = lasso_editor_get_option( 'post_adding_disabled', 'lasso_editor' );
35
-		$post_settings_disabled = lasso_editor_get_option( 'post_settings_disabled', 'lasso_editor' );
36
-		$shortcodify_disabled = lasso_editor_get_option( 'shortcodify_disabled', 'lasso_editor' );
34
+		$post_new_disabled   = lasso_editor_get_option('post_adding_disabled', 'lasso_editor');
35
+		$post_settings_disabled = lasso_editor_get_option('post_settings_disabled', 'lasso_editor');
36
+		$shortcodify_disabled = lasso_editor_get_option('shortcodify_disabled', 'lasso_editor');
37 37
 
38 38
 
39 39
 		// CSS class if adding new post objects is disabled
40
-		if ( 'on' == $post_new_disabled ) { $post_access_class = 'lasso--post-new-disabled'; }
40
+		if ('on' == $post_new_disabled) { $post_access_class = 'lasso--post-new-disabled'; }
41 41
 
42 42
 		// CSS class if adjust settings is disabled
43
-		if ( 'on' == $post_settings_disabled ) { $post_access_class = 'lasso--post-settings-disabled'; }
43
+		if ('on' == $post_settings_disabled) { $post_access_class = 'lasso--post-settings-disabled'; }
44 44
 
45 45
 		// CSS class if adding new post objects AND settings are disabled
46
-		if ( 'on' == $post_new_disabled && 'on' == $post_settings_disabled ) { $post_access_class = 'lasso--post-all-disabled'; }
46
+		if ('on' == $post_new_disabled && 'on' == $post_settings_disabled) { $post_access_class = 'lasso--post-all-disabled'; }
47 47
 
48 48
 		// CSS class if shortcodify or (Aesop Shortcode Conversion) is disabled
49 49
 		$sc_saving_class = 'on' == $shortcodify_disabled ? 'shortcodify-disabled' : 'shortcodify-enabled';
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 		?>
58 58
 		<style>
59 59
 		#lasso-html--table:before {
60
-			content: "<?php esc_attr_e( 'Table', 'lasso' );?>";
60
+			content: "<?php esc_attr_e('Table', 'lasso'); ?>";
61 61
 		}
62 62
 		
63 63
 		
@@ -67,32 +67,32 @@  discard block
 block discarded – undo
67 67
 		?>
68 68
 		
69 69
 		.lasso-editor-controls--wrap, #lasso--post-settings2,#lasso--save,#lasso--post-delete,#lasso--exit,#lasso--publish {
70
-			background-image: -webkit-linear-gradient(top,<?php echo $button_color1;?> 0,<?php echo $button_color2;?> 100%);
71
-			background-image: -o-linear-gradient(top,<?php echo $button_color1;?> 0,<?php echo $button_color2;?> 100%);
72
-			background-image: linear-gradient(to bottom,<?php echo $button_color1;?> 0,<?php echo $button_color2;?> 100%);
73
-			color: <?php echo $text_color;?>;
70
+			background-image: -webkit-linear-gradient(top,<?php echo $button_color1; ?> 0,<?php echo $button_color2; ?> 100%);
71
+			background-image: -o-linear-gradient(top,<?php echo $button_color1; ?> 0,<?php echo $button_color2; ?> 100%);
72
+			background-image: linear-gradient(to bottom,<?php echo $button_color1; ?> 0,<?php echo $button_color2; ?> 100%);
73
+			color: <?php echo $text_color; ?>;
74 74
 		}
75 75
 		
76 76
 		.lasso--controls__right a:before, #lasso-toolbar--html__footer_desc, ul.lasso-editor-controls li:before,#lasso-side-comp-button.toolbar--side li:before
77 77
         {
78
-			color: <?php echo $text_color;?>;
78
+			color: <?php echo $text_color; ?>;
79 79
 		}
80 80
 		
81 81
 		
82 82
 		
83 83
 		ul.lasso-editor-controls li:hover, #lasso--exit:hover,#lasso--post-settings2:hover,#lasso--post-delete:hover,#lasso--publish:hover,#lasso--save:hover {
84
-			background-image: -webkit-linear-gradient(top,<?php echo $hover_color1;?> 0,<?php echo $hover_color2;?> 100%);
85
-			background-image: -o-linear-gradient(top,<?php echo $hover_color1;?> 0,<?php echo $hover_color2;?> 100%);
86
-			background-image: linear-gradient(to bottom,<?php echo $hover_color1;?> 0,<?php echo $hover_color2;?> 100%);
84
+			background-image: -webkit-linear-gradient(top,<?php echo $hover_color1; ?> 0,<?php echo $hover_color2; ?> 100%);
85
+			background-image: -o-linear-gradient(top,<?php echo $hover_color1; ?> 0,<?php echo $hover_color2; ?> 100%);
86
+			background-image: linear-gradient(to bottom,<?php echo $hover_color1; ?> 0,<?php echo $hover_color2; ?> 100%);
87 87
 		}
88 88
 		
89 89
 		.lasso--modal__inner,.sweet-alert,#lasso-toolbar--components.toolbar--drop-up ul,#lasso-toolbar--components__list,#lasso-toolbar--html.html--drop-up #lasso-toolbar--html__wrap,
90 90
 		#lasso-toolbar--link.link--drop-up #lasso-toolbar--link__wrap		{
91
-			background: <?php echo $dialog_color;?>;
92
-			color: <?php echo $text_color;?>;
91
+			background: <?php echo $dialog_color; ?>;
92
+			color: <?php echo $text_color; ?>;
93 93
 		}
94 94
 		.sweet-alert p,.lasso--modal__inner label,.lasso--toolbar__inner label {
95
-			color: <?php echo $text_color;?> !important;
95
+			color: <?php echo $text_color; ?> !important;
96 96
 		}
97 97
 		
98 98
 		<?php if (!$is_mobile) { ?>
@@ -126,48 +126,48 @@  discard block
 block discarded – undo
126 126
         }
127 127
         ?>
128 128
         </style>
129
-		<div id="lasso--controls" class="lasso-post-status--<?php echo sanitize_html_class( $status );?> <?php echo sanitize_html_class( $custom_classes );?>" data-post-id="<?php echo get_the_ID();?>" >
129
+		<div id="lasso--controls" class="lasso-post-status--<?php echo sanitize_html_class($status); ?> <?php echo sanitize_html_class($custom_classes); ?>" data-post-id="<?php echo get_the_ID(); ?>" >
130 130
 
131
-			<ul class="lasso--controls__center lasso-editor-controls lasso-editor-controls--wrap <?php echo $post_access_class;?> "  <?php echo $mobile_style ?> >
131
+			<ul class="lasso--controls__center lasso-editor-controls lasso-editor-controls--wrap <?php echo $post_access_class; ?> "  <?php echo $mobile_style ?> >
132 132
 
133
-				<?php do_action( 'lasso_editor_controls_before' );
133
+				<?php do_action('lasso_editor_controls_before');
134 134
 
135
-				if ( $is_capable ) { ?>
135
+				if ($is_capable) { ?>
136 136
 
137
-					<li id="lasso--edit" title="<?php esc_attr_e( 'Edit Post', 'lasso' );?>"><a href="#" class="lasso--button__primary"></a></li>
137
+					<li id="lasso--edit" title="<?php esc_attr_e('Edit Post', 'lasso'); ?>"><a href="#" class="lasso--button__primary"></a></li>
138 138
 
139
-					<?php if ( 'off' == $post_settings_disabled || empty( $post_settings_disabled ) ) { ?>
140
-						<li id="lasso--post-settings" title="<?php esc_attr_e( 'Post Settings', 'lasso' );?>"><a href="#" class="lasso--button__primary"></a></li>
139
+					<?php if ('off' == $post_settings_disabled || empty($post_settings_disabled)) { ?>
140
+						<li id="lasso--post-settings" title="<?php esc_attr_e('Post Settings', 'lasso'); ?>"><a href="#" class="lasso--button__primary"></a></li>
141 141
 					<?php }
142 142
 
143 143
 				} ?>
144 144
 
145
-				<li id="lasso--post-all" title="<?php esc_attr_e( 'All Posts', 'lasso' );?>"><a href="#" class="lasso--button__primary"></a></li>
145
+				<li id="lasso--post-all" title="<?php esc_attr_e('All Posts', 'lasso'); ?>"><a href="#" class="lasso--button__primary"></a></li>
146 146
 
147
-				<?php if ( $is_capable && wp_revisions_enabled( $post ) ) { ?>
148
-					<li id="lasso--post-revisions" title="<?php esc_attr_e( 'Revisions', 'lasso' );?>"><a href="#" class="lasso--button__primary"></a></li>
147
+				<?php if ($is_capable && wp_revisions_enabled($post)) { ?>
148
+					<li id="lasso--post-revisions" title="<?php esc_attr_e('Revisions', 'lasso'); ?>"><a href="#" class="lasso--button__primary"></a></li>
149 149
 				<?php } ?>
150 150
 
151
-				<?php if ( ( 'off' == $post_new_disabled || empty( $post_new_disabled ) && lasso_user_can('edit_posts') ) ) { ?>
152
-					<li id="lasso--post-new" title="<?php esc_attr_e( 'Add Post', 'lasso' );?>"><a href="#" class="lasso--button__primary"></a></li>
151
+				<?php if (('off' == $post_new_disabled || empty($post_new_disabled) && lasso_user_can('edit_posts'))) { ?>
152
+					<li id="lasso--post-new" title="<?php esc_attr_e('Add Post', 'lasso'); ?>"><a href="#" class="lasso--button__primary"></a></li>
153 153
 				<?php } ?>
154 154
 
155
-				<?php do_action( 'lasso_editor_controls_after' );?>
155
+				<?php do_action('lasso_editor_controls_after'); ?>
156 156
 
157 157
 			</ul>
158 158
 
159
-			<?php if ( is_singular() && !$is_mobile ) { ?>
159
+			<?php if (is_singular() && !$is_mobile) { ?>
160 160
 
161
-				<div class="lasso--controls__right" data-posttype="<?php echo get_post_type( get_the_ID() );?>" data-status="<?php echo $status;?>">
161
+				<div class="lasso--controls__right" data-posttype="<?php echo get_post_type(get_the_ID()); ?>" data-status="<?php echo $status; ?>">
162 162
 				
163
-					<a href="#" title="<?php esc_attr_e( 'Delete Post', 'lasso' );?>" id="lasso--post-delete" class="lasso-save-post lasso--button <?php echo $sc_saving_class;?>"></a>
164
-					<a href="#" title="<?php esc_attr_e( 'Post Settings', 'lasso' );?>" id="lasso--post-settings2" class="lasso-save-post lasso--button <?php echo $sc_saving_class;?>"></a>
163
+					<a href="#" title="<?php esc_attr_e('Delete Post', 'lasso'); ?>" id="lasso--post-delete" class="lasso-save-post lasso--button <?php echo $sc_saving_class; ?>"></a>
164
+					<a href="#" title="<?php esc_attr_e('Post Settings', 'lasso'); ?>" id="lasso--post-settings2" class="lasso-save-post lasso--button <?php echo $sc_saving_class; ?>"></a>
165 165
 
166 166
 
167
-					<a href="#" title="<?php esc_attr_e( 'Save Post', 'lasso' );?>" id="lasso--save" class="lasso-save-post lasso--button <?php echo $sc_saving_class;?>"></a>
167
+					<a href="#" title="<?php esc_attr_e('Save Post', 'lasso'); ?>" id="lasso--save" class="lasso-save-post lasso--button <?php echo $sc_saving_class; ?>"></a>
168 168
 
169
-					<?php if ( ('draft' == $status ) || ('pending' == $status && $can_publish) ) { ?>
170
-						<a href="#" title="<?php $can_publish ? esc_attr_e( 'Publish Post', 'lasso' ) : esc_attr_e( 'Submit For Review', 'lasso' );?>" id="lasso--publish" class="lasso-publish-post lasso--button <?php echo $sc_saving_class;?>"></a>
169
+					<?php if (('draft' == $status) || ('pending' == $status && $can_publish)) { ?>
170
+						<a href="#" title="<?php $can_publish ? esc_attr_e('Publish Post', 'lasso') : esc_attr_e('Submit For Review', 'lasso'); ?>" id="lasso--publish" class="lasso-publish-post lasso--button <?php echo $sc_saving_class; ?>"></a>
171 171
 					<?php } ?>
172 172
 					
173 173
 
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
 		</div>
179 179
 		
180 180
 		
181
-		<?php do_action( 'lasso_editor_controls_after_outside' );?>
181
+		<?php do_action('lasso_editor_controls_after_outside'); ?>
182 182
 
183 183
 	<?php }
184 184
 }
@@ -196,9 +196,9 @@  discard block
 block discarded – undo
196 196
 
197 197
 
198 198
 	// let users add custom css classes
199
-	$custom_classes = apply_filters( 'lasso_sidebar_classes', '' );
199
+	$custom_classes = apply_filters('lasso_sidebar_classes', '');
200 200
 	?>
201
-	<div id="lasso--sidebar" class="<?php echo sanitize_html_class( $custom_classes );?>" >
201
+	<div id="lasso--sidebar" class="<?php echo sanitize_html_class($custom_classes); ?>" >
202 202
 		<div class="lasso--sidebar__inner">
203 203
 			<div id="aesop-generator-settings"><div id="lasso--component__settings"></div></div>
204 204
 		</div>
@@ -216,17 +216,17 @@  discard block
 block discarded – undo
216 216
 	$is_mobile = wp_is_mobile();
217 217
 
218 218
 	// check for lasso story engine and add a class doniting this
219
-	$ase_status = class_exists( 'Aesop_Core' ) || defined( 'LASSO_CUSTOM' ) ? 'ase-active' : 'ase-not-active';
219
+	$ase_status = class_exists('Aesop_Core') || defined('LASSO_CUSTOM') ? 'ase-active' : 'ase-not-active';
220 220
 
221 221
 	// let users add custom css classes
222
-	$custom_classes = apply_filters( 'lasso_toolbar_classes', '' );
222
+	$custom_classes = apply_filters('lasso_toolbar_classes', '');
223 223
 
224 224
 	// are toolbar headings enabled
225
-	$toolbar_headings      = lasso_editor_get_option( 'toolbar_headings', 'lasso_editor' );
226
-	$toolbar_headings_h4      = lasso_editor_get_option( 'toolbar_headings_h4', 'lasso_editor' );
227
-	$toolbar_list      = lasso_editor_get_option( 'toolbar_list', 'lasso_editor' );
225
+	$toolbar_headings = lasso_editor_get_option('toolbar_headings', 'lasso_editor');
226
+	$toolbar_headings_h4 = lasso_editor_get_option('toolbar_headings_h4', 'lasso_editor');
227
+	$toolbar_list = lasso_editor_get_option('toolbar_list', 'lasso_editor');
228 228
 
229
-	$toolbar_class  = $toolbar_headings ? 'toolbar-extended' : false;	
229
+	$toolbar_class = $toolbar_headings ? 'toolbar-extended' : false;	
230 230
 	
231 231
 	//show color
232 232
 	$show_color = lasso_editor_get_option('toolbar_show_color', 'lasso_editor');
@@ -234,56 +234,56 @@  discard block
 block discarded – undo
234 234
 	//show alignment
235 235
 	$show_align = lasso_editor_get_option('toolbar_show_alignment', 'lasso_editor');
236 236
 	
237
-	$status = get_post_status( get_the_ID() );
237
+	$status = get_post_status(get_the_ID());
238 238
 	
239
-	$shortcodify_disabled = lasso_editor_get_option( 'shortcodify_disabled', 'lasso_editor' );
239
+	$shortcodify_disabled = lasso_editor_get_option('shortcodify_disabled', 'lasso_editor');
240 240
 	
241
-	$sc_saving_class = ('on' == $shortcodify_disabled || $ase_status == 'ase-not-active')  ? 'shortcodify-disabled' : 'shortcodify-enabled';
241
+	$sc_saving_class = ('on' == $shortcodify_disabled || $ase_status == 'ase-not-active') ? 'shortcodify-disabled' : 'shortcodify-enabled';
242 242
 
243
-    $use_wp_block_image = lasso_editor_get_option('use_wp_block_image', 'lasso_editor','off');
243
+    $use_wp_block_image = lasso_editor_get_option('use_wp_block_image', 'lasso_editor', 'off');
244 244
 
245 245
 	?>
246
-	<div class="lasso--text-popup lasso-editor-controls--wrap <?php echo $toolbar_class.' '.$ase_status.' '.sanitize_html_class( $custom_classes );?>"  style="display:none;">
247
-		<ul class="lasso--toolbar__inner lasso-editor-controls" <?php if ($is_mobile) {echo 'style="float:left;"';}?>>
248
-			<?php do_action( 'lasso_toolbar_components_before' );?>
249
-		    <li id="lasso-toolbar--bold" title="<?php esc_attr_e( 'Bold', 'lasso' );?>"></li>
250
-		    <li id="lasso-toolbar--underline" title="<?php esc_attr_e( 'Underline', 'lasso' );?>"></li>
251
-		    <li id="lasso-toolbar--italic" title="<?php esc_attr_e( 'Italicize', 'lasso' );?>"></li>
252
-		    <li id="lasso-toolbar--strike" title="<?php esc_attr_e( 'Strikethrough', 'lasso' );?>"></li>
246
+	<div class="lasso--text-popup lasso-editor-controls--wrap <?php echo $toolbar_class.' '.$ase_status.' '.sanitize_html_class($custom_classes); ?>"  style="display:none;">
247
+		<ul class="lasso--toolbar__inner lasso-editor-controls" <?php if ($is_mobile) {echo 'style="float:left;"'; }?>>
248
+			<?php do_action('lasso_toolbar_components_before'); ?>
249
+		    <li id="lasso-toolbar--bold" title="<?php esc_attr_e('Bold', 'lasso'); ?>"></li>
250
+		    <li id="lasso-toolbar--underline" title="<?php esc_attr_e('Underline', 'lasso'); ?>"></li>
251
+		    <li id="lasso-toolbar--italic" title="<?php esc_attr_e('Italicize', 'lasso'); ?>"></li>
252
+		    <li id="lasso-toolbar--strike" title="<?php esc_attr_e('Strikethrough', 'lasso'); ?>"></li>
253 253
 			
254
-		    <?php if ( $toolbar_headings ): ?>
255
-		    <li id="lasso-toolbar--h2" title="<?php esc_attr_e( 'H2 Heading', 'lasso' );?>"></li>
256
-		    <li id="lasso-toolbar--h3" title="<?php esc_attr_e( 'H3 Heading', 'lasso' );?>"></li>
254
+		    <?php if ($toolbar_headings): ?>
255
+		    <li id="lasso-toolbar--h2" title="<?php esc_attr_e('H2 Heading', 'lasso'); ?>"></li>
256
+		    <li id="lasso-toolbar--h3" title="<?php esc_attr_e('H3 Heading', 'lasso'); ?>"></li>
257 257
 			<?php endif; ?>
258 258
 			
259 259
 			
260 260
 			
261
-			<?php if ( $toolbar_headings_h4 ): ?>
262
-		    <li id="lasso-toolbar--h4" title="<?php esc_attr_e( 'H4 Heading', 'lasso' );?>"></li>
263
-		    <li id="lasso-toolbar--h5" title="<?php esc_attr_e( 'H5 Heading', 'lasso' );?>"></li>
264
-			<li id="lasso-toolbar--h6" title="<?php esc_attr_e( 'H6 Heading', 'lasso' );?>"></li>
261
+			<?php if ($toolbar_headings_h4): ?>
262
+		    <li id="lasso-toolbar--h4" title="<?php esc_attr_e('H4 Heading', 'lasso'); ?>"></li>
263
+		    <li id="lasso-toolbar--h5" title="<?php esc_attr_e('H5 Heading', 'lasso'); ?>"></li>
264
+			<li id="lasso-toolbar--h6" title="<?php esc_attr_e('H6 Heading', 'lasso'); ?>"></li>
265 265
 			<?php endif; ?>
266 266
 			
267
-			<?php if ( $show_color ): ?>
268
-		    <li id="lasso-toolbar--color-set" title="<?php esc_attr_e( 'Set Color for Selected Text', 'lasso' );?>"></li>
269
-		    <li id="lasso-toolbar--color-pick" title="<?php esc_attr_e( 'Choose Color', 'lasso' );?>"></li>
267
+			<?php if ($show_color): ?>
268
+		    <li id="lasso-toolbar--color-set" title="<?php esc_attr_e('Set Color for Selected Text', 'lasso'); ?>"></li>
269
+		    <li id="lasso-toolbar--color-pick" title="<?php esc_attr_e('Choose Color', 'lasso'); ?>"></li>
270 270
 			<?php endif; ?>
271 271
 			
272
-			<?php if ( $toolbar_list ): ?>
273
-		    <li id="lasso-toolbar--ol" title="<?php esc_attr_e( 'Ordered List', 'lasso' );?>"></li>
274
-		    <li id="lasso-toolbar--ul" title="<?php esc_attr_e( 'Unordered List', 'lasso' );?>"></li>
272
+			<?php if ($toolbar_list): ?>
273
+		    <li id="lasso-toolbar--ol" title="<?php esc_attr_e('Ordered List', 'lasso'); ?>"></li>
274
+		    <li id="lasso-toolbar--ul" title="<?php esc_attr_e('Unordered List', 'lasso'); ?>"></li>
275 275
 			<?php endif; ?>
276 276
 					
277 277
 		    
278
-			<li id="lasso-toolbar--link" title="<?php esc_attr_e( 'Anchor Link', 'lasso' );?>">
278
+			<li id="lasso-toolbar--link" title="<?php esc_attr_e('Anchor Link', 'lasso'); ?>">
279 279
 		    	<div id="lasso-toolbar--link__wrap" <?php echo $mobile_style ?> >
280
-		    		<div id="lasso-toolbar--link__inner" contenteditable="true" placeholder="<?php esc_attr_e( 'http://url.com', 'lasso' );?>"></div>
281
-		    		<a href="#" title="<?php esc_attr_e( 'Create Link', 'lasso' );?>" class="lasso-toolbar--link__control" id="lasso-toolbar--link__create" ></a>
280
+		    		<div id="lasso-toolbar--link__inner" contenteditable="true" placeholder="<?php esc_attr_e('http://url.com', 'lasso'); ?>"></div>
281
+		    		<a href="#" title="<?php esc_attr_e('Create Link', 'lasso'); ?>" class="lasso-toolbar--link__control" id="lasso-toolbar--link__create" ></a>
282 282
 					<input class="styled-checkbox" type="checkbox" id="aesop-toolbar--link_newtab" checked/>
283
-                    <label for="aesop-toolbar--link_newtab"><?php esc_attr_e( 'Open in a New Tab', 'lasso' );?></label>
283
+                    <label for="aesop-toolbar--link_newtab"><?php esc_attr_e('Open in a New Tab', 'lasso'); ?></label>
284 284
 		    	</div>
285 285
 		    </li>
286
-		    <?php do_action( 'lasso_toolbar_components_after' );?>
286
+		    <?php do_action('lasso_toolbar_components_after'); ?>
287 287
 		</ul>				
288 288
 	</div>
289 289
 
@@ -304,21 +304,21 @@  discard block
 block discarded – undo
304 304
 	$is_mobile = wp_is_mobile();
305 305
 
306 306
 	// check for lasso story engine and add a class doniting this
307
-	$ase_status = class_exists( 'Aesop_Core' ) || defined( 'LASSO_CUSTOM' ) ? 'ase-active' : 'ase-not-active';
307
+	$ase_status = class_exists('Aesop_Core') || defined('LASSO_CUSTOM') ? 'ase-active' : 'ase-not-active';
308 308
 
309 309
 	// let users add custom css classes
310
-	$custom_classes = apply_filters( 'lasso_toolbar_classes', '' );
310
+	$custom_classes = apply_filters('lasso_toolbar_classes', '');
311 311
 
312 312
 	// are toolbar headings enabled
313
-	$toolbar_headings      = lasso_editor_get_option( 'toolbar_headings', 'lasso_editor' );
314
-	$toolbar_headings_h4      = lasso_editor_get_option( 'toolbar_headings_h4', 'lasso_editor' );
315
-	$toolbar_list      = lasso_editor_get_option( 'toolbar_list', 'lasso_editor' );
313
+	$toolbar_headings = lasso_editor_get_option('toolbar_headings', 'lasso_editor');
314
+	$toolbar_headings_h4 = lasso_editor_get_option('toolbar_headings_h4', 'lasso_editor');
315
+	$toolbar_list = lasso_editor_get_option('toolbar_list', 'lasso_editor');
316 316
 
317
-	$toolbar_class  = $toolbar_headings ? 'toolbar-extended' : false;
317
+	$toolbar_class = $toolbar_headings ? 'toolbar-extended' : false;
318 318
 	
319 319
 	// mobile styles
320 320
     $mobile_class = $is_mobile ? 'lasso-mobile' : false;
321
-	$mobile_style =$is_mobile ? 'style="bottom:0px;"' : null;
321
+	$mobile_style = $is_mobile ? 'style="bottom:0px;"' : null;
322 322
 	
323 323
 	//show color
324 324
 	$show_color = lasso_editor_get_option('toolbar_show_color', 'lasso_editor');
@@ -326,140 +326,140 @@  discard block
 block discarded – undo
326 326
 	//show alignment
327 327
 	$show_align = lasso_editor_get_option('toolbar_show_alignment', 'lasso_editor');
328 328
 	
329
-	$status = get_post_status( get_the_ID() );
329
+	$status = get_post_status(get_the_ID());
330 330
 	
331
-	$shortcodify_disabled = lasso_editor_get_option( 'shortcodify_disabled', 'lasso_editor' );
331
+	$shortcodify_disabled = lasso_editor_get_option('shortcodify_disabled', 'lasso_editor');
332 332
 	
333
-	$sc_saving_class = ('on' == $shortcodify_disabled || $ase_status == 'ase-not-active')  ? 'shortcodify-disabled' : 'shortcodify-enabled';
333
+	$sc_saving_class = ('on' == $shortcodify_disabled || $ase_status == 'ase-not-active') ? 'shortcodify-disabled' : 'shortcodify-enabled';
334 334
 
335
-    $use_wp_block_image = lasso_editor_get_option('use_wp_block_image', 'lasso_editor','off');
335
+    $use_wp_block_image = lasso_editor_get_option('use_wp_block_image', 'lasso_editor', 'off');
336 336
 
337 337
 	?>
338
-	<div class="lasso--toolbar_wrap lasso-editor-controls--wrap <?php echo $toolbar_class.' '.$mobile_class.' '.$ase_status.' '.sanitize_html_class( $custom_classes );?>" <?php echo $mobile_style ?>>
339
-		<ul class="lasso--toolbar__inner lasso-editor-controls" <?php if ($is_mobile) {echo 'style="float:left;"';}?>>
340
-			<?php do_action( 'lasso_toolbar_components_before' );?>
338
+	<div class="lasso--toolbar_wrap lasso-editor-controls--wrap <?php echo $toolbar_class.' '.$mobile_class.' '.$ase_status.' '.sanitize_html_class($custom_classes); ?>" <?php echo $mobile_style ?>>
339
+		<ul class="lasso--toolbar__inner lasso-editor-controls" <?php if ($is_mobile) {echo 'style="float:left;"'; }?>>
340
+			<?php do_action('lasso_toolbar_components_before'); ?>
341 341
             <?php if (!$text_select_popup) { ?>
342
-		    <li id="lasso-toolbar--bold" title="<?php esc_attr_e( 'Bold', 'lasso' );?>"></li>
343
-		    <li id="lasso-toolbar--underline" title="<?php esc_attr_e( 'Underline', 'lasso' );?>"></li>
344
-		    <li id="lasso-toolbar--italic" title="<?php esc_attr_e( 'Italicize', 'lasso' );?>"></li>
345
-		    <li id="lasso-toolbar--strike" title="<?php esc_attr_e( 'Strikethrough', 'lasso' );?>"></li>
342
+		    <li id="lasso-toolbar--bold" title="<?php esc_attr_e('Bold', 'lasso'); ?>"></li>
343
+		    <li id="lasso-toolbar--underline" title="<?php esc_attr_e('Underline', 'lasso'); ?>"></li>
344
+		    <li id="lasso-toolbar--italic" title="<?php esc_attr_e('Italicize', 'lasso'); ?>"></li>
345
+		    <li id="lasso-toolbar--strike" title="<?php esc_attr_e('Strikethrough', 'lasso'); ?>"></li>
346 346
             <?php }?>
347
-			<li id="lasso-toolbar--components" class="lasso-toolbar--components" title="<?php esc_attr_e( 'Insert Component', 'lasso' );?>" style="color:#ffffa0;">
347
+			<li id="lasso-toolbar--components" class="lasso-toolbar--components" title="<?php esc_attr_e('Insert Component', 'lasso'); ?>" style="color:#ffffa0;">
348 348
 			    <ul id="lasso-toolbar--components__list" style="display:none;color:white;">
349
-			    	<?php if ( 'ase-active' == $ase_status ): ?>
350
-						<li data-type="image" title="<?php esc_attr_e( 'Image', 'lasso' );?>" class="lasso-toolbar--component__image"></li>
351
-						<li data-type="character" title="<?php esc_attr_e( 'Character', 'lasso' );?>" class="lasso-toolbar--component__character"></li>
352
-						<li data-type="quote" title="<?php esc_attr_e( 'Quote', 'lasso' );?>"  class="lasso-toolbar--component__quote"></li>
353
-						<!--li data-type="content" title="<?php esc_attr_e( 'Content', 'lasso' );?>"  class="lasso-toolbar--component__content"></li-->
354
-						<li data-type="chapter" title="<?php esc_attr_e( 'Chapter', 'lasso' );?>"  class="lasso-toolbar--component__chapter"></li>
355
-						<li data-type="parallax" title="<?php esc_attr_e( 'Parallax', 'lasso' );?>"  class="lasso-toolbar--component__parallax"></li>
356
-						<li data-type="audio" title="<?php esc_attr_e( 'Audio', 'lasso' );?>"  class="lasso-toolbar--component__audio"></li>
357
-						<li data-type="video" title="<?php esc_attr_e( 'Video', 'lasso' );?>"  class="lasso-toolbar--component__video"></li>
358
-						<li data-type="map" title="<?php esc_attr_e( 'Map', 'lasso' );?>"  class="lasso-toolbar--component__map"></li>
359
-						<li data-type="timeline_stop" title="<?php esc_attr_e( 'Timeline', 'lasso' );?>"  class="lasso-toolbar--component__timeline"></li>
360
-						<li data-type="document" title="<?php esc_attr_e( 'Document', 'lasso' );?>"  class="lasso-toolbar--component__document"></li>
361
-						<li data-type="collection" title="<?php esc_attr_e( 'Collection', 'lasso' );?>"  class="lasso-toolbar--component__collection"></li>
362
-						<li data-type="gallery" title="<?php esc_attr_e( 'Gallery', 'lasso' );?>"  class="lasso-toolbar--component__gallery"></li>
363
-						<?php if ( class_exists ('Aesop_GalleryPop') ) { ?>
364
-						     <li data-type="gallery" title="<?php esc_attr_e( 'Gallery Pop', 'lasso' );?>"  class="lasso-toolbar--component__gallerypop"></li>
349
+			    	<?php if ('ase-active' == $ase_status): ?>
350
+						<li data-type="image" title="<?php esc_attr_e('Image', 'lasso'); ?>" class="lasso-toolbar--component__image"></li>
351
+						<li data-type="character" title="<?php esc_attr_e('Character', 'lasso'); ?>" class="lasso-toolbar--component__character"></li>
352
+						<li data-type="quote" title="<?php esc_attr_e('Quote', 'lasso'); ?>"  class="lasso-toolbar--component__quote"></li>
353
+						<!--li data-type="content" title="<?php esc_attr_e('Content', 'lasso'); ?>"  class="lasso-toolbar--component__content"></li-->
354
+						<li data-type="chapter" title="<?php esc_attr_e('Chapter', 'lasso'); ?>"  class="lasso-toolbar--component__chapter"></li>
355
+						<li data-type="parallax" title="<?php esc_attr_e('Parallax', 'lasso'); ?>"  class="lasso-toolbar--component__parallax"></li>
356
+						<li data-type="audio" title="<?php esc_attr_e('Audio', 'lasso'); ?>"  class="lasso-toolbar--component__audio"></li>
357
+						<li data-type="video" title="<?php esc_attr_e('Video', 'lasso'); ?>"  class="lasso-toolbar--component__video"></li>
358
+						<li data-type="map" title="<?php esc_attr_e('Map', 'lasso'); ?>"  class="lasso-toolbar--component__map"></li>
359
+						<li data-type="timeline_stop" title="<?php esc_attr_e('Timeline', 'lasso'); ?>"  class="lasso-toolbar--component__timeline"></li>
360
+						<li data-type="document" title="<?php esc_attr_e('Document', 'lasso'); ?>"  class="lasso-toolbar--component__document"></li>
361
+						<li data-type="collection" title="<?php esc_attr_e('Collection', 'lasso'); ?>"  class="lasso-toolbar--component__collection"></li>
362
+						<li data-type="gallery" title="<?php esc_attr_e('Gallery', 'lasso'); ?>"  class="lasso-toolbar--component__gallery"></li>
363
+						<?php if (class_exists('Aesop_GalleryPop')) { ?>
364
+						     <li data-type="gallery" title="<?php esc_attr_e('Gallery Pop', 'lasso'); ?>"  class="lasso-toolbar--component__gallerypop"></li>
365 365
 						<?php }?>
366
-						<?php if ( class_exists ('Aesop_Events') ) { ?>
367
-						     <li data-type="events" title="<?php esc_attr_e( 'Event', 'lasso' );?>"  class="lasso-toolbar--component__event"></li>
366
+						<?php if (class_exists('Aesop_Events')) { ?>
367
+						     <li data-type="events" title="<?php esc_attr_e('Event', 'lasso'); ?>"  class="lasso-toolbar--component__event"></li>
368 368
 						<?php }?>
369 369
 					<?php else: ?>
370 370
                         <?php if ($use_wp_block_image == 'on') { ?>
371
-                            <li data-type="wpimg-block" title="<?php esc_attr_e( 'WordPress Image', 'lasso' );?>" class="image lasso-toolbar--component__image"></li>
371
+                            <li data-type="wpimg-block" title="<?php esc_attr_e('WordPress Image', 'lasso'); ?>" class="image lasso-toolbar--component__image"></li>
372 372
                         <?php } else { ?>
373
-						    <li data-type="wpimg" title="<?php esc_attr_e( 'WordPress Image', 'lasso' );?>" class="image lasso-toolbar--component__image"></li>
373
+						    <li data-type="wpimg" title="<?php esc_attr_e('WordPress Image', 'lasso'); ?>" class="image lasso-toolbar--component__image"></li>
374 374
                         <?php } ?>
375
-						<li data-type="wpquote" title="<?php esc_attr_e( 'WordPress Quote', 'lasso' );?>" class="quote lasso-toolbar--component__quote"></li>
376
-						<!--li data-type="wpvideo" title="<?php esc_attr_e( 'WordPress Video', 'lasso' );?>" class="video lasso-toolbar--component__video"></li-->
375
+						<li data-type="wpquote" title="<?php esc_attr_e('WordPress Quote', 'lasso'); ?>" class="quote lasso-toolbar--component__quote"></li>
376
+						<!--li data-type="wpvideo" title="<?php esc_attr_e('WordPress Video', 'lasso'); ?>" class="video lasso-toolbar--component__video"></li-->
377 377
 					<?php endif; ?>
378
-					<?php do_action( 'lasso_toolbar_components' );?>
378
+					<?php do_action('lasso_toolbar_components'); ?>
379 379
 			    </ul>
380 380
 			</li>
381 381
             <?php if (!$text_select_popup) { ?>
382 382
             
383
-		    <?php if ( $toolbar_headings ): ?>
384
-		    <li id="lasso-toolbar--h2" title="<?php esc_attr_e( 'H2 Heading', 'lasso' );?>"></li>
385
-		    <li id="lasso-toolbar--h3" title="<?php esc_attr_e( 'H3 Heading', 'lasso' );?>"></li>
383
+		    <?php if ($toolbar_headings): ?>
384
+		    <li id="lasso-toolbar--h2" title="<?php esc_attr_e('H2 Heading', 'lasso'); ?>"></li>
385
+		    <li id="lasso-toolbar--h3" title="<?php esc_attr_e('H3 Heading', 'lasso'); ?>"></li>
386 386
 			<?php endif; ?>
387 387
 			
388 388
 			
389 389
 			
390
-			<?php if ( $toolbar_headings_h4 ): ?>
391
-		    <li id="lasso-toolbar--h4" title="<?php esc_attr_e( 'H4 Heading', 'lasso' );?>"></li>
392
-		    <li id="lasso-toolbar--h5" title="<?php esc_attr_e( 'H5 Heading', 'lasso' );?>"></li>
393
-			<li id="lasso-toolbar--h6" title="<?php esc_attr_e( 'H6 Heading', 'lasso' );?>"></li>
390
+			<?php if ($toolbar_headings_h4): ?>
391
+		    <li id="lasso-toolbar--h4" title="<?php esc_attr_e('H4 Heading', 'lasso'); ?>"></li>
392
+		    <li id="lasso-toolbar--h5" title="<?php esc_attr_e('H5 Heading', 'lasso'); ?>"></li>
393
+			<li id="lasso-toolbar--h6" title="<?php esc_attr_e('H6 Heading', 'lasso'); ?>"></li>
394 394
 			<?php endif; ?>
395 395
 			
396
-			<?php if ( $show_color ): ?>
397
-		    <li id="lasso-toolbar--color-set" title="<?php esc_attr_e( 'Set Color for Selected Text', 'lasso' );?>"></li>
398
-		    <li id="lasso-toolbar--color-pick" title="<?php esc_attr_e( 'Choose Color', 'lasso' );?>"></li>
396
+			<?php if ($show_color): ?>
397
+		    <li id="lasso-toolbar--color-set" title="<?php esc_attr_e('Set Color for Selected Text', 'lasso'); ?>"></li>
398
+		    <li id="lasso-toolbar--color-pick" title="<?php esc_attr_e('Choose Color', 'lasso'); ?>"></li>
399 399
 			<?php endif; ?>
400 400
 			
401
-			<?php if ( $toolbar_list ): ?>
402
-		    <li id="lasso-toolbar--ol" title="<?php esc_attr_e( 'Ordered List', 'lasso' );?>"></li>
403
-		    <li id="lasso-toolbar--ul" title="<?php esc_attr_e( 'Unordered List', 'lasso' );?>"></li>
401
+			<?php if ($toolbar_list): ?>
402
+		    <li id="lasso-toolbar--ol" title="<?php esc_attr_e('Ordered List', 'lasso'); ?>"></li>
403
+		    <li id="lasso-toolbar--ul" title="<?php esc_attr_e('Unordered List', 'lasso'); ?>"></li>
404 404
 			<?php endif; ?>
405 405
 					
406 406
 		    
407
-			<li id="lasso-toolbar--link" title="<?php esc_attr_e( 'Anchor Link', 'lasso' );?>">
407
+			<li id="lasso-toolbar--link" title="<?php esc_attr_e('Anchor Link', 'lasso'); ?>">
408 408
 		    	<div id="lasso-toolbar--link__wrap" <?php echo $mobile_style ?> >
409
-		    		<div id="lasso-toolbar--link__inner" contenteditable="true" placeholder="<?php esc_attr_e( 'http://url.com', 'lasso' );?>"></div>
410
-		    		<a href="#" title="<?php esc_attr_e( 'Create Link', 'lasso' );?>" class="lasso-toolbar--link__control" id="lasso-toolbar--link__create" ></a>
409
+		    		<div id="lasso-toolbar--link__inner" contenteditable="true" placeholder="<?php esc_attr_e('http://url.com', 'lasso'); ?>"></div>
410
+		    		<a href="#" title="<?php esc_attr_e('Create Link', 'lasso'); ?>" class="lasso-toolbar--link__control" id="lasso-toolbar--link__create" ></a>
411 411
 					<input class="styled-checkbox" type="checkbox" id="aesop-toolbar--link_newtab" checked/>
412
-                    <label for="aesop-toolbar--link_newtab"><?php esc_attr_e( 'Open in a New Tab', 'lasso' );?></label>
412
+                    <label for="aesop-toolbar--link_newtab"><?php esc_attr_e('Open in a New Tab', 'lasso'); ?></label>
413 413
 		    	</div>
414 414
 		    </li>
415 415
             
416 416
             <?php } ?>
417 417
             
418
-		    <?php do_action( 'lasso_toolbar_components_after' );?>
419
-		    <li id="lasso-toolbar--html" title="<?php esc_attr_e( 'Insert HTML or Code', 'lasso' );?>">
418
+		    <?php do_action('lasso_toolbar_components_after'); ?>
419
+		    <li id="lasso-toolbar--html" title="<?php esc_attr_e('Insert HTML or Code', 'lasso'); ?>">
420 420
 		    	<div id="lasso-toolbar--html__wrap" <?php echo $mobile_style ?>>
421
-		    		<div id="lasso-toolbar--html__inner" contenteditable="true" placeholder="<?php esc_attr_e( 'Enter HTML to insert', 'lasso' );?>"></div>
421
+		    		<div id="lasso-toolbar--html__inner" contenteditable="true" placeholder="<?php esc_attr_e('Enter HTML to insert', 'lasso'); ?>"></div>
422 422
 		    		<div id="lasso-toolbar--html__footer">
423 423
 					<div id="lasso-toolbar--html__footer_desc" >
424
-					<?php esc_attr_e( 'Enter HTML to insert', 'lasso' );?><br>
425
-					<?php esc_attr_e( 'You can also use Shortcodes', 'lasso' );?><br>
426
-					<?php esc_attr_e( 'You can also enter a URL to embed, such as Youtube, Vimeo and Twitter URLs.', 'lasso' );?>
424
+					<?php esc_attr_e('Enter HTML to insert', 'lasso'); ?><br>
425
+					<?php esc_attr_e('You can also use Shortcodes', 'lasso'); ?><br>
426
+					<?php esc_attr_e('You can also enter a URL to embed, such as Youtube, Vimeo and Twitter URLs.', 'lasso'); ?>
427 427
 					</div>
428 428
 		    			<ul class="lasso-toolbar--html-snips">
429 429
 						
430
-		    				<?php if ( !$toolbar_headings ): ?>
431
-		    				<li id="lasso-html--h2" title="<?php esc_attr_e( 'H2 Heading', 'lasso' );?>">
432
-		    				<li id="lasso-html--h3" title="<?php esc_attr_e( 'H3 Heading', 'lasso' );?>">
430
+		    				<?php if (!$toolbar_headings): ?>
431
+		    				<li id="lasso-html--h2" title="<?php esc_attr_e('H2 Heading', 'lasso'); ?>">
432
+		    				<li id="lasso-html--h3" title="<?php esc_attr_e('H3 Heading', 'lasso'); ?>">
433 433
 		    				<?php endif; ?>
434
-		    				<li id="lasso-html--ol" title="<?php esc_attr_e( 'Ordered List', 'lasso' );?>">
435
-							<li id="lasso-html--ul" title="<?php esc_attr_e( 'Unordered List', 'lasso' );?>">
434
+		    				<li id="lasso-html--ol" title="<?php esc_attr_e('Ordered List', 'lasso'); ?>">
435
+							<li id="lasso-html--ul" title="<?php esc_attr_e('Unordered List', 'lasso'); ?>">
436 436
 							
437
-							<li id="lasso-html--table" title="<?php esc_attr_e( 'Table', 'lasso' );?>">
437
+							<li id="lasso-html--table" title="<?php esc_attr_e('Table', 'lasso'); ?>">
438 438
 		    			</ul>
439
-		    			<a class="lasso-toolbar--html__control lasso-toolbar--html__cancel" href="#"><?php _e( 'Cancel', 'lasso' );?></a>
440
-		    			<a href="#" title="<?php esc_attr_e( 'Insert HTML or Code', 'lasso' );?>" class="lasso-toolbar--html__control" id="lasso-toolbar--html__insert" ><?php _e( 'Insert', 'lasso' );?></a>
439
+		    			<a class="lasso-toolbar--html__control lasso-toolbar--html__cancel" href="#"><?php _e('Cancel', 'lasso'); ?></a>
440
+		    			<a href="#" title="<?php esc_attr_e('Insert HTML or Code', 'lasso'); ?>" class="lasso-toolbar--html__control" id="lasso-toolbar--html__insert" ><?php _e('Insert', 'lasso'); ?></a>
441 441
 		    		</div>
442 442
 		    	</div>
443 443
 		    </li>
444 444
              
445
-			<?php if ( $show_align ): ?>
446
-		    <li id="lasso-toolbar--left-align" title="<?php esc_attr_e( 'Text Left Align', 'lasso' );?>"></li>
447
-		    <li id="lasso-toolbar--center-align" title="<?php esc_attr_e( 'Text Center Align', 'lasso' );?>"></li>
448
-			<li id="lasso-toolbar--right-align" title="<?php esc_attr_e( 'Text Right Align', 'lasso' );?>"></li>
445
+			<?php if ($show_align): ?>
446
+		    <li id="lasso-toolbar--left-align" title="<?php esc_attr_e('Text Left Align', 'lasso'); ?>"></li>
447
+		    <li id="lasso-toolbar--center-align" title="<?php esc_attr_e('Text Center Align', 'lasso'); ?>"></li>
448
+			<li id="lasso-toolbar--right-align" title="<?php esc_attr_e('Text Right Align', 'lasso'); ?>"></li>
449 449
 			<?php endif; ?>
450 450
            
451 451
 		</ul>
452
-		<?php if ( is_singular() && $is_mobile ) { ?>
452
+		<?php if (is_singular() && $is_mobile) { ?>
453 453
 
454
-				<div class="lasso--controls__right" data-posttype="<?php echo get_post_type( get_the_ID() );?>" data-status="<?php echo $status;?>" style="position:static;bottom:0px;right;0px;left:auto;">
454
+				<div class="lasso--controls__right" data-posttype="<?php echo get_post_type(get_the_ID()); ?>" data-status="<?php echo $status; ?>" style="position:static;bottom:0px;right;0px;left:auto;">
455 455
 
456
-					<a href="#" title="<?php esc_attr_e( 'Delete Post', 'lasso' );?>" id="lasso--post-delete" class="lasso-save-post lasso--button <?php echo $sc_saving_class;?>"></a>
457
-					<a href="#" title="<?php esc_attr_e( 'Post Settings', 'lasso' );?>" id="lasso--post-settings2" class="lasso-save-post lasso--button <?php echo $sc_saving_class;?>"></a>
456
+					<a href="#" title="<?php esc_attr_e('Delete Post', 'lasso'); ?>" id="lasso--post-delete" class="lasso-save-post lasso--button <?php echo $sc_saving_class; ?>"></a>
457
+					<a href="#" title="<?php esc_attr_e('Post Settings', 'lasso'); ?>" id="lasso--post-settings2" class="lasso-save-post lasso--button <?php echo $sc_saving_class; ?>"></a>
458 458
 
459
-					<a href="#" title="<?php esc_attr_e( 'Save Post', 'lasso' );?>" id="lasso--save" class="lasso-save-post lasso--button <?php echo $sc_saving_class;?>"></a>
459
+					<a href="#" title="<?php esc_attr_e('Save Post', 'lasso'); ?>" id="lasso--save" class="lasso-save-post lasso--button <?php echo $sc_saving_class; ?>"></a>
460 460
 
461
-					<?php if ( 'draft' == $status && ( lasso_user_can('publish_posts') || lasso_user_can('publish_pages') )  ) { ?>
462
-						<a href="#" title="<?php esc_attr_e( 'Publish Post', 'lasso' );?>" id="lasso--publish" class="lasso-publish-post lasso--button <?php echo $sc_saving_class;?>"></a>
461
+					<?php if ('draft' == $status && (lasso_user_can('publish_posts') || lasso_user_can('publish_pages'))) { ?>
462
+						<a href="#" title="<?php esc_attr_e('Publish Post', 'lasso'); ?>" id="lasso--publish" class="lasso-publish-post lasso--button <?php echo $sc_saving_class; ?>"></a>
463 463
 					<?php } ?>
464 464
 
465 465
 				</div>
@@ -479,20 +479,20 @@  discard block
 block discarded – undo
479 479
  */
480 480
 function lasso_editor_settings_toolbar() {
481 481
 
482
-	$delete_nonce = wp_create_nonce( 'lasso-delete-nonce' );
482
+	$delete_nonce = wp_create_nonce('lasso-delete-nonce');
483 483
 
484 484
 	ob_start();
485 485
 
486 486
 
487 487
 	// let users add custom css classes
488
-	$custom_classes = apply_filters( 'lasso_component_classes', '' );
488
+	$custom_classes = apply_filters('lasso_component_classes', '');
489 489
 
490 490
 	?>
491
-	<ul class="lasso-component--controls editus-center <?php echo sanitize_html_class( $custom_classes );?>" contenteditable="false">
492
-		<li class="lasso-drag" title="<?php esc_attr_e( 'Move', 'lasso' );?>"></li>
493
-		<li class="lasso-component--settings__trigger  lasso-settings" title="<?php esc_attr_e( 'Settings', 'lasso' );?>"></li>
494
-		<li class="lasso-clone" title="<?php esc_attr_e( 'Clone', 'lasso' );?>"></li>
495
-		<li class="lasso-delete" data-postid="<?php echo get_the_ID();?>" data-nonce="<?php echo $delete_nonce;?>" title="<?php esc_attr_e( 'Delete', 'lasso' );?>"></li>
491
+	<ul class="lasso-component--controls editus-center <?php echo sanitize_html_class($custom_classes); ?>" contenteditable="false">
492
+		<li class="lasso-drag" title="<?php esc_attr_e('Move', 'lasso'); ?>"></li>
493
+		<li class="lasso-component--settings__trigger  lasso-settings" title="<?php esc_attr_e('Settings', 'lasso'); ?>"></li>
494
+		<li class="lasso-clone" title="<?php esc_attr_e('Clone', 'lasso'); ?>"></li>
495
+		<li class="lasso-delete" data-postid="<?php echo get_the_ID(); ?>" data-nonce="<?php echo $delete_nonce; ?>" title="<?php esc_attr_e('Delete', 'lasso'); ?>"></li>
496 496
 	</ul>
497 497
 
498 498
 	<?php return ob_get_clean();
@@ -510,13 +510,13 @@  discard block
 block discarded – undo
510 510
 
511 511
 
512 512
 	// has post thumbnail
513
-	$has_thumbnail = has_post_thumbnail( get_the_ID() ) ? 'class="lasso--featImg--has-thumb"' : false;
513
+	$has_thumbnail = has_post_thumbnail(get_the_ID()) ? 'class="lasso--featImg--has-thumb"' : false;
514 514
 
515 515
 	?>
516
-	<ul id="lasso--featImgControls" <?php echo $has_thumbnail;?>>
517
-		<li id="lasso--featImgUpload"><a title="<?php esc_attr_e( 'Replace Image', 'lasso' );?>" href="#"><i class="lasso-icon-image"></i></a></li>
518
-		<li id="lasso--featImgDelete"><a title="<?php esc_attr_e( 'Delete Image', 'lasso' );?>" href="#"><i class="lasso-icon-bin2"></i></a></li>
519
-		<li id="lasso--featImgSave"><a href="#"><?php esc_attr_e( 'save', 'lasso' );?></a></li>
516
+	<ul id="lasso--featImgControls" <?php echo $has_thumbnail; ?>>
517
+		<li id="lasso--featImgUpload"><a title="<?php esc_attr_e('Replace Image', 'lasso'); ?>" href="#"><i class="lasso-icon-image"></i></a></li>
518
+		<li id="lasso--featImgDelete"><a title="<?php esc_attr_e('Delete Image', 'lasso'); ?>" href="#"><i class="lasso-icon-bin2"></i></a></li>
519
+		<li id="lasso--featImgSave"><a href="#"><?php esc_attr_e('save', 'lasso'); ?></a></li>
520 520
 	</ul>
521 521
 
522 522
 	<?php return ob_get_clean();
@@ -540,39 +540,39 @@  discard block
 block discarded – undo
540 540
 
541 541
 	$postid = get_the_ID();
542 542
 
543
-	$status = get_post_status( $postid );
544
-	$nonce = wp_create_nonce( 'lasso-update-post-settings' );
543
+	$status = get_post_status($postid);
544
+	$nonce = wp_create_nonce('lasso-update-post-settings');
545 545
 
546 546
 	// let users add custom css classes
547
-	$custom_classes = apply_filters( 'lasso_modal_settings_classes', '' );
547
+	$custom_classes = apply_filters('lasso_modal_settings_classes', '');
548 548
 
549 549
 	// objects categories
550
-	$categories 		= lasso_get_post_objects( $postid, 'category' );
551
-	$tags 				= lasso_get_post_objects( $postid, 'tag' );
550
+	$categories = lasso_get_post_objects($postid, 'category');
551
+	$tags = lasso_get_post_objects($postid, 'tag');
552 552
 	
553 553
 	// modal tabs
554
-	$tabs  				= lasso_modal_addons('tab');
555
-	$content 			= lasso_modal_addons('content');
554
+	$tabs = lasso_modal_addons('tab');
555
+	$content = lasso_modal_addons('content');
556 556
 	
557 557
 	//editor options
558 558
 	$allow_change_date = lasso_editor_get_option('allow_change_date', 'lasso_editor');
559 559
     $allow_edit_excerpt = lasso_editor_get_option('allow_edit_excerpt', 'lasso_editor');
560 560
 	$no_url_setting = lasso_editor_get_option('no_url_setting', 'lasso_editor');
561
-	$support_custom_taxonomy   = lasso_editor_get_option( 'support_custom_taxonomy', 'lasso_editor' );
561
+	$support_custom_taxonomy = lasso_editor_get_option('support_custom_taxonomy', 'lasso_editor');
562 562
 	
563 563
 	//get custom taxonomy
564 564
 	if ($support_custom_taxonomy) {
565
-		$custom_taxonomies         = array_diff(get_object_taxonomies( get_post_type( $postid ), 'names' ), ['category','post_tag','post_format']);
565
+		$custom_taxonomies = array_diff(get_object_taxonomies(get_post_type($postid), 'names'), ['category', 'post_tag', 'post_format']);
566 566
 	} else {
567 567
 		$custom_taxonomies = [];
568 568
 	}
569 569
 
570 570
 	// are we singular
571
-	$is_singular 		= is_singular();
571
+	$is_singular = is_singular();
572 572
 	$is_singular_class 	= $is_singular ? 'lasso--postsettings__2col' : 'lasso--postsettings__1col';
573 573
 	$has_thumb_class    = has_post_thumbnail() ? 'has-thumbnail' : 'no-thumbnail';
574 574
 	$theme_supports     = current_theme_supports('post-thumbnails');
575
-	$default_image 		= LASSO_URL.'/admin/assets/img/empty-img.png';
575
+	$default_image = LASSO_URL.'/admin/assets/img/empty-img.png';
576 576
 	
577 577
 	// do we support pending status
578 578
 	$no_pending_status = lasso_editor_get_option('no_pending_status', 'lasso_editor');
@@ -580,26 +580,26 @@  discard block
 block discarded – undo
580 580
     $excerpt = $post->post_excerpt;
581 581
 
582 582
 ?>
583
-	<div id="lasso--post-settings__modal" class="lasso--modal lassoShowAnimate <?php echo sanitize_html_class( $custom_classes );?>">
583
+	<div id="lasso--post-settings__modal" class="lasso--modal lassoShowAnimate <?php echo sanitize_html_class($custom_classes); ?>">
584 584
 		<div class="lasso--modal__inner">
585 585
 
586
-			<?php if( $tabs ) { echo $tabs; } ?>
586
+			<?php if ($tabs) { echo $tabs; } ?>
587 587
 
588 588
 			<div class="lasso--modal__content modal__content--core visible" data-addon-content="core">
589
-				<form id="lasso--postsettings__form" enctype="multipart/form-data" class="lasso--post-form <?php echo $is_singular_class.' '.$has_thumb_class;?>" >
589
+				<form id="lasso--postsettings__form" enctype="multipart/form-data" class="lasso--post-form <?php echo $is_singular_class.' '.$has_thumb_class; ?>" >
590 590
 
591
-					<?php if ( $is_singular && $theme_supports ) : ?>
591
+					<?php if ($is_singular && $theme_supports) : ?>
592 592
 					<div class="lasso--postsettings__left">
593
-						<label><?php _e( 'Featured Image', 'lasso' );?><span class="lasso-util--help lasso-util--help-top" data-tooltip="<?php esc_attr_e( 'Change the featured image for this post.', 'lasso' );?>"><i class="lasso-icon-help"></i></span></label>
594
-						<div class="lasso--post-thumb" data-default-thumb="<?php echo esc_url( $default_image );?>">
593
+						<label><?php _e('Featured Image', 'lasso'); ?><span class="lasso-util--help lasso-util--help-top" data-tooltip="<?php esc_attr_e('Change the featured image for this post.', 'lasso'); ?>"><i class="lasso-icon-help"></i></span></label>
594
+						<div class="lasso--post-thumb" data-default-thumb="<?php echo esc_url($default_image); ?>">
595 595
 
596 596
 							<div id="lasso--post-thumb__controls" class="lasso--post-thumb__controls">
597
-								<i id="lasso--post-thumb__add" title="<?php _e('Change Featured Image','lasso');?>" class="dashicons dashicons-edit"></i>
598
-								<i id="lasso--post-thumb__delete" title="<?php _e('Delete Featured Image','lasso');?>" class="dashicons dashicons-no-alt"></i>
597
+								<i id="lasso--post-thumb__add" title="<?php _e('Change Featured Image', 'lasso'); ?>" class="dashicons dashicons-edit"></i>
598
+								<i id="lasso--post-thumb__delete" title="<?php _e('Delete Featured Image', 'lasso'); ?>" class="dashicons dashicons-no-alt"></i>
599 599
 								<i id="lasso--save-status" class="lasso-icon lasso-icon-spinner6 not-visible"></i>
600 600
 							</div>
601 601
 
602
-							<?php echo has_post_thumbnail() ? get_the_post_thumbnail( $post->ID, 'medium' ) : '<img src="'.$default_image.'">'; ?>
602
+							<?php echo has_post_thumbnail() ? get_the_post_thumbnail($post->ID, 'medium') : '<img src="'.$default_image.'">'; ?>
603 603
 
604 604
 						</div>
605 605
 						<div id="lasso--featImgSave"><a href="#" class="not-visible">Save</a></div>
@@ -609,15 +609,15 @@  discard block
 block discarded – undo
609 609
 
610 610
 					<div class="lasso--postsettings__right">
611 611
 
612
-						<?php if( lasso_user_can('publish_posts') || lasso_user_can('publish_pages') ): ?>
612
+						<?php if (lasso_user_can('publish_posts') || lasso_user_can('publish_pages')): ?>
613 613
 						<div class="lasso--postsettings__option story-status-option">
614
-							<label><?php _e( 'Status', 'lasso' );?><span class="lasso-util--help lasso-util--help-top" data-tooltip="<?php esc_attr_e( 'Change the status of the post to draft or publish.', 'lasso' );?>"><i class="lasso-icon-help"></i></span></label>
615
-							<ul class="story-status story-status-<?php echo sanitize_html_class( $status );?>">
616
-								<li id="lasso--status-draft"><?php _e( 'Draft', 'lasso' );?></li>
617
-								<?php if( !$no_pending_status ): ?>								
618
-								<li id="lasso--status-pending"><?php _e( 'Pending', 'lasso' );?></li>
614
+							<label><?php _e('Status', 'lasso'); ?><span class="lasso-util--help lasso-util--help-top" data-tooltip="<?php esc_attr_e('Change the status of the post to draft or publish.', 'lasso'); ?>"><i class="lasso-icon-help"></i></span></label>
615
+							<ul class="story-status story-status-<?php echo sanitize_html_class($status); ?>">
616
+								<li id="lasso--status-draft"><?php _e('Draft', 'lasso'); ?></li>
617
+								<?php if (!$no_pending_status): ?>								
618
+								<li id="lasso--status-pending"><?php _e('Pending', 'lasso'); ?></li>
619 619
 								<?php endif; ?>
620
-								<li id="lasso--status-publish"><?php _e( 'Publish', 'lasso' );?></li>
620
+								<li id="lasso--status-publish"><?php _e('Publish', 'lasso'); ?></li>
621 621
 							</ul>
622 622
 							<div class="lasso--slider_wrap">
623 623
 								<div id="lasso--slider"></div>
@@ -625,10 +625,10 @@  discard block
 block discarded – undo
625 625
 						</div>
626 626
 						<?php endif; ?>
627 627
 
628
-						<?php if ( 'publish' == $status  && !$no_url_setting): ?>
628
+						<?php if ('publish' == $status && !$no_url_setting): ?>
629 629
 						<div class="lasso--postsettings__option story-slug-option">
630
-							<label><?php _e( 'Post URL', 'lasso' );?><span class="lasso-util--help lasso-util--help-top" data-tooltip="<?php esc_attr_e( 'Change the URL (slug) of this post.', 'lasso' );?>"><i class="lasso-icon-help"></i></span></label>
631
-							<input class="lasso--modal__trigger-footer" type="text" name="story_slug" value="<?php echo isset( $post ) ? esc_attr( $post->post_name ) : false;?>">
630
+							<label><?php _e('Post URL', 'lasso'); ?><span class="lasso-util--help lasso-util--help-top" data-tooltip="<?php esc_attr_e('Change the URL (slug) of this post.', 'lasso'); ?>"><i class="lasso-icon-help"></i></span></label>
631
+							<input class="lasso--modal__trigger-footer" type="text" name="story_slug" value="<?php echo isset($post) ? esc_attr($post->post_name) : false; ?>">
632 632
 						</div>
633 633
 						<?php endif; ?>
634 634
 
@@ -637,20 +637,20 @@  discard block
 block discarded – undo
637 637
 					<div class="lasso--postsettings__middle">
638 638
 
639 639
 						<div class="lasso--postsettings__option story-categories-option">
640
-							<label style="width:120px;"><?php _e( 'Categories', 'lasso' );?><span class="lasso-util--help lasso-util--help-top" data-tooltip="<?php esc_attr_e( 'Type a category name and press enter.', 'lasso' );?>"><i class="lasso-icon-help"></i></span></label>
641
-							<input id="lasso--cat-select" class="lasso--modal__trigger-footer" type="hidden" name="story_cats" value="<?php echo $categories;?>">
640
+							<label style="width:120px;"><?php _e('Categories', 'lasso'); ?><span class="lasso-util--help lasso-util--help-top" data-tooltip="<?php esc_attr_e('Type a category name and press enter.', 'lasso'); ?>"><i class="lasso-icon-help"></i></span></label>
641
+							<input id="lasso--cat-select" class="lasso--modal__trigger-footer" type="hidden" name="story_cats" value="<?php echo $categories; ?>">
642 642
 						</div>
643 643
 
644 644
 						<div class="lasso--postsettings__option story-tags-option">
645
-							<label><?php _e( 'Tags', 'lasso' );?><span class="lasso-util--help lasso-util--help-top" data-tooltip="<?php esc_attr_e( 'Type a tag name and press enter.', 'lasso' );?>"><i class="lasso-icon-help"></i></span></label>
646
-							<input id="lasso--tag-select" class="lasso--modal__trigger-footer" type="hidden" name="story_tags" value="<?php echo $tags;?>">
645
+							<label><?php _e('Tags', 'lasso'); ?><span class="lasso-util--help lasso-util--help-top" data-tooltip="<?php esc_attr_e('Type a tag name and press enter.', 'lasso'); ?>"><i class="lasso-icon-help"></i></span></label>
646
+							<input id="lasso--tag-select" class="lasso--modal__trigger-footer" type="hidden" name="story_tags" value="<?php echo $tags; ?>">
647 647
 						</div>
648 648
 						
649 649
 						<?php
650 650
 						if (!empty($custom_taxonomies)) {
651 651
 						?>
652 652
 						<div class="lasso--postsettings__option story-custom-taxonomy-option">
653
-							<label><?php _e( 'Custom Taxonomy', 'lasso' );?><span class="lasso-util--help lasso-util--help-top" data-tooltip="<?php esc_attr_e( 'Choose custom taxonomy.', 'lasso' );?>"><i class="lasso-icon-help"></i></span></label>
653
+							<label><?php _e('Custom Taxonomy', 'lasso'); ?><span class="lasso-util--help lasso-util--help-top" data-tooltip="<?php esc_attr_e('Choose custom taxonomy.', 'lasso'); ?>"><i class="lasso-icon-help"></i></span></label>
654 654
 							<select id="lasso--custom-taxo-select" class="lasso--modal__trigger-footer" name="custom_taxo">
655 655
 							<?php foreach ($custom_taxonomies as $taxonomy) {?>
656 656
 							<option value="<?php echo $taxonomy?>"><?php echo $taxonomy?></option>
@@ -667,18 +667,18 @@  discard block
 block discarded – undo
667 667
 						if ($allow_edit_excerpt) { 
668 668
 						?>
669 669
                         <div class="lasso--postsettings__option story-excerpt-option">
670
-							<label><?php _e( 'Excerpt', 'lasso' );?><span class="lasso-util--help lasso-util--help-top" data-tooltip="<?php esc_attr_e( 'Edit excerpt', 'lasso' );?>"><i class="lasso-icon-help"></i></span></label>
671
-							<input id="lasso--excerpt" class="lasso--modal__trigger-footer" type="text" name="excerpt" value="<?php echo $excerpt;?>" style="width:100%">
670
+							<label><?php _e('Excerpt', 'lasso'); ?><span class="lasso-util--help lasso-util--help-top" data-tooltip="<?php esc_attr_e('Edit excerpt', 'lasso'); ?>"><i class="lasso-icon-help"></i></span></label>
671
+							<input id="lasso--excerpt" class="lasso--modal__trigger-footer" type="text" name="excerpt" value="<?php echo $excerpt; ?>" style="width:100%">
672 672
 						</div>
673 673
                         <?php
674 674
 						}?>
675 675
 						<?php 
676 676
 						if ($allow_change_date) { 
677
-						    $dateformat = get_option( 'date_format' ); 
677
+						    $dateformat = get_option('date_format'); 
678 678
 						?>
679
-						    <label><?php _e( 'Post Date', 'lasso' ); ?></label>
680
-							<input type="text" class="editus_custom_date" name="post_date" value="<?php echo get_the_time($dateformat, $postid);?>"/>
681
-							<a href="#" id="lasso--postsettings-setnow"><?php _e( 'Set to Now', 'lasso' ); ?></a>
679
+						    <label><?php _e('Post Date', 'lasso'); ?></label>
680
+							<input type="text" class="editus_custom_date" name="post_date" value="<?php echo get_the_time($dateformat, $postid); ?>"/>
681
+							<a href="#" id="lasso--postsettings-setnow"><?php _e('Set to Now', 'lasso'); ?></a>
682 682
 						<?php
683 683
 						}?>
684 684
 
@@ -700,23 +700,23 @@  discard block
 block discarded – undo
700 700
 					?>
701 701
 					<!--/div-->
702 702
 
703
-					<?php do_action( 'lasso_modal_post_form' ); // action ?>
703
+					<?php do_action('lasso_modal_post_form'); // action ?>
704 704
 
705 705
 					<div class="lasso--postsettings__footer" >
706
-						<a href="#" class="lasso--postsettings-cancel"><?php _e( 'Cancel', 'lasso' );?></a>
706
+						<a href="#" class="lasso--postsettings-cancel"><?php _e('Cancel', 'lasso'); ?></a>
707 707
 						<input type="hidden" name="status" value="">
708 708
 						<input type="hidden" name="categories" value="">
709
-						<input type="hidden" name="postid" value="<?php echo get_the_ID();?>">
709
+						<input type="hidden" name="postid" value="<?php echo get_the_ID(); ?>">
710 710
 						<input type="hidden" name="action" value="process_update-object_post">
711
-						<input type="hidden" name="nonce" value="<?php echo $nonce;?>">
712
-						<?php do_action( 'lasso_modal_post_form_footer' ); // action ?>
713
-						<input type="submit" id="lasso--postsettings-submit" value="<?php esc_attr_e( 'Save', 'lasso' );?>">
711
+						<input type="hidden" name="nonce" value="<?php echo $nonce; ?>">
712
+						<?php do_action('lasso_modal_post_form_footer'); // action ?>
713
+						<input type="submit" id="lasso--postsettings-submit" value="<?php esc_attr_e('Save', 'lasso'); ?>">
714 714
 					</div>
715 715
 
716 716
 				</form>
717 717
 			</div>
718 718
 
719
-			<?php if( $tabs ) { echo $content; } ?>
719
+			<?php if ($tabs) { echo $content; } ?>
720 720
 
721 721
 		</div>
722 722
 
@@ -738,43 +738,43 @@  discard block
 block discarded – undo
738 738
 	ob_start();
739 739
 
740 740
 
741
-	$status = get_post_status( get_the_ID() );
741
+	$status = get_post_status(get_the_ID());
742 742
 
743
-	$nonce = wp_create_nonce( 'lasso-editor-new-post' );
743
+	$nonce = wp_create_nonce('lasso-editor-new-post');
744 744
 
745 745
 	// let users add custom css classes
746
-	$custom_classes = apply_filters( 'lasso_modal_post_classes', '' );
746
+	$custom_classes = apply_filters('lasso_modal_post_classes', '');
747 747
 
748 748
 	// return the post type
749
-	$type = get_post_type( get_the_ID() );
749
+	$type = get_post_type(get_the_ID());
750 750
 
751 751
 	$mobile_style = "";
752 752
 	if (wp_is_mobile()) {
753 753
 		//$mobile_style = 'style="top:140px !important;"';
754 754
 	}
755 755
 	?>
756
-	<div id="lasso--post-new__modal" class="lasso--modal lasso--modal__med lassoShowAnimate <?php echo sanitize_html_class( $custom_classes );?>" <?php echo $mobile_style;?>">
756
+	<div id="lasso--post-new__modal" class="lasso--modal lasso--modal__med lassoShowAnimate <?php echo sanitize_html_class($custom_classes); ?>" <?php echo $mobile_style; ?>">
757 757
 		<div class="lasso--modal__inner lasso--hasnewform">
758 758
 
759 759
 			<form id="lasso--postnew__form" enctype="multipart/form-data" class="lasso--post-form">
760 760
 
761 761
 				<div class="lasso--postsettings__option story-slug-option lasso--last-option">
762
-					<label><?php esc_attr_e( 'New <span>post</span> title', 'lasso' );?><span class="lasso-util--help lasso-util--help-top" data-tooltip="<?php esc_attr_e( 'Specify title for new post, then save to edit.', 'lasso' );?>"><i class="lasso-icon-help"></i></span></label>
763
-					<input class="lasso--modal__trigger-footer" type="text" required name="story_title" value="" placeholder="<?php esc_attr_e( 'Type Your Title Here', 'lasso' );?>">
762
+					<label><?php esc_attr_e('New <span>post</span> title', 'lasso'); ?><span class="lasso-util--help lasso-util--help-top" data-tooltip="<?php esc_attr_e('Specify title for new post, then save to edit.', 'lasso'); ?>"><i class="lasso-icon-help"></i></span></label>
763
+					<input class="lasso--modal__trigger-footer" type="text" required name="story_title" value="" placeholder="<?php esc_attr_e('Type Your Title Here', 'lasso'); ?>">
764 764
 						<div class="lasso--select-wrap" style="width:90px">
765 765
 						<select id="lasso--select-type" name="story_type">
766 766
 
767 767
 							<?php
768 768
 								$types = lasso_post_types_names();
769
-								if ( !empty( $types ) ) {
770
-									foreach( $types as $name => $label ) 
769
+								if (!empty($types)) {
770
+									foreach ($types as $name => $label) 
771 771
                                     {   	
772 772
                                         $type = $name;									
773 773
 										//$type = preg_replace( '/s\b/','', $name );
774 774
 										if ($type == 'page' && !current_user_can('edit_pages')) {
775 775
 											continue;
776 776
 										}
777
-										printf( '<option value="%s">%s</option>', lcfirst( esc_attr( $type ) ) , ucfirst( esc_attr( $label ) ) );
777
+										printf('<option value="%s">%s</option>', lcfirst(esc_attr($type)), ucfirst(esc_attr($label)));
778 778
 									}
779 779
 
780 780
 								}
@@ -785,19 +785,19 @@  discard block
 block discarded – undo
785 785
 				</div>
786 786
 
787 787
 				<div class="lasso--postsettings__footer">
788
-					<a href="#" class="lasso--postsettings-cancel"><?php _e( 'Cancel', 'lasso' );?></a>
788
+					<a href="#" class="lasso--postsettings-cancel"><?php _e('Cancel', 'lasso'); ?></a>
789 789
 					<input type="hidden" name="action" value="process_new-object_post">
790 790
 					<?php
791
-						if ( !empty( $types ) ) {
791
+						if (!empty($types)) {
792 792
 							// get the first element
793 793
 							$keys = array_keys($types);
794
-						    $type =$keys[0];						
794
+						    $type = $keys[0];						
795 795
 							//$type = preg_replace( '/s\b/','', $type );
796
-							printf( '<input type="hidden" name="object" value="%s">', lcfirst( esc_attr( $type ) ) );		
796
+							printf('<input type="hidden" name="object" value="%s">', lcfirst(esc_attr($type)));		
797 797
 						}
798 798
 					?>
799
-					<input type="hidden" name="nonce" value="<?php echo $nonce;?>">
800
-					<input type="submit" value="<?php esc_attr_e( 'Create', 'lasso' );?>">
799
+					<input type="hidden" name="nonce" value="<?php echo $nonce; ?>">
800
+					<input type="submit" value="<?php esc_attr_e('Create', 'lasso'); ?>">
801 801
 				</div>
802 802
 
803 803
 			</form>
@@ -825,18 +825,18 @@  discard block
 block discarded – undo
825 825
 	ob_start();
826 826
 
827 827
 	// post status
828
-	$status = get_post_status( get_the_ID() );
828
+	$status = get_post_status(get_the_ID());
829 829
 
830 830
 	// let users add custom css classes
831
-	$custom_classes = apply_filters( 'lasso_modal_all_post_classes', '' );
831
+	$custom_classes = apply_filters('lasso_modal_all_post_classes', '');
832 832
 
833 833
 	?>
834
-	<div id="lasso--all-posts__modal" class="lasso--modal lasso--modal__full lassoShowAnimate <?php echo sanitize_html_class( $custom_classes );?>" style="max-height:100%">
834
+	<div id="lasso--all-posts__modal" class="lasso--modal lasso--modal__full lassoShowAnimate <?php echo sanitize_html_class($custom_classes); ?>" style="max-height:100%">
835 835
 		<div class="lasso--modal__inner">
836 836
 
837 837
 			<div class="lasso--post-filtering not-visible">
838 838
 				<div class="lasso--search__results">
839
-					<span id="lasso--results-found"></span><?php _e('results found','lasso');?>
839
+					<span id="lasso--results-found"></span><?php _e('results found', 'lasso'); ?>
840 840
 				</div>
841 841
 				<div class="lasso--search">
842 842
 					<i id="lasso--search__toggle" class="dashicons dashicons-search"></i>
@@ -850,18 +850,18 @@  discard block
 block discarded – undo
850 850
 				$post_types = lasso_post_types_names();
851 851
 				$rest_bases = lasso_post_types_rest_base();
852 852
 
853
-				if ( ! empty( $post_types ) ) {
853
+				if (!empty($post_types)) {
854 854
 					$first = 'active';
855
-					foreach( $post_types as $name => $label ) {
855
+					foreach ($post_types as $name => $label) {
856 856
 						if (array_key_exists($name, $rest_bases)) {
857
-							printf( '<li class="%1s lasso--show-objects" data-post-type="%2s">%3s</li>', esc_attr( $first), esc_attr( $rest_bases[$name] ), esc_attr( $label ) );
857
+							printf('<li class="%1s lasso--show-objects" data-post-type="%2s">%3s</li>', esc_attr($first), esc_attr($rest_bases[$name]), esc_attr($label));
858 858
 						}
859 859
 						$first = '';
860 860
 					}
861 861
 
862 862
 				}
863 863
 
864
-				do_action('lasso_modal_post_objects');?>
864
+				do_action('lasso_modal_post_objects'); ?>
865 865
 
866 866
 			</ul>
867 867
 			<div id="lasso--loading" class="lasso--loading"><div class="lasso--loader"></div></div>
@@ -880,21 +880,21 @@  discard block
 block discarded – undo
880 880
 	ob_start();
881 881
 
882 882
 
883
-    $use_old_wpimg = lasso_editor_get_option('use_old_wpimg', 'lasso_editor','off');
883
+    $use_old_wpimg = lasso_editor_get_option('use_old_wpimg', 'lasso_editor', 'off');
884 884
     
885 885
 	// let users add custom css classes
886
-	$custom_classes = apply_filters( 'lasso_wpimg_classes', '' );
886
+	$custom_classes = apply_filters('lasso_wpimg_classes', '');
887 887
 
888 888
 	?>
889
-	<ul class="lasso-component--controls editus-center <?php echo sanitize_html_class( $custom_classes );?>" contenteditable="false">
890
-		<li class="lasso-drag" title="<?php esc_attr_e( 'Move', 'lasso' );?>"></li>
891
-        <?php if ($use_old_wpimg=='on') {?>
892
-            <li  class="lasso--wpimg-edit lasso-settings" title="<?php esc_attr_e( 'Settings', 'lasso' );?>"></li>
889
+	<ul class="lasso-component--controls editus-center <?php echo sanitize_html_class($custom_classes); ?>" contenteditable="false">
890
+		<li class="lasso-drag" title="<?php esc_attr_e('Move', 'lasso'); ?>"></li>
891
+        <?php if ($use_old_wpimg == 'on') {?>
892
+            <li  class="lasso--wpimg-edit lasso-settings" title="<?php esc_attr_e('Settings', 'lasso'); ?>"></li>
893 893
         <?php } else {?>
894
-            <li  class="lasso-component--settings__trigger lasso-settings" title="<?php esc_attr_e( 'Settings', 'lasso' );?>"></li>
894
+            <li  class="lasso-component--settings__trigger lasso-settings" title="<?php esc_attr_e('Settings', 'lasso'); ?>"></li>
895 895
         <?php } ?>
896
-		<li class="lasso-clone" title="<?php esc_attr_e( 'Clone', 'lasso' );?>"></li>
897
-		<li class="lasso-delete" title="<?php esc_attr_e( 'Delete', 'lasso' );?>"></li>
896
+		<li class="lasso-clone" title="<?php esc_attr_e('Clone', 'lasso'); ?>"></li>
897
+		<li class="lasso-delete" title="<?php esc_attr_e('Delete', 'lasso'); ?>"></li>
898 898
 	</ul>
899 899
 
900 900
 	<?php return ob_get_clean();
@@ -905,10 +905,10 @@  discard block
 block discarded – undo
905 905
 
906 906
 	?>
907 907
 	<ul class="lasso-component--controls editus-center" contenteditable="false">
908
-		<li class="lasso-drag" title="<?php esc_attr_e( 'Move', 'lasso' );?>"></li>
909
-            <li  class="lasso-component--settings__trigger lasso-settings" title="<?php esc_attr_e( 'Settings', 'lasso' );?>"></li>
910
-		<li class="lasso-clone" title="<?php esc_attr_e( 'Clone', 'lasso' );?>"></li>
911
-		<li class="lasso-delete" title="<?php esc_attr_e( 'Delete', 'lasso' );?>"></li>
908
+		<li class="lasso-drag" title="<?php esc_attr_e('Move', 'lasso'); ?>"></li>
909
+            <li  class="lasso-component--settings__trigger lasso-settings" title="<?php esc_attr_e('Settings', 'lasso'); ?>"></li>
910
+		<li class="lasso-clone" title="<?php esc_attr_e('Clone', 'lasso'); ?>"></li>
911
+		<li class="lasso-delete" title="<?php esc_attr_e('Delete', 'lasso'); ?>"></li>
912 912
 	</ul>
913 913
 
914 914
 	<?php return ob_get_clean();
@@ -920,14 +920,14 @@  discard block
 block discarded – undo
920 920
 
921 921
 
922 922
 	// let users add custom css classes
923
-	$custom_classes = apply_filters( 'lasso_wpimg_classes', '' );
923
+	$custom_classes = apply_filters('lasso_wpimg_classes', '');
924 924
 
925 925
 	?>
926
-	<ul class="lasso-component--controls editus-center <?php echo sanitize_html_class( $custom_classes );?>" contenteditable="false">
927
-		<li class="lasso-drag" title="<?php esc_attr_e( 'Move', 'lasso' );?>"></li>
928
-		<li id="lasso--wpvideo-edit" class="lasso-settings" title="<?php esc_attr_e( 'Settings', 'lasso' );?>"></li>
929
-		<li class="lasso-clone" title="<?php esc_attr_e( 'Clone', 'lasso' );?>"></li>
930
-		<li class="lasso-delete" title="<?php esc_attr_e( 'Delete', 'lasso' );?>"></li>
926
+	<ul class="lasso-component--controls editus-center <?php echo sanitize_html_class($custom_classes); ?>" contenteditable="false">
927
+		<li class="lasso-drag" title="<?php esc_attr_e('Move', 'lasso'); ?>"></li>
928
+		<li id="lasso--wpvideo-edit" class="lasso-settings" title="<?php esc_attr_e('Settings', 'lasso'); ?>"></li>
929
+		<li class="lasso-clone" title="<?php esc_attr_e('Clone', 'lasso'); ?>"></li>
930
+		<li class="lasso-delete" title="<?php esc_attr_e('Delete', 'lasso'); ?>"></li>
931 931
 	</ul>
932 932
 
933 933
 	<?php return ob_get_clean();
@@ -940,16 +940,16 @@  discard block
 block discarded – undo
940 940
  */
941 941
 function lasso_map_form_footer() {
942 942
 
943
-	$nonce = wp_create_nonce( 'lasso-process-map' );
943
+	$nonce = wp_create_nonce('lasso-process-map');
944 944
 
945 945
 	ob_start();
946 946
 
947 947
 	?>
948 948
 	<div class="lasso--map-form__footer">
949
-		<input type="hidden" name="postid" value="<?php echo get_the_ID();?>">
950
-		<input type="hidden" name="nonce" value="<?php echo $nonce;?>">
949
+		<input type="hidden" name="postid" value="<?php echo get_the_ID(); ?>">
950
+		<input type="hidden" name="nonce" value="<?php echo $nonce; ?>">
951 951
 		<input type="hidden" name="action" value="process_map_save">
952
-		<input type="submit" class="lasso--map-form__submit" value="<?php esc_attr_e( 'Save Locations', 'lasso' );?>">
952
+		<input type="submit" class="lasso--map-form__submit" value="<?php esc_attr_e('Save Locations', 'lasso'); ?>">
953 953
 	</div>
954 954
 
955 955
 	<?php return ob_get_clean();
@@ -967,7 +967,7 @@  discard block
 block discarded – undo
967 967
 
968 968
 	?>
969 969
 	<div id="lasso--pagerefresh" class="visible">
970
-		<?php _e( 'Save this post and refesh the page to see these changes.', 'lasso' );?>
970
+		<?php _e('Save this post and refesh the page to see these changes.', 'lasso'); ?>
971 971
 	</div>
972 972
 
973 973
 	<?php return ob_get_clean();
@@ -981,47 +981,47 @@  discard block
 block discarded – undo
981 981
  */
982 982
 function lasso_editor_options_blob() {
983 983
 
984
-	$codes   = function_exists( 'aesop_shortcodes' ) ? aesop_shortcodes() : array();
985
-    $codes   = add_wpimg_options( $codes );
986
-	$codes   = add_wpimg_block_options( $codes );
987
-	$codes   = add_wpcover_block_options( $codes );
988
-    $codes   = apply_filters( 'lasso_custom_options', $codes );
989
-	$galleries  = function_exists( 'lasso_editor_galleries_exist' ) && lasso_editor_galleries_exist() ? 'has-galleries' : 'creating-gallery';
984
+	$codes   = function_exists('aesop_shortcodes') ? aesop_shortcodes() : array();
985
+    $codes   = add_wpimg_options($codes);
986
+	$codes   = add_wpimg_block_options($codes);
987
+	$codes   = add_wpcover_block_options($codes);
988
+    $codes   = apply_filters('lasso_custom_options', $codes);
989
+	$galleries  = function_exists('lasso_editor_galleries_exist') && lasso_editor_galleries_exist() ? 'has-galleries' : 'creating-gallery';
990 990
 
991
-	$nonce = wp_create_nonce( 'lasso_gallery' );
991
+	$nonce = wp_create_nonce('lasso_gallery');
992 992
 
993 993
 	$blob = array();
994 994
 
995
-	if ( empty( $codes ) )
995
+	if (empty($codes))
996 996
 		return;
997 997
 
998
-	foreach ( $codes as $slug => $shortcode ) {
998
+	foreach ($codes as $slug => $shortcode) {
999 999
 		$return = '';
1000 1000
 		// Shortcode has atts
1001 1001
 
1002
-		if ( count( $shortcode['atts'] ) && $shortcode['atts'] ) {
1002
+		if (count($shortcode['atts']) && $shortcode['atts']) {
1003 1003
 
1004
-			foreach ( $shortcode['atts'] as $attr_name => $attr_info ) {
1004
+			foreach ($shortcode['atts'] as $attr_name => $attr_info) {
1005 1005
 
1006 1006
 
1007
-				$prefix = isset( $attr_info['prefix'] ) ? sprintf( '<span class="lasso-option-prefix">%s</span>', $attr_info['prefix'] ) : null;
1007
+				$prefix = isset($attr_info['prefix']) ? sprintf('<span class="lasso-option-prefix">%s</span>', $attr_info['prefix']) : null;
1008 1008
 
1009 1009
 				$return .= '<form id="aesop-generator-settings" class="lasso--component-settings-form" class="'.$galleries.'" method="post">';
1010 1010
 				$return .= '<p data-option="'.$attr_name.'" class="lasso-option aesop-'.$slug.'-'.$attr_name.'">';
1011
-				$return .= '<label for="aesop-generator-attr-' . $attr_name . '">' . $attr_info['desc'] . '</label>';
1011
+				$return .= '<label for="aesop-generator-attr-'.$attr_name.'">'.$attr_info['desc'].'</label>';
1012 1012
 				$return .= '<small class="lasso-option-desc">'.$attr_info['tip'].'</small>';
1013 1013
 				// Select
1014 1014
 
1015
-				if ( isset( $attr_info['values'] ) ) {
1015
+				if (isset($attr_info['values'])) {
1016 1016
 
1017
-					$return .= '<select name="' . $attr_name . '" id="aesop-generator-attr-' . $attr_name . '" class="lasso-generator-attr">';
1017
+					$return .= '<select name="'.$attr_name.'" id="aesop-generator-attr-'.$attr_name.'" class="lasso-generator-attr">';
1018 1018
 
1019
-					$i=0;
1019
+					$i = 0;
1020 1020
 
1021
-					foreach ( $attr_info['values'] as $attr_value ) {
1021
+					foreach ($attr_info['values'] as $attr_value) {
1022 1022
 						$attr_value_selected = $attr_info['default'] == $attr_value ? ' selected="selected"' : '';
1023 1023
 
1024
-						$return .= '<option value="'.$attr_info['values'][$i]['value'].'" ' . $attr_value_selected . '>'.$attr_info['values'][$i]['name'].'</option>';
1024
+						$return .= '<option value="'.$attr_info['values'][$i]['value'].'" '.$attr_value_selected.'>'.$attr_info['values'][$i]['name'].'</option>';
1025 1025
 
1026 1026
 						$i++;
1027 1027
 					}
@@ -1030,24 +1030,24 @@  discard block
 block discarded – undo
1030 1030
 
1031 1031
 				} else {
1032 1032
 
1033
-					$attr_field_type = isset( $attr_info['type'] ) ? $attr_info['type'] : 'text';
1033
+					$attr_field_type = isset($attr_info['type']) ? $attr_info['type'] : 'text';
1034 1034
 
1035 1035
 					// image upload
1036
-					if ( 'media_upload' == $attr_info['type'] ) {
1036
+					if ('media_upload' == $attr_info['type']) {
1037 1037
 
1038
-						$return .= '<input type="' . $attr_field_type . '" name="' . $attr_name . '" value="'.$attr_info['default'].'" id="aesop-generator-attr-' . $attr_name . '" class="lasso-generator-attr aesop-generator-attr-'.$attr_field_type.'" />';
1038
+						$return .= '<input type="'.$attr_field_type.'" name="'.$attr_name.'" value="'.$attr_info['default'].'" id="aesop-generator-attr-'.$attr_name.'" class="lasso-generator-attr aesop-generator-attr-'.$attr_field_type.'" />';
1039 1039
 						$return .= '<a href="#" id="lasso-upload-img" class="lasso-option-button" /></a>';
1040 1040
 
1041
-					} elseif ( 'color' == $attr_info['type'] ) {
1041
+					} elseif ('color' == $attr_info['type']) {
1042 1042
 
1043
-						$return .= '<input type="color" name="' . $attr_name . '" value="'.$attr_info['default'].'" id="aesop-generator-attr-' . $attr_name . '" class="lasso-generator-attr aesop-generator-attr-'.$attr_field_type.'" />';
1043
+						$return .= '<input type="color" name="'.$attr_name.'" value="'.$attr_info['default'].'" id="aesop-generator-attr-'.$attr_name.'" class="lasso-generator-attr aesop-generator-attr-'.$attr_field_type.'" />';
1044 1044
 
1045
-					} elseif ( 'text_area' == $attr_info['type'] ) {
1045
+					} elseif ('text_area' == $attr_info['type']) {
1046 1046
 
1047
-						$return .= '<textarea name="' . $attr_name . '" id="aesop-generator-attr-' . $attr_name . '" class="lasso-generator-attr aesop-generator-attr-'.$attr_field_type.'" placeholder="'.$attr_info['default'].'" /></textarea>'.$prefix.'';
1047
+						$return .= '<textarea name="'.$attr_name.'" id="aesop-generator-attr-'.$attr_name.'" class="lasso-generator-attr aesop-generator-attr-'.$attr_field_type.'" placeholder="'.$attr_info['default'].'" /></textarea>'.$prefix.'';
1048 1048
 
1049 1049
 					} else {
1050
-						$return .= '<input type="' . $attr_field_type . '" name="' . $attr_name . '" value="'.$attr_info['default'].'" id="aesop-generator-attr-' . $attr_name . '" class="lasso-generator-attr aesop-generator-attr-'.$attr_field_type.'" />'.$prefix.'';
1050
+						$return .= '<input type="'.$attr_field_type.'" name="'.$attr_name.'" value="'.$attr_info['default'].'" id="aesop-generator-attr-'.$attr_name.'" class="lasso-generator-attr aesop-generator-attr-'.$attr_field_type.'" />'.$prefix.'';
1051 1051
 					}
1052 1052
 				}
1053 1053
 				$return .= '</p>';
@@ -1058,9 +1058,9 @@  discard block
 block discarded – undo
1058 1058
 		///////////////////////////
1059 1059
 		// START GALLERY AND MAP FRONT END STUFFS
1060 1060
 		///////////////////////////
1061
-		if ( isset( $shortcode['front'] ) && true == $shortcode['front'] ) {
1061
+		if (isset($shortcode['front']) && true == $shortcode['front']) {
1062 1062
 
1063
-			if ( 'gallery' == $shortcode['front_type'] ) {
1063
+			if ('gallery' == $shortcode['front_type']) {
1064 1064
 
1065 1065
 				$return .= lasso_gallery_editor_module();
1066 1066
 
@@ -1071,13 +1071,13 @@  discard block
 block discarded – undo
1071 1071
 		///////////////////////////
1072 1072
 
1073 1073
 		// Single shortcode (not closed)
1074
-		if ( 'single' == $shortcode['type'] ) {
1074
+		if ('single' == $shortcode['type']) {
1075 1075
 
1076 1076
 			$return .= '<input type="hidden" name="lasso-generator-content" id="lasso-generator-content" value="false" />';
1077 1077
 
1078 1078
 		} else {
1079 1079
 
1080
-			$return .= '<p data-option="content" class="lasso-option lasso-c-comp-text"><label>' . __( 'Content', 'lasso' ) . '</label><textarea type="text" name="lasso-generator-content" id="lasso-generator-content" value="' . $shortcode['content'] . '" /></textarea></p>';
1080
+			$return .= '<p data-option="content" class="lasso-option lasso-c-comp-text"><label>'.__('Content', 'lasso').'</label><textarea type="text" name="lasso-generator-content" id="lasso-generator-content" value="'.$shortcode['content'].'" /></textarea></p>';
1081 1081
 		}
1082 1082
 
1083 1083
 		$return .= '<p class="lasso-buttoninsert-wrap"><a href="#" class="lasso-generator-cancel" id="lasso--sidebar__close">Cancel</a><input type="submit" id="lasso-generator-insert" value="Save Settings"></p>';
@@ -1097,95 +1097,95 @@  discard block
 block discarded – undo
1097 1097
 }
1098 1098
 
1099 1099
 
1100
-function add_wpimg_options( $shortcodes ) {
1100
+function add_wpimg_options($shortcodes) {
1101 1101
     $custom = array(
1102 1102
         'wpimg'    => array(
1103
-            'name'     => __( 'Image', 'lasso' ),
1103
+            'name'     => __('Image', 'lasso'),
1104 1104
             'type'     => 'single',
1105 1105
             'atts'     => array(
1106 1106
                 'img'    => array(
1107 1107
                     'type'  => 'media_upload',
1108 1108
                     'default'  => '',
1109
-                    'desc'   => __( 'Image URL', 'lasso' ),
1110
-                    'tip'  => __( 'URL for the image. Click <em>Select Media</em> to open the WordPress Media Library.', 'aesop-core' )
1109
+                    'desc'   => __('Image URL', 'lasso'),
1110
+                    'tip'  => __('URL for the image. Click <em>Select Media</em> to open the WordPress Media Library.', 'aesop-core')
1111 1111
                 ),
1112 1112
                 'align'    => array(
1113 1113
                     'type'  => 'select',
1114 1114
                     'values'  => array(						
1115 1115
                         array(
1116 1116
                             'value' => 'center',
1117
-                            'name' => __( 'Center', 'aesop-core' )
1117
+                            'name' => __('Center', 'aesop-core')
1118 1118
                         ),
1119 1119
                         array(
1120 1120
                             'value' => 'left',
1121
-                            'name' => __( 'Left', 'aesop-core' )
1121
+                            'name' => __('Left', 'aesop-core')
1122 1122
                         ),
1123 1123
                         array(
1124 1124
                             'value' => 'right',
1125
-                            'name' => __( 'Right', 'aesop-core' )
1125
+                            'name' => __('Right', 'aesop-core')
1126 1126
                         ),
1127 1127
                     ),
1128 1128
                     'default'  => 'center',
1129
-                    'desc'   => __( 'Alignment', 'lasso' ),
1129
+                    'desc'   => __('Alignment', 'lasso'),
1130 1130
                     'tip'=>''
1131 1131
                 ),			
1132 1132
                 
1133 1133
                 'imgwidth'    => array(
1134 1134
                     'type'  => 'text_small',
1135 1135
                     'default'  => '300px',
1136
-                    'desc'   => __( 'Image Width', 'lasso' ),
1137
-                    'tip'  => __( 'Width of the image. You can enter the size in pixels or percentage such as <code>40%</code> or <code>500px</code>.', 'aesop-core' )
1136
+                    'desc'   => __('Image Width', 'lasso'),
1137
+                    'tip'  => __('Width of the image. You can enter the size in pixels or percentage such as <code>40%</code> or <code>500px</code>.', 'aesop-core')
1138 1138
                 ),
1139 1139
                 'imgheight'    => array(
1140 1140
                     'type'  => 'text_small',
1141 1141
                     'default'  => '',
1142
-                    'desc'   => __( 'Image Height', 'lasso' ),
1143
-                    'tip'  => __( 'Used only for the Panorama mode. Can be set using pixel values such as <code>500px</code>. If unspecified, the original height would be used. ', 'aesop-core' )
1142
+                    'desc'   => __('Image Height', 'lasso'),
1143
+                    'tip'  => __('Used only for the Panorama mode. Can be set using pixel values such as <code>500px</code>. If unspecified, the original height would be used. ', 'aesop-core')
1144 1144
                 ),	
1145 1145
                 'linkoption'    => array(
1146 1146
                     'type'  => 'select',
1147 1147
                     'values'  => array(						
1148 1148
                         array(
1149 1149
                             'value' => 'none',
1150
-                            'name' => __( 'None', 'aesop-core' )
1150
+                            'name' => __('None', 'aesop-core')
1151 1151
                         ),
1152 1152
                         array(
1153 1153
                             'value' => 'img',
1154
-                            'name' => __( 'Image', 'aesop-core' )
1154
+                            'name' => __('Image', 'aesop-core')
1155 1155
                         ),
1156 1156
                         array(
1157 1157
                             'value' => 'url',
1158
-                            'name' => __( 'URL', 'aesop-core' )
1158
+                            'name' => __('URL', 'aesop-core')
1159 1159
                         ),
1160 1160
                     ),
1161 1161
                     'default'  => 'none',
1162
-                    'desc'   => __( 'Link', 'lasso' ),
1163
-                    'tip'  => __( 'Click leads to:', 'lasso' )
1162
+                    'desc'   => __('Link', 'lasso'),
1163
+                    'tip'  => __('Click leads to:', 'lasso')
1164 1164
                 ),				
1165 1165
                 
1166 1166
                 'link'    => array(
1167 1167
                     'type'  => 'text',
1168 1168
                     'default'  => '',
1169
-                    'desc'   => __( 'URL Link', 'lasso' ),
1170
-                    'tip'  => __( 'URL link', 'lasso' )
1169
+                    'desc'   => __('URL Link', 'lasso'),
1170
+                    'tip'  => __('URL link', 'lasso')
1171 1171
                 ),
1172 1172
                 'alt'    => array(
1173 1173
                     'type'  => 'text',
1174 1174
                     'default'  => '',
1175
-                    'desc'   => __( 'Image ALT', 'lasso' ),
1176
-                    'tip'  => __( 'ALT tag used for the image. Primarily used for SEO purposes.', 'lasso' )
1175
+                    'desc'   => __('Image ALT', 'lasso'),
1176
+                    'tip'  => __('ALT tag used for the image. Primarily used for SEO purposes.', 'lasso')
1177 1177
                 ),
1178 1178
                 
1179 1179
                 'caption'    => array(
1180 1180
                     'type'  => 'text_area',
1181 1181
                     'default'  => '',
1182
-                    'desc'   => __( 'Caption', 'lasso' ),
1183
-                    'tip'  => __( 'Optional caption for the image.', 'lasso' )
1182
+                    'desc'   => __('Caption', 'lasso'),
1183
+                    'tip'  => __('Optional caption for the image.', 'lasso')
1184 1184
                 ),
1185 1185
                 
1186 1186
 
1187 1187
             ),
1188
-            'desc'     => __( 'An image.', 'aesop-core' ),
1188
+            'desc'     => __('An image.', 'aesop-core'),
1189 1189
             'codes'    => '<script>	            
1190 1190
 						jQuery(document).ready(function($){
1191 1191
                             function linkSetting(l){								
@@ -1209,63 +1209,63 @@  discard block
 block discarded – undo
1209 1209
         )
1210 1210
     );
1211 1211
 
1212
-    return array_merge( $shortcodes, $custom );
1212
+    return array_merge($shortcodes, $custom);
1213 1213
 }
1214 1214
 
1215
-function add_wpimg_block_options( $shortcodes ) {
1215
+function add_wpimg_block_options($shortcodes) {
1216 1216
     $custom = array(
1217 1217
         'wpimg-block'    => array(
1218
-            'name'     => __( 'Image', 'lasso' ),
1218
+            'name'     => __('Image', 'lasso'),
1219 1219
             'type'     => 'single',
1220 1220
             'atts'     => array(
1221 1221
                 'img'    => array(
1222 1222
                     'type'  => 'media_upload',
1223 1223
                     'default'  => '',
1224
-                    'desc'   => __( 'Image URL', 'lasso' ),
1225
-                    'tip'  => __( 'URL for the image. Click <em>Select Media</em> to open the WordPress Media Library.', 'aesop-core' )
1224
+                    'desc'   => __('Image URL', 'lasso'),
1225
+                    'tip'  => __('URL for the image. Click <em>Select Media</em> to open the WordPress Media Library.', 'aesop-core')
1226 1226
                 ),
1227 1227
                 'align'    => array(
1228 1228
                     'type'  => 'select',
1229 1229
                     'values'  => array(						
1230 1230
                         array(
1231 1231
                             'value' => 'center',
1232
-                            'name' => __( 'Center', 'aesop-core' )
1232
+                            'name' => __('Center', 'aesop-core')
1233 1233
                         ),
1234 1234
                         array(
1235 1235
                             'value' => 'left',
1236
-                            'name' => __( 'Left', 'aesop-core' )
1236
+                            'name' => __('Left', 'aesop-core')
1237 1237
                         ),
1238 1238
                         array(
1239 1239
                             'value' => 'right',
1240
-                            'name' => __( 'Right', 'aesop-core' )
1240
+                            'name' => __('Right', 'aesop-core')
1241 1241
                         ),
1242 1242
                     ),
1243 1243
                     'default'  => 'center',
1244
-                    'desc'   => __( 'Alignment', 'lasso' ),
1244
+                    'desc'   => __('Alignment', 'lasso'),
1245 1245
                     'tip'=>''
1246 1246
                 ),		
1247 1247
                 'alt'    => array(
1248 1248
                     'type'  => 'text',
1249 1249
                     'default'  => '',
1250
-                    'desc'   => __( 'Image ALT', 'lasso' ),
1251
-                    'tip'  => __( 'ALT tag used for the image. Primarily used for SEO purposes.', 'lasso' )
1250
+                    'desc'   => __('Image ALT', 'lasso'),
1251
+                    'tip'  => __('ALT tag used for the image. Primarily used for SEO purposes.', 'lasso')
1252 1252
                 ),
1253 1253
                 'caption'    => array(
1254 1254
                     'type'  => 'text',
1255 1255
                     'default'  => '',
1256
-                    'desc'   => __( 'Caption', 'lasso' ),
1257
-                    'tip'  => __( 'Optional caption for the image.', 'lasso' )
1256
+                    'desc'   => __('Caption', 'lasso'),
1257
+                    'tip'  => __('Optional caption for the image.', 'lasso')
1258 1258
                 ),
1259 1259
                 'link'    => array(
1260 1260
                     'type'  => 'text',
1261 1261
                     'default'  => '',
1262
-                    'desc'   => __( 'Link URL', 'lasso' ),
1263
-                    'tip'  => __( 'Optional URL to link.', 'lasso' )
1262
+                    'desc'   => __('Link URL', 'lasso'),
1263
+                    'tip'  => __('Optional URL to link.', 'lasso')
1264 1264
                 ),
1265 1265
                
1266 1266
 
1267 1267
             ),
1268
-            'desc'     => __( 'A WP Image Block.', 'aesop-core' ),
1268
+            'desc'     => __('A WP Image Block.', 'aesop-core'),
1269 1269
             'codes'    => '<script>	            
1270 1270
 						jQuery(document).ready(function($){
1271 1271
                             
@@ -1274,24 +1274,24 @@  discard block
 block discarded – undo
1274 1274
         )
1275 1275
     );
1276 1276
 
1277
-    return array_merge( $shortcodes, $custom );
1277
+    return array_merge($shortcodes, $custom);
1278 1278
 }
1279 1279
 
1280
-function add_wpcover_block_options( $shortcodes ) {
1280
+function add_wpcover_block_options($shortcodes) {
1281 1281
     $custom = array(
1282 1282
         'wpcover-block'    => array(
1283
-            'name'     => __( 'Cover', 'lasso' ),
1283
+            'name'     => __('Cover', 'lasso'),
1284 1284
             'type'     => 'single',
1285 1285
             'atts'     => array(
1286 1286
                 'img'    => array(
1287 1287
                     'type'  => 'media_upload',
1288 1288
                     'default'  => '',
1289
-                    'desc'   => __( 'Image URL', 'lasso' ),
1290
-                    'tip'  => __( 'URL for the image. Click <em>Select Media</em> to open the WordPress Media Library.', 'aesop-core' )
1289
+                    'desc'   => __('Image URL', 'lasso'),
1290
+                    'tip'  => __('URL for the image. Click <em>Select Media</em> to open the WordPress Media Library.', 'aesop-core')
1291 1291
                 )
1292 1292
 
1293 1293
             ),
1294
-            'desc'     => __( 'A WP Cover Block.', 'aesop-core' ),
1294
+            'desc'     => __('A WP Cover Block.', 'aesop-core'),
1295 1295
             'codes'    => '<script>	            
1296 1296
 						jQuery(document).ready(function($){
1297 1297
                             
@@ -1300,7 +1300,7 @@  discard block
 block discarded – undo
1300 1300
         )
1301 1301
     );
1302 1302
 
1303
-    return array_merge( $shortcodes, $custom );
1303
+    return array_merge($shortcodes, $custom);
1304 1304
 }
1305 1305
 
1306 1306
 /**
@@ -1320,14 +1320,14 @@  discard block
 block discarded – undo
1320 1320
 				<div id="lasso--loading" class="lasso--loading"><div class="lasso--loader"></div></div>
1321 1321
 				<div id="lasso--hide" style="display:none;" class="lasso--post-form">
1322 1322
 					<i class="lasso-icon lasso-icon-move"></i>
1323
-					<label><?php _e( 'Revisions', 'lasso' );?><span class="lasso-util--help lasso-util--help-top" data-tooltip="<?php esc_attr_e( 'Use the slider to view the revision live on the page.', 'lasso' );?>"><i class="lasso-icon-help"></i></span></label>
1323
+					<label><?php _e('Revisions', 'lasso'); ?><span class="lasso-util--help lasso-util--help-top" data-tooltip="<?php esc_attr_e('Use the slider to view the revision live on the page.', 'lasso'); ?>"><i class="lasso-icon-help"></i></span></label>
1324 1324
 					<div class="lasso--slider_wrap">
1325 1325
 						<div id="lasso--slider"></div>
1326 1326
 					</div>
1327 1327
 					<ul id="lasso--revision-list"></ul>
1328 1328
 					<div class="lasso--btn-group lasso--btn-group-small">
1329
-						<a href="#" class="lasso--btn-secondary" id="lasso--close-modal"><?php _e( 'Cancel', 'lasso' );?></a>
1330
-						<a href="#" class="lasso--btn-primary" id="lasso--select-revision"><?php _e( 'Select', 'lasso' );?></a>
1329
+						<a href="#" class="lasso--btn-secondary" id="lasso--close-modal"><?php _e('Cancel', 'lasso'); ?></a>
1330
+						<a href="#" class="lasso--btn-primary" id="lasso--select-revision"><?php _e('Select', 'lasso'); ?></a>
1331 1331
 					</div>
1332 1332
 				</div>
1333 1333
 
@@ -1350,7 +1350,7 @@  discard block
 block discarded – undo
1350 1350
     // Normalize into a six character long hex string
1351 1351
     $hex = str_replace('#', '', $hex);
1352 1352
     if (strlen($hex) == 3) {
1353
-        $hex = str_repeat(substr($hex,0,1), 2).str_repeat(substr($hex,1,1), 2).str_repeat(substr($hex,2,1), 2);
1353
+        $hex = str_repeat(substr($hex, 0, 1), 2).str_repeat(substr($hex, 1, 1), 2).str_repeat(substr($hex, 2, 1), 2);
1354 1354
     }
1355 1355
 
1356 1356
     // Split into three parts: R, G and B
@@ -1359,7 +1359,7 @@  discard block
 block discarded – undo
1359 1359
 
1360 1360
     foreach ($color_parts as $color) {
1361 1361
         $color   = hexdec($color); // Convert to decimal
1362
-        $color   = max(0,min(255,$color + $steps)); // Adjust color
1362
+        $color   = max(0, min(255, $color + $steps)); // Adjust color
1363 1363
         $return .= str_pad(dechex($color), 2, '0', STR_PAD_LEFT); // Make two char hex code
1364 1364
     }
1365 1365
 
Please login to merge, or discard this patch.
public/includes/wrap-shortcodes.php 1 patch
Spacing   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -6,8 +6,8 @@  discard block
 block discarded – undo
6 6
 
7 7
 
8 8
  
9
-if ( lasso_user_can( 'edit_posts' ) && ! is_admin() ) {
10
-	add_filter( 'the_content', 'lasso_wrap_shortcodes', 1 );
9
+if (lasso_user_can('edit_posts') && !is_admin()) {
10
+	add_filter('the_content', 'lasso_wrap_shortcodes', 1);
11 11
 }
12 12
 
13 13
 /**
@@ -20,39 +20,39 @@  discard block
 block discarded – undo
20 20
  *
21 21
  * @return string
22 22
  */
23
-function lasso_wrap_shortcodes( $content ) {
23
+function lasso_wrap_shortcodes($content) {
24 24
 	global $shortcode_tags;
25 25
 
26
-    $no_wrap_shortcode    = lasso_editor_get_option( 'no_wrap_shortcode', 'lasso_editor');
26
+    $no_wrap_shortcode = lasso_editor_get_option('no_wrap_shortcode', 'lasso_editor');
27 27
 
28 28
     if ($no_wrap_shortcode == 'on') {
29 29
         return $content;
30 30
     }
31 31
 
32
-	if ( false === strpos( $content, '[' ) ) {
32
+	if (false === strpos($content, '[')) {
33 33
 		return $content;
34 34
 	}
35 35
 
36
-	if ( empty( $shortcode_tags ) || ! is_array( $shortcode_tags ) ) {
36
+	if (empty($shortcode_tags) || !is_array($shortcode_tags)) {
37 37
 		return $content;
38 38
 	}
39 39
 
40
-	$tagnames  = array_keys( $shortcode_tags );
41
-	$tagregexp = join( '|', array_map( 'preg_quote', $tagnames ) );
40
+	$tagnames  = array_keys($shortcode_tags);
41
+	$tagregexp = join('|', array_map('preg_quote', $tagnames));
42 42
 	$pattern   = "/\\[($tagregexp)/s";
43 43
 
44
-	if ( 0 === preg_match( $pattern, $content ) ) {
44
+	if (0 === preg_match($pattern, $content)) {
45 45
 		// Avoids parsing HTML when there are no shortcodes or embeds anyway.
46 46
 		return $content;
47 47
 	}
48 48
 
49
-	$content = do_shortcodes_in_html_tags( $content, true ,$tagnames);
49
+	$content = do_shortcodes_in_html_tags($content, true, $tagnames);
50 50
 
51 51
 	$pattern = get_shortcode_regex();
52
-	$content = preg_replace_callback( "/$pattern/s", 'lasso_wrap_shortcode_tag', $content );
52
+	$content = preg_replace_callback("/$pattern/s", 'lasso_wrap_shortcode_tag', $content);
53 53
 
54 54
 	// Always restore square braces so we don't break things like <!--[if IE ]>
55
-	$content = unescape_invalid_shortcodes( $content );
55
+	$content = unescape_invalid_shortcodes($content);
56 56
 
57 57
 	return $content;
58 58
 }
@@ -66,33 +66,33 @@  discard block
 block discarded – undo
66 66
  *
67 67
  * @return string
68 68
  */
69
-function lasso_wrap_shortcode_tag( $m ) {
69
+function lasso_wrap_shortcode_tag($m) {
70 70
 	// allow [[foo]] syntax for escaping a tag
71
-	if ( $m[1] == '[' && $m[6] == ']' ) {
72
-		return substr( $m[0], 1, - 1 );
71
+	if ($m[1] == '[' && $m[6] == ']') {
72
+		return substr($m[0], 1, - 1);
73 73
 	}
74
-	$exception_arr1 = array('aesop_gallery_pop','aesop_character_carousel');
75
-	$exception_arr2 = array('su_box', 'su_note', 'su_document', 'su_spoiler','av_textblock','av_toggle_container','av_toggle');
76
-	$exception_arr2 = apply_filters('lasso_wrap_shortcode_exceptions',$exception_arr2);
74
+	$exception_arr1 = array('aesop_gallery_pop', 'aesop_character_carousel');
75
+	$exception_arr2 = array('su_box', 'su_note', 'su_document', 'su_spoiler', 'av_textblock', 'av_toggle_container', 'av_toggle');
76
+	$exception_arr2 = apply_filters('lasso_wrap_shortcode_exceptions', $exception_arr2);
77 77
 
78
-	if ( strpos( $m[2],'aesop_'  ) === 0 ) {
78
+	if (strpos($m[2], 'aesop_') === 0) {
79 79
 		// check against the exceptions
80
-		if (strpos_arr($m[2],$exception_arr1)===false) {
80
+		if (strpos_arr($m[2], $exception_arr1) === false) {
81 81
 		    return $m[0];
82 82
 		}
83 83
 	}
84
-	if (strpos_arr($m[2],$exception_arr2)!==false) {
84
+	if (strpos_arr($m[2], $exception_arr2) !== false) {
85 85
 		return $m[0];
86 86
 	}
87 87
 
88
-	return '<!--EDITUS_OTHER_SHORTCODE_START|[' . $m[0] . ']-->' . $m[0] . '<!--EDITUS_OTHER_SHORTCODE_END-->';
88
+	return '<!--EDITUS_OTHER_SHORTCODE_START|['.$m[0].']-->'.$m[0].'<!--EDITUS_OTHER_SHORTCODE_END-->';
89 89
 }
90 90
 
91 91
 /* a helper function */
92 92
 function strpos_arr($haystack, $needle) {
93
-    if(!is_array($needle)) $needle = array($needle);
94
-    foreach($needle as $what) {
95
-        if(($pos = strpos($haystack, $what))!==false) return $pos;
93
+    if (!is_array($needle)) $needle = array($needle);
94
+    foreach ($needle as $what) {
95
+        if (($pos = strpos($haystack, $what)) !== false) return $pos;
96 96
     }
97 97
     return false;
98 98
 }
99 99
\ No newline at end of file
Please login to merge, or discard this patch.
lasso.php 1 patch
Spacing   +49 added lines, -49 removed lines patch added patch discarded remove patch
@@ -18,27 +18,27 @@  discard block
 block discarded – undo
18 18
  */
19 19
 
20 20
 // If this file is called directly, abort.
21
-if ( ! defined( 'WPINC' ) ) {
21
+if (!defined('WPINC')) {
22 22
 	die;
23 23
 }
24 24
 
25 25
 // Set some constants
26
-define( 'LASSO_VERSION', '1.4.9' );
27
-define( 'LASSO_DIR', plugin_dir_path( __FILE__ ) );
28
-define( 'LASSO_URL', plugins_url( '', __FILE__ ) );
29
-define( 'LASSO_FILE', __FILE__ );
26
+define('LASSO_VERSION', '1.4.9');
27
+define('LASSO_DIR', plugin_dir_path(__FILE__));
28
+define('LASSO_URL', plugins_url('', __FILE__));
29
+define('LASSO_FILE', __FILE__);
30 30
 
31 31
 /**
32 32
  * Load plugin if PHP version is 5.4 or later.
33 33
  */
34
-if ( version_compare( PHP_VERSION, '5.4.0', '>=' ) ) {
34
+if (version_compare(PHP_VERSION, '5.4.0', '>=')) {
35 35
 
36
-	include_once( LASSO_DIR . '/bootstrap.php' );
36
+	include_once(LASSO_DIR.'/bootstrap.php');
37 37
 
38 38
 } else {
39 39
 
40 40
 	add_action('admin_head', 'lasso_fail_notice');
41
-	function lasso_fail_notice(){
41
+	function lasso_fail_notice() {
42 42
 
43 43
 		printf('<div class="error"><p>Editus requires PHP 5.4 or higher.</p></div>');
44 44
 
@@ -46,11 +46,11 @@  discard block
 block discarded – undo
46 46
 }
47 47
 
48 48
 add_filter('register_post_type_args', 'lasso_show_in_rest', 10, 2);
49
-function lasso_show_in_rest($args, $post_type){
49
+function lasso_show_in_rest($args, $post_type) {
50 50
  
51
-    $allowed_post_types = lasso_editor_get_option( 'allowed_post_types', 'lasso_editor', array( ) );
52
-	$allowed_post_types = apply_filters( 'lasso_allowed_post_types', $allowed_post_types );
53
-	if (in_array( $post_type,$allowed_post_types)) {
51
+    $allowed_post_types = lasso_editor_get_option('allowed_post_types', 'lasso_editor', array( ));
52
+	$allowed_post_types = apply_filters('lasso_allowed_post_types', $allowed_post_types);
53
+	if (in_array($post_type, $allowed_post_types)) {
54 54
 		$args['show_in_rest'] = true;
55 55
 		if ($post_type != 'post' && $post_type != 'page') {
56 56
 			$args['rest_base'] = $post_type;
@@ -61,21 +61,21 @@  discard block
 block discarded – undo
61 61
 }
62 62
 
63 63
 
64
-function lasso_editor_get_option( $option, $section, $default = '' ) {
64
+function lasso_editor_get_option($option, $section, $default = '') {
65 65
 
66
-	if ( empty( $option ) )
66
+	if (empty($option))
67 67
 		return;
68 68
 
69
-	if ( function_exists( 'is_multisite' ) && is_multisite() ) {
69
+	if (function_exists('is_multisite') && is_multisite()) {
70 70
 
71
-		$options = get_site_option( $section );
71
+		$options = get_site_option($section);
72 72
 
73 73
 	} else {
74 74
 
75
-		$options = get_option( $section );
75
+		$options = get_option($section);
76 76
 	}
77 77
 
78
-	if ( isset( $options[$option] ) ) {
78
+	if (isset($options[$option])) {
79 79
 		return $options[$option];
80 80
 	}
81 81
 
@@ -88,17 +88,17 @@  discard block
 block discarded – undo
88 88
 ));
89 89
 
90 90
 // Gutenberg
91
-if( function_exists( 'is_gutenberg_page' ) ) {
92
-	function add_raw_to_post( $response, $post, $request ) {
91
+if (function_exists('is_gutenberg_page')) {
92
+	function add_raw_to_post($response, $post, $request) {
93 93
 		$response_data = $response->get_data();
94
-		if ( is_array( $response_data['content'] )) {
95
-			$response_data['content']['raw'] =  $post->post_content ;
96
-			$response->set_data( $response_data );
94
+		if (is_array($response_data['content'])) {
95
+			$response_data['content']['raw'] = $post->post_content;
96
+			$response->set_data($response_data);
97 97
 		}
98 98
 
99 99
 		return $response;
100 100
 	}
101
-	add_filter( "rest_prepare_post", 'add_raw_to_post', 10, 3 );
101
+	add_filter("rest_prepare_post", 'add_raw_to_post', 10, 3);
102 102
 }
103 103
 
104 104
 
@@ -106,32 +106,32 @@  discard block
 block discarded – undo
106 106
 //table codes to be added
107 107
 class editus_table {
108 108
     
109
-    public function __construct(){
109
+    public function __construct() {
110 110
         $add_table = lasso_editor_get_option('add_table', 'lasso_editor', false);
111 111
         if ($add_table) {
112
-            add_action('wp_enqueue_scripts', array($this,'scripts'));
112
+            add_action('wp_enqueue_scripts', array($this, 'scripts'));
113 113
             
114 114
         }
115 115
 	}
116 116
     
117 117
     function scripts()
118 118
     {
119
-        add_action('lasso_editor_controls_after_outside', array($this,'editus_table_edit_menu'));
120
-            add_filter('lasso_components',array($this,'editus_components_add_table'),10,1);
121
-            add_action( 'lasso_toolbar_components', array($this,'editus_toolbar_components_add_table'), 10 );
122
-            wp_enqueue_style( 'editus-table-style', LASSO_URL.  '/public/assets/css/editus-table-edit-public.css', LASSO_VERSION, true );
123
-            wp_enqueue_script( 'editus_table',  LASSO_URL. '/public/assets/js/editus-table-edit-public.js', array( 'jquery' ), LASSO_VERSION, true );
119
+        add_action('lasso_editor_controls_after_outside', array($this, 'editus_table_edit_menu'));
120
+            add_filter('lasso_components', array($this, 'editus_components_add_table'), 10, 1);
121
+            add_action('lasso_toolbar_components', array($this, 'editus_toolbar_components_add_table'), 10);
122
+            wp_enqueue_style('editus-table-style', LASSO_URL.'/public/assets/css/editus-table-edit-public.css', LASSO_VERSION, true);
123
+            wp_enqueue_script('editus_table', LASSO_URL.'/public/assets/js/editus-table-edit-public.js', array('jquery'), LASSO_VERSION, true);
124 124
     }
125 125
     
126 126
     function editus_table_edit_menu()
127 127
     { ?>
128 128
 
129 129
         <ul class='editus-table-menu'>
130
-          <li data-action="insertcol"><?php echo __('Insert Column','lasso')?></li>
131
-          <li data-action="insertrow"><?php echo __('Insert Row','lasso')?></li>
132
-          <li data-action="delcol"><?php echo __('Delete Column','lasso')?></li>
133
-          <li data-action="delrow"><?php echo __('Delete Row','lasso')?></li>
134
-          <li data-action="deltable"><?php echo __('Delete Table','lasso')?></li
130
+          <li data-action="insertcol"><?php echo __('Insert Column', 'lasso')?></li>
131
+          <li data-action="insertrow"><?php echo __('Insert Row', 'lasso')?></li>
132
+          <li data-action="delcol"><?php echo __('Delete Column', 'lasso')?></li>
133
+          <li data-action="delrow"><?php echo __('Delete Row', 'lasso')?></li>
134
+          <li data-action="deltable"><?php echo __('Delete Table', 'lasso')?></li
135 135
         </ul>
136 136
     <?php
137 137
     }
@@ -143,20 +143,20 @@  discard block
 block discarded – undo
143 143
     }
144 144
 
145 145
 
146
-    function editus_components_add_table( $array ){
146
+    function editus_components_add_table($array) {
147 147
         $custom = array(
148 148
                'htmltable' => array(
149
-                         'name'    => __('HTML Table','lasso'),
149
+                         'name'    => __('HTML Table', 'lasso'),
150 150
                           'content' => self::editus_html_table(),
151 151
                 )
152 152
         );
153
-        return array_merge( $array, $custom );
153
+        return array_merge($array, $custom);
154 154
     }
155 155
 
156 156
 
157 157
     function editus_toolbar_components_add_table( ) {
158 158
           ?>
159
-          <li data-type="htmltable" title="<?php esc_attr_e( 'HTML Table', 'lasso' );?>" class="quote lasso-toolbar--component__htmltable dashicons dashicons-grid-view"></li>
159
+          <li data-type="htmltable" title="<?php esc_attr_e('HTML Table', 'lasso'); ?>" class="quote lasso-toolbar--component__htmltable dashicons dashicons-grid-view"></li>
160 160
           <?php
161 161
     }
162 162
 }
@@ -169,31 +169,31 @@  discard block
 block discarded – undo
169 169
 //table codes to be added
170 170
 class editus_paragraph {
171 171
     
172
-    public function __construct(){
172
+    public function __construct() {
173 173
         $add_paragraph = lasso_editor_get_option('add_paragraph', 'lasso_editor', false);
174 174
         if ($add_paragraph) {
175
-            add_action('wp_enqueue_scripts', array($this,'scripts'));
175
+            add_action('wp_enqueue_scripts', array($this, 'scripts'));
176 176
             
177 177
         }
178 178
 	}
179 179
     
180 180
     function scripts()
181 181
     {
182
-            add_action('lasso_editor_controls_after_outside', array($this,'editus_paragraph_style'));
183
-            add_filter('lasso_components',array($this,'editus_components_add_paragraph'),10,1);
184
-            add_action( 'lasso_toolbar_components', array($this,'editus_toolbar_components_add_paragraph'), 10 );
182
+            add_action('lasso_editor_controls_after_outside', array($this, 'editus_paragraph_style'));
183
+            add_filter('lasso_components', array($this, 'editus_components_add_paragraph'), 10, 1);
184
+            add_action('lasso_toolbar_components', array($this, 'editus_toolbar_components_add_paragraph'), 10);
185 185
             //wp_enqueue_style( 'editus-table-style', LASSO_URL.  '/public/assets/css/editus-table-edit-public.css', LASSO_VERSION, true );
186 186
             //wp_enqueue_script( 'editus_table',  LASSO_URL. '/public/assets/js/editus-table-edit-public.js', array( 'jquery' ), LASSO_VERSION, true );
187 187
     }
188 188
    
189
-    function editus_components_add_paragraph( $array ){
189
+    function editus_components_add_paragraph($array) {
190 190
         $custom = array(
191 191
                'htmlparagraph' => array(
192
-                         'name'    => __('HTML Paragraph','lasso'),
192
+                         'name'    => __('HTML Paragraph', 'lasso'),
193 193
                           'content' => self::editus_html_paragraph(),
194 194
                 )
195 195
         );
196
-        return array_merge( $array, $custom );
196
+        return array_merge($array, $custom);
197 197
     }
198 198
     
199 199
     
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
 
218 218
     function editus_toolbar_components_add_paragraph( ) {
219 219
           ?>
220
-          <li data-type="htmlparagraph" title="<?php esc_attr_e( 'HTML Paragraph', 'lasso' );?>" class="quote lasso-toolbar--component__htmlparagraph dashicons dashicons-editor-paragraph"></li>
220
+          <li data-type="htmlparagraph" title="<?php esc_attr_e('HTML Paragraph', 'lasso'); ?>" class="quote lasso-toolbar--component__htmlparagraph dashicons dashicons-editor-paragraph"></li>
221 221
           <?php
222 222
     }
223 223
 }
Please login to merge, or discard this patch.