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