Completed
Push — master ( 31090b...87a04c )
by
unknown
01:28
created
lasso.php 1 patch
Spacing   +18 added lines, -18 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.1.0.1' );
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.1.0.1');
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;
@@ -67,16 +67,16 @@  discard block
 block discarded – undo
67 67
 ));
68 68
 
69 69
 // Gutenberg
70
-if( function_exists( 'is_gutenberg_page' ) ) {
71
-	function add_raw_to_post( $response, $post, $request ) {
70
+if (function_exists('is_gutenberg_page')) {
71
+	function add_raw_to_post($response, $post, $request) {
72 72
 		$response_data = $response->get_data();
73
-		if ( is_array( $response_data['content'] )) {
74
-			$response_data['content']['raw'] =  $post->post_content ;
75
-			$response->set_data( $response_data );
73
+		if (is_array($response_data['content'])) {
74
+			$response_data['content']['raw'] = $post->post_content;
75
+			$response->set_data($response_data);
76 76
 		}
77 77
 
78 78
 		return $response;
79 79
 	}
80
-	add_filter( "rest_prepare_post", 'add_raw_to_post', 10, 3 );
80
+	add_filter("rest_prepare_post", 'add_raw_to_post', 10, 3);
81 81
 }
82 82
 
Please login to merge, or discard this patch.
public/includes/editor-modules.php 1 patch
Spacing   +259 added lines, -259 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';
@@ -60,29 +60,29 @@  discard block
 block discarded – undo
60 60
 		?>
61 61
 		<style>
62 62
 		.lasso-editor-controls--wrap, #lasso--post-settings2,#lasso--save,#lasso--post-delete,#lasso--exit,#lasso--publish {
63
-			background-image: -webkit-linear-gradient(top,<?php echo $button_color1;?> 0,<?php echo $button_color2;?> 100%);
64
-			background-image: -o-linear-gradient(top,<?php echo $button_color1;?> 0,<?php echo $button_color2;?> 100%);
65
-			background-image: linear-gradient(to bottom,<?php echo $button_color1;?> 0,<?php echo $button_color2;?> 100%);
66
-			color: <?php echo $text_color;?>;
63
+			background-image: -webkit-linear-gradient(top,<?php echo $button_color1; ?> 0,<?php echo $button_color2; ?> 100%);
64
+			background-image: -o-linear-gradient(top,<?php echo $button_color1; ?> 0,<?php echo $button_color2; ?> 100%);
65
+			background-image: linear-gradient(to bottom,<?php echo $button_color1; ?> 0,<?php echo $button_color2; ?> 100%);
66
+			color: <?php echo $text_color; ?>;
67 67
 		}
68 68
 		
69 69
 		.lasso--controls__right a:before, #lasso-toolbar--html__footer_desc {
70
-			color: <?php echo $text_color;?> !important;
70
+			color: <?php echo $text_color; ?> !important;
71 71
 		}
72 72
 		
73 73
 		ul.lasso-editor-controls li:hover, #lasso--exit:hover,#lasso--post-settings2:hover,#lasso--post-delete:hover,#lasso--publish:hover,#lasso--save:hover {
74
-			background-image: -webkit-linear-gradient(top,<?php echo $hover_color1;?> 0,<?php echo $hover_color2;?> 100%);
75
-			background-image: -o-linear-gradient(top,<?php echo $hover_color1;?> 0,<?php echo $hover_color2;?> 100%);
76
-			background-image: linear-gradient(to bottom,<?php echo $hover_color1;?> 0,<?php echo $hover_color2;?> 100%);
74
+			background-image: -webkit-linear-gradient(top,<?php echo $hover_color1; ?> 0,<?php echo $hover_color2; ?> 100%);
75
+			background-image: -o-linear-gradient(top,<?php echo $hover_color1; ?> 0,<?php echo $hover_color2; ?> 100%);
76
+			background-image: linear-gradient(to bottom,<?php echo $hover_color1; ?> 0,<?php echo $hover_color2; ?> 100%);
77 77
 		}
78 78
 		
79 79
 		.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,
80 80
 		#lasso-toolbar--link.link--drop-up #lasso-toolbar--link__wrap		{
81
-			background: <?php echo $dialog_color;?>;
82
-			color: <?php echo $text_color;?>;
81
+			background: <?php echo $dialog_color; ?>;
82
+			color: <?php echo $text_color; ?>;
83 83
 		}
84 84
 		.sweet-alert p,.lasso--modal__inner label,.lasso--toolbar__inner label {
85
-			color: <?php echo $text_color;?> !important;
85
+			color: <?php echo $text_color; ?> !important;
86 86
 		}
87 87
 		
88 88
 		<?php if (!$is_mobile) { ?>
@@ -112,48 +112,48 @@  discard block
 block discarded – undo
112 112
 		<?php
113 113
 		} 
114 114
 		?>
115
-		<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();?>" >
115
+		<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(); ?>" >
116 116
 
117
-			<ul class="lasso--controls__center lasso-editor-controls lasso-editor-controls--wrap <?php echo $post_access_class;?> "  <?php echo $mobile_style ?> >
117
+			<ul class="lasso--controls__center lasso-editor-controls lasso-editor-controls--wrap <?php echo $post_access_class; ?> "  <?php echo $mobile_style ?> >
118 118
 
119
-				<?php do_action( 'lasso_editor_controls_before' );
119
+				<?php do_action('lasso_editor_controls_before');
120 120
 
121
-				if ( $is_capable ) { ?>
121
+				if ($is_capable) { ?>
122 122
 
123
-					<li id="lasso--edit" title="<?php esc_attr_e( 'Edit Post', 'lasso' );?>"><a href="#" class="lasso--button__primary"></a></li>
123
+					<li id="lasso--edit" title="<?php esc_attr_e('Edit Post', 'lasso'); ?>"><a href="#" class="lasso--button__primary"></a></li>
124 124
 
125
-					<?php if ( 'off' == $post_settings_disabled || empty( $post_settings_disabled ) ) { ?>
126
-						<li id="lasso--post-settings" title="<?php esc_attr_e( 'Post Settings', 'lasso' );?>"><a href="#" class="lasso--button__primary"></a></li>
125
+					<?php if ('off' == $post_settings_disabled || empty($post_settings_disabled)) { ?>
126
+						<li id="lasso--post-settings" title="<?php esc_attr_e('Post Settings', 'lasso'); ?>"><a href="#" class="lasso--button__primary"></a></li>
127 127
 					<?php }
128 128
 
129 129
 				} ?>
130 130
 
131
-				<li id="lasso--post-all" title="<?php esc_attr_e( 'All Posts', 'lasso' );?>"><a href="#" class="lasso--button__primary"></a></li>
131
+				<li id="lasso--post-all" title="<?php esc_attr_e('All Posts', 'lasso'); ?>"><a href="#" class="lasso--button__primary"></a></li>
132 132
 
133
-				<?php if ( $is_capable && wp_revisions_enabled( $post ) ) { ?>
134
-					<li id="lasso--post-revisions" title="<?php esc_attr_e( 'Revisions', 'lasso' );?>"><a href="#" class="lasso--button__primary"></a></li>
133
+				<?php if ($is_capable && wp_revisions_enabled($post)) { ?>
134
+					<li id="lasso--post-revisions" title="<?php esc_attr_e('Revisions', 'lasso'); ?>"><a href="#" class="lasso--button__primary"></a></li>
135 135
 				<?php } ?>
136 136
 
137
-				<?php if ( ( 'off' == $post_new_disabled || empty( $post_new_disabled ) && lasso_user_can('edit_posts') ) ) { ?>
138
-					<li id="lasso--post-new" title="<?php esc_attr_e( 'Add Post', 'lasso' );?>"><a href="#" class="lasso--button__primary"></a></li>
137
+				<?php if (('off' == $post_new_disabled || empty($post_new_disabled) && lasso_user_can('edit_posts'))) { ?>
138
+					<li id="lasso--post-new" title="<?php esc_attr_e('Add Post', 'lasso'); ?>"><a href="#" class="lasso--button__primary"></a></li>
139 139
 				<?php } ?>
140 140
 
141
-				<?php do_action( 'lasso_editor_controls_after' );?>
141
+				<?php do_action('lasso_editor_controls_after'); ?>
142 142
 
143 143
 			</ul>
144 144
 
145
-			<?php if ( is_singular() && !$is_mobile ) { ?>
145
+			<?php if (is_singular() && !$is_mobile) { ?>
146 146
 
147
-				<div class="lasso--controls__right" data-posttype="<?php echo get_post_type( get_the_ID() );?>" data-status="<?php echo $status;?>">
147
+				<div class="lasso--controls__right" data-posttype="<?php echo get_post_type(get_the_ID()); ?>" data-status="<?php echo $status; ?>">
148 148
 				
149
-					<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>
150
-					<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>
149
+					<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>
150
+					<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>
151 151
 
152 152
 
153
-					<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>
153
+					<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>
154 154
 
155
-					<?php if ( ('draft' == $status ) || ('pending' == $status && $can_publish) ) { ?>
156
-						<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>
155
+					<?php if (('draft' == $status) || ('pending' == $status && $can_publish)) { ?>
156
+						<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>
157 157
 					<?php } ?>
158 158
 					
159 159
 
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
 		</div>
165 165
 		
166 166
 		
167
-		<?php do_action( 'lasso_editor_controls_after_outside' );?>
167
+		<?php do_action('lasso_editor_controls_after_outside'); ?>
168 168
 
169 169
 	<?php }
170 170
 }
@@ -182,9 +182,9 @@  discard block
 block discarded – undo
182 182
 
183 183
 
184 184
 	// let users add custom css classes
185
-	$custom_classes = apply_filters( 'lasso_sidebar_classes', '' );
185
+	$custom_classes = apply_filters('lasso_sidebar_classes', '');
186 186
 	?>
187
-	<div id="lasso--sidebar" class="<?php echo sanitize_html_class( $custom_classes );?>" >
187
+	<div id="lasso--sidebar" class="<?php echo sanitize_html_class($custom_classes); ?>" >
188 188
 		<div class="lasso--sidebar__inner">
189 189
 			<div id="lasso--component__settings"></div>
190 190
 		</div>
@@ -206,21 +206,21 @@  discard block
 block discarded – undo
206 206
 	$is_mobile = wp_is_mobile();
207 207
 
208 208
 	// check for lasso story engine and add a class doniting this
209
-	$ase_status = class_exists( 'Aesop_Core' ) || defined( 'LASSO_CUSTOM' ) ? 'ase-active' : 'ase-not-active';
209
+	$ase_status = class_exists('Aesop_Core') || defined('LASSO_CUSTOM') ? 'ase-active' : 'ase-not-active';
210 210
 
211 211
 	// let users add custom css classes
212
-	$custom_classes = apply_filters( 'lasso_toolbar_classes', '' );
212
+	$custom_classes = apply_filters('lasso_toolbar_classes', '');
213 213
 
214 214
 	// are toolbar headings enabled
215
-	$toolbar_headings      = lasso_editor_get_option( 'toolbar_headings', 'lasso_editor' );
216
-	$toolbar_headings_h4      = lasso_editor_get_option( 'toolbar_headings_h4', 'lasso_editor' );
217
-	$toolbar_list      = lasso_editor_get_option( 'toolbar_list', 'lasso_editor' );
215
+	$toolbar_headings = lasso_editor_get_option('toolbar_headings', 'lasso_editor');
216
+	$toolbar_headings_h4 = lasso_editor_get_option('toolbar_headings_h4', 'lasso_editor');
217
+	$toolbar_list = lasso_editor_get_option('toolbar_list', 'lasso_editor');
218 218
 
219
-	$toolbar_class  = $toolbar_headings ? 'toolbar-extended' : false;
219
+	$toolbar_class = $toolbar_headings ? 'toolbar-extended' : false;
220 220
 	
221 221
 	// mobile styles
222 222
     $mobile_class = $is_mobile ? 'lasso-mobile' : false;
223
-	$mobile_style =$is_mobile ? 'style="bottom:0px;"' : null;
223
+	$mobile_style = $is_mobile ? 'style="bottom:0px;"' : null;
224 224
 	
225 225
 	//show color
226 226
 	$show_color = lasso_editor_get_option('toolbar_show_color', 'lasso_editor');
@@ -228,125 +228,125 @@  discard block
 block discarded – undo
228 228
 	//show alignment
229 229
 	$show_align = lasso_editor_get_option('toolbar_show_alignment', 'lasso_editor');
230 230
 	
231
-	$status = get_post_status( get_the_ID() );
231
+	$status = get_post_status(get_the_ID());
232 232
 	
233
-	$shortcodify_disabled = lasso_editor_get_option( 'shortcodify_disabled', 'lasso_editor' );
233
+	$shortcodify_disabled = lasso_editor_get_option('shortcodify_disabled', 'lasso_editor');
234 234
 	
235 235
 	$sc_saving_class = 'on' == $shortcodify_disabled ? 'shortcodify-disabled' : 'shortcodify-enabled';
236 236
 
237 237
 
238 238
 	?>
239
-	<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 ?>>
240
-		<ul class="lasso--toolbar__inner lasso-editor-controls" <?php if ($is_mobile) {echo 'style="float:left;"';}?>>
241
-			<?php do_action( 'lasso_toolbar_components_before' );?>
242
-		    <li id="lasso-toolbar--bold" title="<?php esc_attr_e( 'Bold', 'lasso' );?>"></li>
243
-		    <li id="lasso-toolbar--underline" title="<?php esc_attr_e( 'Underline', 'lasso' );?>"></li>
244
-		    <li id="lasso-toolbar--italic" title="<?php esc_attr_e( 'Italicize', 'lasso' );?>"></li>
245
-		    <li id="lasso-toolbar--strike" title="<?php esc_attr_e( 'Strikethrough', 'lasso' );?>"></li>
246
-			<li id="lasso-toolbar--components" title="<?php esc_attr_e( 'Insert Component', 'lasso' );?>" style="color:#ffffa0;">
239
+	<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 ?>>
240
+		<ul class="lasso--toolbar__inner lasso-editor-controls" <?php if ($is_mobile) {echo 'style="float:left;"'; }?>>
241
+			<?php do_action('lasso_toolbar_components_before'); ?>
242
+		    <li id="lasso-toolbar--bold" title="<?php esc_attr_e('Bold', 'lasso'); ?>"></li>
243
+		    <li id="lasso-toolbar--underline" title="<?php esc_attr_e('Underline', 'lasso'); ?>"></li>
244
+		    <li id="lasso-toolbar--italic" title="<?php esc_attr_e('Italicize', 'lasso'); ?>"></li>
245
+		    <li id="lasso-toolbar--strike" title="<?php esc_attr_e('Strikethrough', 'lasso'); ?>"></li>
246
+			<li id="lasso-toolbar--components" title="<?php esc_attr_e('Insert Component', 'lasso'); ?>" style="color:#ffffa0;">
247 247
 			    <ul id="lasso-toolbar--components__list" style="display:none;color:white;">
248
-			    	<?php if ( 'ase-active' == $ase_status ): ?>
249
-						<li data-type="image" title="<?php esc_attr_e( 'Image', 'lasso' );?>" class="lasso-toolbar--component__image"></li>
250
-						<li data-type="character" title="<?php esc_attr_e( 'Character', 'lasso' );?>" class="lasso-toolbar--component__character"></li>
251
-						<li data-type="quote" title="<?php esc_attr_e( 'Quote', 'lasso' );?>"  class="lasso-toolbar--component__quote"></li>
252
-						<li data-type="content" title="<?php esc_attr_e( 'Content', 'lasso' );?>"  class="lasso-toolbar--component__content"></li>
253
-						<li data-type="chapter" title="<?php esc_attr_e( 'Chapter', 'lasso' );?>"  class="lasso-toolbar--component__chapter"></li>
254
-						<li data-type="parallax" title="<?php esc_attr_e( 'Parallax', 'lasso' );?>"  class="lasso-toolbar--component__parallax"></li>
255
-						<li data-type="audio" title="<?php esc_attr_e( 'Audio', 'lasso' );?>"  class="lasso-toolbar--component__audio"></li>
256
-						<li data-type="video" title="<?php esc_attr_e( 'Video', 'lasso' );?>"  class="lasso-toolbar--component__video"></li>
257
-						<li data-type="map" title="<?php esc_attr_e( 'Map', 'lasso' );?>"  class="lasso-toolbar--component__map"></li>
258
-						<li data-type="timeline_stop" title="<?php esc_attr_e( 'Timeline', 'lasso' );?>"  class="lasso-toolbar--component__timeline"></li>
259
-						<li data-type="document" title="<?php esc_attr_e( 'Document', 'lasso' );?>"  class="lasso-toolbar--component__document"></li>
260
-						<li data-type="collection" title="<?php esc_attr_e( 'Collection', 'lasso' );?>"  class="lasso-toolbar--component__collection"></li>
261
-						<li data-type="gallery" title="<?php esc_attr_e( 'Gallery', 'lasso' );?>"  class="lasso-toolbar--component__gallery"></li>
262
-						<?php if ( class_exists ('Aesop_GalleryPop') ) { ?>
263
-						     <li data-type="gallery" title="<?php esc_attr_e( 'Gallery Pop', 'lasso' );?>"  class="lasso-toolbar--component__gallerypop"></li>
248
+			    	<?php if ('ase-active' == $ase_status): ?>
249
+						<li data-type="image" title="<?php esc_attr_e('Image', 'lasso'); ?>" class="lasso-toolbar--component__image"></li>
250
+						<li data-type="character" title="<?php esc_attr_e('Character', 'lasso'); ?>" class="lasso-toolbar--component__character"></li>
251
+						<li data-type="quote" title="<?php esc_attr_e('Quote', 'lasso'); ?>"  class="lasso-toolbar--component__quote"></li>
252
+						<li data-type="content" title="<?php esc_attr_e('Content', 'lasso'); ?>"  class="lasso-toolbar--component__content"></li>
253
+						<li data-type="chapter" title="<?php esc_attr_e('Chapter', 'lasso'); ?>"  class="lasso-toolbar--component__chapter"></li>
254
+						<li data-type="parallax" title="<?php esc_attr_e('Parallax', 'lasso'); ?>"  class="lasso-toolbar--component__parallax"></li>
255
+						<li data-type="audio" title="<?php esc_attr_e('Audio', 'lasso'); ?>"  class="lasso-toolbar--component__audio"></li>
256
+						<li data-type="video" title="<?php esc_attr_e('Video', 'lasso'); ?>"  class="lasso-toolbar--component__video"></li>
257
+						<li data-type="map" title="<?php esc_attr_e('Map', 'lasso'); ?>"  class="lasso-toolbar--component__map"></li>
258
+						<li data-type="timeline_stop" title="<?php esc_attr_e('Timeline', 'lasso'); ?>"  class="lasso-toolbar--component__timeline"></li>
259
+						<li data-type="document" title="<?php esc_attr_e('Document', 'lasso'); ?>"  class="lasso-toolbar--component__document"></li>
260
+						<li data-type="collection" title="<?php esc_attr_e('Collection', 'lasso'); ?>"  class="lasso-toolbar--component__collection"></li>
261
+						<li data-type="gallery" title="<?php esc_attr_e('Gallery', 'lasso'); ?>"  class="lasso-toolbar--component__gallery"></li>
262
+						<?php if (class_exists('Aesop_GalleryPop')) { ?>
263
+						     <li data-type="gallery" title="<?php esc_attr_e('Gallery Pop', 'lasso'); ?>"  class="lasso-toolbar--component__gallerypop"></li>
264 264
 						<?php }?>
265
-						<?php if ( class_exists ('Aesop_Events') ) { ?>
266
-						     <li data-type="events" title="<?php esc_attr_e( 'Event', 'lasso' );?>"  class="lasso-toolbar--component__event"></li>
265
+						<?php if (class_exists('Aesop_Events')) { ?>
266
+						     <li data-type="events" title="<?php esc_attr_e('Event', 'lasso'); ?>"  class="lasso-toolbar--component__event"></li>
267 267
 						<?php }?>
268 268
 					<?php else: ?>
269
-						<li data-type="wpimg" title="<?php esc_attr_e( 'WordPress Image', 'lasso' );?>" class="image lasso-toolbar--component__image"></li>
270
-						<li data-type="wpquote" title="<?php esc_attr_e( 'WordPress Quote', 'lasso' );?>" class="quote lasso-toolbar--component__quote"></li>
271
-						<!--li data-type="wpvideo" title="<?php esc_attr_e( 'WordPress Video', 'lasso' );?>" class="video lasso-toolbar--component__video"></li-->
269
+						<li data-type="wpimg" title="<?php esc_attr_e('WordPress Image', 'lasso'); ?>" class="image lasso-toolbar--component__image"></li>
270
+						<li data-type="wpquote" title="<?php esc_attr_e('WordPress Quote', 'lasso'); ?>" class="quote lasso-toolbar--component__quote"></li>
271
+						<!--li data-type="wpvideo" title="<?php esc_attr_e('WordPress Video', 'lasso'); ?>" class="video lasso-toolbar--component__video"></li-->
272 272
 					<?php endif; ?>
273
-					<?php do_action( 'lasso_toolbar_components' );?>
273
+					<?php do_action('lasso_toolbar_components'); ?>
274 274
 			    </ul>
275 275
 			</li>
276
-		    <?php if ( $toolbar_headings ): ?>
277
-		    <li id="lasso-toolbar--h2" title="<?php esc_attr_e( 'H2 Heading', 'lasso' );?>"></li>
278
-		    <li id="lasso-toolbar--h3" title="<?php esc_attr_e( 'H3 Heading', 'lasso' );?>"></li>
276
+		    <?php if ($toolbar_headings): ?>
277
+		    <li id="lasso-toolbar--h2" title="<?php esc_attr_e('H2 Heading', 'lasso'); ?>"></li>
278
+		    <li id="lasso-toolbar--h3" title="<?php esc_attr_e('H3 Heading', 'lasso'); ?>"></li>
279 279
 			<?php endif; ?>
280 280
 			
281 281
 			
282 282
 			
283
-			<?php if ( $toolbar_headings_h4 ): ?>
284
-		    <li id="lasso-toolbar--h4" title="<?php esc_attr_e( 'H4 Heading', 'lasso' );?>"></li>
285
-		    <li id="lasso-toolbar--h5" title="<?php esc_attr_e( 'H5 Heading', 'lasso' );?>"></li>
286
-			<li id="lasso-toolbar--h6" title="<?php esc_attr_e( 'H6 Heading', 'lasso' );?>"></li>
283
+			<?php if ($toolbar_headings_h4): ?>
284
+		    <li id="lasso-toolbar--h4" title="<?php esc_attr_e('H4 Heading', 'lasso'); ?>"></li>
285
+		    <li id="lasso-toolbar--h5" title="<?php esc_attr_e('H5 Heading', 'lasso'); ?>"></li>
286
+			<li id="lasso-toolbar--h6" title="<?php esc_attr_e('H6 Heading', 'lasso'); ?>"></li>
287 287
 			<?php endif; ?>
288 288
 			
289
-			<?php if ( $show_color ): ?>
290
-		    <li id="lasso-toolbar--color-set" title="<?php esc_attr_e( 'Set Color for Selected Text', 'lasso' );?>"></li>
291
-		    <li id="lasso-toolbar--color-pick" title="<?php esc_attr_e( 'Choose Color', 'lasso' );?>"></li>
289
+			<?php if ($show_color): ?>
290
+		    <li id="lasso-toolbar--color-set" title="<?php esc_attr_e('Set Color for Selected Text', 'lasso'); ?>"></li>
291
+		    <li id="lasso-toolbar--color-pick" title="<?php esc_attr_e('Choose Color', 'lasso'); ?>"></li>
292 292
 			<?php endif; ?>
293 293
 			
294
-			<?php if ( $toolbar_list ): ?>
295
-		    <li id="lasso-toolbar--ol" title="<?php esc_attr_e( 'Ordered List', 'lasso' );?>"></li>
296
-		    <li id="lasso-toolbar--ul" title="<?php esc_attr_e( 'Unordered', 'lasso' );?>"></li>
294
+			<?php if ($toolbar_list): ?>
295
+		    <li id="lasso-toolbar--ol" title="<?php esc_attr_e('Ordered List', 'lasso'); ?>"></li>
296
+		    <li id="lasso-toolbar--ul" title="<?php esc_attr_e('Unordered', 'lasso'); ?>"></li>
297 297
 			<?php endif; ?>
298 298
 					
299 299
 		    
300
-			<li id="lasso-toolbar--link" title="<?php esc_attr_e( 'Anchor Link', 'lasso' );?>">
300
+			<li id="lasso-toolbar--link" title="<?php esc_attr_e('Anchor Link', 'lasso'); ?>">
301 301
 		    	<div id="lasso-toolbar--link__wrap" <?php echo $mobile_style ?> >
302
-		    		<div id="lasso-toolbar--link__inner" contenteditable="true" placeholder="<?php esc_attr_e( 'http://url.com', 'lasso' );?>"></div>
303
-		    		<a href="#" title="<?php esc_attr_e( 'Create Link', 'lasso' );?>" class="lasso-toolbar--link__control" id="lasso-toolbar--link__create" ></a>
302
+		    		<div id="lasso-toolbar--link__inner" contenteditable="true" placeholder="<?php esc_attr_e('http://url.com', 'lasso'); ?>"></div>
303
+		    		<a href="#" title="<?php esc_attr_e('Create Link', 'lasso'); ?>" class="lasso-toolbar--link__control" id="lasso-toolbar--link__create" ></a>
304 304
 					<input class="styled-checkbox" type="checkbox" id="aesop-toolbar--link_newtab" checked/>
305
-                    <label for="aesop-toolbar--link_newtab"><?php esc_attr_e( 'Open in a New Tab', 'lasso' );?></label>
305
+                    <label for="aesop-toolbar--link_newtab"><?php esc_attr_e('Open in a New Tab', 'lasso'); ?></label>
306 306
 		    	</div>
307 307
 		    </li>
308
-		    <?php do_action( 'lasso_toolbar_components_after' );?>
309
-		    <li id="lasso-toolbar--html" title="<?php esc_attr_e( 'Insert HTML or Code', 'lasso' );?>">
308
+		    <?php do_action('lasso_toolbar_components_after'); ?>
309
+		    <li id="lasso-toolbar--html" title="<?php esc_attr_e('Insert HTML or Code', 'lasso'); ?>">
310 310
 		    	<div id="lasso-toolbar--html__wrap" <?php echo $mobile_style ?>>
311
-		    		<div id="lasso-toolbar--html__inner" contenteditable="true" placeholder="<?php esc_attr_e( 'Enter HTML to insert', 'lasso' );?>"></div>
311
+		    		<div id="lasso-toolbar--html__inner" contenteditable="true" placeholder="<?php esc_attr_e('Enter HTML to insert', 'lasso'); ?>"></div>
312 312
 		    		<div id="lasso-toolbar--html__footer">
313 313
 					<div id="lasso-toolbar--html__footer_desc" >
314
-					<?php esc_attr_e( 'Enter HTML to insert', 'lasso' );?><br>
315
-					<?php esc_attr_e( 'You can also use Shortcodes', 'lasso' );?><br>
316
-					<?php esc_attr_e( 'You can also enter a URL to embed, such as Youtube, Vimeo and Twitter URLs.', 'lasso' );?>
314
+					<?php esc_attr_e('Enter HTML to insert', 'lasso'); ?><br>
315
+					<?php esc_attr_e('You can also use Shortcodes', 'lasso'); ?><br>
316
+					<?php esc_attr_e('You can also enter a URL to embed, such as Youtube, Vimeo and Twitter URLs.', 'lasso'); ?>
317 317
 					</div>
318 318
 		    			<ul class="lasso-toolbar--html-snips">
319 319
 						
320
-		    				<?php if ( !$toolbar_headings ): ?>
321
-		    				<li id="lasso-html--h2" title="<?php esc_attr_e( 'H2 Heading', 'lasso' );?>">
322
-		    				<li id="lasso-html--h3" title="<?php esc_attr_e( 'H3 Heading', 'lasso' );?>">
320
+		    				<?php if (!$toolbar_headings): ?>
321
+		    				<li id="lasso-html--h2" title="<?php esc_attr_e('H2 Heading', 'lasso'); ?>">
322
+		    				<li id="lasso-html--h3" title="<?php esc_attr_e('H3 Heading', 'lasso'); ?>">
323 323
 		    				<?php endif; ?>
324
-		    				<li id="lasso-html--ul" title="<?php esc_attr_e( 'Unordered List', 'lasso' );?>">
325
-		    				<li id="lasso-html--ol" title="<?php esc_attr_e( 'Ordered List', 'lasso' );?>">
326
-							<li id="lasso-html--table" title="<?php esc_attr_e( 'Table', 'lasso' );?>">
324
+		    				<li id="lasso-html--ul" title="<?php esc_attr_e('Unordered List', 'lasso'); ?>">
325
+		    				<li id="lasso-html--ol" title="<?php esc_attr_e('Ordered List', 'lasso'); ?>">
326
+							<li id="lasso-html--table" title="<?php esc_attr_e('Table', 'lasso'); ?>">
327 327
 		    			</ul>
328
-		    			<a class="lasso-toolbar--html__control lasso-toolbar--html__cancel" href="#"><?php _e( 'Cancel', 'lasso' );?></a>
329
-		    			<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>
328
+		    			<a class="lasso-toolbar--html__control lasso-toolbar--html__cancel" href="#"><?php _e('Cancel', 'lasso'); ?></a>
329
+		    			<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>
330 330
 		    		</div>
331 331
 		    	</div>
332 332
 		    </li>
333
-			<?php if ( $show_align ): ?>
334
-		    <li id="lasso-toolbar--left-align" title="<?php esc_attr_e( 'Text Left Align', 'lasso' );?>"></li>
335
-		    <li id="lasso-toolbar--center-align" title="<?php esc_attr_e( 'Text Center Align', 'lasso' );?>"></li>
336
-			<li id="lasso-toolbar--right-align" title="<?php esc_attr_e( 'Text Right Align', 'lasso' );?>"></li>
333
+			<?php if ($show_align): ?>
334
+		    <li id="lasso-toolbar--left-align" title="<?php esc_attr_e('Text Left Align', 'lasso'); ?>"></li>
335
+		    <li id="lasso-toolbar--center-align" title="<?php esc_attr_e('Text Center Align', 'lasso'); ?>"></li>
336
+			<li id="lasso-toolbar--right-align" title="<?php esc_attr_e('Text Right Align', 'lasso'); ?>"></li>
337 337
 			<?php endif; ?>
338 338
 		</ul>
339
-		<?php if ( is_singular() && $is_mobile ) { ?>
339
+		<?php if (is_singular() && $is_mobile) { ?>
340 340
 
341
-				<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;">
341
+				<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;">
342 342
 
343
-					<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>
344
-					<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>
343
+					<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>
344
+					<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>
345 345
 
346
-					<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>
346
+					<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>
347 347
 
348
-					<?php if ( 'draft' == $status && ( lasso_user_can('publish_posts') || lasso_user_can('publish_pages') )  ) { ?>
349
-						<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>
348
+					<?php if ('draft' == $status && (lasso_user_can('publish_posts') || lasso_user_can('publish_pages'))) { ?>
349
+						<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>
350 350
 					<?php } ?>
351 351
 
352 352
 				</div>
@@ -364,20 +364,20 @@  discard block
 block discarded – undo
364 364
  */
365 365
 function lasso_editor_settings_toolbar() {
366 366
 
367
-	$delete_nonce = wp_create_nonce( 'lasso-delete-nonce' );
367
+	$delete_nonce = wp_create_nonce('lasso-delete-nonce');
368 368
 
369 369
 	ob_start();
370 370
 
371 371
 
372 372
 	// let users add custom css classes
373
-	$custom_classes = apply_filters( 'lasso_component_classes', '' );
373
+	$custom_classes = apply_filters('lasso_component_classes', '');
374 374
 
375 375
 	?>
376
-	<ul class="lasso-component--controls <?php echo sanitize_html_class( $custom_classes );?>" contenteditable="false">
377
-		<li class="lasso-drag" title="<?php esc_attr_e( 'Move', 'lasso' );?>"></li>
378
-		<li id="lasso-component--settings__trigger" class="lasso-settings" title="<?php esc_attr_e( 'Settings', 'lasso' );?>"></li>
379
-		<li class="lasso-clone" title="<?php esc_attr_e( 'Clone', 'lasso' );?>"></li>
380
-		<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>
376
+	<ul class="lasso-component--controls <?php echo sanitize_html_class($custom_classes); ?>" contenteditable="false">
377
+		<li class="lasso-drag" title="<?php esc_attr_e('Move', 'lasso'); ?>"></li>
378
+		<li id="lasso-component--settings__trigger" class="lasso-settings" title="<?php esc_attr_e('Settings', 'lasso'); ?>"></li>
379
+		<li class="lasso-clone" title="<?php esc_attr_e('Clone', 'lasso'); ?>"></li>
380
+		<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>
381 381
 	</ul>
382 382
 
383 383
 	<?php return ob_get_clean();
@@ -395,13 +395,13 @@  discard block
 block discarded – undo
395 395
 
396 396
 
397 397
 	// has post thumbnail
398
-	$has_thumbnail = has_post_thumbnail( get_the_ID() ) ? 'class="lasso--featImg--has-thumb"' : false;
398
+	$has_thumbnail = has_post_thumbnail(get_the_ID()) ? 'class="lasso--featImg--has-thumb"' : false;
399 399
 
400 400
 	?>
401
-	<ul id="lasso--featImgControls" <?php echo $has_thumbnail;?>>
402
-		<li id="lasso--featImgUpload"><a title="<?php esc_attr_e( 'Replace Image', 'lasso' );?>" href="#"><i class="lasso-icon-image"></i></a></li>
403
-		<li id="lasso--featImgDelete"><a title="<?php esc_attr_e( 'Delete Image', 'lasso' );?>" href="#"><i class="lasso-icon-bin2"></i></a></li>
404
-		<li id="lasso--featImgSave"><a href="#"><?php esc_attr_e( 'save', 'lasso' );?></a></li>
401
+	<ul id="lasso--featImgControls" <?php echo $has_thumbnail; ?>>
402
+		<li id="lasso--featImgUpload"><a title="<?php esc_attr_e('Replace Image', 'lasso'); ?>" href="#"><i class="lasso-icon-image"></i></a></li>
403
+		<li id="lasso--featImgDelete"><a title="<?php esc_attr_e('Delete Image', 'lasso'); ?>" href="#"><i class="lasso-icon-bin2"></i></a></li>
404
+		<li id="lasso--featImgSave"><a href="#"><?php esc_attr_e('save', 'lasso'); ?></a></li>
405 405
 	</ul>
406 406
 
407 407
 	<?php return ob_get_clean();
@@ -425,55 +425,55 @@  discard block
 block discarded – undo
425 425
 
426 426
 	$postid = get_the_ID();
427 427
 
428
-	$status = get_post_status( $postid );
429
-	$nonce = wp_create_nonce( 'lasso-update-post-settings' );
428
+	$status = get_post_status($postid);
429
+	$nonce = wp_create_nonce('lasso-update-post-settings');
430 430
 
431 431
 	// let users add custom css classes
432
-	$custom_classes = apply_filters( 'lasso_modal_settings_classes', '' );
432
+	$custom_classes = apply_filters('lasso_modal_settings_classes', '');
433 433
 
434 434
 	// objects categories
435
-	$categories 		= lasso_get_post_objects( $postid, 'category' );
436
-	$tags 				= lasso_get_post_objects( $postid, 'tag' );
435
+	$categories = lasso_get_post_objects($postid, 'category');
436
+	$tags = lasso_get_post_objects($postid, 'tag');
437 437
 
438 438
 	// modal tabs
439
-	$tabs  				= lasso_modal_addons('tab');
440
-	$content 			= lasso_modal_addons('content');
439
+	$tabs = lasso_modal_addons('tab');
440
+	$content = lasso_modal_addons('content');
441 441
 	
442 442
 	//editor options
443 443
 	$allow_change_date = lasso_editor_get_option('allow_change_date', 'lasso_editor');
444 444
 	$no_url_setting = lasso_editor_get_option('no_url_setting', 'lasso_editor');
445 445
 
446 446
 	// are we singular
447
-	$is_singular 		= is_singular();
447
+	$is_singular = is_singular();
448 448
 	$is_singular_class 	= $is_singular ? 'lasso--postsettings__2col' : 'lasso--postsettings__1col';
449 449
 	$has_thumb_class    = has_post_thumbnail() ? 'has-thumbnail' : 'no-thumbnail';
450 450
 	$theme_supports     = current_theme_supports('post-thumbnails');
451
-	$default_image 		= LASSO_URL.'/admin/assets/img/empty-img.png';
451
+	$default_image = LASSO_URL.'/admin/assets/img/empty-img.png';
452 452
 	
453 453
 	// do we support pending status
454 454
 	$no_pending_status = lasso_editor_get_option('no_pending_status', 'lasso_editor');
455 455
 
456 456
 ?>
457
-	<div id="lasso--post-settings__modal" class="lasso--modal lassoShowAnimate <?php echo sanitize_html_class( $custom_classes );?>">
457
+	<div id="lasso--post-settings__modal" class="lasso--modal lassoShowAnimate <?php echo sanitize_html_class($custom_classes); ?>">
458 458
 		<div class="lasso--modal__inner">
459 459
 
460
-			<?php if( $tabs ) { echo $tabs; } ?>
460
+			<?php if ($tabs) { echo $tabs; } ?>
461 461
 
462 462
 			<div class="lasso--modal__content modal__content--core visible" data-addon-content="core">
463
-				<form id="lasso--postsettings__form" enctype="multipart/form-data" class="lasso--post-form <?php echo $is_singular_class.' '.$has_thumb_class;?>" >
463
+				<form id="lasso--postsettings__form" enctype="multipart/form-data" class="lasso--post-form <?php echo $is_singular_class.' '.$has_thumb_class; ?>" >
464 464
 
465
-					<?php if ( $is_singular && $theme_supports ) : ?>
465
+					<?php if ($is_singular && $theme_supports) : ?>
466 466
 					<div class="lasso--postsettings__left">
467
-						<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>
468
-						<div class="lasso--post-thumb" data-default-thumb="<?php echo esc_url( $default_image );?>">
467
+						<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>
468
+						<div class="lasso--post-thumb" data-default-thumb="<?php echo esc_url($default_image); ?>">
469 469
 
470 470
 							<div id="lasso--post-thumb__controls" class="lasso--post-thumb__controls">
471
-								<i id="lasso--post-thumb__add" title="<?php _e('Change Featured Image','lasso');?>" class="dashicons dashicons-edit"></i>
472
-								<i id="lasso--post-thumb__delete" title="<?php _e('Delete Featured Image','lasso');?>" class="dashicons dashicons-no-alt"></i>
471
+								<i id="lasso--post-thumb__add" title="<?php _e('Change Featured Image', 'lasso'); ?>" class="dashicons dashicons-edit"></i>
472
+								<i id="lasso--post-thumb__delete" title="<?php _e('Delete Featured Image', 'lasso'); ?>" class="dashicons dashicons-no-alt"></i>
473 473
 								<i id="lasso--save-status" class="lasso-icon lasso-icon-spinner6 not-visible"></i>
474 474
 							</div>
475 475
 
476
-							<?php echo has_post_thumbnail() ? get_the_post_thumbnail( $post->ID, 'medium' ) : '<img src="'.$default_image.'">'; ?>
476
+							<?php echo has_post_thumbnail() ? get_the_post_thumbnail($post->ID, 'medium') : '<img src="'.$default_image.'">'; ?>
477 477
 
478 478
 						</div>
479 479
 						<div id="lasso--featImgSave"><a href="#" class="not-visible">Save</a></div>
@@ -483,15 +483,15 @@  discard block
 block discarded – undo
483 483
 
484 484
 					<div class="lasso--postsettings__right">
485 485
 
486
-						<?php if( lasso_user_can('publish_posts') || lasso_user_can('publish_pages') ): ?>
486
+						<?php if (lasso_user_can('publish_posts') || lasso_user_can('publish_pages')): ?>
487 487
 						<div class="lasso--postsettings__option story-status-option">
488
-							<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>
489
-							<ul class="story-status story-status-<?php echo sanitize_html_class( $status );?>">
490
-								<li id="lasso--status-draft"><?php _e( 'Draft', 'lasso' );?></li>
491
-								<?php if( !$no_pending_status ): ?>								
492
-								<li id="lasso--status-pending"><?php _e( 'Pending', 'lasso' );?></li>
488
+							<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>
489
+							<ul class="story-status story-status-<?php echo sanitize_html_class($status); ?>">
490
+								<li id="lasso--status-draft"><?php _e('Draft', 'lasso'); ?></li>
491
+								<?php if (!$no_pending_status): ?>								
492
+								<li id="lasso--status-pending"><?php _e('Pending', 'lasso'); ?></li>
493 493
 								<?php endif; ?>
494
-								<li id="lasso--status-publish"><?php _e( 'Publish', 'lasso' );?></li>
494
+								<li id="lasso--status-publish"><?php _e('Publish', 'lasso'); ?></li>
495 495
 							</ul>
496 496
 							<div class="lasso--slider_wrap">
497 497
 								<div id="lasso--slider"></div>
@@ -499,10 +499,10 @@  discard block
 block discarded – undo
499 499
 						</div>
500 500
 						<?php endif; ?>
501 501
 
502
-						<?php if ( 'publish' == $status  && !$no_url_setting): ?>
502
+						<?php if ('publish' == $status && !$no_url_setting): ?>
503 503
 						<div class="lasso--postsettings__option story-slug-option">
504
-							<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>
505
-							<input class="lasso--modal__trigger-footer" type="text" name="story_slug" value="<?php echo isset( $post ) ? esc_attr( $post->post_name ) : false;?>">
504
+							<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>
505
+							<input class="lasso--modal__trigger-footer" type="text" name="story_slug" value="<?php echo isset($post) ? esc_attr($post->post_name) : false; ?>">
506 506
 						</div>
507 507
 						<?php endif; ?>
508 508
 
@@ -511,21 +511,21 @@  discard block
 block discarded – undo
511 511
 					<div class="lasso--postsettings__middle">
512 512
 
513 513
 						<div class="lasso--postsettings__option story-categories-option">
514
-							<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>
515
-							<input id="lasso--cat-select" class="lasso--modal__trigger-footer" type="hidden" name="story_cats" value="<?php echo $categories;?>">
514
+							<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>
515
+							<input id="lasso--cat-select" class="lasso--modal__trigger-footer" type="hidden" name="story_cats" value="<?php echo $categories; ?>">
516 516
 						</div>
517 517
 
518 518
 						<div class="lasso--postsettings__option story-tags-option">
519
-							<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>
520
-							<input id="lasso--tag-select" class="lasso--modal__trigger-footer" type="hidden" name="story_tags" value="<?php echo $tags;?>">
519
+							<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>
520
+							<input id="lasso--tag-select" class="lasso--modal__trigger-footer" type="hidden" name="story_tags" value="<?php echo $tags; ?>">
521 521
 						</div>
522 522
 						<?php 
523 523
 						if ($allow_change_date) { 
524
-						    $dateformat = get_option( 'date_format' ); 
524
+						    $dateformat = get_option('date_format'); 
525 525
 						?>
526
-						    <label><?php _e( 'Post Date', 'lasso' ); ?></label>
527
-							<input type="text" class="editus_custom_date" name="post_date" value="<?php echo get_the_time($dateformat, $postid);?>"/>
528
-							<a href="#" id="lasso--postsettings-setnow"><?php _e( 'Set to Now', 'lasso' ); ?></a>
526
+						    <label><?php _e('Post Date', 'lasso'); ?></label>
527
+							<input type="text" class="editus_custom_date" name="post_date" value="<?php echo get_the_time($dateformat, $postid); ?>"/>
528
+							<a href="#" id="lasso--postsettings-setnow"><?php _e('Set to Now', 'lasso'); ?></a>
529 529
 						<?php
530 530
 						}?>
531 531
 
@@ -547,23 +547,23 @@  discard block
 block discarded – undo
547 547
 					?>
548 548
 					<!--/div-->
549 549
 
550
-					<?php do_action( 'lasso_modal_post_form' ); // action ?>
550
+					<?php do_action('lasso_modal_post_form'); // action ?>
551 551
 
552 552
 					<div class="lasso--postsettings__footer" >
553
-						<a href="#" class="lasso--postsettings-cancel"><?php _e( 'Cancel', 'lasso' );?></a>
553
+						<a href="#" class="lasso--postsettings-cancel"><?php _e('Cancel', 'lasso'); ?></a>
554 554
 						<input type="hidden" name="status" value="">
555 555
 						<input type="hidden" name="categories" value="">
556
-						<input type="hidden" name="postid" value="<?php echo get_the_ID();?>">
556
+						<input type="hidden" name="postid" value="<?php echo get_the_ID(); ?>">
557 557
 						<input type="hidden" name="action" value="process_update-object_post">
558
-						<input type="hidden" name="nonce" value="<?php echo $nonce;?>">
559
-						<?php do_action( 'lasso_modal_post_form_footer' ); // action ?>
560
-						<input type="submit" id="lasso--postsettings-submit" value="<?php esc_attr_e( 'Save', 'lasso' );?>">
558
+						<input type="hidden" name="nonce" value="<?php echo $nonce; ?>">
559
+						<?php do_action('lasso_modal_post_form_footer'); // action ?>
560
+						<input type="submit" id="lasso--postsettings-submit" value="<?php esc_attr_e('Save', 'lasso'); ?>">
561 561
 					</div>
562 562
 
563 563
 				</form>
564 564
 			</div>
565 565
 
566
-			<?php if( $tabs ) { echo $content; } ?>
566
+			<?php if ($tabs) { echo $content; } ?>
567 567
 
568 568
 		</div>
569 569
 
@@ -585,41 +585,41 @@  discard block
 block discarded – undo
585 585
 	ob_start();
586 586
 
587 587
 
588
-	$status = get_post_status( get_the_ID() );
588
+	$status = get_post_status(get_the_ID());
589 589
 
590
-	$nonce = wp_create_nonce( 'lasso-editor-new-post' );
590
+	$nonce = wp_create_nonce('lasso-editor-new-post');
591 591
 
592 592
 	// let users add custom css classes
593
-	$custom_classes = apply_filters( 'lasso_modal_post_classes', '' );
593
+	$custom_classes = apply_filters('lasso_modal_post_classes', '');
594 594
 
595 595
 	// return the post type
596
-	$type = get_post_type( get_the_ID() );
596
+	$type = get_post_type(get_the_ID());
597 597
 
598 598
 	$mobile_style = "";
599 599
 	if (wp_is_mobile()) {
600 600
 		$mobile_style = 'style="top:140px !important;"';
601 601
 	}
602 602
 	?>
603
-	<div id="lasso--post-new__modal" class="lasso--modal lasso--modal__med lassoShowAnimate <?php echo sanitize_html_class( $custom_classes );?>" <?php echo $mobile_style;?>">
603
+	<div id="lasso--post-new__modal" class="lasso--modal lasso--modal__med lassoShowAnimate <?php echo sanitize_html_class($custom_classes); ?>" <?php echo $mobile_style; ?>">
604 604
 		<div class="lasso--modal__inner lasso--hasnewform">
605 605
 
606 606
 			<form id="lasso--postnew__form" enctype="multipart/form-data" class="lasso--post-form">
607 607
 
608 608
 				<div class="lasso--postsettings__option story-slug-option lasso--last-option">
609
-					<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>
610
-					<input class="lasso--modal__trigger-footer" type="text" required name="story_title" value="" placeholder="<?php esc_attr_e( 'Type Your Title Here', 'lasso' );?>">
609
+					<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>
610
+					<input class="lasso--modal__trigger-footer" type="text" required name="story_title" value="" placeholder="<?php esc_attr_e('Type Your Title Here', 'lasso'); ?>">
611 611
 						<div class="lasso--select-wrap" style="width:90px">
612 612
 						<select id="lasso--select-type" name="story_type">
613 613
 
614 614
 							<?php
615 615
 								$types = lasso_post_types_names();
616
-								if ( !empty( $types ) ) {
617
-									foreach( $types as $name => $label ) {										
618
-										$type = preg_replace( '/s\b/','', $name );
616
+								if (!empty($types)) {
617
+									foreach ($types as $name => $label) {										
618
+										$type = preg_replace('/s\b/', '', $name);
619 619
 										if ($type == 'page' && !current_user_can('edit_pages')) {
620 620
 											continue;
621 621
 										}
622
-										printf( '<option value="%s">%s</option>', lcfirst( esc_attr( $type ) ) , ucfirst( esc_attr( $label ) ) );
622
+										printf('<option value="%s">%s</option>', lcfirst(esc_attr($type)), ucfirst(esc_attr($label)));
623 623
 									}
624 624
 
625 625
 								}
@@ -630,19 +630,19 @@  discard block
 block discarded – undo
630 630
 				</div>
631 631
 
632 632
 				<div class="lasso--postsettings__footer">
633
-					<a href="#" class="lasso--postsettings-cancel"><?php _e( 'Cancel', 'lasso' );?></a>
633
+					<a href="#" class="lasso--postsettings-cancel"><?php _e('Cancel', 'lasso'); ?></a>
634 634
 					<input type="hidden" name="action" value="process_new-object_post">
635 635
 					<?php
636
-						if ( !empty( $types ) ) {
636
+						if (!empty($types)) {
637 637
 							// get the first element
638 638
 							$keys = array_keys($types);
639
-						    $type =$keys[0];						
640
-							$type = preg_replace( '/s\b/','', $type );
641
-							printf( '<input type="hidden" name="object" value="%s">', lcfirst( esc_attr( $type ) ) );		
639
+						    $type = $keys[0];						
640
+							$type = preg_replace('/s\b/', '', $type);
641
+							printf('<input type="hidden" name="object" value="%s">', lcfirst(esc_attr($type)));		
642 642
 						}
643 643
 					?>
644
-					<input type="hidden" name="nonce" value="<?php echo $nonce;?>">
645
-					<input type="submit" value="<?php esc_attr_e( 'Create', 'lasso' );?>">
644
+					<input type="hidden" name="nonce" value="<?php echo $nonce; ?>">
645
+					<input type="submit" value="<?php esc_attr_e('Create', 'lasso'); ?>">
646 646
 				</div>
647 647
 
648 648
 			</form>
@@ -670,18 +670,18 @@  discard block
 block discarded – undo
670 670
 	ob_start();
671 671
 
672 672
 	// post status
673
-	$status = get_post_status( get_the_ID() );
673
+	$status = get_post_status(get_the_ID());
674 674
 
675 675
 	// let users add custom css classes
676
-	$custom_classes = apply_filters( 'lasso_modal_all_post_classes', '' );
676
+	$custom_classes = apply_filters('lasso_modal_all_post_classes', '');
677 677
 
678 678
 	?>
679
-	<div id="lasso--all-posts__modal" class="lasso--modal lasso--modal__full lassoShowAnimate <?php echo sanitize_html_class( $custom_classes );?>" style="max-height:100%">
679
+	<div id="lasso--all-posts__modal" class="lasso--modal lasso--modal__full lassoShowAnimate <?php echo sanitize_html_class($custom_classes); ?>" style="max-height:100%">
680 680
 		<div class="lasso--modal__inner">
681 681
 
682 682
 			<div class="lasso--post-filtering not-visible">
683 683
 				<div class="lasso--search__results">
684
-					<span id="lasso--results-found"></span><?php _e('results found','lasso');?>
684
+					<span id="lasso--results-found"></span><?php _e('results found', 'lasso'); ?>
685 685
 				</div>
686 686
 				<div class="lasso--search">
687 687
 					<i id="lasso--search__toggle" class="dashicons dashicons-search"></i>
@@ -695,18 +695,18 @@  discard block
 block discarded – undo
695 695
 				$post_types = lasso_post_types_names();
696 696
 				$rest_bases = lasso_post_types_rest_base();
697 697
 
698
-				if ( ! empty( $post_types ) ) {
698
+				if (!empty($post_types)) {
699 699
 					$first = 'active';
700
-					foreach( $post_types as $name => $label ) {
700
+					foreach ($post_types as $name => $label) {
701 701
 						if (array_key_exists($name, $rest_bases)) {
702
-							printf( '<li class="%1s lasso--show-objects" data-post-type="%2s">%3s</li>', esc_attr( $first), esc_attr( $rest_bases[$name] ), esc_attr( $label ) );
702
+							printf('<li class="%1s lasso--show-objects" data-post-type="%2s">%3s</li>', esc_attr($first), esc_attr($rest_bases[$name]), esc_attr($label));
703 703
 						}
704 704
 						$first = '';
705 705
 					}
706 706
 
707 707
 				}
708 708
 
709
-				do_action('lasso_modal_post_objects');?>
709
+				do_action('lasso_modal_post_objects'); ?>
710 710
 
711 711
 			</ul>
712 712
 			<div id="lasso--loading" class="lasso--loading"><div class="lasso--loader"></div></div>
@@ -726,14 +726,14 @@  discard block
 block discarded – undo
726 726
 
727 727
 
728 728
 	// let users add custom css classes
729
-	$custom_classes = apply_filters( 'lasso_wpimg_classes', '' );
729
+	$custom_classes = apply_filters('lasso_wpimg_classes', '');
730 730
 
731 731
 	?>
732
-	<ul class="lasso-component--controls <?php echo sanitize_html_class( $custom_classes );?>" contenteditable="false">
733
-		<li class="lasso-drag" title="<?php esc_attr_e( 'Move', 'lasso' );?>"></li>
734
-		<li id="lasso--wpimg-edit" class="lasso-settings" title="<?php esc_attr_e( 'Settings', 'lasso' );?>"></li>
735
-		<li class="lasso-clone" title="<?php esc_attr_e( 'Clone', 'lasso' );?>"></li>
736
-		<li class="lasso-delete" title="<?php esc_attr_e( 'Delete', 'lasso' );?>"></li>
732
+	<ul class="lasso-component--controls <?php echo sanitize_html_class($custom_classes); ?>" contenteditable="false">
733
+		<li class="lasso-drag" title="<?php esc_attr_e('Move', 'lasso'); ?>"></li>
734
+		<li id="lasso--wpimg-edit" class="lasso-settings" title="<?php esc_attr_e('Settings', 'lasso'); ?>"></li>
735
+		<li class="lasso-clone" title="<?php esc_attr_e('Clone', 'lasso'); ?>"></li>
736
+		<li class="lasso-delete" title="<?php esc_attr_e('Delete', 'lasso'); ?>"></li>
737 737
 	</ul>
738 738
 
739 739
 	<?php return ob_get_clean();
@@ -745,14 +745,14 @@  discard block
 block discarded – undo
745 745
 
746 746
 
747 747
 	// let users add custom css classes
748
-	$custom_classes = apply_filters( 'lasso_wpimg_classes', '' );
748
+	$custom_classes = apply_filters('lasso_wpimg_classes', '');
749 749
 
750 750
 	?>
751
-	<ul class="lasso-component--controls <?php echo sanitize_html_class( $custom_classes );?>" contenteditable="false">
752
-		<li class="lasso-drag" title="<?php esc_attr_e( 'Move', 'lasso' );?>"></li>
753
-		<li id="lasso--wpvideo-edit" class="lasso-settings" title="<?php esc_attr_e( 'Settings', 'lasso' );?>"></li>
754
-		<li class="lasso-clone" title="<?php esc_attr_e( 'Clone', 'lasso' );?>"></li>
755
-		<li class="lasso-delete" title="<?php esc_attr_e( 'Delete', 'lasso' );?>"></li>
751
+	<ul class="lasso-component--controls <?php echo sanitize_html_class($custom_classes); ?>" contenteditable="false">
752
+		<li class="lasso-drag" title="<?php esc_attr_e('Move', 'lasso'); ?>"></li>
753
+		<li id="lasso--wpvideo-edit" class="lasso-settings" title="<?php esc_attr_e('Settings', 'lasso'); ?>"></li>
754
+		<li class="lasso-clone" title="<?php esc_attr_e('Clone', 'lasso'); ?>"></li>
755
+		<li class="lasso-delete" title="<?php esc_attr_e('Delete', 'lasso'); ?>"></li>
756 756
 	</ul>
757 757
 
758 758
 	<?php return ob_get_clean();
@@ -765,16 +765,16 @@  discard block
 block discarded – undo
765 765
  */
766 766
 function lasso_map_form_footer() {
767 767
 
768
-	$nonce = wp_create_nonce( 'lasso-process-map' );
768
+	$nonce = wp_create_nonce('lasso-process-map');
769 769
 
770 770
 	ob_start();
771 771
 
772 772
 	?>
773 773
 	<div class="lasso--map-form__footer">
774
-		<input type="hidden" name="postid" value="<?php echo get_the_ID();?>">
775
-		<input type="hidden" name="nonce" value="<?php echo $nonce;?>">
774
+		<input type="hidden" name="postid" value="<?php echo get_the_ID(); ?>">
775
+		<input type="hidden" name="nonce" value="<?php echo $nonce; ?>">
776 776
 		<input type="hidden" name="action" value="process_map_save">
777
-		<input type="submit" class="lasso--map-form__submit" value="<?php esc_attr_e( 'Save Locations', 'lasso' );?>">
777
+		<input type="submit" class="lasso--map-form__submit" value="<?php esc_attr_e('Save Locations', 'lasso'); ?>">
778 778
 	</div>
779 779
 
780 780
 	<?php return ob_get_clean();
@@ -792,7 +792,7 @@  discard block
 block discarded – undo
792 792
 
793 793
 	?>
794 794
 	<div id="lasso--pagerefresh" class="visible">
795
-		<?php _e( 'Save this post and refesh the page to see these changes.', 'lasso' );?>
795
+		<?php _e('Save this post and refesh the page to see these changes.', 'lasso'); ?>
796 796
 	</div>
797 797
 
798 798
 	<?php return ob_get_clean();
@@ -806,43 +806,43 @@  discard block
 block discarded – undo
806 806
  */
807 807
 function lasso_editor_options_blob() {
808 808
 
809
-	$codes   = function_exists( 'aesop_shortcodes' ) ? aesop_shortcodes() : apply_filters( 'lasso_custom_options', '' );
810
-	$galleries  = function_exists( 'lasso_editor_galleries_exist' ) && lasso_editor_galleries_exist() ? 'has-galleries' : 'creating-gallery';
809
+	$codes = function_exists('aesop_shortcodes') ? aesop_shortcodes() : apply_filters('lasso_custom_options', '');
810
+	$galleries = function_exists('lasso_editor_galleries_exist') && lasso_editor_galleries_exist() ? 'has-galleries' : 'creating-gallery';
811 811
 
812
-	$nonce = wp_create_nonce( 'lasso_gallery' );
812
+	$nonce = wp_create_nonce('lasso_gallery');
813 813
 
814 814
 	$blob = array();
815 815
 
816
-	if ( empty( $codes ) )
816
+	if (empty($codes))
817 817
 		return;
818 818
 
819
-	foreach ( $codes as $slug => $shortcode ) {
819
+	foreach ($codes as $slug => $shortcode) {
820 820
 		$return = '';
821 821
 		// Shortcode has atts
822 822
 
823
-		if ( count( $shortcode['atts'] ) && $shortcode['atts'] ) {
823
+		if (count($shortcode['atts']) && $shortcode['atts']) {
824 824
 
825
-			foreach ( $shortcode['atts'] as $attr_name => $attr_info ) {
825
+			foreach ($shortcode['atts'] as $attr_name => $attr_info) {
826 826
 
827 827
 
828
-				$prefix = isset( $attr_info['prefix'] ) ? sprintf( '<span class="lasso-option-prefix">%s</span>', $attr_info['prefix'] ) : null;
828
+				$prefix = isset($attr_info['prefix']) ? sprintf('<span class="lasso-option-prefix">%s</span>', $attr_info['prefix']) : null;
829 829
 
830 830
 				$return .= '<form id="lasso--component-settings-form" class="'.$galleries.'" method="post">';
831 831
 				$return .= '<p data-option="'.$attr_name.'" class="lasso-option aesop-'.$slug.'-'.$attr_name.'">';
832
-				$return .= '<label for="aesop-generator-attr-' . $attr_name . '">' . $attr_info['desc'] . '</label>';
832
+				$return .= '<label for="aesop-generator-attr-'.$attr_name.'">'.$attr_info['desc'].'</label>';
833 833
 				$return .= '<small class="lasso-option-desc">'.$attr_info['tip'].'</small>';
834 834
 				// Select
835 835
 
836
-				if ( isset( $attr_info['values'] ) ) {
836
+				if (isset($attr_info['values'])) {
837 837
 
838
-					$return .= '<select name="' . $attr_name . '" id="aesop-generator-attr-' . $attr_name . '" class="lasso-generator-attr">';
838
+					$return .= '<select name="'.$attr_name.'" id="aesop-generator-attr-'.$attr_name.'" class="lasso-generator-attr">';
839 839
 
840
-					$i=0;
840
+					$i = 0;
841 841
 
842
-					foreach ( $attr_info['values'] as $attr_value ) {
842
+					foreach ($attr_info['values'] as $attr_value) {
843 843
 						$attr_value_selected = $attr_info['default'] == $attr_value ? ' selected="selected"' : '';
844 844
 
845
-						$return .= '<option value="'.$attr_info['values'][$i]['value'].'" ' . $attr_value_selected . '>'.$attr_info['values'][$i]['name'].'</option>';
845
+						$return .= '<option value="'.$attr_info['values'][$i]['value'].'" '.$attr_value_selected.'>'.$attr_info['values'][$i]['name'].'</option>';
846 846
 
847 847
 						$i++;
848 848
 					}
@@ -851,24 +851,24 @@  discard block
 block discarded – undo
851 851
 
852 852
 				} else {
853 853
 
854
-					$attr_field_type = isset( $attr_info['type'] ) ? $attr_info['type'] : 'text';
854
+					$attr_field_type = isset($attr_info['type']) ? $attr_info['type'] : 'text';
855 855
 
856 856
 					// image upload
857
-					if ( 'media_upload' == $attr_info['type'] ) {
857
+					if ('media_upload' == $attr_info['type']) {
858 858
 
859
-						$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.'" />';
859
+						$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.'" />';
860 860
 						$return .= '<a href="#" id="lasso-upload-img" class="lasso-option-button" /></a>';
861 861
 
862
-					} elseif ( 'color' == $attr_info['type'] ) {
862
+					} elseif ('color' == $attr_info['type']) {
863 863
 
864
-						$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.'" />';
864
+						$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.'" />';
865 865
 
866
-					} elseif ( 'text_area' == $attr_info['type'] ) {
866
+					} elseif ('text_area' == $attr_info['type']) {
867 867
 
868
-						$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.'';
868
+						$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.'';
869 869
 
870 870
 					} else {
871
-						$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.'';
871
+						$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.'';
872 872
 					}
873 873
 				}
874 874
 				$return .= '</p>';
@@ -879,9 +879,9 @@  discard block
 block discarded – undo
879 879
 		///////////////////////////
880 880
 		// START GALLERY AND MAP FRONT END STUFFS
881 881
 		///////////////////////////
882
-		if ( isset( $shortcode['front'] ) && true == $shortcode['front'] ) {
882
+		if (isset($shortcode['front']) && true == $shortcode['front']) {
883 883
 
884
-			if ( 'gallery' == $shortcode['front_type'] ) {
884
+			if ('gallery' == $shortcode['front_type']) {
885 885
 
886 886
 				$return .= lasso_gallery_editor_module();
887 887
 
@@ -892,13 +892,13 @@  discard block
 block discarded – undo
892 892
 		///////////////////////////
893 893
 
894 894
 		// Single shortcode (not closed)
895
-		if ( 'single' == $shortcode['type'] ) {
895
+		if ('single' == $shortcode['type']) {
896 896
 
897 897
 			$return .= '<input type="hidden" name="lasso-generator-content" id="lasso-generator-content" value="false" />';
898 898
 
899 899
 		} else {
900 900
 
901
-			$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>';
901
+			$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>';
902 902
 		}
903 903
 
904 904
 		$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>';
@@ -934,14 +934,14 @@  discard block
 block discarded – undo
934 934
 				<div id="lasso--loading" class="lasso--loading"><div class="lasso--loader"></div></div>
935 935
 				<div id="lasso--hide" style="display:none;" class="lasso--post-form">
936 936
 					<i class="lasso-icon lasso-icon-move"></i>
937
-					<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>
937
+					<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>
938 938
 					<div class="lasso--slider_wrap">
939 939
 						<div id="lasso--slider"></div>
940 940
 					</div>
941 941
 					<ul id="lasso--revision-list"></ul>
942 942
 					<div class="lasso--btn-group lasso--btn-group-small">
943
-						<a href="#" class="lasso--btn-secondary" id="lasso--close-modal"><?php _e( 'Cancel', 'lasso' );?></a>
944
-						<a href="#" class="lasso--btn-primary" id="lasso--select-revision"><?php _e( 'Select', 'lasso' );?></a>
943
+						<a href="#" class="lasso--btn-secondary" id="lasso--close-modal"><?php _e('Cancel', 'lasso'); ?></a>
944
+						<a href="#" class="lasso--btn-primary" id="lasso--select-revision"><?php _e('Select', 'lasso'); ?></a>
945 945
 					</div>
946 946
 				</div>
947 947
 
@@ -964,7 +964,7 @@  discard block
 block discarded – undo
964 964
     // Normalize into a six character long hex string
965 965
     $hex = str_replace('#', '', $hex);
966 966
     if (strlen($hex) == 3) {
967
-        $hex = str_repeat(substr($hex,0,1), 2).str_repeat(substr($hex,1,1), 2).str_repeat(substr($hex,2,1), 2);
967
+        $hex = str_repeat(substr($hex, 0, 1), 2).str_repeat(substr($hex, 1, 1), 2).str_repeat(substr($hex, 2, 1), 2);
968 968
     }
969 969
 
970 970
     // Split into three parts: R, G and B
@@ -973,7 +973,7 @@  discard block
 block discarded – undo
973 973
 
974 974
     foreach ($color_parts as $color) {
975 975
         $color   = hexdec($color); // Convert to decimal
976
-        $color   = max(0,min(255,$color + $steps)); // Adjust color
976
+        $color   = max(0, min(255, $color + $steps)); // Adjust color
977 977
         $return .= str_pad(dechex($color), 2, '0', STR_PAD_LEFT); // Make two char hex code
978 978
     }
979 979
 
Please login to merge, or discard this patch.