Completed
Push — master ( ae1e5e...3ae69a )
by
unknown
01:31
created
public/includes/editor-modules.php 1 patch
Spacing   +257 added lines, -257 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,124 +225,124 @@  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' );?>">
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 323
 		    			</ul>
324
-		    			<a class="lasso-toolbar--html__control lasso-toolbar--html__cancel" href="#"><?php _e( 'Cancel', 'lasso' );?></a>
325
-		    			<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>
324
+		    			<a class="lasso-toolbar--html__control lasso-toolbar--html__cancel" href="#"><?php _e('Cancel', 'lasso'); ?></a>
325
+		    			<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>
326 326
 		    		</div>
327 327
 		    	</div>
328 328
 		    </li>
329
-			<?php if ( $show_align ): ?>
330
-		    <li id="lasso-toolbar--left-align" title="<?php esc_attr_e( 'Text Left Align', 'lasso' );?>"></li>
331
-		    <li id="lasso-toolbar--center-align" title="<?php esc_attr_e( 'Text Center Align', 'lasso' );?>"></li>
332
-			<li id="lasso-toolbar--right-align" title="<?php esc_attr_e( 'Text Right Align', 'lasso' );?>"></li>
329
+			<?php if ($show_align): ?>
330
+		    <li id="lasso-toolbar--left-align" title="<?php esc_attr_e('Text Left Align', 'lasso'); ?>"></li>
331
+		    <li id="lasso-toolbar--center-align" title="<?php esc_attr_e('Text Center Align', 'lasso'); ?>"></li>
332
+			<li id="lasso-toolbar--right-align" title="<?php esc_attr_e('Text Right Align', 'lasso'); ?>"></li>
333 333
 			<?php endif; ?>
334 334
 		</ul>
335
-		<?php if ( is_singular() && $is_mobile ) { ?>
335
+		<?php if (is_singular() && $is_mobile) { ?>
336 336
 
337
-				<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;">
337
+				<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 338
 
339
-					<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>
340
-					<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>
339
+					<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>
340
+					<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>
341 341
 
342
-					<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>
342
+					<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 343
 
344
-					<?php if ( 'draft' == $status && ( lasso_user_can('publish_posts') || lasso_user_can('publish_pages') )  ) { ?>
345
-						<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>
344
+					<?php if ('draft' == $status && (lasso_user_can('publish_posts') || lasso_user_can('publish_pages'))) { ?>
345
+						<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>
346 346
 					<?php } ?>
347 347
 
348 348
 				</div>
@@ -360,20 +360,20 @@  discard block
 block discarded – undo
360 360
  */
361 361
 function lasso_editor_settings_toolbar() {
362 362
 
363
-	$delete_nonce = wp_create_nonce( 'lasso-delete-nonce' );
363
+	$delete_nonce = wp_create_nonce('lasso-delete-nonce');
364 364
 
365 365
 	ob_start();
366 366
 
367 367
 
368 368
 	// let users add custom css classes
369
-	$custom_classes = apply_filters( 'lasso_component_classes', '' );
369
+	$custom_classes = apply_filters('lasso_component_classes', '');
370 370
 
371 371
 	?>
372
-	<ul class="lasso-component--controls <?php echo sanitize_html_class( $custom_classes );?>" contenteditable="false">
373
-		<li class="lasso-drag" title="<?php esc_attr_e( 'Move', 'lasso' );?>"></li>
374
-		<li id="lasso-component--settings__trigger" class="lasso-settings" title="<?php esc_attr_e( 'Settings', 'lasso' );?>"></li>
375
-		<li class="lasso-clone" title="<?php esc_attr_e( 'Clone', 'lasso' );?>"></li>
376
-		<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>
372
+	<ul class="lasso-component--controls <?php echo sanitize_html_class($custom_classes); ?>" contenteditable="false">
373
+		<li class="lasso-drag" title="<?php esc_attr_e('Move', 'lasso'); ?>"></li>
374
+		<li id="lasso-component--settings__trigger" class="lasso-settings" title="<?php esc_attr_e('Settings', 'lasso'); ?>"></li>
375
+		<li class="lasso-clone" title="<?php esc_attr_e('Clone', 'lasso'); ?>"></li>
376
+		<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>
377 377
 	</ul>
378 378
 
379 379
 	<?php return ob_get_clean();
@@ -391,13 +391,13 @@  discard block
 block discarded – undo
391 391
 
392 392
 
393 393
 	// has post thumbnail
394
-	$has_thumbnail = has_post_thumbnail( get_the_ID() ) ? 'class="lasso--featImg--has-thumb"' : false;
394
+	$has_thumbnail = has_post_thumbnail(get_the_ID()) ? 'class="lasso--featImg--has-thumb"' : false;
395 395
 
396 396
 	?>
397
-	<ul id="lasso--featImgControls" <?php echo $has_thumbnail;?>>
398
-		<li id="lasso--featImgUpload"><a title="<?php esc_attr_e( 'Replace Image', 'lasso' );?>" href="#"><i class="lasso-icon-image"></i></a></li>
399
-		<li id="lasso--featImgDelete"><a title="<?php esc_attr_e( 'Delete Image', 'lasso' );?>" href="#"><i class="lasso-icon-bin2"></i></a></li>
400
-		<li id="lasso--featImgSave"><a href="#"><?php esc_attr_e( 'save', 'lasso' );?></a></li>
397
+	<ul id="lasso--featImgControls" <?php echo $has_thumbnail; ?>>
398
+		<li id="lasso--featImgUpload"><a title="<?php esc_attr_e('Replace Image', 'lasso'); ?>" href="#"><i class="lasso-icon-image"></i></a></li>
399
+		<li id="lasso--featImgDelete"><a title="<?php esc_attr_e('Delete Image', 'lasso'); ?>" href="#"><i class="lasso-icon-bin2"></i></a></li>
400
+		<li id="lasso--featImgSave"><a href="#"><?php esc_attr_e('save', 'lasso'); ?></a></li>
401 401
 	</ul>
402 402
 
403 403
 	<?php return ob_get_clean();
@@ -421,55 +421,55 @@  discard block
 block discarded – undo
421 421
 
422 422
 	$postid = get_the_ID();
423 423
 
424
-	$status = get_post_status( $postid );
425
-	$nonce = wp_create_nonce( 'lasso-update-post-settings' );
424
+	$status = get_post_status($postid);
425
+	$nonce = wp_create_nonce('lasso-update-post-settings');
426 426
 
427 427
 	// let users add custom css classes
428
-	$custom_classes = apply_filters( 'lasso_modal_settings_classes', '' );
428
+	$custom_classes = apply_filters('lasso_modal_settings_classes', '');
429 429
 
430 430
 	// objects categories
431
-	$categories 		= lasso_get_post_objects( $postid, 'category' );
432
-	$tags 				= lasso_get_post_objects( $postid, 'tag' );
431
+	$categories = lasso_get_post_objects($postid, 'category');
432
+	$tags = lasso_get_post_objects($postid, 'tag');
433 433
 
434 434
 	// modal tabs
435
-	$tabs  				= lasso_modal_addons('tab');
436
-	$content 			= lasso_modal_addons('content');
435
+	$tabs = lasso_modal_addons('tab');
436
+	$content = lasso_modal_addons('content');
437 437
 	
438 438
 	//editor options
439 439
 	$allow_change_date = lasso_editor_get_option('allow_change_date', 'lasso_editor');
440 440
 	$no_url_setting = lasso_editor_get_option('no_url_setting', 'lasso_editor');
441 441
 
442 442
 	// are we singular
443
-	$is_singular 		= is_singular();
443
+	$is_singular = is_singular();
444 444
 	$is_singular_class 	= $is_singular ? 'lasso--postsettings__2col' : 'lasso--postsettings__1col';
445 445
 	$has_thumb_class    = has_post_thumbnail() ? 'has-thumbnail' : 'no-thumbnail';
446 446
 	$theme_supports     = current_theme_supports('post-thumbnails');
447
-	$default_image 		= LASSO_URL.'/admin/assets/img/empty-img.png';
447
+	$default_image = LASSO_URL.'/admin/assets/img/empty-img.png';
448 448
 	
449 449
 	// do we support pending status
450 450
 	$no_pending_status = lasso_editor_get_option('no_pending_status', 'lasso_editor');
451 451
 
452 452
 ?>
453
-	<div id="lasso--post-settings__modal" class="lasso--modal lassoShowAnimate <?php echo sanitize_html_class( $custom_classes );?>">
453
+	<div id="lasso--post-settings__modal" class="lasso--modal lassoShowAnimate <?php echo sanitize_html_class($custom_classes); ?>">
454 454
 		<div class="lasso--modal__inner">
455 455
 
456
-			<?php if( $tabs ) { echo $tabs; } ?>
456
+			<?php if ($tabs) { echo $tabs; } ?>
457 457
 
458 458
 			<div class="lasso--modal__content modal__content--core visible" data-addon-content="core">
459
-				<form id="lasso--postsettings__form" enctype="multipart/form-data" class="lasso--post-form <?php echo $is_singular_class.' '.$has_thumb_class;?>" >
459
+				<form id="lasso--postsettings__form" enctype="multipart/form-data" class="lasso--post-form <?php echo $is_singular_class.' '.$has_thumb_class; ?>" >
460 460
 
461
-					<?php if ( $is_singular && $theme_supports ) : ?>
461
+					<?php if ($is_singular && $theme_supports) : ?>
462 462
 					<div class="lasso--postsettings__left">
463
-						<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>
464
-						<div class="lasso--post-thumb" data-default-thumb="<?php echo esc_url( $default_image );?>">
463
+						<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>
464
+						<div class="lasso--post-thumb" data-default-thumb="<?php echo esc_url($default_image); ?>">
465 465
 
466 466
 							<div id="lasso--post-thumb__controls" class="lasso--post-thumb__controls">
467
-								<i id="lasso--post-thumb__add" title="<?php _e('Change Featured Image','lasso');?>" class="dashicons dashicons-edit"></i>
468
-								<i id="lasso--post-thumb__delete" title="<?php _e('Delete Featured Image','lasso');?>" class="dashicons dashicons-no-alt"></i>
467
+								<i id="lasso--post-thumb__add" title="<?php _e('Change Featured Image', 'lasso'); ?>" class="dashicons dashicons-edit"></i>
468
+								<i id="lasso--post-thumb__delete" title="<?php _e('Delete Featured Image', 'lasso'); ?>" class="dashicons dashicons-no-alt"></i>
469 469
 								<i id="lasso--save-status" class="lasso-icon lasso-icon-spinner6 not-visible"></i>
470 470
 							</div>
471 471
 
472
-							<?php echo has_post_thumbnail() ? get_the_post_thumbnail( $post->ID, 'medium' ) : '<img src="'.$default_image.'">'; ?>
472
+							<?php echo has_post_thumbnail() ? get_the_post_thumbnail($post->ID, 'medium') : '<img src="'.$default_image.'">'; ?>
473 473
 
474 474
 						</div>
475 475
 						<div id="lasso--featImgSave"><a href="#" class="not-visible">Save</a></div>
@@ -479,15 +479,15 @@  discard block
 block discarded – undo
479 479
 
480 480
 					<div class="lasso--postsettings__right">
481 481
 
482
-						<?php if( lasso_user_can('publish_posts') || lasso_user_can('publish_pages') ): ?>
482
+						<?php if (lasso_user_can('publish_posts') || lasso_user_can('publish_pages')): ?>
483 483
 						<div class="lasso--postsettings__option story-status-option">
484
-							<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>
485
-							<ul class="story-status story-status-<?php echo sanitize_html_class( $status );?>">
486
-								<li id="lasso--status-draft"><?php _e( 'Draft', 'lasso' );?></li>
487
-								<?php if( !$no_pending_status ): ?>								
488
-								<li id="lasso--status-pending"><?php _e( 'Pending', 'lasso' );?></li>
484
+							<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>
485
+							<ul class="story-status story-status-<?php echo sanitize_html_class($status); ?>">
486
+								<li id="lasso--status-draft"><?php _e('Draft', 'lasso'); ?></li>
487
+								<?php if (!$no_pending_status): ?>								
488
+								<li id="lasso--status-pending"><?php _e('Pending', 'lasso'); ?></li>
489 489
 								<?php endif; ?>
490
-								<li id="lasso--status-publish"><?php _e( 'Publish', 'lasso' );?></li>
490
+								<li id="lasso--status-publish"><?php _e('Publish', 'lasso'); ?></li>
491 491
 							</ul>
492 492
 							<div class="lasso--slider_wrap">
493 493
 								<div id="lasso--slider"></div>
@@ -495,10 +495,10 @@  discard block
 block discarded – undo
495 495
 						</div>
496 496
 						<?php endif; ?>
497 497
 
498
-						<?php if ( 'publish' == $status  && !$no_url_setting): ?>
498
+						<?php if ('publish' == $status && !$no_url_setting): ?>
499 499
 						<div class="lasso--postsettings__option story-slug-option">
500
-							<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>
501
-							<input class="lasso--modal__trigger-footer" type="text" name="story_slug" value="<?php echo isset( $post ) ? esc_attr( $post->post_name ) : false;?>">
500
+							<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>
501
+							<input class="lasso--modal__trigger-footer" type="text" name="story_slug" value="<?php echo isset($post) ? esc_attr($post->post_name) : false; ?>">
502 502
 						</div>
503 503
 						<?php endif; ?>
504 504
 
@@ -507,21 +507,21 @@  discard block
 block discarded – undo
507 507
 					<div class="lasso--postsettings__middle">
508 508
 
509 509
 						<div class="lasso--postsettings__option story-categories-option">
510
-							<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>
511
-							<input id="lasso--cat-select" class="lasso--modal__trigger-footer" type="hidden" name="story_cats" value="<?php echo $categories;?>">
510
+							<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>
511
+							<input id="lasso--cat-select" class="lasso--modal__trigger-footer" type="hidden" name="story_cats" value="<?php echo $categories; ?>">
512 512
 						</div>
513 513
 
514 514
 						<div class="lasso--postsettings__option story-tags-option">
515
-							<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>
516
-							<input id="lasso--tag-select" class="lasso--modal__trigger-footer" type="hidden" name="story_tags" value="<?php echo $tags;?>">
515
+							<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>
516
+							<input id="lasso--tag-select" class="lasso--modal__trigger-footer" type="hidden" name="story_tags" value="<?php echo $tags; ?>">
517 517
 						</div>
518 518
 						<?php 
519 519
 						if ($allow_change_date) { 
520
-						    $dateformat = get_option( 'date_format' ); 
520
+						    $dateformat = get_option('date_format'); 
521 521
 						?>
522
-						    <label><?php _e( 'Post Date', 'lasso' ); ?></label>
523
-							<input type="text" class="editus_custom_date" name="post_date" value="<?php echo get_the_time($dateformat, $postid);?>"/>
524
-							<a href="#" id="lasso--postsettings-setnow"><?php _e( 'Set to Now', 'lasso' ); ?></a>
522
+						    <label><?php _e('Post Date', 'lasso'); ?></label>
523
+							<input type="text" class="editus_custom_date" name="post_date" value="<?php echo get_the_time($dateformat, $postid); ?>"/>
524
+							<a href="#" id="lasso--postsettings-setnow"><?php _e('Set to Now', 'lasso'); ?></a>
525 525
 						<?php
526 526
 						}?>
527 527
 
@@ -543,23 +543,23 @@  discard block
 block discarded – undo
543 543
 					?>
544 544
 					<!--/div-->
545 545
 
546
-					<?php do_action( 'lasso_modal_post_form' ); // action ?>
546
+					<?php do_action('lasso_modal_post_form'); // action ?>
547 547
 
548 548
 					<div class="lasso--postsettings__footer" >
549
-						<a href="#" class="lasso--postsettings-cancel"><?php _e( 'Cancel', 'lasso' );?></a>
549
+						<a href="#" class="lasso--postsettings-cancel"><?php _e('Cancel', 'lasso'); ?></a>
550 550
 						<input type="hidden" name="status" value="">
551 551
 						<input type="hidden" name="categories" value="">
552
-						<input type="hidden" name="postid" value="<?php echo get_the_ID();?>">
552
+						<input type="hidden" name="postid" value="<?php echo get_the_ID(); ?>">
553 553
 						<input type="hidden" name="action" value="process_update-object_post">
554
-						<input type="hidden" name="nonce" value="<?php echo $nonce;?>">
555
-						<?php do_action( 'lasso_modal_post_form_footer' ); // action ?>
556
-						<input type="submit" id="lasso--postsettings-submit" value="<?php esc_attr_e( 'Save', 'lasso' );?>">
554
+						<input type="hidden" name="nonce" value="<?php echo $nonce; ?>">
555
+						<?php do_action('lasso_modal_post_form_footer'); // action ?>
556
+						<input type="submit" id="lasso--postsettings-submit" value="<?php esc_attr_e('Save', 'lasso'); ?>">
557 557
 					</div>
558 558
 
559 559
 				</form>
560 560
 			</div>
561 561
 
562
-			<?php if( $tabs ) { echo $content; } ?>
562
+			<?php if ($tabs) { echo $content; } ?>
563 563
 
564 564
 		</div>
565 565
 
@@ -581,41 +581,41 @@  discard block
 block discarded – undo
581 581
 	ob_start();
582 582
 
583 583
 
584
-	$status = get_post_status( get_the_ID() );
584
+	$status = get_post_status(get_the_ID());
585 585
 
586
-	$nonce = wp_create_nonce( 'lasso-editor-new-post' );
586
+	$nonce = wp_create_nonce('lasso-editor-new-post');
587 587
 
588 588
 	// let users add custom css classes
589
-	$custom_classes = apply_filters( 'lasso_modal_post_classes', '' );
589
+	$custom_classes = apply_filters('lasso_modal_post_classes', '');
590 590
 
591 591
 	// return the post type
592
-	$type = get_post_type( get_the_ID() );
592
+	$type = get_post_type(get_the_ID());
593 593
 
594 594
 	$mobile_style = "";
595 595
 	if (wp_is_mobile()) {
596 596
 		$mobile_style = 'style="top:140px !important;"';
597 597
 	}
598 598
 	?>
599
-	<div id="lasso--post-new__modal" class="lasso--modal lasso--modal__med lassoShowAnimate <?php echo sanitize_html_class( $custom_classes );?>" <?php echo $mobile_style;?>">
599
+	<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 600
 		<div class="lasso--modal__inner lasso--hasnewform">
601 601
 
602 602
 			<form id="lasso--postnew__form" enctype="multipart/form-data" class="lasso--post-form">
603 603
 
604 604
 				<div class="lasso--postsettings__option story-slug-option lasso--last-option">
605
-					<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>
606
-					<input class="lasso--modal__trigger-footer" type="text" required name="story_title" value="" placeholder="<?php esc_attr_e( 'Type Your Title Here', 'lasso' );?>">
605
+					<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>
606
+					<input class="lasso--modal__trigger-footer" type="text" required name="story_title" value="" placeholder="<?php esc_attr_e('Type Your Title Here', 'lasso'); ?>">
607 607
 						<div class="lasso--select-wrap" style="width:90px">
608 608
 						<select id="lasso--select-type" name="story_type">
609 609
 
610 610
 							<?php
611 611
 								$types = lasso_post_types_names();
612
-								if ( !empty( $types ) ) {
613
-									foreach( $types as $name => $label ) {										
614
-										$type = preg_replace( '/s\b/','', $name );
612
+								if (!empty($types)) {
613
+									foreach ($types as $name => $label) {										
614
+										$type = preg_replace('/s\b/', '', $name);
615 615
 										if ($type == 'page' && !current_user_can('edit_pages')) {
616 616
 											continue;
617 617
 										}
618
-										printf( '<option value="%s">%s</option>', lcfirst( esc_attr( $type ) ) , ucfirst( esc_attr( $label ) ) );
618
+										printf('<option value="%s">%s</option>', lcfirst(esc_attr($type)), ucfirst(esc_attr($label)));
619 619
 									}
620 620
 
621 621
 								}
@@ -626,19 +626,19 @@  discard block
 block discarded – undo
626 626
 				</div>
627 627
 
628 628
 				<div class="lasso--postsettings__footer">
629
-					<a href="#" class="lasso--postsettings-cancel"><?php _e( 'Cancel', 'lasso' );?></a>
629
+					<a href="#" class="lasso--postsettings-cancel"><?php _e('Cancel', 'lasso'); ?></a>
630 630
 					<input type="hidden" name="action" value="process_new-object_post">
631 631
 					<?php
632
-						if ( !empty( $types ) ) {
632
+						if (!empty($types)) {
633 633
 							// get the first element
634 634
 							$keys = array_keys($types);
635
-						    $type =$keys[0];						
636
-							$type = preg_replace( '/s\b/','', $type );
637
-							printf( '<input type="hidden" name="object" value="%s">', lcfirst( esc_attr( $type ) ) );		
635
+						    $type = $keys[0];						
636
+							$type = preg_replace('/s\b/', '', $type);
637
+							printf('<input type="hidden" name="object" value="%s">', lcfirst(esc_attr($type)));		
638 638
 						}
639 639
 					?>
640
-					<input type="hidden" name="nonce" value="<?php echo $nonce;?>">
641
-					<input type="submit" value="<?php esc_attr_e( 'Create', 'lasso' );?>">
640
+					<input type="hidden" name="nonce" value="<?php echo $nonce; ?>">
641
+					<input type="submit" value="<?php esc_attr_e('Create', 'lasso'); ?>">
642 642
 				</div>
643 643
 
644 644
 			</form>
@@ -666,18 +666,18 @@  discard block
 block discarded – undo
666 666
 	ob_start();
667 667
 
668 668
 	// post status
669
-	$status = get_post_status( get_the_ID() );
669
+	$status = get_post_status(get_the_ID());
670 670
 
671 671
 	// let users add custom css classes
672
-	$custom_classes = apply_filters( 'lasso_modal_all_post_classes', '' );
672
+	$custom_classes = apply_filters('lasso_modal_all_post_classes', '');
673 673
 
674 674
 	?>
675
-	<div id="lasso--all-posts__modal" class="lasso--modal lasso--modal__full lassoShowAnimate <?php echo sanitize_html_class( $custom_classes );?>" style="max-height:100%">
675
+	<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 676
 		<div class="lasso--modal__inner">
677 677
 
678 678
 			<div class="lasso--post-filtering not-visible">
679 679
 				<div class="lasso--search__results">
680
-					<span id="lasso--results-found"></span><?php _e('results found','lasso');?>
680
+					<span id="lasso--results-found"></span><?php _e('results found', 'lasso'); ?>
681 681
 				</div>
682 682
 				<div class="lasso--search">
683 683
 					<i id="lasso--search__toggle" class="dashicons dashicons-search"></i>
@@ -691,18 +691,18 @@  discard block
 block discarded – undo
691 691
 				$post_types = lasso_post_types_names();
692 692
 				$rest_bases = lasso_post_types_rest_base();
693 693
 
694
-				if ( ! empty( $post_types ) ) {
694
+				if (!empty($post_types)) {
695 695
 					$first = 'active';
696
-					foreach( $post_types as $name => $label ) {
696
+					foreach ($post_types as $name => $label) {
697 697
 						if (array_key_exists($name, $rest_bases)) {
698
-							printf( '<li class="%1s lasso--show-objects" data-post-type="%2s">%3s</li>', esc_attr( $first), esc_attr( $rest_bases[$name] ), esc_attr( $label ) );
698
+							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 699
 						}
700 700
 						$first = '';
701 701
 					}
702 702
 
703 703
 				}
704 704
 
705
-				do_action('lasso_modal_post_objects');?>
705
+				do_action('lasso_modal_post_objects'); ?>
706 706
 
707 707
 			</ul>
708 708
 			<div id="lasso--loading" class="lasso--loading"><div class="lasso--loader"></div></div>
@@ -722,14 +722,14 @@  discard block
 block discarded – undo
722 722
 
723 723
 
724 724
 	// let users add custom css classes
725
-	$custom_classes = apply_filters( 'lasso_wpimg_classes', '' );
725
+	$custom_classes = apply_filters('lasso_wpimg_classes', '');
726 726
 
727 727
 	?>
728
-	<ul class="lasso-component--controls <?php echo sanitize_html_class( $custom_classes );?>" contenteditable="false">
729
-		<li class="lasso-drag" title="<?php esc_attr_e( 'Move', 'lasso' );?>"></li>
730
-		<li id="lasso--wpimg-edit" class="lasso-settings" title="<?php esc_attr_e( 'Settings', 'lasso' );?>"></li>
731
-		<li class="lasso-clone" title="<?php esc_attr_e( 'Clone', 'lasso' );?>"></li>
732
-		<li class="lasso-delete" title="<?php esc_attr_e( 'Delete', 'lasso' );?>"></li>
728
+	<ul class="lasso-component--controls <?php echo sanitize_html_class($custom_classes); ?>" contenteditable="false">
729
+		<li class="lasso-drag" title="<?php esc_attr_e('Move', 'lasso'); ?>"></li>
730
+		<li id="lasso--wpimg-edit" class="lasso-settings" title="<?php esc_attr_e('Settings', 'lasso'); ?>"></li>
731
+		<li class="lasso-clone" title="<?php esc_attr_e('Clone', 'lasso'); ?>"></li>
732
+		<li class="lasso-delete" title="<?php esc_attr_e('Delete', 'lasso'); ?>"></li>
733 733
 	</ul>
734 734
 
735 735
 	<?php return ob_get_clean();
@@ -741,14 +741,14 @@  discard block
 block discarded – undo
741 741
 
742 742
 
743 743
 	// let users add custom css classes
744
-	$custom_classes = apply_filters( 'lasso_wpimg_classes', '' );
744
+	$custom_classes = apply_filters('lasso_wpimg_classes', '');
745 745
 
746 746
 	?>
747
-	<ul class="lasso-component--controls <?php echo sanitize_html_class( $custom_classes );?>" contenteditable="false">
748
-		<li class="lasso-drag" title="<?php esc_attr_e( 'Move', 'lasso' );?>"></li>
749
-		<li id="lasso--wpvideo-edit" class="lasso-settings" title="<?php esc_attr_e( 'Settings', 'lasso' );?>"></li>
750
-		<li class="lasso-clone" title="<?php esc_attr_e( 'Clone', 'lasso' );?>"></li>
751
-		<li class="lasso-delete" title="<?php esc_attr_e( 'Delete', 'lasso' );?>"></li>
747
+	<ul class="lasso-component--controls <?php echo sanitize_html_class($custom_classes); ?>" contenteditable="false">
748
+		<li class="lasso-drag" title="<?php esc_attr_e('Move', 'lasso'); ?>"></li>
749
+		<li id="lasso--wpvideo-edit" class="lasso-settings" title="<?php esc_attr_e('Settings', 'lasso'); ?>"></li>
750
+		<li class="lasso-clone" title="<?php esc_attr_e('Clone', 'lasso'); ?>"></li>
751
+		<li class="lasso-delete" title="<?php esc_attr_e('Delete', 'lasso'); ?>"></li>
752 752
 	</ul>
753 753
 
754 754
 	<?php return ob_get_clean();
@@ -761,16 +761,16 @@  discard block
 block discarded – undo
761 761
  */
762 762
 function lasso_map_form_footer() {
763 763
 
764
-	$nonce = wp_create_nonce( 'lasso-process-map' );
764
+	$nonce = wp_create_nonce('lasso-process-map');
765 765
 
766 766
 	ob_start();
767 767
 
768 768
 	?>
769 769
 	<div class="lasso--map-form__footer">
770
-		<input type="hidden" name="postid" value="<?php echo get_the_ID();?>">
771
-		<input type="hidden" name="nonce" value="<?php echo $nonce;?>">
770
+		<input type="hidden" name="postid" value="<?php echo get_the_ID(); ?>">
771
+		<input type="hidden" name="nonce" value="<?php echo $nonce; ?>">
772 772
 		<input type="hidden" name="action" value="process_map_save">
773
-		<input type="submit" class="lasso--map-form__submit" value="<?php esc_attr_e( 'Save Locations', 'lasso' );?>">
773
+		<input type="submit" class="lasso--map-form__submit" value="<?php esc_attr_e('Save Locations', 'lasso'); ?>">
774 774
 	</div>
775 775
 
776 776
 	<?php return ob_get_clean();
@@ -788,7 +788,7 @@  discard block
 block discarded – undo
788 788
 
789 789
 	?>
790 790
 	<div id="lasso--pagerefresh" class="visible">
791
-		<?php _e( 'Save this post and refesh the page to see these changes.', 'lasso' );?>
791
+		<?php _e('Save this post and refesh the page to see these changes.', 'lasso'); ?>
792 792
 	</div>
793 793
 
794 794
 	<?php return ob_get_clean();
@@ -802,43 +802,43 @@  discard block
 block discarded – undo
802 802
  */
803 803
 function lasso_editor_options_blob() {
804 804
 
805
-	$codes   = function_exists( 'aesop_shortcodes' ) ? aesop_shortcodes() : apply_filters( 'lasso_custom_options', '' );
806
-	$galleries  = function_exists( 'lasso_editor_galleries_exist' ) && lasso_editor_galleries_exist() ? 'has-galleries' : 'creating-gallery';
805
+	$codes = function_exists('aesop_shortcodes') ? aesop_shortcodes() : apply_filters('lasso_custom_options', '');
806
+	$galleries = function_exists('lasso_editor_galleries_exist') && lasso_editor_galleries_exist() ? 'has-galleries' : 'creating-gallery';
807 807
 
808
-	$nonce = wp_create_nonce( 'lasso_gallery' );
808
+	$nonce = wp_create_nonce('lasso_gallery');
809 809
 
810 810
 	$blob = array();
811 811
 
812
-	if ( empty( $codes ) )
812
+	if (empty($codes))
813 813
 		return;
814 814
 
815
-	foreach ( $codes as $slug => $shortcode ) {
815
+	foreach ($codes as $slug => $shortcode) {
816 816
 		$return = '';
817 817
 		// Shortcode has atts
818 818
 
819
-		if ( count( $shortcode['atts'] ) && $shortcode['atts'] ) {
819
+		if (count($shortcode['atts']) && $shortcode['atts']) {
820 820
 
821
-			foreach ( $shortcode['atts'] as $attr_name => $attr_info ) {
821
+			foreach ($shortcode['atts'] as $attr_name => $attr_info) {
822 822
 
823 823
 
824
-				$prefix = isset( $attr_info['prefix'] ) ? sprintf( '<span class="lasso-option-prefix">%s</span>', $attr_info['prefix'] ) : null;
824
+				$prefix = isset($attr_info['prefix']) ? sprintf('<span class="lasso-option-prefix">%s</span>', $attr_info['prefix']) : null;
825 825
 
826 826
 				$return .= '<form id="lasso--component-settings-form" class="'.$galleries.'" method="post">';
827 827
 				$return .= '<p data-option="'.$attr_name.'" class="lasso-option aesop-'.$slug.'-'.$attr_name.'">';
828
-				$return .= '<label for="aesop-generator-attr-' . $attr_name . '">' . $attr_info['desc'] . '</label>';
828
+				$return .= '<label for="aesop-generator-attr-'.$attr_name.'">'.$attr_info['desc'].'</label>';
829 829
 				$return .= '<small class="lasso-option-desc">'.$attr_info['tip'].'</small>';
830 830
 				// Select
831 831
 
832
-				if ( isset( $attr_info['values'] ) ) {
832
+				if (isset($attr_info['values'])) {
833 833
 
834
-					$return .= '<select name="' . $attr_name . '" id="aesop-generator-attr-' . $attr_name . '" class="lasso-generator-attr">';
834
+					$return .= '<select name="'.$attr_name.'" id="aesop-generator-attr-'.$attr_name.'" class="lasso-generator-attr">';
835 835
 
836
-					$i=0;
836
+					$i = 0;
837 837
 
838
-					foreach ( $attr_info['values'] as $attr_value ) {
838
+					foreach ($attr_info['values'] as $attr_value) {
839 839
 						$attr_value_selected = $attr_info['default'] == $attr_value ? ' selected="selected"' : '';
840 840
 
841
-						$return .= '<option value="'.$attr_info['values'][$i]['value'].'" ' . $attr_value_selected . '>'.$attr_info['values'][$i]['name'].'</option>';
841
+						$return .= '<option value="'.$attr_info['values'][$i]['value'].'" '.$attr_value_selected.'>'.$attr_info['values'][$i]['name'].'</option>';
842 842
 
843 843
 						$i++;
844 844
 					}
@@ -847,24 +847,24 @@  discard block
 block discarded – undo
847 847
 
848 848
 				} else {
849 849
 
850
-					$attr_field_type = isset( $attr_info['type'] ) ? $attr_info['type'] : 'text';
850
+					$attr_field_type = isset($attr_info['type']) ? $attr_info['type'] : 'text';
851 851
 
852 852
 					// image upload
853
-					if ( 'media_upload' == $attr_info['type'] ) {
853
+					if ('media_upload' == $attr_info['type']) {
854 854
 
855
-						$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.'" />';
855
+						$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 856
 						$return .= '<a href="#" id="lasso-upload-img" class="lasso-option-button" /></a>';
857 857
 
858
-					} elseif ( 'color' == $attr_info['type'] ) {
858
+					} elseif ('color' == $attr_info['type']) {
859 859
 
860
-						$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.'" />';
860
+						$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 861
 
862
-					} elseif ( 'text_area' == $attr_info['type'] ) {
862
+					} elseif ('text_area' == $attr_info['type']) {
863 863
 
864
-						$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.'';
864
+						$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 865
 
866 866
 					} else {
867
-						$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.'';
867
+						$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 868
 					}
869 869
 				}
870 870
 				$return .= '</p>';
@@ -875,9 +875,9 @@  discard block
 block discarded – undo
875 875
 		///////////////////////////
876 876
 		// START GALLERY AND MAP FRONT END STUFFS
877 877
 		///////////////////////////
878
-		if ( isset( $shortcode['front'] ) && true == $shortcode['front'] ) {
878
+		if (isset($shortcode['front']) && true == $shortcode['front']) {
879 879
 
880
-			if ( 'gallery' == $shortcode['front_type'] ) {
880
+			if ('gallery' == $shortcode['front_type']) {
881 881
 
882 882
 				$return .= lasso_gallery_editor_module();
883 883
 
@@ -888,13 +888,13 @@  discard block
 block discarded – undo
888 888
 		///////////////////////////
889 889
 
890 890
 		// Single shortcode (not closed)
891
-		if ( 'single' == $shortcode['type'] ) {
891
+		if ('single' == $shortcode['type']) {
892 892
 
893 893
 			$return .= '<input type="hidden" name="lasso-generator-content" id="lasso-generator-content" value="false" />';
894 894
 
895 895
 		} else {
896 896
 
897
-			$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>';
897
+			$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 898
 		}
899 899
 
900 900
 		$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>';
@@ -930,14 +930,14 @@  discard block
 block discarded – undo
930 930
 				<div id="lasso--loading" class="lasso--loading"><div class="lasso--loader"></div></div>
931 931
 				<div id="lasso--hide" style="display:none;" class="lasso--post-form">
932 932
 					<i class="lasso-icon lasso-icon-move"></i>
933
-					<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>
933
+					<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 934
 					<div class="lasso--slider_wrap">
935 935
 						<div id="lasso--slider"></div>
936 936
 					</div>
937 937
 					<ul id="lasso--revision-list"></ul>
938 938
 					<div class="lasso--btn-group lasso--btn-group-small">
939
-						<a href="#" class="lasso--btn-secondary" id="lasso--close-modal"><?php _e( 'Cancel', 'lasso' );?></a>
940
-						<a href="#" class="lasso--btn-primary" id="lasso--select-revision"><?php _e( 'Select', 'lasso' );?></a>
939
+						<a href="#" class="lasso--btn-secondary" id="lasso--close-modal"><?php _e('Cancel', 'lasso'); ?></a>
940
+						<a href="#" class="lasso--btn-primary" id="lasso--select-revision"><?php _e('Select', 'lasso'); ?></a>
941 941
 					</div>
942 942
 				</div>
943 943
 
@@ -960,7 +960,7 @@  discard block
 block discarded – undo
960 960
     // Normalize into a six character long hex string
961 961
     $hex = str_replace('#', '', $hex);
962 962
     if (strlen($hex) == 3) {
963
-        $hex = str_repeat(substr($hex,0,1), 2).str_repeat(substr($hex,1,1), 2).str_repeat(substr($hex,2,1), 2);
963
+        $hex = str_repeat(substr($hex, 0, 1), 2).str_repeat(substr($hex, 1, 1), 2).str_repeat(substr($hex, 2, 1), 2);
964 964
     }
965 965
 
966 966
     // Split into three parts: R, G and B
@@ -969,7 +969,7 @@  discard block
 block discarded – undo
969 969
 
970 970
     foreach ($color_parts as $color) {
971 971
         $color   = hexdec($color); // Convert to decimal
972
-        $color   = max(0,min(255,$color + $steps)); // Adjust color
972
+        $color   = max(0, min(255, $color + $steps)); // Adjust color
973 973
         $return .= str_pad(dechex($color), 2, '0', STR_PAD_LEFT); // Make two char hex code
974 974
     }
975 975
 
Please login to merge, or discard this patch.
admin/includes/menus/settings.php 1 patch
Spacing   +149 added lines, -149 removed lines patch added patch discarded remove patch
@@ -9,9 +9,9 @@  discard block
 block discarded – undo
9 9
 
10 10
 	function __construct() {
11 11
 
12
-		add_action( 'admin_menu',     array( $this, 'menu' ) );
13
-		add_action( 'network_admin_menu',   array( $this, 'menu' ) );
14
-		add_action( 'wp_ajax_lasso-editor-settings', array( $this, 'process_settings' ) );
12
+		add_action('admin_menu', array($this, 'menu'));
13
+		add_action('network_admin_menu', array($this, 'menu'));
14
+		add_action('wp_ajax_lasso-editor-settings', array($this, 'process_settings'));
15 15
 
16 16
 	}
17 17
 
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 	function menu() {
24 24
 
25 25
 		// CHANGED Removed condition.
26
-		add_submenu_page( 'lasso-editor', __( 'Settings', 'lasso' ), __( 'Settings', 'lasso' ), 'manage_options', 'lasso-editor-settings', array( $this, 'settings' ) );
26
+		add_submenu_page('lasso-editor', __('Settings', 'lasso'), __('Settings', 'lasso'), 'manage_options', 'lasso-editor-settings', array($this, 'settings'));
27 27
 
28 28
 	}
29 29
 
@@ -45,26 +45,26 @@  discard block
 block discarded – undo
45 45
 	function process_settings() {
46 46
 
47 47
 		// bail out if current user isn't and administrator and they are not logged in
48
-		if ( !current_user_can( 'manage_options' ) || !is_user_logged_in() )
48
+		if (!current_user_can('manage_options') || !is_user_logged_in())
49 49
 			return;
50 50
 
51
-		if ( isset( $_POST['action'] ) && 'lasso-editor-settings' == $_POST['action'] && check_admin_referer( 'nonce', 'lasso_editor_settings' ) ) {
51
+		if (isset($_POST['action']) && 'lasso-editor-settings' == $_POST['action'] && check_admin_referer('nonce', 'lasso_editor_settings')) {
52 52
 
53
-			$options = isset( $_POST['lasso_editor'] ) ? $_POST['lasso_editor'] : false;
53
+			$options = isset($_POST['lasso_editor']) ? $_POST['lasso_editor'] : false;
54 54
 			
55 55
 			$arr = $options['allowed_post_types'];
56
-			$options = array_map( 'sanitize_text_field', $options );
57
-			$options['allowed_post_types'] = array_keys( $arr);
56
+			$options = array_map('sanitize_text_field', $options);
57
+			$options['allowed_post_types'] = array_keys($arr);
58 58
 
59 59
 			
60 60
 
61
-			if ( function_exists( 'is_multisite' ) && is_multisite() ) {
61
+			if (function_exists('is_multisite') && is_multisite()) {
62 62
 
63
-				update_site_option( 'lasso_editor', $options );
63
+				update_site_option('lasso_editor', $options);
64 64
 
65 65
 			} else {
66 66
 
67
-				update_option( 'lasso_editor', $options );
67
+				update_option('lasso_editor', $options);
68 68
 			}
69 69
 
70 70
 			wp_send_json_success();
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 	}
81 81
 	
82 82
 	function create_section_for_color_picker($id, $title, $defvalue) { 
83
-		$color_value = lasso_editor_get_option( $id, 'lasso_editor',$defvalue );
83
+		$color_value = lasso_editor_get_option($id, 'lasso_editor', $defvalue);
84 84
 	 
85 85
 		echo '<div lass="lasso-editor-settings--option-inner">'."\n";
86 86
 		echo '<label>'.$title.'</label>';
@@ -95,41 +95,41 @@  discard block
 block discarded – undo
95 95
 	 */
96 96
 	function lasso_editor_settings_form() {
97 97
 
98
-		if ( !is_user_logged_in() )
98
+		if (!is_user_logged_in())
99 99
 			return;
100 100
 
101
-		$article_object   = lasso_editor_get_option( 'article_class', 'lasso_editor' );
102
-		$featImgClass    = lasso_editor_get_option( 'featimg_class', 'lasso_editor' );
103
-		$titleClass    = lasso_editor_get_option( 'title_class', 'lasso_editor' );
104
-
105
-		$post_new_disabled   = lasso_editor_get_option( 'post_adding_disabled', 'lasso_editor' );
106
-		$save_to_post_disabled  = lasso_editor_get_option( 'post_save_disabled', 'lasso_editor' );
107
-		$edit_post_disabled  = lasso_editor_get_option( 'post_edit_disabled', 'lasso_editor' );
108
-		$post_settings_disabled = lasso_editor_get_option( 'post_settings_disabled', 'lasso_editor' );
109
-		$allow_change_date = lasso_editor_get_option( 'allow_change_date', 'lasso_editor' );
110
-		$allow_new_category = lasso_editor_get_option( 'allow_new_category', 'lasso_editor' );
111
-		$shortcodify_disabled  = lasso_editor_get_option( 'shortcodify_disabled', 'lasso_editor' );
112
-		$enable_autosave  = lasso_editor_get_option( 'enable_autosave', 'lasso_editor' );
113
-
114
-		$use_old_ui      = lasso_editor_get_option( 'use_old_ui', 'lasso_editor' );
115
-		$toolbar_headings      = lasso_editor_get_option( 'toolbar_headings', 'lasso_editor' );
116
-		$toolbar_headings_h4      = lasso_editor_get_option( 'toolbar_headings_h4', 'lasso_editor' );
117
-		$toolbar_list      = lasso_editor_get_option( 'toolbar_list', 'lasso_editor' );
118
-		$toolbar_show_color      = lasso_editor_get_option( 'toolbar_show_color', 'lasso_editor' );
119
-		$toolbar_show_alignment  = lasso_editor_get_option( 'toolbar_show_alignment', 'lasso_editor' );
101
+		$article_object = lasso_editor_get_option('article_class', 'lasso_editor');
102
+		$featImgClass = lasso_editor_get_option('featimg_class', 'lasso_editor');
103
+		$titleClass = lasso_editor_get_option('title_class', 'lasso_editor');
104
+
105
+		$post_new_disabled   = lasso_editor_get_option('post_adding_disabled', 'lasso_editor');
106
+		$save_to_post_disabled  = lasso_editor_get_option('post_save_disabled', 'lasso_editor');
107
+		$edit_post_disabled  = lasso_editor_get_option('post_edit_disabled', 'lasso_editor');
108
+		$post_settings_disabled = lasso_editor_get_option('post_settings_disabled', 'lasso_editor');
109
+		$allow_change_date = lasso_editor_get_option('allow_change_date', 'lasso_editor');
110
+		$allow_new_category = lasso_editor_get_option('allow_new_category', 'lasso_editor');
111
+		$shortcodify_disabled = lasso_editor_get_option('shortcodify_disabled', 'lasso_editor');
112
+		$enable_autosave = lasso_editor_get_option('enable_autosave', 'lasso_editor');
113
+
114
+		$use_old_ui = lasso_editor_get_option('use_old_ui', 'lasso_editor');
115
+		$toolbar_headings = lasso_editor_get_option('toolbar_headings', 'lasso_editor');
116
+		$toolbar_headings_h4 = lasso_editor_get_option('toolbar_headings_h4', 'lasso_editor');
117
+		$toolbar_list = lasso_editor_get_option('toolbar_list', 'lasso_editor');
118
+		$toolbar_show_color      = lasso_editor_get_option('toolbar_show_color', 'lasso_editor');
119
+		$toolbar_show_alignment  = lasso_editor_get_option('toolbar_show_alignment', 'lasso_editor');
120 120
 		
121
-		$objectsNoSave  	= lasso_editor_get_option('dont_save', 'lasso_editor');
122
-		$objectsNonEditable  	= lasso_editor_get_option('non_editable', 'lasso_editor');
121
+		$objectsNoSave = lasso_editor_get_option('dont_save', 'lasso_editor');
122
+		$objectsNonEditable = lasso_editor_get_option('non_editable', 'lasso_editor');
123 123
 		$disable_tour = lasso_editor_get_option('disable_tour', 'lasso_editor');
124 124
 		$show_ignored_items = lasso_editor_get_option('show_ignored_items', 'lasso_editor');
125 125
 		$save_using_rest_disabled = lasso_editor_get_option('save_using_rest_disabled', 'lasso_editor');
126 126
 		
127
-		$default_post_types = apply_filters( 'lasso_allowed_post_types', array( 'post', 'page'));
128
-		$allowed_post_types = lasso_editor_get_option( 'allowed_post_types', 'lasso_editor',  $default_post_types);
127
+		$default_post_types = apply_filters('lasso_allowed_post_types', array('post', 'page'));
128
+		$allowed_post_types = lasso_editor_get_option('allowed_post_types', 'lasso_editor', $default_post_types);
129 129
 		
130 130
 		$links_editable = lasso_editor_get_option('links_editable', 'lasso_editor', false);
131
-		$bold_tag = lasso_editor_get_option( 'bold_tag', 'lasso_editor',  "b");
132
-		$i_tag = lasso_editor_get_option( 'i_tag', 'lasso_editor',  "i");
131
+		$bold_tag = lasso_editor_get_option('bold_tag', 'lasso_editor', "b");
132
+		$i_tag = lasso_editor_get_option('i_tag', 'lasso_editor', "i");
133 133
 		
134 134
 		// do we support pending status
135 135
 		$no_pending_status = lasso_editor_get_option('no_pending_status', 'lasso_editor');
@@ -144,31 +144,31 @@  discard block
 block discarded – undo
144 144
 ?>
145 145
 		<div class="wrap">
146 146
 
147
-	    	<h2><?php _e( 'Editus Settings', 'lasso' );?></h2>
147
+	    	<h2><?php _e('Editus Settings', 'lasso'); ?></h2>
148 148
 
149 149
 			<form id="lasso-editor-settings-form" class="lasso--form-settings" method="post" enctype="multipart/form-data">
150 150
 
151
-				<?php do_action('lasso_settings_before');?>
151
+				<?php do_action('lasso_settings_before'); ?>
152 152
 				
153 153
 				
154 154
 				
155
-				<h3><?php _e( 'Enable for:', 'lasso' );?></h3>
155
+				<h3><?php _e('Enable for:', 'lasso'); ?></h3>
156 156
 				<div class="lasso-editor-settings--option-wrap">
157 157
 					<div class="lasso-editor-settings--option-inner">
158 158
 						
159
-						<span class="lasso--setting-description"><?php _e( 'Enable Editus for the following post types.', 'lasso' );?></span>
159
+						<span class="lasso--setting-description"><?php _e('Enable Editus for the following post types.', 'lasso'); ?></span>
160 160
 						<?php
161 161
 						$args = array(
162 162
 							'public'   => true
163 163
 						);
164 164
 						 
165
-						$allowed_post_types = apply_filters( 'lasso_allowed_post_types', $allowed_post_types );
166
-						$post_types = get_post_types( $args, 'objects' );
165
+						$allowed_post_types = apply_filters('lasso_allowed_post_types', $allowed_post_types);
166
+						$post_types = get_post_types($args, 'objects');
167 167
 						 
168
-						foreach ( $post_types  as $post_type ) {
168
+						foreach ($post_types  as $post_type) {
169 169
 						   if ($post_type->name == 'attachment') continue;
170
-						   $checked ="";
171
-						   if (  in_array( $post_type->name, $allowed_post_types )  ) {
170
+						   $checked = "";
171
+						   if (in_array($post_type->name, $allowed_post_types)) {
172 172
 								$checked = 'checked="checked"';
173 173
 						   }
174 174
 						   echo '<label><input type="checkbox" '.$checked.' name="lasso_editor[allowed_post_types]['.$post_type->name.']" id="lasso_editor[allowed_post_types]['.$post_type->name.']" >'.$post_type->name.'</label>';
@@ -178,111 +178,111 @@  discard block
 block discarded – undo
178 178
 				</div>
179 179
 				
180 180
 
181
-				<h3><?php _e( 'Internal Settings', 'lasso' );?></h3>
181
+				<h3><?php _e('Internal Settings', 'lasso'); ?></h3>
182 182
 				<div class="lasso-editor-settings--option-wrap">
183 183
 					<div class="lasso-editor-settings--option-inner" style="border:none;">
184
-						<label><?php _e( 'Article Class', 'lasso' );?></label>
185
-						<span class="lasso--setting-description"><?php _e( 'Provide the CSS class (including the preceding dot) of container that holds the post. This should be the first parent container class that holds the_content.', 'lasso' );?></span>
186
-						<input type="text" name="lasso_editor[article_class]" id="lasso_editor[article_class]" value="<?php echo esc_attr( $article_object );?>" placeholder=".entry-content">
184
+						<label><?php _e('Article Class', 'lasso'); ?></label>
185
+						<span class="lasso--setting-description"><?php _e('Provide the CSS class (including the preceding dot) of container that holds the post. This should be the first parent container class that holds the_content.', 'lasso'); ?></span>
186
+						<input type="text" name="lasso_editor[article_class]" id="lasso_editor[article_class]" value="<?php echo esc_attr($article_object); ?>" placeholder=".entry-content">
187 187
 					</div>
188 188
 				
189 189
 					<div class="lasso-editor-settings--option-inner" style="border:none;">
190
-						<label><?php _e( 'Featured Image Class', 'lasso' );?></label>
191
-						<span class="lasso--setting-description"><?php _e( 'Provide the CSS class that uses a featured image as a background image. This currently only supports themes that have the featured image set as background image.', 'lasso' );?></span>
192
-						<input type="text" name="lasso_editor[featimg_class]" id="lasso_editor[featimg_class]" value="<?php echo esc_attr( $featImgClass );?>" placeholder=".entry-content">
190
+						<label><?php _e('Featured Image Class', 'lasso'); ?></label>
191
+						<span class="lasso--setting-description"><?php _e('Provide the CSS class that uses a featured image as a background image. This currently only supports themes that have the featured image set as background image.', 'lasso'); ?></span>
192
+						<input type="text" name="lasso_editor[featimg_class]" id="lasso_editor[featimg_class]" value="<?php echo esc_attr($featImgClass); ?>" placeholder=".entry-content">
193 193
 					</div>
194 194
 				
195 195
 					<div class="lasso-editor-settings--option-inner" style="border:none;">
196
-						<label><?php _e( 'Article Title Class', 'lasso' );?></label>
197
-						<span class="lasso--setting-description"><?php _e( 'Provide the CSS class for the post title. This will enable you to update the title of the post by clicking and typing.', 'lasso' );?></span>
198
-						<input type="text" name="lasso_editor[title_class]" id="lasso_editor[title_class]" value="<?php echo esc_attr( $titleClass );?>" placeholder=".entry-content">
196
+						<label><?php _e('Article Title Class', 'lasso'); ?></label>
197
+						<span class="lasso--setting-description"><?php _e('Provide the CSS class for the post title. This will enable you to update the title of the post by clicking and typing.', 'lasso'); ?></span>
198
+						<input type="text" name="lasso_editor[title_class]" id="lasso_editor[title_class]" value="<?php echo esc_attr($titleClass); ?>" placeholder=".entry-content">
199 199
 					</div>
200 200
 				
201 201
 					<div class="lasso-editor-settings--option-inner" style="border:none;">
202
-						<label><?php _e( 'Ignored Items to Save', 'lasso' );?></label>
203
-						<span class="lasso--setting-description"><?php _e( 'If your post container holds additional markup, list the css class names (comma separated, including the dot) of those items. When you enter the editor, Editus will remove (NOT delete) these items so that it does not save them as HTML.', 'lasso' );?></span>
204
-						<textarea name="lasso_editor[dont_save]" id="lasso_editor[dont_save]" placeholder=".classname, .another-class"><?php echo esc_attr( $objectsNoSave );?></textarea>
202
+						<label><?php _e('Ignored Items to Save', 'lasso'); ?></label>
203
+						<span class="lasso--setting-description"><?php _e('If your post container holds additional markup, list the css class names (comma separated, including the dot) of those items. When you enter the editor, Editus will remove (NOT delete) these items so that it does not save them as HTML.', 'lasso'); ?></span>
204
+						<textarea name="lasso_editor[dont_save]" id="lasso_editor[dont_save]" placeholder=".classname, .another-class"><?php echo esc_attr($objectsNoSave); ?></textarea>
205 205
 					</div>
206 206
 				
207 207
 					<div class="lasso-editor-settings--option-inner" style="border:none;">
208
-						<label><?php _e( 'Read Only Items', 'lasso' );?></label>
209
-						<span class="lasso--setting-description"><?php _e( 'If your post has items that should not be editable, list the css class names (comma separated, including the dot) of those items.', 'lasso' );?></span>
210
-						<textarea name="lasso_editor[non_editable]" id="lasso_editor[non_editable]" placeholder=".classname, .another-class"><?php echo esc_attr( $objectsNonEditable );?></textarea>
208
+						<label><?php _e('Read Only Items', 'lasso'); ?></label>
209
+						<span class="lasso--setting-description"><?php _e('If your post has items that should not be editable, list the css class names (comma separated, including the dot) of those items.', 'lasso'); ?></span>
210
+						<textarea name="lasso_editor[non_editable]" id="lasso_editor[non_editable]" placeholder=".classname, .another-class"><?php echo esc_attr($objectsNonEditable); ?></textarea>
211 211
 					</div>
212 212
 				
213 213
 					<div class="lasso-editor-settings--option-inner" >
214
-						<input type="checkbox" class="checkbox" name="lasso_editor[show_ignored_items]" id="lasso_editor[show_ignored_items]" <?php echo checked( $show_ignored_items, 'on' );?> >
215
-						<label for="lasso_editor[show_ignored_items]"> <?php _e( 'Show Ignored Items', 'lasso' );?></label>
216
-						<span class="lasso--setting-description"><?php _e( 'By default the ignored items are hidden. Check this to show ignored items while keeping them uneditable.', 'lasso' );?></span>
214
+						<input type="checkbox" class="checkbox" name="lasso_editor[show_ignored_items]" id="lasso_editor[show_ignored_items]" <?php echo checked($show_ignored_items, 'on'); ?> >
215
+						<label for="lasso_editor[show_ignored_items]"> <?php _e('Show Ignored Items', 'lasso'); ?></label>
216
+						<span class="lasso--setting-description"><?php _e('By default the ignored items are hidden. Check this to show ignored items while keeping them uneditable.', 'lasso'); ?></span>
217 217
 					</div>
218 218
 				</div>
219 219
 
220
-				<h3><?php _e( 'Editor UI', 'lasso' );?></h3>
220
+				<h3><?php _e('Editor UI', 'lasso'); ?></h3>
221 221
 				<div class="lasso-editor-settings--option-wrap">
222 222
 					<div class="lasso-editor-settings--option-inner" style="border:none;">
223
-						<input type="checkbox" class="checkbox" name="lasso_editor[use_old_ui]" id="lasso_editor_use_old_ui" <?php echo checked( $use_old_ui, 'on' );?> >
224
-						<label for="lasso_editor[use_old_ui]"><?php _e( 'Use the Old Toolbar', 'lasso' );?></label>
225
-						<span class="lasso--setting-description"><?php _e( 'Use this option to disable the new color options and use the pre-1.0 toolbar.', 'lasso' );?></span>
223
+						<input type="checkbox" class="checkbox" name="lasso_editor[use_old_ui]" id="lasso_editor_use_old_ui" <?php echo checked($use_old_ui, 'on'); ?> >
224
+						<label for="lasso_editor[use_old_ui]"><?php _e('Use the Old Toolbar', 'lasso'); ?></label>
225
+						<span class="lasso--setting-description"><?php _e('Use this option to disable the new color options and use the pre-1.0 toolbar.', 'lasso'); ?></span>
226 226
 					</div>
227 227
 				    <div id="lasso-editor-settings--colors">
228 228
 					<?php
229
-					self::create_section_for_color_picker('button-color1', _e( 'Editor Bar Color Top', 'lasso' ), '#0000ff');
230
-					self::create_section_for_color_picker('button-color2', _e( 'Editor Bar Color Bottom', 'lasso' ), '#000030');
231
-					self::create_section_for_color_picker('dialog-color', _e( 'Dialog Color', 'lasso' ), '#000055');
232
-					self::create_section_for_color_picker('text-color', _e( 'Icon/Text Color', 'lasso' ), '#ffffff');
229
+					self::create_section_for_color_picker('button-color1', _e('Editor Bar Color Top', 'lasso'), '#0000ff');
230
+					self::create_section_for_color_picker('button-color2', _e('Editor Bar Color Bottom', 'lasso'), '#000030');
231
+					self::create_section_for_color_picker('dialog-color', _e('Dialog Color', 'lasso'), '#000055');
232
+					self::create_section_for_color_picker('text-color', _e('Icon/Text Color', 'lasso'), '#ffffff');
233 233
 					?>
234
-					<button type="button" id="lasso-editor-settings--default-colors" ><?php _e( 'Default Colors', 'lasso' );?></button>
234
+					<button type="button" id="lasso-editor-settings--default-colors" ><?php _e('Default Colors', 'lasso'); ?></button>
235 235
 				    <div style="height:50px;"></div>
236 236
 					</div>
237 237
 					<div class="lasso-editor-settings--option-inner" style="border:none;">
238
-						<input type="checkbox" class="checkbox" name="lasso_editor[toolbar_headings]" id="lasso_editor[toolbar_headings]" <?php echo checked( $toolbar_headings, 'on' );?> >
239
-						<label for="lasso_editor[toolbar_headings]"><?php _e( 'Enable H2 and H3 Buttons', 'lasso' );?></label>
240
-						<span class="lasso--setting-description"><?php _e( 'Show the buttons to set H2 and H3 settings.', 'lasso' );?></span>
238
+						<input type="checkbox" class="checkbox" name="lasso_editor[toolbar_headings]" id="lasso_editor[toolbar_headings]" <?php echo checked($toolbar_headings, 'on'); ?> >
239
+						<label for="lasso_editor[toolbar_headings]"><?php _e('Enable H2 and H3 Buttons', 'lasso'); ?></label>
240
+						<span class="lasso--setting-description"><?php _e('Show the buttons to set H2 and H3 settings.', 'lasso'); ?></span>
241 241
 
242 242
 					</div>
243 243
 					<div class="lasso-editor-settings--option-inner" style="border:none;">
244
-						<input type="checkbox" class="checkbox" name="lasso_editor[toolbar_headings_h4]" id="lasso_editor[toolbar_headings_h4]" <?php echo checked( $toolbar_headings_h4, 'on' );?> >
245
-						<label for="lasso_editor[toolbar_headings_h4]"><?php _e( 'Enable H4/H5/H6 Buttons', 'lasso' );?></label>
246
-						<span class="lasso--setting-description"><?php _e( 'Show the buttons to set H4/H5/H6 settings.', 'lasso' );?></span>
244
+						<input type="checkbox" class="checkbox" name="lasso_editor[toolbar_headings_h4]" id="lasso_editor[toolbar_headings_h4]" <?php echo checked($toolbar_headings_h4, 'on'); ?> >
245
+						<label for="lasso_editor[toolbar_headings_h4]"><?php _e('Enable H4/H5/H6 Buttons', 'lasso'); ?></label>
246
+						<span class="lasso--setting-description"><?php _e('Show the buttons to set H4/H5/H6 settings.', 'lasso'); ?></span>
247 247
 
248 248
 					</div>
249 249
 					
250 250
 					<div class="lasso-editor-settings--option-inner" style="border:none;">
251
-						<input type="checkbox" class="checkbox" name="lasso_editor[toolbar_list]" id="lasso_editor[toolbar_list]" <?php echo checked( $toolbar_list, 'on' );?> >
252
-						<label for="lasso_editor[toolbar_list]"><?php _e( 'Enabled OL/UL Buttons', 'lasso' );?></label>
253
-						<span class="lasso--setting-description"><?php _e( 'Show the buttons to create Ordered and Unordered Lists from text selection.', 'lasso' );?></span>
251
+						<input type="checkbox" class="checkbox" name="lasso_editor[toolbar_list]" id="lasso_editor[toolbar_list]" <?php echo checked($toolbar_list, 'on'); ?> >
252
+						<label for="lasso_editor[toolbar_list]"><?php _e('Enabled OL/UL Buttons', 'lasso'); ?></label>
253
+						<span class="lasso--setting-description"><?php _e('Show the buttons to create Ordered and Unordered Lists from text selection.', 'lasso'); ?></span>
254 254
 					</div>
255 255
 					
256 256
 					<div class="lasso-editor-settings--option-inner" style="border:none;">
257
-						<input type="checkbox" class="checkbox" name="lasso_editor[toolbar_show_color]" id="lasso_editor[toolbar_show_color]" <?php echo checked( $toolbar_show_color, 'on' );?> >
258
-						<label for="lasso_editor[toolbar_show_color]"><?php _e( 'Enable Text Color Buttons', 'lasso' );?></label>
259
-						<span class="lasso--setting-description"><?php _e( 'Show the buttons to set text colors.', 'lasso' );?></span>
257
+						<input type="checkbox" class="checkbox" name="lasso_editor[toolbar_show_color]" id="lasso_editor[toolbar_show_color]" <?php echo checked($toolbar_show_color, 'on'); ?> >
258
+						<label for="lasso_editor[toolbar_show_color]"><?php _e('Enable Text Color Buttons', 'lasso'); ?></label>
259
+						<span class="lasso--setting-description"><?php _e('Show the buttons to set text colors.', 'lasso'); ?></span>
260 260
 
261 261
 					</div>
262 262
 					<div class="lasso-editor-settings--option-inner" style="border:none;">
263
-						<input type="checkbox" class="checkbox" name="lasso_editor[toolbar_show_alignment]" id="lasso_editor[toolbar_show_alignment]" <?php echo checked( $toolbar_show_alignment, 'on' );?> >
264
-						<label for="lasso_editor[toolbar_show_alignment]"><?php _e( 'Enable Text Align Buttons', 'lasso' );?></label>
265
-						<span class="lasso--setting-description"><?php _e( 'Show the buttons to set text alignment.', 'lasso' );?></span>
263
+						<input type="checkbox" class="checkbox" name="lasso_editor[toolbar_show_alignment]" id="lasso_editor[toolbar_show_alignment]" <?php echo checked($toolbar_show_alignment, 'on'); ?> >
264
+						<label for="lasso_editor[toolbar_show_alignment]"><?php _e('Enable Text Align Buttons', 'lasso'); ?></label>
265
+						<span class="lasso--setting-description"><?php _e('Show the buttons to set text alignment.', 'lasso'); ?></span>
266 266
 
267 267
 					</div>
268 268
 					
269 269
 					<div class="lasso-editor-settings--option-inner" style="border:none;">
270
-						<input type="checkbox" class="checkbox" name="lasso_editor[links_editable]" id="lasso_editor[links_editable]" <?php echo checked( $links_editable, 'on' );?> >
271
-						<label for="lasso_editor[links_editable]"><?php _e( 'Make links editable under the Editing Mode', 'lasso' );?></label>
272
-						<span class="lasso--setting-description"><?php _e( 'Make links editable under the Editing Mode. Turning this on will make the links non-clickable while editing.', 'lasso' );?></span>
270
+						<input type="checkbox" class="checkbox" name="lasso_editor[links_editable]" id="lasso_editor[links_editable]" <?php echo checked($links_editable, 'on'); ?> >
271
+						<label for="lasso_editor[links_editable]"><?php _e('Make links editable under the Editing Mode', 'lasso'); ?></label>
272
+						<span class="lasso--setting-description"><?php _e('Make links editable under the Editing Mode. Turning this on will make the links non-clickable while editing.', 'lasso'); ?></span>
273 273
 
274 274
 					</div>
275 275
 					<div class="lasso-editor-settings--option-inner">
276
-					    <label for="lasso_editor[insert_comp_ui]"> <?php _e( 'Insert Component UI', 'lasso' );?></label>
277
-						<span class="lasso--setting-description"><?php _e( 'UI mechanism to insert components', 'lasso' );?></span>
276
+					    <label for="lasso_editor[insert_comp_ui]"> <?php _e('Insert Component UI', 'lasso'); ?></label>
277
+						<span class="lasso--setting-description"><?php _e('UI mechanism to insert components', 'lasso'); ?></span>
278 278
 						<div class="lasso-editor-settings--option-inner" style="border:none;">
279
-					       <input type="radio" name="lasso_editor[insert_comp_ui]" value='drag' <?php echo checked( $insert_comp_ui, 'drag' );?>> <?php _e( 'Drag and Drop', 'lasso' );?>
279
+					       <input type="radio" name="lasso_editor[insert_comp_ui]" value='drag' <?php echo checked($insert_comp_ui, 'drag'); ?>> <?php _e('Drag and Drop', 'lasso'); ?>
280 280
 						</div>
281 281
 						<div class="lasso-editor-settings--option-inner" style="border:none;">
282
-						<input type="radio" name="lasso_editor[insert_comp_ui]" value="click" <?php echo checked( $insert_comp_ui, 'click' );?>> <?php _e( 'Click', 'lasso' );?>
282
+						<input type="radio" name="lasso_editor[insert_comp_ui]" value="click" <?php echo checked($insert_comp_ui, 'click'); ?>> <?php _e('Click', 'lasso'); ?>
283 283
 						</div>
284 284
 						<div class="lasso-editor-settings--option-inner" style="border:none;">
285
-						<input type="radio" name="lasso_editor[insert_comp_ui]" value="mediumcom" <?php echo checked( $insert_comp_ui, 'mediumcom' );?>> <?php _e( 'Auto Button on Empty Paragraph. medium.com-like UI.', 'lasso' );?>
285
+						<input type="radio" name="lasso_editor[insert_comp_ui]" value="mediumcom" <?php echo checked($insert_comp_ui, 'mediumcom'); ?>> <?php _e('Auto Button on Empty Paragraph. medium.com-like UI.', 'lasso'); ?>
286 286
 						</div>
287 287
 					</div>
288 288
 				</div>
@@ -291,101 +291,101 @@  discard block
 block discarded – undo
291 291
 				
292 292
 				
293 293
 
294
-				<h3><?php _e( 'Post Settings UI', 'lasso' );?></h3>
294
+				<h3><?php _e('Post Settings UI', 'lasso'); ?></h3>
295 295
 				<div class="lasso-editor-settings--option-wrap"  >
296 296
 					<div class="lasso-editor-settings--option-inner" style="border:none">
297
-						<input type="checkbox" class="checkbox" name="lasso_editor[post_settings_disabled]" id="lasso_editor[post_settings_disabled]" <?php echo checked( $post_settings_disabled, 'on' );?> >
298
-						<label for="lasso_editor[post_settings_disabled]"> <?php _e( 'Disable Post Settings', 'lasso' );?></label>
299
-						<span class="lasso--setting-description"><?php _e( 'Check this to disable users from being able to edit post settings from the front-end.', 'lasso' );?></span>
297
+						<input type="checkbox" class="checkbox" name="lasso_editor[post_settings_disabled]" id="lasso_editor[post_settings_disabled]" <?php echo checked($post_settings_disabled, 'on'); ?> >
298
+						<label for="lasso_editor[post_settings_disabled]"> <?php _e('Disable Post Settings', 'lasso'); ?></label>
299
+						<span class="lasso--setting-description"><?php _e('Check this to disable users from being able to edit post settings from the front-end.', 'lasso'); ?></span>
300 300
 					</div>
301 301
 					
302 302
 					<div class="lasso-editor-settings--option-inner" style="border:none">
303
-						<input type="checkbox" class="checkbox" name="lasso_editor[allow_change_date]" id="lasso_editor[allow_change_date]" <?php echo checked( $allow_change_date, 'on' );?> >
304
-						<label for="lasso_editor[allow_change_date]"> <?php _e( 'Allow Changing Post Date', 'lasso' );?></label>
305
-						<span class="lasso--setting-description"><?php _e( 'Add the date selector to change the post\'s date to the Post Setting dialog', 'lasso' );?></span>
303
+						<input type="checkbox" class="checkbox" name="lasso_editor[allow_change_date]" id="lasso_editor[allow_change_date]" <?php echo checked($allow_change_date, 'on'); ?> >
304
+						<label for="lasso_editor[allow_change_date]"> <?php _e('Allow Changing Post Date', 'lasso'); ?></label>
305
+						<span class="lasso--setting-description"><?php _e('Add the date selector to change the post\'s date to the Post Setting dialog', 'lasso'); ?></span>
306 306
 					</div>
307 307
 					
308 308
 					<div class="lasso-editor-settings--option-inner" style="border:none">
309
-						<input type="checkbox" class="checkbox" name="lasso_editor[allow_new_category]" id="lasso_editor[allow_new_category]" <?php echo checked( $allow_new_category, 'on' );?> >
310
-						<label for="lasso_editor[allow_new_category]"> <?php _e( 'Allow Adding New Category', 'lasso' );?></label>
311
-						<span class="lasso--setting-description"><?php _e( 'Add the user to create new, previously non-existing categories for posts.', 'lasso' );?></span>
309
+						<input type="checkbox" class="checkbox" name="lasso_editor[allow_new_category]" id="lasso_editor[allow_new_category]" <?php echo checked($allow_new_category, 'on'); ?> >
310
+						<label for="lasso_editor[allow_new_category]"> <?php _e('Allow Adding New Category', 'lasso'); ?></label>
311
+						<span class="lasso--setting-description"><?php _e('Add the user to create new, previously non-existing categories for posts.', 'lasso'); ?></span>
312 312
 					</div>
313 313
 					
314 314
 					<div class="lasso-editor-settings--option-inner" style="border:none">
315
-						<input type="checkbox" class="checkbox" name="lasso_editor[no_pending_status]" id="lasso_editor[no_pending_status]" <?php echo checked( $no_pending_status, 'on' );?> >
316
-						<label for="lasso_editor[no_pending_status]"> <?php _e( 'Do Not Allow "Pending" Status', 'lasso' );?></label>
317
-						<span class="lasso--setting-description"><?php _e( 'Remove the Option to Set the Status to Pending.', 'lasso' );?></span>
315
+						<input type="checkbox" class="checkbox" name="lasso_editor[no_pending_status]" id="lasso_editor[no_pending_status]" <?php echo checked($no_pending_status, 'on'); ?> >
316
+						<label for="lasso_editor[no_pending_status]"> <?php _e('Do Not Allow "Pending" Status', 'lasso'); ?></label>
317
+						<span class="lasso--setting-description"><?php _e('Remove the Option to Set the Status to Pending.', 'lasso'); ?></span>
318 318
 					</div>
319 319
 					
320 320
 					<div class="lasso-editor-settings--option-inner" style="border:none">
321
-						<input type="checkbox" class="checkbox" name="lasso_editor[no_url_setting]" id="lasso_editor[no_slug_setting]" <?php echo checked( $no_url_setting, 'on' );?> >
322
-						<label for="lasso_editor[no_url_setting]"> <?php _e( 'Remove POST URL Option', 'lasso' );?></label>
323
-						<span class="lasso--setting-description"><?php _e( 'Remove the Option to Set the URL for the Post.', 'lasso' );?></span>
321
+						<input type="checkbox" class="checkbox" name="lasso_editor[no_url_setting]" id="lasso_editor[no_slug_setting]" <?php echo checked($no_url_setting, 'on'); ?> >
322
+						<label for="lasso_editor[no_url_setting]"> <?php _e('Remove POST URL Option', 'lasso'); ?></label>
323
+						<span class="lasso--setting-description"><?php _e('Remove the Option to Set the URL for the Post.', 'lasso'); ?></span>
324 324
 					</div>
325 325
 				
326 326
 					<div class="lasso-editor-settings--option-inner" >
327
-						<input type="checkbox" class="checkbox" name="lasso_editor[post_adding_disabled]" id="lasso_editor[post_adding_disabled]" <?php echo checked( $post_new_disabled, 'on' );?> >
328
-						<label for="lasso_editor[post_adding_disabled]"><?php _e( 'Disable Post Adding', 'lasso' );?></label>
329
-						<span class="lasso--setting-description"><?php _e( 'Check this box to disable users from being able to add new posts from the front-end.', 'lasso' );?></span>
327
+						<input type="checkbox" class="checkbox" name="lasso_editor[post_adding_disabled]" id="lasso_editor[post_adding_disabled]" <?php echo checked($post_new_disabled, 'on'); ?> >
328
+						<label for="lasso_editor[post_adding_disabled]"><?php _e('Disable Post Adding', 'lasso'); ?></label>
329
+						<span class="lasso--setting-description"><?php _e('Check this box to disable users from being able to add new posts from the front-end.', 'lasso'); ?></span>
330 330
 					</div>
331 331
 					
332 332
 
333 333
 				</div>
334 334
 				
335
-				<h3><?php _e( 'Misc', 'lasso' );?></h3>
335
+				<h3><?php _e('Misc', 'lasso'); ?></h3>
336 336
 				<div class="lasso-editor-settings--option-wrap">
337 337
 					<div class="lasso-editor-settings--option-inner" style="border:none">
338
-						<input type="checkbox" class="checkbox" name="lasso_editor[disable_tour]" id="lasso_editor[disable_tour]" <?php echo checked( $disable_tour, 'on' );?> >
339
-						<label for="lasso_editor[disable_tour]"> <?php _e( 'Do Not Show Tour Dialog', 'lasso' );?></label>
340
-						<span class="lasso--setting-description"><?php _e( 'Check this box to disable the tour dialog box for all users.', 'lasso' );?></span>
338
+						<input type="checkbox" class="checkbox" name="lasso_editor[disable_tour]" id="lasso_editor[disable_tour]" <?php echo checked($disable_tour, 'on'); ?> >
339
+						<label for="lasso_editor[disable_tour]"> <?php _e('Do Not Show Tour Dialog', 'lasso'); ?></label>
340
+						<span class="lasso--setting-description"><?php _e('Check this box to disable the tour dialog box for all users.', 'lasso'); ?></span>
341 341
 					</div>
342 342
 
343 343
 					<div class="lasso-editor-settings--option-inner" style="border:none">
344
-					    <label for="lasso_editor[bold_tag]"> <?php _e( '"Bold" Tag', 'lasso' );?></label>
345
-						<span class="lasso--setting-description"><?php _e( 'Choose the HTML tag used for the "Bold" style.', 'lasso' );?></span>
346
-					    <input type="radio" name="lasso_editor[bold_tag]" value='b' <?php echo checked( $bold_tag, 'b' );?>> b
347
-						<input type="radio" name="lasso_editor[bold_tag]" value="strong" <?php echo checked( $bold_tag, 'strong' );?>> strong
344
+					    <label for="lasso_editor[bold_tag]"> <?php _e('"Bold" Tag', 'lasso'); ?></label>
345
+						<span class="lasso--setting-description"><?php _e('Choose the HTML tag used for the "Bold" style.', 'lasso'); ?></span>
346
+					    <input type="radio" name="lasso_editor[bold_tag]" value='b' <?php echo checked($bold_tag, 'b'); ?>> b
347
+						<input type="radio" name="lasso_editor[bold_tag]" value="strong" <?php echo checked($bold_tag, 'strong'); ?>> strong
348 348
 					</div>
349 349
 					<div class="lasso-editor-settings--option-inner" >
350
-					    <label for="lasso_editor[i_tag]"> <?php _e( '"Italic" Tag', 'lasso' );?></label>
351
-						<span class="lasso--setting-description"><?php _e( 'Choose the HTML tag used for the "Italic" style.', 'lasso' );?></span>
352
-					    <input type="radio" name="lasso_editor[i_tag]" value='i' <?php echo checked( $i_tag, 'i' );?>> i
353
-						<input type="radio" name="lasso_editor[i_tag]" value="em" <?php echo checked( $i_tag, 'em' );?>> em
350
+					    <label for="lasso_editor[i_tag]"> <?php _e('"Italic" Tag', 'lasso'); ?></label>
351
+						<span class="lasso--setting-description"><?php _e('Choose the HTML tag used for the "Italic" style.', 'lasso'); ?></span>
352
+					    <input type="radio" name="lasso_editor[i_tag]" value='i' <?php echo checked($i_tag, 'i'); ?>> i
353
+						<input type="radio" name="lasso_editor[i_tag]" value="em" <?php echo checked($i_tag, 'em'); ?>> em
354 354
 					</div>
355 355
 				</div>
356 356
 
357
-				<h3><?php _e( 'Advanced', 'lasso' );?></h3>
357
+				<h3><?php _e('Advanced', 'lasso'); ?></h3>
358 358
 				<div class="lasso-editor-settings--option-wrap ">
359 359
 					<div class="lasso-editor-settings--option-inner" style="border:none">
360
-						<input type="checkbox" class="checkbox" name="lasso_editor[shortcodify_disabled]" id="lasso_editor[shortcodify_disabled]" <?php echo checked( $shortcodify_disabled, 'on' );?> >
361
-						<label for="lasso_editor[shortcodify_disabled]"><?php _e( 'Disable Aesop Component Conversion', 'lasso' );?></label>
362
-						<span class="lasso--setting-description"><?php _e( 'Check this box to disable the conversion process used on Aesop Story Engine components.', 'lasso' );?></span>
360
+						<input type="checkbox" class="checkbox" name="lasso_editor[shortcodify_disabled]" id="lasso_editor[shortcodify_disabled]" <?php echo checked($shortcodify_disabled, 'on'); ?> >
361
+						<label for="lasso_editor[shortcodify_disabled]"><?php _e('Disable Aesop Component Conversion', 'lasso'); ?></label>
362
+						<span class="lasso--setting-description"><?php _e('Check this box to disable the conversion process used on Aesop Story Engine components.', 'lasso'); ?></span>
363 363
 					</div>
364 364
 				
365 365
 					<div class="lasso-editor-settings--option-inner" style="border:none">
366
-						<input type="checkbox" class="checkbox" name="lasso_editor[enable_autosave]" id="lasso_editor[enable_autosave]" <?php echo checked( $enable_autosave, 'on' );?> >
367
-						<label for="lasso_editor[enable_autosave]"><?php _e( 'Enable Auto Save', 'lasso' );?></label>
368
-						<span class="lasso--setting-description"><?php _e( 'Check this box to enable auto save.', 'lasso' );?></span>
366
+						<input type="checkbox" class="checkbox" name="lasso_editor[enable_autosave]" id="lasso_editor[enable_autosave]" <?php echo checked($enable_autosave, 'on'); ?> >
367
+						<label for="lasso_editor[enable_autosave]"><?php _e('Enable Auto Save', 'lasso'); ?></label>
368
+						<span class="lasso--setting-description"><?php _e('Check this box to enable auto save.', 'lasso'); ?></span>
369 369
 					</div>
370 370
 				
371 371
 					<div class="lasso-editor-settings--option-inner" style="border:none">
372
-						<input type="checkbox" class="checkbox" name="lasso_editor[post_save_disabled]" id="lasso_editor[post_save_disabled]" <?php echo checked( $save_to_post_disabled, 'on' );?> >
373
-						<label for="lasso_editor[post_save_disabled]"><?php _e( 'Disable Post Saving', 'lasso' );?></label>
374
-						<span class="lasso--setting-description"><?php _e( 'By default the editor will update the database with the post or page it is being used on. Check this box to disable this. If you check this box, it is assumed that you will be using the provided filters to save your own content.', 'lasso' );?></span>
372
+						<input type="checkbox" class="checkbox" name="lasso_editor[post_save_disabled]" id="lasso_editor[post_save_disabled]" <?php echo checked($save_to_post_disabled, 'on'); ?> >
373
+						<label for="lasso_editor[post_save_disabled]"><?php _e('Disable Post Saving', 'lasso'); ?></label>
374
+						<span class="lasso--setting-description"><?php _e('By default the editor will update the database with the post or page it is being used on. Check this box to disable this. If you check this box, it is assumed that you will be using the provided filters to save your own content.', 'lasso'); ?></span>
375 375
 
376 376
 					</div>
377 377
 					
378 378
 					<div class="lasso-editor-settings--option-inner" style="border:none">
379
-						<input type="checkbox" class="checkbox" name="lasso_editor[post_edit_disabled]" id="lasso_editor[post_edit_disabled]" <?php echo checked( $edit_post_disabled, 'on' );?> >
380
-						<label for="lasso_editor[post_edit_disabled]"><?php _e( 'Disable Post Editing', 'lasso' );?></label>
381
-						<span class="lasso--setting-description"><?php _e( 'You may use this option if you only want to edit custom fields. Refer <a href="https://edituswp.com/editing-and-updating-custom-fields-from-frontend/">here</a> for more information. The custom fields you specify will be still editable under the editing mode.', 'lasso' );?></span>
379
+						<input type="checkbox" class="checkbox" name="lasso_editor[post_edit_disabled]" id="lasso_editor[post_edit_disabled]" <?php echo checked($edit_post_disabled, 'on'); ?> >
380
+						<label for="lasso_editor[post_edit_disabled]"><?php _e('Disable Post Editing', 'lasso'); ?></label>
381
+						<span class="lasso--setting-description"><?php _e('You may use this option if you only want to edit custom fields. Refer <a href="https://edituswp.com/editing-and-updating-custom-fields-from-frontend/">here</a> for more information. The custom fields you specify will be still editable under the editing mode.', 'lasso'); ?></span>
382 382
 
383 383
 					</div>
384 384
 				
385 385
 					<div class="lasso-editor-settings--option-inner">
386
-						<input type="checkbox" class="checkbox" name="lasso_editor[save_using_rest_disabled]" id="lasso_editor[save_using_rest_disabled]" <?php echo checked( $save_using_rest_disabled, 'on' );?> >
387
-						<label for="lasso_editor[save_using_rest_disabled]"><?php _e( "Don't Use REST API to Save", 'lasso' );?></label>
388
-						<span class="lasso--setting-description"><?php _e( 'By default the editor will use REST API to save posts. Check this box to use custom AJAX calls instead.', 'lasso' );?></span>
386
+						<input type="checkbox" class="checkbox" name="lasso_editor[save_using_rest_disabled]" id="lasso_editor[save_using_rest_disabled]" <?php echo checked($save_using_rest_disabled, 'on'); ?> >
387
+						<label for="lasso_editor[save_using_rest_disabled]"><?php _e("Don't Use REST API to Save", 'lasso'); ?></label>
388
+						<span class="lasso--setting-description"><?php _e('By default the editor will use REST API to save posts. Check this box to use custom AJAX calls instead.', 'lasso'); ?></span>
389 389
 
390 390
 					</div>
391 391
 				</div>
@@ -395,11 +395,11 @@  discard block
 block discarded – undo
395 395
 
396 396
 				<div class="lasso-editor-settings--submit">
397 397
 				    <input type="hidden" name="action" value="lasso-editor-settings" />
398
-				    <input type="submit" class="button-primary" value="<?php esc_attr_e( 'Save Settings', 'lasso' );?>" />
399
-					<?php wp_nonce_field( 'nonce', 'lasso_editor_settings' ); ?>
398
+				    <input type="submit" class="button-primary" value="<?php esc_attr_e('Save Settings', 'lasso'); ?>" />
399
+					<?php wp_nonce_field('nonce', 'lasso_editor_settings'); ?>
400 400
 				</div>
401 401
 				
402
-				<?php do_action('lasso_settings_after');?>
402
+				<?php do_action('lasso_settings_after'); ?>
403 403
 			</form>
404 404
 
405 405
 		</div><?php
Please login to merge, or discard this patch.