Completed
Push — master ( 002905...36046d )
by
unknown
01:30
created
lasso.php 1 patch
Spacing   +39 added lines, -39 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.3.2' );
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.3.2');
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,31 +106,31 @@  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>
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 134
         </ul>
135 135
     <?php
136 136
     }
@@ -142,20 +142,20 @@  discard block
 block discarded – undo
142 142
     }
143 143
 
144 144
 
145
-    function editus_components_add_table( $array ){
145
+    function editus_components_add_table($array) {
146 146
         $custom = array(
147 147
                'htmltable' => array(
148
-                         'name'    => __('HTML Table','lasso'),
148
+                         'name'    => __('HTML Table', 'lasso'),
149 149
                           'content' => self::editus_html_table(),
150 150
                 )
151 151
         );
152
-        return array_merge( $array, $custom );
152
+        return array_merge($array, $custom);
153 153
     }
154 154
 
155 155
 
156 156
     function editus_toolbar_components_add_table( ) {
157 157
           ?>
158
-          <li data-type="htmltable" title="<?php esc_attr_e( 'HTML Table', 'lasso' );?>" class="quote lasso-toolbar--component__htmltable dashicons dashicons-grid-view"></li>
158
+          <li data-type="htmltable" title="<?php esc_attr_e('HTML Table', 'lasso'); ?>" class="quote lasso-toolbar--component__htmltable dashicons dashicons-grid-view"></li>
159 159
           <?php
160 160
     }
161 161
 }
Please login to merge, or discard this patch.
public/includes/editor-modules.php 2 patches
Indentation   +77 added lines, -77 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
 
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
 	$toolbar_class  = $toolbar_headings ? 'toolbar-extended' : false;
234 234
 	
235 235
 	// mobile styles
236
-    $mobile_class = $is_mobile ? 'lasso-mobile' : false;
236
+	$mobile_class = $is_mobile ? 'lasso-mobile' : false;
237 237
 	$mobile_style =$is_mobile ? 'style="bottom:0px;"' : null;
238 238
 	
239 239
 	//show color
@@ -456,7 +456,7 @@  discard block
 block discarded – undo
456 456
 	
457 457
 	//editor options
458 458
 	$allow_change_date = lasso_editor_get_option('allow_change_date', 'lasso_editor');
459
-    $allow_edit_excerpt = lasso_editor_get_option('allow_edit_excerpt', 'lasso_editor');
459
+	$allow_edit_excerpt = lasso_editor_get_option('allow_edit_excerpt', 'lasso_editor');
460 460
 	$no_url_setting = lasso_editor_get_option('no_url_setting', 'lasso_editor');
461 461
 
462 462
 	// are we singular
@@ -469,7 +469,7 @@  discard block
 block discarded – undo
469 469
 	// do we support pending status
470 470
 	$no_pending_status = lasso_editor_get_option('no_pending_status', 'lasso_editor');
471 471
     
472
-    $excerpt = $post->post_excerpt;
472
+	$excerpt = $post->post_excerpt;
473 473
 
474 474
 ?>
475 475
 	<div id="lasso--post-settings__modal" class="lasso--modal lassoShowAnimate <?php echo sanitize_html_class( $custom_classes );?>">
@@ -548,7 +548,7 @@  discard block
 block discarded – undo
548 548
 						}?>
549 549
 						<?php 
550 550
 						if ($allow_change_date) { 
551
-						    $dateformat = get_option( 'date_format' ); 
551
+							$dateformat = get_option( 'date_format' ); 
552 552
 						?>
553 553
 						    <label><?php _e( 'Post Date', 'lasso' ); ?></label>
554 554
 							<input type="text" class="editus_custom_date" name="post_date" value="<?php echo get_the_time($dateformat, $postid);?>"/>
@@ -663,7 +663,7 @@  discard block
 block discarded – undo
663 663
 						if ( !empty( $types ) ) {
664 664
 							// get the first element
665 665
 							$keys = array_keys($types);
666
-						    $type =$keys[0];						
666
+							$type =$keys[0];						
667 667
 							$type = preg_replace( '/s\b/','', $type );
668 668
 							printf( '<input type="hidden" name="object" value="%s">', lcfirst( esc_attr( $type ) ) );		
669 669
 						}
@@ -691,8 +691,8 @@  discard block
 block discarded – undo
691 691
 	global $post;
692 692
 	
693 693
 	global $wp_post_types;
694
-    $labels = &$wp_post_types['post']->labels;
695
-    $labels->name = 'Articles';
694
+	$labels = &$wp_post_types['post']->labels;
695
+	$labels->name = 'Articles';
696 696
 
697 697
 	ob_start();
698 698
 
@@ -835,8 +835,8 @@  discard block
 block discarded – undo
835 835
 function lasso_editor_options_blob() {
836 836
 
837 837
 	$codes   = function_exists( 'aesop_shortcodes' ) ? aesop_shortcodes() : array();
838
-    $codes   = add_wpimg_options( $codes );
839
-    $codes   = apply_filters( 'lasso_custom_options', $codes );
838
+	$codes   = add_wpimg_options( $codes );
839
+	$codes   = apply_filters( 'lasso_custom_options', $codes );
840 840
 	$galleries  = function_exists( 'lasso_editor_galleries_exist' ) && lasso_editor_galleries_exist() ? 'has-galleries' : 'creating-gallery';
841 841
 
842 842
 	$nonce = wp_create_nonce( 'lasso_gallery' );
@@ -938,9 +938,9 @@  discard block
 block discarded – undo
938 938
 		$return .= '</form>';
939 939
 
940 940
 		// extra JS codes
941
-        if (isset($shortcode['codes'])) {
942
-		    $return .= $shortcode['codes'];
943
-        }
941
+		if (isset($shortcode['codes'])) {
942
+			$return .= $shortcode['codes'];
943
+		}
944 944
 		$blob[$slug] = $return;
945 945
 	}
946 946
 
@@ -949,59 +949,59 @@  discard block
 block discarded – undo
949 949
 
950 950
 
951 951
 function add_wpimg_options( $shortcodes ) {
952
-    $custom = array(
953
-        'wpimg'    => array(
954
-            'name'     => __( 'Image', 'lasso' ),
955
-            'type'     => 'single',
956
-            'atts'     => array(
957
-                'img'    => array(
958
-                    'type'  => 'media_upload',
959
-                    'default'  => '',
960
-                    'desc'   => __( 'Image URL', 'lasso' ),
961
-                    'tip'  => __( 'URL for the image. Click <em>Select Media</em> to open the WordPress Media Library.', 'aesop-core' )
962
-                ),
952
+	$custom = array(
953
+		'wpimg'    => array(
954
+			'name'     => __( 'Image', 'lasso' ),
955
+			'type'     => 'single',
956
+			'atts'     => array(
957
+				'img'    => array(
958
+					'type'  => 'media_upload',
959
+					'default'  => '',
960
+					'desc'   => __( 'Image URL', 'lasso' ),
961
+					'tip'  => __( 'URL for the image. Click <em>Select Media</em> to open the WordPress Media Library.', 'aesop-core' )
962
+				),
963 963
                 
964
-                'imgwidth'    => array(
965
-                    'type'  => 'text_small',
966
-                    'default'  => '300px',
967
-                    'desc'   => __( 'Image Width', 'lasso' ),
968
-                    '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' )
969
-                ),
970
-                'imgheight'    => array(
971
-                    'type'  => 'text_small',
972
-                    'default'  => '',
973
-                    'desc'   => __( 'Image Height', 'lasso' ),
974
-                    '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' )
975
-                ),					
964
+				'imgwidth'    => array(
965
+					'type'  => 'text_small',
966
+					'default'  => '300px',
967
+					'desc'   => __( 'Image Width', 'lasso' ),
968
+					'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' )
969
+				),
970
+				'imgheight'    => array(
971
+					'type'  => 'text_small',
972
+					'default'  => '',
973
+					'desc'   => __( 'Image Height', 'lasso' ),
974
+					'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' )
975
+				),					
976 976
                 
977
-                'link'    => array(
978
-                    'type'  => 'text',
979
-                    'default'  => '',
980
-                    'desc'   => __( 'Link', 'lasso' ),
981
-                    'tip'  => __( 'URL link', 'lasso' )
982
-                ),
983
-                'alt'    => array(
984
-                    'type'  => 'text',
985
-                    'default'  => '',
986
-                    'desc'   => __( 'Image ALT', 'lasso' ),
987
-                    'tip'  => __( 'ALT tag used for the image. Primarily used for SEO purposes.', 'lasso' )
988
-                ),
977
+				'link'    => array(
978
+					'type'  => 'text',
979
+					'default'  => '',
980
+					'desc'   => __( 'Link', 'lasso' ),
981
+					'tip'  => __( 'URL link', 'lasso' )
982
+				),
983
+				'alt'    => array(
984
+					'type'  => 'text',
985
+					'default'  => '',
986
+					'desc'   => __( 'Image ALT', 'lasso' ),
987
+					'tip'  => __( 'ALT tag used for the image. Primarily used for SEO purposes.', 'lasso' )
988
+				),
989 989
                 
990
-                'caption'    => array(
991
-                    'type'  => 'text_area',
992
-                    'default'  => '',
993
-                    'desc'   => __( 'Caption', 'lasso' ),
994
-                    'tip'  => __( 'Optional caption for the image.', 'lasso' )
995
-                ),
990
+				'caption'    => array(
991
+					'type'  => 'text_area',
992
+					'default'  => '',
993
+					'desc'   => __( 'Caption', 'lasso' ),
994
+					'tip'  => __( 'Optional caption for the image.', 'lasso' )
995
+				),
996 996
                 
997 997
 
998
-            ),
999
-            'desc'     => __( 'An image.', 'aesop-core' ),
1000
-            'codes'    => ''
1001
-        )
1002
-    );
998
+			),
999
+			'desc'     => __( 'An image.', 'aesop-core' ),
1000
+			'codes'    => ''
1001
+		)
1002
+	);
1003 1003
 
1004
-    return array_merge( $shortcodes, $custom );
1004
+	return array_merge( $shortcodes, $custom );
1005 1005
 }
1006 1006
 
1007 1007
 /**
@@ -1046,23 +1046,23 @@  discard block
 block discarded – undo
1046 1046
  * @return string
1047 1047
  */
1048 1048
 function lasso_editor_adjustBrightness($hex, $steps) { 
1049
-    $steps = max(-255, min(255, $steps));
1049
+	$steps = max(-255, min(255, $steps));
1050 1050
 
1051
-    // Normalize into a six character long hex string
1052
-    $hex = str_replace('#', '', $hex);
1053
-    if (strlen($hex) == 3) {
1054
-        $hex = str_repeat(substr($hex,0,1), 2).str_repeat(substr($hex,1,1), 2).str_repeat(substr($hex,2,1), 2);
1055
-    }
1051
+	// Normalize into a six character long hex string
1052
+	$hex = str_replace('#', '', $hex);
1053
+	if (strlen($hex) == 3) {
1054
+		$hex = str_repeat(substr($hex,0,1), 2).str_repeat(substr($hex,1,1), 2).str_repeat(substr($hex,2,1), 2);
1055
+	}
1056 1056
 
1057
-    // Split into three parts: R, G and B
1058
-    $color_parts = str_split($hex, 2);
1059
-    $return = '#';
1057
+	// Split into three parts: R, G and B
1058
+	$color_parts = str_split($hex, 2);
1059
+	$return = '#';
1060 1060
 
1061
-    foreach ($color_parts as $color) {
1062
-        $color   = hexdec($color); // Convert to decimal
1063
-        $color   = max(0,min(255,$color + $steps)); // Adjust color
1064
-        $return .= str_pad(dechex($color), 2, '0', STR_PAD_LEFT); // Make two char hex code
1065
-    }
1061
+	foreach ($color_parts as $color) {
1062
+		$color   = hexdec($color); // Convert to decimal
1063
+		$color   = max(0,min(255,$color + $steps)); // Adjust color
1064
+		$return .= str_pad(dechex($color), 2, '0', STR_PAD_LEFT); // Make two char hex code
1065
+	}
1066 1066
 
1067
-    return $return;
1067
+	return $return;
1068 1068
 }
Please login to merge, or discard this patch.
Spacing   +282 added lines, -282 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;?> !important;
78
+			color: <?php echo $text_color; ?> !important;
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>
@@ -220,21 +220,21 @@  discard block
 block discarded – undo
220 220
 	$is_mobile = wp_is_mobile();
221 221
 
222 222
 	// check for lasso story engine and add a class doniting this
223
-	$ase_status = class_exists( 'Aesop_Core' ) || defined( 'LASSO_CUSTOM' ) ? 'ase-active' : 'ase-not-active';
223
+	$ase_status = class_exists('Aesop_Core') || defined('LASSO_CUSTOM') ? 'ase-active' : 'ase-not-active';
224 224
 
225 225
 	// let users add custom css classes
226
-	$custom_classes = apply_filters( 'lasso_toolbar_classes', '' );
226
+	$custom_classes = apply_filters('lasso_toolbar_classes', '');
227 227
 
228 228
 	// are toolbar headings enabled
229
-	$toolbar_headings      = lasso_editor_get_option( 'toolbar_headings', 'lasso_editor' );
230
-	$toolbar_headings_h4      = lasso_editor_get_option( 'toolbar_headings_h4', 'lasso_editor' );
231
-	$toolbar_list      = lasso_editor_get_option( 'toolbar_list', 'lasso_editor' );
229
+	$toolbar_headings = lasso_editor_get_option('toolbar_headings', 'lasso_editor');
230
+	$toolbar_headings_h4 = lasso_editor_get_option('toolbar_headings_h4', 'lasso_editor');
231
+	$toolbar_list = lasso_editor_get_option('toolbar_list', 'lasso_editor');
232 232
 
233
-	$toolbar_class  = $toolbar_headings ? 'toolbar-extended' : false;
233
+	$toolbar_class = $toolbar_headings ? 'toolbar-extended' : false;
234 234
 	
235 235
 	// mobile styles
236 236
     $mobile_class = $is_mobile ? 'lasso-mobile' : false;
237
-	$mobile_style =$is_mobile ? 'style="bottom:0px;"' : null;
237
+	$mobile_style = $is_mobile ? 'style="bottom:0px;"' : null;
238 238
 	
239 239
 	//show color
240 240
 	$show_color = lasso_editor_get_option('toolbar_show_color', 'lasso_editor');
@@ -242,126 +242,126 @@  discard block
 block discarded – undo
242 242
 	//show alignment
243 243
 	$show_align = lasso_editor_get_option('toolbar_show_alignment', 'lasso_editor');
244 244
 	
245
-	$status = get_post_status( get_the_ID() );
245
+	$status = get_post_status(get_the_ID());
246 246
 	
247
-	$shortcodify_disabled = lasso_editor_get_option( 'shortcodify_disabled', 'lasso_editor' );
247
+	$shortcodify_disabled = lasso_editor_get_option('shortcodify_disabled', 'lasso_editor');
248 248
 	
249
-	$sc_saving_class = ('on' == $shortcodify_disabled || $ase_status == 'ase-not-active')  ? 'shortcodify-disabled' : 'shortcodify-enabled';
249
+	$sc_saving_class = ('on' == $shortcodify_disabled || $ase_status == 'ase-not-active') ? 'shortcodify-disabled' : 'shortcodify-enabled';
250 250
 
251 251
 
252 252
 	?>
253
-	<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 ?>>
254
-		<ul class="lasso--toolbar__inner lasso-editor-controls" <?php if ($is_mobile) {echo 'style="float:left;"';}?>>
255
-			<?php do_action( 'lasso_toolbar_components_before' );?>
256
-		    <li id="lasso-toolbar--bold" title="<?php esc_attr_e( 'Bold', 'lasso' );?>"></li>
257
-		    <li id="lasso-toolbar--underline" title="<?php esc_attr_e( 'Underline', 'lasso' );?>"></li>
258
-		    <li id="lasso-toolbar--italic" title="<?php esc_attr_e( 'Italicize', 'lasso' );?>"></li>
259
-		    <li id="lasso-toolbar--strike" title="<?php esc_attr_e( 'Strikethrough', 'lasso' );?>"></li>
260
-			<li id="lasso-toolbar--components" class="lasso-toolbar--components" title="<?php esc_attr_e( 'Insert Component', 'lasso' );?>" style="color:#ffffa0;">
253
+	<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 ?>>
254
+		<ul class="lasso--toolbar__inner lasso-editor-controls" <?php if ($is_mobile) {echo 'style="float:left;"'; }?>>
255
+			<?php do_action('lasso_toolbar_components_before'); ?>
256
+		    <li id="lasso-toolbar--bold" title="<?php esc_attr_e('Bold', 'lasso'); ?>"></li>
257
+		    <li id="lasso-toolbar--underline" title="<?php esc_attr_e('Underline', 'lasso'); ?>"></li>
258
+		    <li id="lasso-toolbar--italic" title="<?php esc_attr_e('Italicize', 'lasso'); ?>"></li>
259
+		    <li id="lasso-toolbar--strike" title="<?php esc_attr_e('Strikethrough', 'lasso'); ?>"></li>
260
+			<li id="lasso-toolbar--components" class="lasso-toolbar--components" title="<?php esc_attr_e('Insert Component', 'lasso'); ?>" style="color:#ffffa0;">
261 261
 			    <ul id="lasso-toolbar--components__list" style="display:none;color:white;">
262
-			    	<?php if ( 'ase-active' == $ase_status ): ?>
263
-						<li data-type="image" title="<?php esc_attr_e( 'Image', 'lasso' );?>" class="lasso-toolbar--component__image"></li>
264
-						<li data-type="character" title="<?php esc_attr_e( 'Character', 'lasso' );?>" class="lasso-toolbar--component__character"></li>
265
-						<li data-type="quote" title="<?php esc_attr_e( 'Quote', 'lasso' );?>"  class="lasso-toolbar--component__quote"></li>
266
-						<li data-type="content" title="<?php esc_attr_e( 'Content', 'lasso' );?>"  class="lasso-toolbar--component__content"></li>
267
-						<li data-type="chapter" title="<?php esc_attr_e( 'Chapter', 'lasso' );?>"  class="lasso-toolbar--component__chapter"></li>
268
-						<li data-type="parallax" title="<?php esc_attr_e( 'Parallax', 'lasso' );?>"  class="lasso-toolbar--component__parallax"></li>
269
-						<li data-type="audio" title="<?php esc_attr_e( 'Audio', 'lasso' );?>"  class="lasso-toolbar--component__audio"></li>
270
-						<li data-type="video" title="<?php esc_attr_e( 'Video', 'lasso' );?>"  class="lasso-toolbar--component__video"></li>
271
-						<li data-type="map" title="<?php esc_attr_e( 'Map', 'lasso' );?>"  class="lasso-toolbar--component__map"></li>
272
-						<li data-type="timeline_stop" title="<?php esc_attr_e( 'Timeline', 'lasso' );?>"  class="lasso-toolbar--component__timeline"></li>
273
-						<li data-type="document" title="<?php esc_attr_e( 'Document', 'lasso' );?>"  class="lasso-toolbar--component__document"></li>
274
-						<li data-type="collection" title="<?php esc_attr_e( 'Collection', 'lasso' );?>"  class="lasso-toolbar--component__collection"></li>
275
-						<li data-type="gallery" title="<?php esc_attr_e( 'Gallery', 'lasso' );?>"  class="lasso-toolbar--component__gallery"></li>
276
-						<?php if ( class_exists ('Aesop_GalleryPop') ) { ?>
277
-						     <li data-type="gallery" title="<?php esc_attr_e( 'Gallery Pop', 'lasso' );?>"  class="lasso-toolbar--component__gallerypop"></li>
262
+			    	<?php if ('ase-active' == $ase_status): ?>
263
+						<li data-type="image" title="<?php esc_attr_e('Image', 'lasso'); ?>" class="lasso-toolbar--component__image"></li>
264
+						<li data-type="character" title="<?php esc_attr_e('Character', 'lasso'); ?>" class="lasso-toolbar--component__character"></li>
265
+						<li data-type="quote" title="<?php esc_attr_e('Quote', 'lasso'); ?>"  class="lasso-toolbar--component__quote"></li>
266
+						<li data-type="content" title="<?php esc_attr_e('Content', 'lasso'); ?>"  class="lasso-toolbar--component__content"></li>
267
+						<li data-type="chapter" title="<?php esc_attr_e('Chapter', 'lasso'); ?>"  class="lasso-toolbar--component__chapter"></li>
268
+						<li data-type="parallax" title="<?php esc_attr_e('Parallax', 'lasso'); ?>"  class="lasso-toolbar--component__parallax"></li>
269
+						<li data-type="audio" title="<?php esc_attr_e('Audio', 'lasso'); ?>"  class="lasso-toolbar--component__audio"></li>
270
+						<li data-type="video" title="<?php esc_attr_e('Video', 'lasso'); ?>"  class="lasso-toolbar--component__video"></li>
271
+						<li data-type="map" title="<?php esc_attr_e('Map', 'lasso'); ?>"  class="lasso-toolbar--component__map"></li>
272
+						<li data-type="timeline_stop" title="<?php esc_attr_e('Timeline', 'lasso'); ?>"  class="lasso-toolbar--component__timeline"></li>
273
+						<li data-type="document" title="<?php esc_attr_e('Document', 'lasso'); ?>"  class="lasso-toolbar--component__document"></li>
274
+						<li data-type="collection" title="<?php esc_attr_e('Collection', 'lasso'); ?>"  class="lasso-toolbar--component__collection"></li>
275
+						<li data-type="gallery" title="<?php esc_attr_e('Gallery', 'lasso'); ?>"  class="lasso-toolbar--component__gallery"></li>
276
+						<?php if (class_exists('Aesop_GalleryPop')) { ?>
277
+						     <li data-type="gallery" title="<?php esc_attr_e('Gallery Pop', 'lasso'); ?>"  class="lasso-toolbar--component__gallerypop"></li>
278 278
 						<?php }?>
279
-						<?php if ( class_exists ('Aesop_Events') ) { ?>
280
-						     <li data-type="events" title="<?php esc_attr_e( 'Event', 'lasso' );?>"  class="lasso-toolbar--component__event"></li>
279
+						<?php if (class_exists('Aesop_Events')) { ?>
280
+						     <li data-type="events" title="<?php esc_attr_e('Event', 'lasso'); ?>"  class="lasso-toolbar--component__event"></li>
281 281
 						<?php }?>
282 282
 					<?php else: ?>
283
-						<li data-type="wpimg" title="<?php esc_attr_e( 'WordPress Image', 'lasso' );?>" class="image lasso-toolbar--component__image"></li>
284
-						<li data-type="wpquote" title="<?php esc_attr_e( 'WordPress Quote', 'lasso' );?>" class="quote lasso-toolbar--component__quote"></li>
285
-						<!--li data-type="wpvideo" title="<?php esc_attr_e( 'WordPress Video', 'lasso' );?>" class="video lasso-toolbar--component__video"></li-->
283
+						<li data-type="wpimg" title="<?php esc_attr_e('WordPress Image', 'lasso'); ?>" class="image lasso-toolbar--component__image"></li>
284
+						<li data-type="wpquote" title="<?php esc_attr_e('WordPress Quote', 'lasso'); ?>" class="quote lasso-toolbar--component__quote"></li>
285
+						<!--li data-type="wpvideo" title="<?php esc_attr_e('WordPress Video', 'lasso'); ?>" class="video lasso-toolbar--component__video"></li-->
286 286
 					<?php endif; ?>
287
-					<?php do_action( 'lasso_toolbar_components' );?>
287
+					<?php do_action('lasso_toolbar_components'); ?>
288 288
 			    </ul>
289 289
 			</li>
290
-		    <?php if ( $toolbar_headings ): ?>
291
-		    <li id="lasso-toolbar--h2" title="<?php esc_attr_e( 'H2 Heading', 'lasso' );?>"></li>
292
-		    <li id="lasso-toolbar--h3" title="<?php esc_attr_e( 'H3 Heading', 'lasso' );?>"></li>
290
+		    <?php if ($toolbar_headings): ?>
291
+		    <li id="lasso-toolbar--h2" title="<?php esc_attr_e('H2 Heading', 'lasso'); ?>"></li>
292
+		    <li id="lasso-toolbar--h3" title="<?php esc_attr_e('H3 Heading', 'lasso'); ?>"></li>
293 293
 			<?php endif; ?>
294 294
 			
295 295
 			
296 296
 			
297
-			<?php if ( $toolbar_headings_h4 ): ?>
298
-		    <li id="lasso-toolbar--h4" title="<?php esc_attr_e( 'H4 Heading', 'lasso' );?>"></li>
299
-		    <li id="lasso-toolbar--h5" title="<?php esc_attr_e( 'H5 Heading', 'lasso' );?>"></li>
300
-			<li id="lasso-toolbar--h6" title="<?php esc_attr_e( 'H6 Heading', 'lasso' );?>"></li>
297
+			<?php if ($toolbar_headings_h4): ?>
298
+		    <li id="lasso-toolbar--h4" title="<?php esc_attr_e('H4 Heading', 'lasso'); ?>"></li>
299
+		    <li id="lasso-toolbar--h5" title="<?php esc_attr_e('H5 Heading', 'lasso'); ?>"></li>
300
+			<li id="lasso-toolbar--h6" title="<?php esc_attr_e('H6 Heading', 'lasso'); ?>"></li>
301 301
 			<?php endif; ?>
302 302
 			
303
-			<?php if ( $show_color ): ?>
304
-		    <li id="lasso-toolbar--color-set" title="<?php esc_attr_e( 'Set Color for Selected Text', 'lasso' );?>"></li>
305
-		    <li id="lasso-toolbar--color-pick" title="<?php esc_attr_e( 'Choose Color', 'lasso' );?>"></li>
303
+			<?php if ($show_color): ?>
304
+		    <li id="lasso-toolbar--color-set" title="<?php esc_attr_e('Set Color for Selected Text', 'lasso'); ?>"></li>
305
+		    <li id="lasso-toolbar--color-pick" title="<?php esc_attr_e('Choose Color', 'lasso'); ?>"></li>
306 306
 			<?php endif; ?>
307 307
 			
308
-			<?php if ( $toolbar_list ): ?>
309
-		    <li id="lasso-toolbar--ol" title="<?php esc_attr_e( 'Ordered List', 'lasso' );?>"></li>
310
-		    <li id="lasso-toolbar--ul" title="<?php esc_attr_e( 'Unordered List', 'lasso' );?>"></li>
308
+			<?php if ($toolbar_list): ?>
309
+		    <li id="lasso-toolbar--ol" title="<?php esc_attr_e('Ordered List', 'lasso'); ?>"></li>
310
+		    <li id="lasso-toolbar--ul" title="<?php esc_attr_e('Unordered List', 'lasso'); ?>"></li>
311 311
 			<?php endif; ?>
312 312
 					
313 313
 		    
314
-			<li id="lasso-toolbar--link" title="<?php esc_attr_e( 'Anchor Link', 'lasso' );?>">
314
+			<li id="lasso-toolbar--link" title="<?php esc_attr_e('Anchor Link', 'lasso'); ?>">
315 315
 		    	<div id="lasso-toolbar--link__wrap" <?php echo $mobile_style ?> >
316
-		    		<div id="lasso-toolbar--link__inner" contenteditable="true" placeholder="<?php esc_attr_e( 'http://url.com', 'lasso' );?>"></div>
317
-		    		<a href="#" title="<?php esc_attr_e( 'Create Link', 'lasso' );?>" class="lasso-toolbar--link__control" id="lasso-toolbar--link__create" ></a>
316
+		    		<div id="lasso-toolbar--link__inner" contenteditable="true" placeholder="<?php esc_attr_e('http://url.com', 'lasso'); ?>"></div>
317
+		    		<a href="#" title="<?php esc_attr_e('Create Link', 'lasso'); ?>" class="lasso-toolbar--link__control" id="lasso-toolbar--link__create" ></a>
318 318
 					<input class="styled-checkbox" type="checkbox" id="aesop-toolbar--link_newtab" checked/>
319
-                    <label for="aesop-toolbar--link_newtab"><?php esc_attr_e( 'Open in a New Tab', 'lasso' );?></label>
319
+                    <label for="aesop-toolbar--link_newtab"><?php esc_attr_e('Open in a New Tab', 'lasso'); ?></label>
320 320
 		    	</div>
321 321
 		    </li>
322
-		    <?php do_action( 'lasso_toolbar_components_after' );?>
323
-		    <li id="lasso-toolbar--html" title="<?php esc_attr_e( 'Insert HTML or Code', 'lasso' );?>">
322
+		    <?php do_action('lasso_toolbar_components_after'); ?>
323
+		    <li id="lasso-toolbar--html" title="<?php esc_attr_e('Insert HTML or Code', 'lasso'); ?>">
324 324
 		    	<div id="lasso-toolbar--html__wrap" <?php echo $mobile_style ?>>
325
-		    		<div id="lasso-toolbar--html__inner" contenteditable="true" placeholder="<?php esc_attr_e( 'Enter HTML to insert', 'lasso' );?>"></div>
325
+		    		<div id="lasso-toolbar--html__inner" contenteditable="true" placeholder="<?php esc_attr_e('Enter HTML to insert', 'lasso'); ?>"></div>
326 326
 		    		<div id="lasso-toolbar--html__footer">
327 327
 					<div id="lasso-toolbar--html__footer_desc" >
328
-					<?php esc_attr_e( 'Enter HTML to insert', 'lasso' );?><br>
329
-					<?php esc_attr_e( 'You can also use Shortcodes', 'lasso' );?><br>
330
-					<?php esc_attr_e( 'You can also enter a URL to embed, such as Youtube, Vimeo and Twitter URLs.', 'lasso' );?>
328
+					<?php esc_attr_e('Enter HTML to insert', 'lasso'); ?><br>
329
+					<?php esc_attr_e('You can also use Shortcodes', 'lasso'); ?><br>
330
+					<?php esc_attr_e('You can also enter a URL to embed, such as Youtube, Vimeo and Twitter URLs.', 'lasso'); ?>
331 331
 					</div>
332 332
 		    			<ul class="lasso-toolbar--html-snips">
333 333
 						
334
-		    				<?php if ( !$toolbar_headings ): ?>
335
-		    				<li id="lasso-html--h2" title="<?php esc_attr_e( 'H2 Heading', 'lasso' );?>">
336
-		    				<li id="lasso-html--h3" title="<?php esc_attr_e( 'H3 Heading', 'lasso' );?>">
334
+		    				<?php if (!$toolbar_headings): ?>
335
+		    				<li id="lasso-html--h2" title="<?php esc_attr_e('H2 Heading', 'lasso'); ?>">
336
+		    				<li id="lasso-html--h3" title="<?php esc_attr_e('H3 Heading', 'lasso'); ?>">
337 337
 		    				<?php endif; ?>
338
-		    				<li id="lasso-html--ol" title="<?php esc_attr_e( 'Ordered List', 'lasso' );?>">
339
-							<li id="lasso-html--ul" title="<?php esc_attr_e( 'Unordered List', 'lasso' );?>">
338
+		    				<li id="lasso-html--ol" title="<?php esc_attr_e('Ordered List', 'lasso'); ?>">
339
+							<li id="lasso-html--ul" title="<?php esc_attr_e('Unordered List', 'lasso'); ?>">
340 340
 							
341
-							<li id="lasso-html--table" title="<?php esc_attr_e( 'Table', 'lasso' );?>">
341
+							<li id="lasso-html--table" title="<?php esc_attr_e('Table', 'lasso'); ?>">
342 342
 		    			</ul>
343
-		    			<a class="lasso-toolbar--html__control lasso-toolbar--html__cancel" href="#"><?php _e( 'Cancel', 'lasso' );?></a>
344
-		    			<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>
343
+		    			<a class="lasso-toolbar--html__control lasso-toolbar--html__cancel" href="#"><?php _e('Cancel', 'lasso'); ?></a>
344
+		    			<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>
345 345
 		    		</div>
346 346
 		    	</div>
347 347
 		    </li>
348
-			<?php if ( $show_align ): ?>
349
-		    <li id="lasso-toolbar--left-align" title="<?php esc_attr_e( 'Text Left Align', 'lasso' );?>"></li>
350
-		    <li id="lasso-toolbar--center-align" title="<?php esc_attr_e( 'Text Center Align', 'lasso' );?>"></li>
351
-			<li id="lasso-toolbar--right-align" title="<?php esc_attr_e( 'Text Right Align', 'lasso' );?>"></li>
348
+			<?php if ($show_align): ?>
349
+		    <li id="lasso-toolbar--left-align" title="<?php esc_attr_e('Text Left Align', 'lasso'); ?>"></li>
350
+		    <li id="lasso-toolbar--center-align" title="<?php esc_attr_e('Text Center Align', 'lasso'); ?>"></li>
351
+			<li id="lasso-toolbar--right-align" title="<?php esc_attr_e('Text Right Align', 'lasso'); ?>"></li>
352 352
 			<?php endif; ?>
353 353
 		</ul>
354
-		<?php if ( is_singular() && $is_mobile ) { ?>
354
+		<?php if (is_singular() && $is_mobile) { ?>
355 355
 
356
-				<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;">
356
+				<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;">
357 357
 
358
-					<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>
359
-					<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>
358
+					<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>
359
+					<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>
360 360
 
361
-					<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>
361
+					<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>
362 362
 
363
-					<?php if ( 'draft' == $status && ( lasso_user_can('publish_posts') || lasso_user_can('publish_pages') )  ) { ?>
364
-						<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>
363
+					<?php if ('draft' == $status && (lasso_user_can('publish_posts') || lasso_user_can('publish_pages'))) { ?>
364
+						<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>
365 365
 					<?php } ?>
366 366
 
367 367
 				</div>
@@ -379,20 +379,20 @@  discard block
 block discarded – undo
379 379
  */
380 380
 function lasso_editor_settings_toolbar() {
381 381
 
382
-	$delete_nonce = wp_create_nonce( 'lasso-delete-nonce' );
382
+	$delete_nonce = wp_create_nonce('lasso-delete-nonce');
383 383
 
384 384
 	ob_start();
385 385
 
386 386
 
387 387
 	// let users add custom css classes
388
-	$custom_classes = apply_filters( 'lasso_component_classes', '' );
388
+	$custom_classes = apply_filters('lasso_component_classes', '');
389 389
 
390 390
 	?>
391
-	<ul class="lasso-component--controls <?php echo sanitize_html_class( $custom_classes );?>" contenteditable="false">
392
-		<li class="lasso-drag" title="<?php esc_attr_e( 'Move', 'lasso' );?>"></li>
393
-		<li id="lasso-component--settings__trigger" class="lasso-settings" title="<?php esc_attr_e( 'Settings', 'lasso' );?>"></li>
394
-		<li class="lasso-clone" title="<?php esc_attr_e( 'Clone', 'lasso' );?>"></li>
395
-		<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>
391
+	<ul class="lasso-component--controls <?php echo sanitize_html_class($custom_classes); ?>" contenteditable="false">
392
+		<li class="lasso-drag" title="<?php esc_attr_e('Move', 'lasso'); ?>"></li>
393
+		<li id="lasso-component--settings__trigger" class="lasso-settings" title="<?php esc_attr_e('Settings', 'lasso'); ?>"></li>
394
+		<li class="lasso-clone" title="<?php esc_attr_e('Clone', 'lasso'); ?>"></li>
395
+		<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>
396 396
 	</ul>
397 397
 
398 398
 	<?php return ob_get_clean();
@@ -410,13 +410,13 @@  discard block
 block discarded – undo
410 410
 
411 411
 
412 412
 	// has post thumbnail
413
-	$has_thumbnail = has_post_thumbnail( get_the_ID() ) ? 'class="lasso--featImg--has-thumb"' : false;
413
+	$has_thumbnail = has_post_thumbnail(get_the_ID()) ? 'class="lasso--featImg--has-thumb"' : false;
414 414
 
415 415
 	?>
416
-	<ul id="lasso--featImgControls" <?php echo $has_thumbnail;?>>
417
-		<li id="lasso--featImgUpload"><a title="<?php esc_attr_e( 'Replace Image', 'lasso' );?>" href="#"><i class="lasso-icon-image"></i></a></li>
418
-		<li id="lasso--featImgDelete"><a title="<?php esc_attr_e( 'Delete Image', 'lasso' );?>" href="#"><i class="lasso-icon-bin2"></i></a></li>
419
-		<li id="lasso--featImgSave"><a href="#"><?php esc_attr_e( 'save', 'lasso' );?></a></li>
416
+	<ul id="lasso--featImgControls" <?php echo $has_thumbnail; ?>>
417
+		<li id="lasso--featImgUpload"><a title="<?php esc_attr_e('Replace Image', 'lasso'); ?>" href="#"><i class="lasso-icon-image"></i></a></li>
418
+		<li id="lasso--featImgDelete"><a title="<?php esc_attr_e('Delete Image', 'lasso'); ?>" href="#"><i class="lasso-icon-bin2"></i></a></li>
419
+		<li id="lasso--featImgSave"><a href="#"><?php esc_attr_e('save', 'lasso'); ?></a></li>
420 420
 	</ul>
421 421
 
422 422
 	<?php return ob_get_clean();
@@ -440,19 +440,19 @@  discard block
 block discarded – undo
440 440
 
441 441
 	$postid = get_the_ID();
442 442
 
443
-	$status = get_post_status( $postid );
444
-	$nonce = wp_create_nonce( 'lasso-update-post-settings' );
443
+	$status = get_post_status($postid);
444
+	$nonce = wp_create_nonce('lasso-update-post-settings');
445 445
 
446 446
 	// let users add custom css classes
447
-	$custom_classes = apply_filters( 'lasso_modal_settings_classes', '' );
447
+	$custom_classes = apply_filters('lasso_modal_settings_classes', '');
448 448
 
449 449
 	// objects categories
450
-	$categories 		= lasso_get_post_objects( $postid, 'category' );
451
-	$tags 				= lasso_get_post_objects( $postid, 'tag' );
450
+	$categories = lasso_get_post_objects($postid, 'category');
451
+	$tags = lasso_get_post_objects($postid, 'tag');
452 452
 
453 453
 	// modal tabs
454
-	$tabs  				= lasso_modal_addons('tab');
455
-	$content 			= lasso_modal_addons('content');
454
+	$tabs = lasso_modal_addons('tab');
455
+	$content = lasso_modal_addons('content');
456 456
 	
457 457
 	//editor options
458 458
 	$allow_change_date = lasso_editor_get_option('allow_change_date', 'lasso_editor');
@@ -460,11 +460,11 @@  discard block
 block discarded – undo
460 460
 	$no_url_setting = lasso_editor_get_option('no_url_setting', 'lasso_editor');
461 461
 
462 462
 	// are we singular
463
-	$is_singular 		= is_singular();
463
+	$is_singular = is_singular();
464 464
 	$is_singular_class 	= $is_singular ? 'lasso--postsettings__2col' : 'lasso--postsettings__1col';
465 465
 	$has_thumb_class    = has_post_thumbnail() ? 'has-thumbnail' : 'no-thumbnail';
466 466
 	$theme_supports     = current_theme_supports('post-thumbnails');
467
-	$default_image 		= LASSO_URL.'/admin/assets/img/empty-img.png';
467
+	$default_image = LASSO_URL.'/admin/assets/img/empty-img.png';
468 468
 	
469 469
 	// do we support pending status
470 470
 	$no_pending_status = lasso_editor_get_option('no_pending_status', 'lasso_editor');
@@ -472,26 +472,26 @@  discard block
 block discarded – undo
472 472
     $excerpt = $post->post_excerpt;
473 473
 
474 474
 ?>
475
-	<div id="lasso--post-settings__modal" class="lasso--modal lassoShowAnimate <?php echo sanitize_html_class( $custom_classes );?>">
475
+	<div id="lasso--post-settings__modal" class="lasso--modal lassoShowAnimate <?php echo sanitize_html_class($custom_classes); ?>">
476 476
 		<div class="lasso--modal__inner">
477 477
 
478
-			<?php if( $tabs ) { echo $tabs; } ?>
478
+			<?php if ($tabs) { echo $tabs; } ?>
479 479
 
480 480
 			<div class="lasso--modal__content modal__content--core visible" data-addon-content="core">
481
-				<form id="lasso--postsettings__form" enctype="multipart/form-data" class="lasso--post-form <?php echo $is_singular_class.' '.$has_thumb_class;?>" >
481
+				<form id="lasso--postsettings__form" enctype="multipart/form-data" class="lasso--post-form <?php echo $is_singular_class.' '.$has_thumb_class; ?>" >
482 482
 
483
-					<?php if ( $is_singular && $theme_supports ) : ?>
483
+					<?php if ($is_singular && $theme_supports) : ?>
484 484
 					<div class="lasso--postsettings__left">
485
-						<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>
486
-						<div class="lasso--post-thumb" data-default-thumb="<?php echo esc_url( $default_image );?>">
485
+						<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>
486
+						<div class="lasso--post-thumb" data-default-thumb="<?php echo esc_url($default_image); ?>">
487 487
 
488 488
 							<div id="lasso--post-thumb__controls" class="lasso--post-thumb__controls">
489
-								<i id="lasso--post-thumb__add" title="<?php _e('Change Featured Image','lasso');?>" class="dashicons dashicons-edit"></i>
490
-								<i id="lasso--post-thumb__delete" title="<?php _e('Delete Featured Image','lasso');?>" class="dashicons dashicons-no-alt"></i>
489
+								<i id="lasso--post-thumb__add" title="<?php _e('Change Featured Image', 'lasso'); ?>" class="dashicons dashicons-edit"></i>
490
+								<i id="lasso--post-thumb__delete" title="<?php _e('Delete Featured Image', 'lasso'); ?>" class="dashicons dashicons-no-alt"></i>
491 491
 								<i id="lasso--save-status" class="lasso-icon lasso-icon-spinner6 not-visible"></i>
492 492
 							</div>
493 493
 
494
-							<?php echo has_post_thumbnail() ? get_the_post_thumbnail( $post->ID, 'medium' ) : '<img src="'.$default_image.'">'; ?>
494
+							<?php echo has_post_thumbnail() ? get_the_post_thumbnail($post->ID, 'medium') : '<img src="'.$default_image.'">'; ?>
495 495
 
496 496
 						</div>
497 497
 						<div id="lasso--featImgSave"><a href="#" class="not-visible">Save</a></div>
@@ -501,15 +501,15 @@  discard block
 block discarded – undo
501 501
 
502 502
 					<div class="lasso--postsettings__right">
503 503
 
504
-						<?php if( lasso_user_can('publish_posts') || lasso_user_can('publish_pages') ): ?>
504
+						<?php if (lasso_user_can('publish_posts') || lasso_user_can('publish_pages')): ?>
505 505
 						<div class="lasso--postsettings__option story-status-option">
506
-							<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>
507
-							<ul class="story-status story-status-<?php echo sanitize_html_class( $status );?>">
508
-								<li id="lasso--status-draft"><?php _e( 'Draft', 'lasso' );?></li>
509
-								<?php if( !$no_pending_status ): ?>								
510
-								<li id="lasso--status-pending"><?php _e( 'Pending', 'lasso' );?></li>
506
+							<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>
507
+							<ul class="story-status story-status-<?php echo sanitize_html_class($status); ?>">
508
+								<li id="lasso--status-draft"><?php _e('Draft', 'lasso'); ?></li>
509
+								<?php if (!$no_pending_status): ?>								
510
+								<li id="lasso--status-pending"><?php _e('Pending', 'lasso'); ?></li>
511 511
 								<?php endif; ?>
512
-								<li id="lasso--status-publish"><?php _e( 'Publish', 'lasso' );?></li>
512
+								<li id="lasso--status-publish"><?php _e('Publish', 'lasso'); ?></li>
513 513
 							</ul>
514 514
 							<div class="lasso--slider_wrap">
515 515
 								<div id="lasso--slider"></div>
@@ -517,10 +517,10 @@  discard block
 block discarded – undo
517 517
 						</div>
518 518
 						<?php endif; ?>
519 519
 
520
-						<?php if ( 'publish' == $status  && !$no_url_setting): ?>
520
+						<?php if ('publish' == $status && !$no_url_setting): ?>
521 521
 						<div class="lasso--postsettings__option story-slug-option">
522
-							<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>
523
-							<input class="lasso--modal__trigger-footer" type="text" name="story_slug" value="<?php echo isset( $post ) ? esc_attr( $post->post_name ) : false;?>">
522
+							<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>
523
+							<input class="lasso--modal__trigger-footer" type="text" name="story_slug" value="<?php echo isset($post) ? esc_attr($post->post_name) : false; ?>">
524 524
 						</div>
525 525
 						<?php endif; ?>
526 526
 
@@ -529,30 +529,30 @@  discard block
 block discarded – undo
529 529
 					<div class="lasso--postsettings__middle">
530 530
 
531 531
 						<div class="lasso--postsettings__option story-categories-option">
532
-							<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>
533
-							<input id="lasso--cat-select" class="lasso--modal__trigger-footer" type="hidden" name="story_cats" value="<?php echo $categories;?>">
532
+							<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>
533
+							<input id="lasso--cat-select" class="lasso--modal__trigger-footer" type="hidden" name="story_cats" value="<?php echo $categories; ?>">
534 534
 						</div>
535 535
 
536 536
 						<div class="lasso--postsettings__option story-tags-option">
537
-							<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>
538
-							<input id="lasso--tag-select" class="lasso--modal__trigger-footer" type="hidden" name="story_tags" value="<?php echo $tags;?>">
537
+							<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>
538
+							<input id="lasso--tag-select" class="lasso--modal__trigger-footer" type="hidden" name="story_tags" value="<?php echo $tags; ?>">
539 539
 						</div>
540 540
                         <?php 
541 541
 						if ($allow_edit_excerpt) { 
542 542
 						?>
543 543
                         <div class="lasso--postsettings__option story-excerpt-option">
544
-							<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>
545
-							<input id="lasso--excerpt" class="lasso--modal__trigger-footer" type="text" name="excerpt" value="<?php echo $excerpt;?>" style="width:100%">
544
+							<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>
545
+							<input id="lasso--excerpt" class="lasso--modal__trigger-footer" type="text" name="excerpt" value="<?php echo $excerpt; ?>" style="width:100%">
546 546
 						</div>
547 547
                         <?php
548 548
 						}?>
549 549
 						<?php 
550 550
 						if ($allow_change_date) { 
551
-						    $dateformat = get_option( 'date_format' ); 
551
+						    $dateformat = get_option('date_format'); 
552 552
 						?>
553
-						    <label><?php _e( 'Post Date', 'lasso' ); ?></label>
554
-							<input type="text" class="editus_custom_date" name="post_date" value="<?php echo get_the_time($dateformat, $postid);?>"/>
555
-							<a href="#" id="lasso--postsettings-setnow"><?php _e( 'Set to Now', 'lasso' ); ?></a>
553
+						    <label><?php _e('Post Date', 'lasso'); ?></label>
554
+							<input type="text" class="editus_custom_date" name="post_date" value="<?php echo get_the_time($dateformat, $postid); ?>"/>
555
+							<a href="#" id="lasso--postsettings-setnow"><?php _e('Set to Now', 'lasso'); ?></a>
556 556
 						<?php
557 557
 						}?>
558 558
 
@@ -574,23 +574,23 @@  discard block
 block discarded – undo
574 574
 					?>
575 575
 					<!--/div-->
576 576
 
577
-					<?php do_action( 'lasso_modal_post_form' ); // action ?>
577
+					<?php do_action('lasso_modal_post_form'); // action ?>
578 578
 
579 579
 					<div class="lasso--postsettings__footer" >
580
-						<a href="#" class="lasso--postsettings-cancel"><?php _e( 'Cancel', 'lasso' );?></a>
580
+						<a href="#" class="lasso--postsettings-cancel"><?php _e('Cancel', 'lasso'); ?></a>
581 581
 						<input type="hidden" name="status" value="">
582 582
 						<input type="hidden" name="categories" value="">
583
-						<input type="hidden" name="postid" value="<?php echo get_the_ID();?>">
583
+						<input type="hidden" name="postid" value="<?php echo get_the_ID(); ?>">
584 584
 						<input type="hidden" name="action" value="process_update-object_post">
585
-						<input type="hidden" name="nonce" value="<?php echo $nonce;?>">
586
-						<?php do_action( 'lasso_modal_post_form_footer' ); // action ?>
587
-						<input type="submit" id="lasso--postsettings-submit" value="<?php esc_attr_e( 'Save', 'lasso' );?>">
585
+						<input type="hidden" name="nonce" value="<?php echo $nonce; ?>">
586
+						<?php do_action('lasso_modal_post_form_footer'); // action ?>
587
+						<input type="submit" id="lasso--postsettings-submit" value="<?php esc_attr_e('Save', 'lasso'); ?>">
588 588
 					</div>
589 589
 
590 590
 				</form>
591 591
 			</div>
592 592
 
593
-			<?php if( $tabs ) { echo $content; } ?>
593
+			<?php if ($tabs) { echo $content; } ?>
594 594
 
595 595
 		</div>
596 596
 
@@ -612,41 +612,41 @@  discard block
 block discarded – undo
612 612
 	ob_start();
613 613
 
614 614
 
615
-	$status = get_post_status( get_the_ID() );
615
+	$status = get_post_status(get_the_ID());
616 616
 
617
-	$nonce = wp_create_nonce( 'lasso-editor-new-post' );
617
+	$nonce = wp_create_nonce('lasso-editor-new-post');
618 618
 
619 619
 	// let users add custom css classes
620
-	$custom_classes = apply_filters( 'lasso_modal_post_classes', '' );
620
+	$custom_classes = apply_filters('lasso_modal_post_classes', '');
621 621
 
622 622
 	// return the post type
623
-	$type = get_post_type( get_the_ID() );
623
+	$type = get_post_type(get_the_ID());
624 624
 
625 625
 	$mobile_style = "";
626 626
 	if (wp_is_mobile()) {
627 627
 		//$mobile_style = 'style="top:140px !important;"';
628 628
 	}
629 629
 	?>
630
-	<div id="lasso--post-new__modal" class="lasso--modal lasso--modal__med lassoShowAnimate <?php echo sanitize_html_class( $custom_classes );?>" <?php echo $mobile_style;?>">
630
+	<div id="lasso--post-new__modal" class="lasso--modal lasso--modal__med lassoShowAnimate <?php echo sanitize_html_class($custom_classes); ?>" <?php echo $mobile_style; ?>">
631 631
 		<div class="lasso--modal__inner lasso--hasnewform">
632 632
 
633 633
 			<form id="lasso--postnew__form" enctype="multipart/form-data" class="lasso--post-form">
634 634
 
635 635
 				<div class="lasso--postsettings__option story-slug-option lasso--last-option">
636
-					<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>
637
-					<input class="lasso--modal__trigger-footer" type="text" required name="story_title" value="" placeholder="<?php esc_attr_e( 'Type Your Title Here', 'lasso' );?>">
636
+					<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>
637
+					<input class="lasso--modal__trigger-footer" type="text" required name="story_title" value="" placeholder="<?php esc_attr_e('Type Your Title Here', 'lasso'); ?>">
638 638
 						<div class="lasso--select-wrap" style="width:90px">
639 639
 						<select id="lasso--select-type" name="story_type">
640 640
 
641 641
 							<?php
642 642
 								$types = lasso_post_types_names();
643
-								if ( !empty( $types ) ) {
644
-									foreach( $types as $name => $label ) {										
645
-										$type = preg_replace( '/s\b/','', $name );
643
+								if (!empty($types)) {
644
+									foreach ($types as $name => $label) {										
645
+										$type = preg_replace('/s\b/', '', $name);
646 646
 										if ($type == 'page' && !current_user_can('edit_pages')) {
647 647
 											continue;
648 648
 										}
649
-										printf( '<option value="%s">%s</option>', lcfirst( esc_attr( $type ) ) , ucfirst( esc_attr( $label ) ) );
649
+										printf('<option value="%s">%s</option>', lcfirst(esc_attr($type)), ucfirst(esc_attr($label)));
650 650
 									}
651 651
 
652 652
 								}
@@ -657,19 +657,19 @@  discard block
 block discarded – undo
657 657
 				</div>
658 658
 
659 659
 				<div class="lasso--postsettings__footer">
660
-					<a href="#" class="lasso--postsettings-cancel"><?php _e( 'Cancel', 'lasso' );?></a>
660
+					<a href="#" class="lasso--postsettings-cancel"><?php _e('Cancel', 'lasso'); ?></a>
661 661
 					<input type="hidden" name="action" value="process_new-object_post">
662 662
 					<?php
663
-						if ( !empty( $types ) ) {
663
+						if (!empty($types)) {
664 664
 							// get the first element
665 665
 							$keys = array_keys($types);
666
-						    $type =$keys[0];						
667
-							$type = preg_replace( '/s\b/','', $type );
668
-							printf( '<input type="hidden" name="object" value="%s">', lcfirst( esc_attr( $type ) ) );		
666
+						    $type = $keys[0];						
667
+							$type = preg_replace('/s\b/', '', $type);
668
+							printf('<input type="hidden" name="object" value="%s">', lcfirst(esc_attr($type)));		
669 669
 						}
670 670
 					?>
671
-					<input type="hidden" name="nonce" value="<?php echo $nonce;?>">
672
-					<input type="submit" value="<?php esc_attr_e( 'Create', 'lasso' );?>">
671
+					<input type="hidden" name="nonce" value="<?php echo $nonce; ?>">
672
+					<input type="submit" value="<?php esc_attr_e('Create', 'lasso'); ?>">
673 673
 				</div>
674 674
 
675 675
 			</form>
@@ -697,18 +697,18 @@  discard block
 block discarded – undo
697 697
 	ob_start();
698 698
 
699 699
 	// post status
700
-	$status = get_post_status( get_the_ID() );
700
+	$status = get_post_status(get_the_ID());
701 701
 
702 702
 	// let users add custom css classes
703
-	$custom_classes = apply_filters( 'lasso_modal_all_post_classes', '' );
703
+	$custom_classes = apply_filters('lasso_modal_all_post_classes', '');
704 704
 
705 705
 	?>
706
-	<div id="lasso--all-posts__modal" class="lasso--modal lasso--modal__full lassoShowAnimate <?php echo sanitize_html_class( $custom_classes );?>" style="max-height:100%">
706
+	<div id="lasso--all-posts__modal" class="lasso--modal lasso--modal__full lassoShowAnimate <?php echo sanitize_html_class($custom_classes); ?>" style="max-height:100%">
707 707
 		<div class="lasso--modal__inner">
708 708
 
709 709
 			<div class="lasso--post-filtering not-visible">
710 710
 				<div class="lasso--search__results">
711
-					<span id="lasso--results-found"></span><?php _e('results found','lasso');?>
711
+					<span id="lasso--results-found"></span><?php _e('results found', 'lasso'); ?>
712 712
 				</div>
713 713
 				<div class="lasso--search">
714 714
 					<i id="lasso--search__toggle" class="dashicons dashicons-search"></i>
@@ -722,18 +722,18 @@  discard block
 block discarded – undo
722 722
 				$post_types = lasso_post_types_names();
723 723
 				$rest_bases = lasso_post_types_rest_base();
724 724
 
725
-				if ( ! empty( $post_types ) ) {
725
+				if (!empty($post_types)) {
726 726
 					$first = 'active';
727
-					foreach( $post_types as $name => $label ) {
727
+					foreach ($post_types as $name => $label) {
728 728
 						if (array_key_exists($name, $rest_bases)) {
729
-							printf( '<li class="%1s lasso--show-objects" data-post-type="%2s">%3s</li>', esc_attr( $first), esc_attr( $rest_bases[$name] ), esc_attr( $label ) );
729
+							printf('<li class="%1s lasso--show-objects" data-post-type="%2s">%3s</li>', esc_attr($first), esc_attr($rest_bases[$name]), esc_attr($label));
730 730
 						}
731 731
 						$first = '';
732 732
 					}
733 733
 
734 734
 				}
735 735
 
736
-				do_action('lasso_modal_post_objects');?>
736
+				do_action('lasso_modal_post_objects'); ?>
737 737
 
738 738
 			</ul>
739 739
 			<div id="lasso--loading" class="lasso--loading"><div class="lasso--loader"></div></div>
@@ -753,15 +753,15 @@  discard block
 block discarded – undo
753 753
 
754 754
 
755 755
 	// let users add custom css classes
756
-	$custom_classes = apply_filters( 'lasso_wpimg_classes', '' );
756
+	$custom_classes = apply_filters('lasso_wpimg_classes', '');
757 757
 
758 758
 	?>
759
-	<ul class="lasso-component--controls <?php echo sanitize_html_class( $custom_classes );?>" contenteditable="false">
760
-		<li class="lasso-drag" title="<?php esc_attr_e( 'Move', 'lasso' );?>"></li>
761
-		<!--li id="lasso--wpimg-edit" class="lasso-settings" title="<?php esc_attr_e( 'Settings', 'lasso' );?>"></li-->
762
-        <li id="lasso-component--settings__trigger" class="lasso-settings" title="<?php esc_attr_e( 'Settings', 'lasso' );?>"></li>
763
-		<li class="lasso-clone" title="<?php esc_attr_e( 'Clone', 'lasso' );?>"></li>
764
-		<li class="lasso-delete" title="<?php esc_attr_e( 'Delete', 'lasso' );?>"></li>
759
+	<ul class="lasso-component--controls <?php echo sanitize_html_class($custom_classes); ?>" contenteditable="false">
760
+		<li class="lasso-drag" title="<?php esc_attr_e('Move', 'lasso'); ?>"></li>
761
+		<!--li id="lasso--wpimg-edit" class="lasso-settings" title="<?php esc_attr_e('Settings', 'lasso'); ?>"></li-->
762
+        <li id="lasso-component--settings__trigger" class="lasso-settings" title="<?php esc_attr_e('Settings', 'lasso'); ?>"></li>
763
+		<li class="lasso-clone" title="<?php esc_attr_e('Clone', 'lasso'); ?>"></li>
764
+		<li class="lasso-delete" title="<?php esc_attr_e('Delete', 'lasso'); ?>"></li>
765 765
 	</ul>
766 766
 
767 767
 	<?php return ob_get_clean();
@@ -773,14 +773,14 @@  discard block
 block discarded – undo
773 773
 
774 774
 
775 775
 	// let users add custom css classes
776
-	$custom_classes = apply_filters( 'lasso_wpimg_classes', '' );
776
+	$custom_classes = apply_filters('lasso_wpimg_classes', '');
777 777
 
778 778
 	?>
779
-	<ul class="lasso-component--controls <?php echo sanitize_html_class( $custom_classes );?>" contenteditable="false">
780
-		<li class="lasso-drag" title="<?php esc_attr_e( 'Move', 'lasso' );?>"></li>
781
-		<li id="lasso--wpvideo-edit" class="lasso-settings" title="<?php esc_attr_e( 'Settings', 'lasso' );?>"></li>
782
-		<li class="lasso-clone" title="<?php esc_attr_e( 'Clone', 'lasso' );?>"></li>
783
-		<li class="lasso-delete" title="<?php esc_attr_e( 'Delete', 'lasso' );?>"></li>
779
+	<ul class="lasso-component--controls <?php echo sanitize_html_class($custom_classes); ?>" contenteditable="false">
780
+		<li class="lasso-drag" title="<?php esc_attr_e('Move', 'lasso'); ?>"></li>
781
+		<li id="lasso--wpvideo-edit" class="lasso-settings" title="<?php esc_attr_e('Settings', 'lasso'); ?>"></li>
782
+		<li class="lasso-clone" title="<?php esc_attr_e('Clone', 'lasso'); ?>"></li>
783
+		<li class="lasso-delete" title="<?php esc_attr_e('Delete', 'lasso'); ?>"></li>
784 784
 	</ul>
785 785
 
786 786
 	<?php return ob_get_clean();
@@ -793,16 +793,16 @@  discard block
 block discarded – undo
793 793
  */
794 794
 function lasso_map_form_footer() {
795 795
 
796
-	$nonce = wp_create_nonce( 'lasso-process-map' );
796
+	$nonce = wp_create_nonce('lasso-process-map');
797 797
 
798 798
 	ob_start();
799 799
 
800 800
 	?>
801 801
 	<div class="lasso--map-form__footer">
802
-		<input type="hidden" name="postid" value="<?php echo get_the_ID();?>">
803
-		<input type="hidden" name="nonce" value="<?php echo $nonce;?>">
802
+		<input type="hidden" name="postid" value="<?php echo get_the_ID(); ?>">
803
+		<input type="hidden" name="nonce" value="<?php echo $nonce; ?>">
804 804
 		<input type="hidden" name="action" value="process_map_save">
805
-		<input type="submit" class="lasso--map-form__submit" value="<?php esc_attr_e( 'Save Locations', 'lasso' );?>">
805
+		<input type="submit" class="lasso--map-form__submit" value="<?php esc_attr_e('Save Locations', 'lasso'); ?>">
806 806
 	</div>
807 807
 
808 808
 	<?php return ob_get_clean();
@@ -820,7 +820,7 @@  discard block
 block discarded – undo
820 820
 
821 821
 	?>
822 822
 	<div id="lasso--pagerefresh" class="visible">
823
-		<?php _e( 'Save this post and refesh the page to see these changes.', 'lasso' );?>
823
+		<?php _e('Save this post and refesh the page to see these changes.', 'lasso'); ?>
824 824
 	</div>
825 825
 
826 826
 	<?php return ob_get_clean();
@@ -834,45 +834,45 @@  discard block
 block discarded – undo
834 834
  */
835 835
 function lasso_editor_options_blob() {
836 836
 
837
-	$codes   = function_exists( 'aesop_shortcodes' ) ? aesop_shortcodes() : array();
838
-    $codes   = add_wpimg_options( $codes );
839
-    $codes   = apply_filters( 'lasso_custom_options', $codes );
840
-	$galleries  = function_exists( 'lasso_editor_galleries_exist' ) && lasso_editor_galleries_exist() ? 'has-galleries' : 'creating-gallery';
837
+	$codes = function_exists('aesop_shortcodes') ? aesop_shortcodes() : array();
838
+    $codes   = add_wpimg_options($codes);
839
+    $codes   = apply_filters('lasso_custom_options', $codes);
840
+	$galleries  = function_exists('lasso_editor_galleries_exist') && lasso_editor_galleries_exist() ? 'has-galleries' : 'creating-gallery';
841 841
 
842
-	$nonce = wp_create_nonce( 'lasso_gallery' );
842
+	$nonce = wp_create_nonce('lasso_gallery');
843 843
 
844 844
 	$blob = array();
845 845
 
846
-	if ( empty( $codes ) )
846
+	if (empty($codes))
847 847
 		return;
848 848
 
849
-	foreach ( $codes as $slug => $shortcode ) {
849
+	foreach ($codes as $slug => $shortcode) {
850 850
 		$return = '';
851 851
 		// Shortcode has atts
852 852
 
853
-		if ( count( $shortcode['atts'] ) && $shortcode['atts'] ) {
853
+		if (count($shortcode['atts']) && $shortcode['atts']) {
854 854
 
855
-			foreach ( $shortcode['atts'] as $attr_name => $attr_info ) {
855
+			foreach ($shortcode['atts'] as $attr_name => $attr_info) {
856 856
 
857 857
 
858
-				$prefix = isset( $attr_info['prefix'] ) ? sprintf( '<span class="lasso-option-prefix">%s</span>', $attr_info['prefix'] ) : null;
858
+				$prefix = isset($attr_info['prefix']) ? sprintf('<span class="lasso-option-prefix">%s</span>', $attr_info['prefix']) : null;
859 859
 
860 860
 				$return .= '<form id="aesop-generator-settings" class="lasso--component-settings-form" class="'.$galleries.'" method="post">';
861 861
 				$return .= '<p data-option="'.$attr_name.'" class="lasso-option aesop-'.$slug.'-'.$attr_name.'">';
862
-				$return .= '<label for="aesop-generator-attr-' . $attr_name . '">' . $attr_info['desc'] . '</label>';
862
+				$return .= '<label for="aesop-generator-attr-'.$attr_name.'">'.$attr_info['desc'].'</label>';
863 863
 				$return .= '<small class="lasso-option-desc">'.$attr_info['tip'].'</small>';
864 864
 				// Select
865 865
 
866
-				if ( isset( $attr_info['values'] ) ) {
866
+				if (isset($attr_info['values'])) {
867 867
 
868
-					$return .= '<select name="' . $attr_name . '" id="aesop-generator-attr-' . $attr_name . '" class="lasso-generator-attr">';
868
+					$return .= '<select name="'.$attr_name.'" id="aesop-generator-attr-'.$attr_name.'" class="lasso-generator-attr">';
869 869
 
870
-					$i=0;
870
+					$i = 0;
871 871
 
872
-					foreach ( $attr_info['values'] as $attr_value ) {
872
+					foreach ($attr_info['values'] as $attr_value) {
873 873
 						$attr_value_selected = $attr_info['default'] == $attr_value ? ' selected="selected"' : '';
874 874
 
875
-						$return .= '<option value="'.$attr_info['values'][$i]['value'].'" ' . $attr_value_selected . '>'.$attr_info['values'][$i]['name'].'</option>';
875
+						$return .= '<option value="'.$attr_info['values'][$i]['value'].'" '.$attr_value_selected.'>'.$attr_info['values'][$i]['name'].'</option>';
876 876
 
877 877
 						$i++;
878 878
 					}
@@ -881,24 +881,24 @@  discard block
 block discarded – undo
881 881
 
882 882
 				} else {
883 883
 
884
-					$attr_field_type = isset( $attr_info['type'] ) ? $attr_info['type'] : 'text';
884
+					$attr_field_type = isset($attr_info['type']) ? $attr_info['type'] : 'text';
885 885
 
886 886
 					// image upload
887
-					if ( 'media_upload' == $attr_info['type'] ) {
887
+					if ('media_upload' == $attr_info['type']) {
888 888
 
889
-						$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.'" />';
889
+						$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.'" />';
890 890
 						$return .= '<a href="#" id="lasso-upload-img" class="lasso-option-button" /></a>';
891 891
 
892
-					} elseif ( 'color' == $attr_info['type'] ) {
892
+					} elseif ('color' == $attr_info['type']) {
893 893
 
894
-						$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.'" />';
894
+						$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.'" />';
895 895
 
896
-					} elseif ( 'text_area' == $attr_info['type'] ) {
896
+					} elseif ('text_area' == $attr_info['type']) {
897 897
 
898
-						$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.'';
898
+						$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.'';
899 899
 
900 900
 					} else {
901
-						$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.'';
901
+						$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.'';
902 902
 					}
903 903
 				}
904 904
 				$return .= '</p>';
@@ -909,9 +909,9 @@  discard block
 block discarded – undo
909 909
 		///////////////////////////
910 910
 		// START GALLERY AND MAP FRONT END STUFFS
911 911
 		///////////////////////////
912
-		if ( isset( $shortcode['front'] ) && true == $shortcode['front'] ) {
912
+		if (isset($shortcode['front']) && true == $shortcode['front']) {
913 913
 
914
-			if ( 'gallery' == $shortcode['front_type'] ) {
914
+			if ('gallery' == $shortcode['front_type']) {
915 915
 
916 916
 				$return .= lasso_gallery_editor_module();
917 917
 
@@ -922,13 +922,13 @@  discard block
 block discarded – undo
922 922
 		///////////////////////////
923 923
 
924 924
 		// Single shortcode (not closed)
925
-		if ( 'single' == $shortcode['type'] ) {
925
+		if ('single' == $shortcode['type']) {
926 926
 
927 927
 			$return .= '<input type="hidden" name="lasso-generator-content" id="lasso-generator-content" value="false" />';
928 928
 
929 929
 		} else {
930 930
 
931
-			$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>';
931
+			$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>';
932 932
 		}
933 933
 
934 934
 		$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>';
@@ -948,60 +948,60 @@  discard block
 block discarded – undo
948 948
 }
949 949
 
950 950
 
951
-function add_wpimg_options( $shortcodes ) {
951
+function add_wpimg_options($shortcodes) {
952 952
     $custom = array(
953 953
         'wpimg'    => array(
954
-            'name'     => __( 'Image', 'lasso' ),
954
+            'name'     => __('Image', 'lasso'),
955 955
             'type'     => 'single',
956 956
             'atts'     => array(
957 957
                 'img'    => array(
958 958
                     'type'  => 'media_upload',
959 959
                     'default'  => '',
960
-                    'desc'   => __( 'Image URL', 'lasso' ),
961
-                    'tip'  => __( 'URL for the image. Click <em>Select Media</em> to open the WordPress Media Library.', 'aesop-core' )
960
+                    'desc'   => __('Image URL', 'lasso'),
961
+                    'tip'  => __('URL for the image. Click <em>Select Media</em> to open the WordPress Media Library.', 'aesop-core')
962 962
                 ),
963 963
                 
964 964
                 'imgwidth'    => array(
965 965
                     'type'  => 'text_small',
966 966
                     'default'  => '300px',
967
-                    'desc'   => __( 'Image Width', 'lasso' ),
968
-                    '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' )
967
+                    'desc'   => __('Image Width', 'lasso'),
968
+                    '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')
969 969
                 ),
970 970
                 'imgheight'    => array(
971 971
                     'type'  => 'text_small',
972 972
                     'default'  => '',
973
-                    'desc'   => __( 'Image Height', 'lasso' ),
974
-                    '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' )
973
+                    'desc'   => __('Image Height', 'lasso'),
974
+                    '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')
975 975
                 ),					
976 976
                 
977 977
                 'link'    => array(
978 978
                     'type'  => 'text',
979 979
                     'default'  => '',
980
-                    'desc'   => __( 'Link', 'lasso' ),
981
-                    'tip'  => __( 'URL link', 'lasso' )
980
+                    'desc'   => __('Link', 'lasso'),
981
+                    'tip'  => __('URL link', 'lasso')
982 982
                 ),
983 983
                 'alt'    => array(
984 984
                     'type'  => 'text',
985 985
                     'default'  => '',
986
-                    'desc'   => __( 'Image ALT', 'lasso' ),
987
-                    'tip'  => __( 'ALT tag used for the image. Primarily used for SEO purposes.', 'lasso' )
986
+                    'desc'   => __('Image ALT', 'lasso'),
987
+                    'tip'  => __('ALT tag used for the image. Primarily used for SEO purposes.', 'lasso')
988 988
                 ),
989 989
                 
990 990
                 'caption'    => array(
991 991
                     'type'  => 'text_area',
992 992
                     'default'  => '',
993
-                    'desc'   => __( 'Caption', 'lasso' ),
994
-                    'tip'  => __( 'Optional caption for the image.', 'lasso' )
993
+                    'desc'   => __('Caption', 'lasso'),
994
+                    'tip'  => __('Optional caption for the image.', 'lasso')
995 995
                 ),
996 996
                 
997 997
 
998 998
             ),
999
-            'desc'     => __( 'An image.', 'aesop-core' ),
999
+            'desc'     => __('An image.', 'aesop-core'),
1000 1000
             'codes'    => ''
1001 1001
         )
1002 1002
     );
1003 1003
 
1004
-    return array_merge( $shortcodes, $custom );
1004
+    return array_merge($shortcodes, $custom);
1005 1005
 }
1006 1006
 
1007 1007
 /**
@@ -1021,14 +1021,14 @@  discard block
 block discarded – undo
1021 1021
 				<div id="lasso--loading" class="lasso--loading"><div class="lasso--loader"></div></div>
1022 1022
 				<div id="lasso--hide" style="display:none;" class="lasso--post-form">
1023 1023
 					<i class="lasso-icon lasso-icon-move"></i>
1024
-					<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>
1024
+					<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>
1025 1025
 					<div class="lasso--slider_wrap">
1026 1026
 						<div id="lasso--slider"></div>
1027 1027
 					</div>
1028 1028
 					<ul id="lasso--revision-list"></ul>
1029 1029
 					<div class="lasso--btn-group lasso--btn-group-small">
1030
-						<a href="#" class="lasso--btn-secondary" id="lasso--close-modal"><?php _e( 'Cancel', 'lasso' );?></a>
1031
-						<a href="#" class="lasso--btn-primary" id="lasso--select-revision"><?php _e( 'Select', 'lasso' );?></a>
1030
+						<a href="#" class="lasso--btn-secondary" id="lasso--close-modal"><?php _e('Cancel', 'lasso'); ?></a>
1031
+						<a href="#" class="lasso--btn-primary" id="lasso--select-revision"><?php _e('Select', 'lasso'); ?></a>
1032 1032
 					</div>
1033 1033
 				</div>
1034 1034
 
@@ -1051,7 +1051,7 @@  discard block
 block discarded – undo
1051 1051
     // Normalize into a six character long hex string
1052 1052
     $hex = str_replace('#', '', $hex);
1053 1053
     if (strlen($hex) == 3) {
1054
-        $hex = str_repeat(substr($hex,0,1), 2).str_repeat(substr($hex,1,1), 2).str_repeat(substr($hex,2,1), 2);
1054
+        $hex = str_repeat(substr($hex, 0, 1), 2).str_repeat(substr($hex, 1, 1), 2).str_repeat(substr($hex, 2, 1), 2);
1055 1055
     }
1056 1056
 
1057 1057
     // Split into three parts: R, G and B
@@ -1060,7 +1060,7 @@  discard block
 block discarded – undo
1060 1060
 
1061 1061
     foreach ($color_parts as $color) {
1062 1062
         $color   = hexdec($color); // Convert to decimal
1063
-        $color   = max(0,min(255,$color + $steps)); // Adjust color
1063
+        $color   = max(0, min(255, $color + $steps)); // Adjust color
1064 1064
         $return .= str_pad(dechex($color), 2, '0', STR_PAD_LEFT); // Make two char hex code
1065 1065
     }
1066 1066
 
Please login to merge, or discard this patch.