Completed
Push — master ( 62aa4b...3737f0 )
by
unknown
32s
created
lasso.php 1 patch
Spacing   +49 added lines, -49 removed lines patch added patch discarded remove patch
@@ -18,27 +18,27 @@  discard block
 block discarded – undo
18 18
  */
19 19
 
20 20
 // If this file is called directly, abort.
21
-if ( ! defined( 'WPINC' ) ) {
21
+if (!defined('WPINC')) {
22 22
 	die;
23 23
 }
24 24
 
25 25
 // Set some constants
26
-define( 'LASSO_VERSION', '1.4.3' );
27
-define( 'LASSO_DIR', plugin_dir_path( __FILE__ ) );
28
-define( 'LASSO_URL', plugins_url( '', __FILE__ ) );
29
-define( 'LASSO_FILE', __FILE__ );
26
+define('LASSO_VERSION', '1.4.3');
27
+define('LASSO_DIR', plugin_dir_path(__FILE__));
28
+define('LASSO_URL', plugins_url('', __FILE__));
29
+define('LASSO_FILE', __FILE__);
30 30
 
31 31
 /**
32 32
  * Load plugin if PHP version is 5.4 or later.
33 33
  */
34
-if ( version_compare( PHP_VERSION, '5.4.0', '>=' ) ) {
34
+if (version_compare(PHP_VERSION, '5.4.0', '>=')) {
35 35
 
36
-	include_once( LASSO_DIR . '/bootstrap.php' );
36
+	include_once(LASSO_DIR.'/bootstrap.php');
37 37
 
38 38
 } else {
39 39
 
40 40
 	add_action('admin_head', 'lasso_fail_notice');
41
-	function lasso_fail_notice(){
41
+	function lasso_fail_notice() {
42 42
 
43 43
 		printf('<div class="error"><p>Editus requires PHP 5.4 or higher.</p></div>');
44 44
 
@@ -46,11 +46,11 @@  discard block
 block discarded – undo
46 46
 }
47 47
 
48 48
 add_filter('register_post_type_args', 'lasso_show_in_rest', 10, 2);
49
-function lasso_show_in_rest($args, $post_type){
49
+function lasso_show_in_rest($args, $post_type) {
50 50
  
51
-    $allowed_post_types = lasso_editor_get_option( 'allowed_post_types', 'lasso_editor', array( ) );
52
-	$allowed_post_types = apply_filters( 'lasso_allowed_post_types', $allowed_post_types );
53
-	if (in_array( $post_type,$allowed_post_types)) {
51
+    $allowed_post_types = lasso_editor_get_option('allowed_post_types', 'lasso_editor', array( ));
52
+	$allowed_post_types = apply_filters('lasso_allowed_post_types', $allowed_post_types);
53
+	if (in_array($post_type, $allowed_post_types)) {
54 54
 		$args['show_in_rest'] = true;
55 55
 		if ($post_type != 'post' && $post_type != 'page') {
56 56
 			$args['rest_base'] = $post_type;
@@ -61,21 +61,21 @@  discard block
 block discarded – undo
61 61
 }
62 62
 
63 63
 
64
-function lasso_editor_get_option( $option, $section, $default = '' ) {
64
+function lasso_editor_get_option($option, $section, $default = '') {
65 65
 
66
-	if ( empty( $option ) )
66
+	if (empty($option))
67 67
 		return;
68 68
 
69
-	if ( function_exists( 'is_multisite' ) && is_multisite() ) {
69
+	if (function_exists('is_multisite') && is_multisite()) {
70 70
 
71
-		$options = get_site_option( $section );
71
+		$options = get_site_option($section);
72 72
 
73 73
 	} else {
74 74
 
75
-		$options = get_option( $section );
75
+		$options = get_option($section);
76 76
 	}
77 77
 
78
-	if ( isset( $options[$option] ) ) {
78
+	if (isset($options[$option])) {
79 79
 		return $options[$option];
80 80
 	}
81 81
 
@@ -88,17 +88,17 @@  discard block
 block discarded – undo
88 88
 ));
89 89
 
90 90
 // Gutenberg
91
-if( function_exists( 'is_gutenberg_page' ) ) {
92
-	function add_raw_to_post( $response, $post, $request ) {
91
+if (function_exists('is_gutenberg_page')) {
92
+	function add_raw_to_post($response, $post, $request) {
93 93
 		$response_data = $response->get_data();
94
-		if ( is_array( $response_data['content'] )) {
95
-			$response_data['content']['raw'] =  $post->post_content ;
96
-			$response->set_data( $response_data );
94
+		if (is_array($response_data['content'])) {
95
+			$response_data['content']['raw'] = $post->post_content;
96
+			$response->set_data($response_data);
97 97
 		}
98 98
 
99 99
 		return $response;
100 100
 	}
101
-	add_filter( "rest_prepare_post", 'add_raw_to_post', 10, 3 );
101
+	add_filter("rest_prepare_post", 'add_raw_to_post', 10, 3);
102 102
 }
103 103
 
104 104
 
@@ -106,32 +106,32 @@  discard block
 block discarded – undo
106 106
 //table codes to be added
107 107
 class editus_table {
108 108
     
109
-    public function __construct(){
109
+    public function __construct() {
110 110
         $add_table = lasso_editor_get_option('add_table', 'lasso_editor', false);
111 111
         if ($add_table) {
112
-            add_action('wp_enqueue_scripts', array($this,'scripts'));
112
+            add_action('wp_enqueue_scripts', array($this, 'scripts'));
113 113
             
114 114
         }
115 115
 	}
116 116
     
117 117
     function scripts()
118 118
     {
119
-        add_action('lasso_editor_controls_after_outside', array($this,'editus_table_edit_menu'));
120
-            add_filter('lasso_components',array($this,'editus_components_add_table'),10,1);
121
-            add_action( 'lasso_toolbar_components', array($this,'editus_toolbar_components_add_table'), 10 );
122
-            wp_enqueue_style( 'editus-table-style', LASSO_URL.  '/public/assets/css/editus-table-edit-public.css', LASSO_VERSION, true );
123
-            wp_enqueue_script( 'editus_table',  LASSO_URL. '/public/assets/js/editus-table-edit-public.js', array( 'jquery' ), LASSO_VERSION, true );
119
+        add_action('lasso_editor_controls_after_outside', array($this, 'editus_table_edit_menu'));
120
+            add_filter('lasso_components', array($this, 'editus_components_add_table'), 10, 1);
121
+            add_action('lasso_toolbar_components', array($this, 'editus_toolbar_components_add_table'), 10);
122
+            wp_enqueue_style('editus-table-style', LASSO_URL.'/public/assets/css/editus-table-edit-public.css', LASSO_VERSION, true);
123
+            wp_enqueue_script('editus_table', LASSO_URL.'/public/assets/js/editus-table-edit-public.js', array('jquery'), LASSO_VERSION, true);
124 124
     }
125 125
     
126 126
     function editus_table_edit_menu()
127 127
     { ?>
128 128
 
129 129
         <ul class='editus-table-menu'>
130
-          <li data-action="insertcol"><?php echo __('Insert Column','lasso')?></li>
131
-          <li data-action="insertrow"><?php echo __('Insert Row','lasso')?></li>
132
-          <li data-action="delcol"><?php echo __('Delete Column','lasso')?></li>
133
-          <li data-action="delrow"><?php echo __('Delete Row','lasso')?></li>
134
-          <li data-action="deltable"><?php echo __('Delete Table','lasso')?></li
130
+          <li data-action="insertcol"><?php echo __('Insert Column', 'lasso')?></li>
131
+          <li data-action="insertrow"><?php echo __('Insert Row', 'lasso')?></li>
132
+          <li data-action="delcol"><?php echo __('Delete Column', 'lasso')?></li>
133
+          <li data-action="delrow"><?php echo __('Delete Row', 'lasso')?></li>
134
+          <li data-action="deltable"><?php echo __('Delete Table', 'lasso')?></li
135 135
         </ul>
136 136
     <?php
137 137
     }
@@ -143,20 +143,20 @@  discard block
 block discarded – undo
143 143
     }
144 144
 
145 145
 
146
-    function editus_components_add_table( $array ){
146
+    function editus_components_add_table($array) {
147 147
         $custom = array(
148 148
                'htmltable' => array(
149
-                         'name'    => __('HTML Table','lasso'),
149
+                         'name'    => __('HTML Table', 'lasso'),
150 150
                           'content' => self::editus_html_table(),
151 151
                 )
152 152
         );
153
-        return array_merge( $array, $custom );
153
+        return array_merge($array, $custom);
154 154
     }
155 155
 
156 156
 
157 157
     function editus_toolbar_components_add_table( ) {
158 158
           ?>
159
-          <li data-type="htmltable" title="<?php esc_attr_e( 'HTML Table', 'lasso' );?>" class="quote lasso-toolbar--component__htmltable dashicons dashicons-grid-view"></li>
159
+          <li data-type="htmltable" title="<?php esc_attr_e('HTML Table', 'lasso'); ?>" class="quote lasso-toolbar--component__htmltable dashicons dashicons-grid-view"></li>
160 160
           <?php
161 161
     }
162 162
 }
@@ -169,27 +169,27 @@  discard block
 block discarded – undo
169 169
 //table codes to be added
170 170
 class editus_paragraph {
171 171
     
172
-    public function __construct(){
173
-        add_action('wp_enqueue_scripts', array($this,'scripts'));
172
+    public function __construct() {
173
+        add_action('wp_enqueue_scripts', array($this, 'scripts'));
174 174
 	}
175 175
     
176 176
     function scripts()
177 177
     {
178
-            add_action('lasso_editor_controls_after_outside', array($this,'editus_paragraph_style'));
179
-            add_filter('lasso_components',array($this,'editus_components_add_paragraph'),10,1);
180
-            add_action( 'lasso_toolbar_components', array($this,'editus_toolbar_components_add_paragraph'), 10 );
178
+            add_action('lasso_editor_controls_after_outside', array($this, 'editus_paragraph_style'));
179
+            add_filter('lasso_components', array($this, 'editus_components_add_paragraph'), 10, 1);
180
+            add_action('lasso_toolbar_components', array($this, 'editus_toolbar_components_add_paragraph'), 10);
181 181
             //wp_enqueue_style( 'editus-table-style', LASSO_URL.  '/public/assets/css/editus-table-edit-public.css', LASSO_VERSION, true );
182 182
             //wp_enqueue_script( 'editus_table',  LASSO_URL. '/public/assets/js/editus-table-edit-public.js', array( 'jquery' ), LASSO_VERSION, true );
183 183
     }
184 184
    
185
-    function editus_components_add_paragraph( $array ){
185
+    function editus_components_add_paragraph($array) {
186 186
         $custom = array(
187 187
                'htmlparagraph' => array(
188
-                         'name'    => __('HTML Paragraph','lasso'),
188
+                         'name'    => __('HTML Paragraph', 'lasso'),
189 189
                           'content' => self::editus_html_paragraph(),
190 190
                 )
191 191
         );
192
-        return array_merge( $array, $custom );
192
+        return array_merge($array, $custom);
193 193
     }
194 194
     
195 195
     
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
 
214 214
     function editus_toolbar_components_add_paragraph( ) {
215 215
           ?>
216
-          <li data-type="htmlparagraph" title="<?php esc_attr_e( 'HTML Paragraph', 'lasso' );?>" class="quote lasso-toolbar--component__htmlparagraph dashicons dashicons-editor-paragraph"></li>
216
+          <li data-type="htmlparagraph" title="<?php esc_attr_e('HTML Paragraph', 'lasso'); ?>" class="quote lasso-toolbar--component__htmlparagraph dashicons dashicons-editor-paragraph"></li>
217 217
           <?php
218 218
     }
219 219
 }
Please login to merge, or discard this patch.
public/includes/editor-modules.php 2 patches
Indentation   +178 added lines, -178 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
 				height: 42px;
115 115
 			}
116 116
 		<?php
117
-            } 
117
+			} 
118 118
 		} else { 
119 119
 		?> 
120 120
 
@@ -123,8 +123,8 @@  discard block
 block discarded – undo
123 123
             }
124 124
             
125 125
         <?php
126
-        }
127
-        ?>
126
+		}
127
+		?>
128 128
         </style>
129 129
 		<div id="lasso--controls" class="lasso-post-status--<?php echo sanitize_html_class( $status );?> <?php echo sanitize_html_class( $custom_classes );?>" data-post-id="<?php echo get_the_ID();?>" >
130 130
 
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
 	
241 241
 	$sc_saving_class = ('on' == $shortcodify_disabled || $ase_status == 'ase-not-active')  ? 'shortcodify-disabled' : 'shortcodify-enabled';
242 242
 
243
-    $use_wp_block_image = lasso_editor_get_option('use_wp_block_image', 'lasso_editor','off');
243
+	$use_wp_block_image = lasso_editor_get_option('use_wp_block_image', 'lasso_editor','off');
244 244
 
245 245
 	?>
246 246
 	<div class="lasso--text-popup lasso-editor-controls--wrap <?php echo $toolbar_class.' '.$ase_status.' '.sanitize_html_class( $custom_classes );?>"  style="display:none;">
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
 function lasso_editor_text_toolbar() {
299 299
 
300 300
 	ob_start();
301
-    $text_select_popup = lasso_editor_get_option('text_select_popup', 'lasso_editor', false);
301
+	$text_select_popup = lasso_editor_get_option('text_select_popup', 'lasso_editor', false);
302 302
 
303 303
 	
304 304
 	$is_mobile = wp_is_mobile();
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
 	$toolbar_class  = $toolbar_headings ? 'toolbar-extended' : false;
318 318
 	
319 319
 	// mobile styles
320
-    $mobile_class = $is_mobile ? 'lasso-mobile' : false;
320
+	$mobile_class = $is_mobile ? 'lasso-mobile' : false;
321 321
 	$mobile_style =$is_mobile ? 'style="bottom:0px;"' : null;
322 322
 	
323 323
 	//show color
@@ -332,7 +332,7 @@  discard block
 block discarded – undo
332 332
 	
333 333
 	$sc_saving_class = ('on' == $shortcodify_disabled || $ase_status == 'ase-not-active')  ? 'shortcodify-disabled' : 'shortcodify-enabled';
334 334
 
335
-    $use_wp_block_image = lasso_editor_get_option('use_wp_block_image', 'lasso_editor','off');
335
+	$use_wp_block_image = lasso_editor_get_option('use_wp_block_image', 'lasso_editor','off');
336 336
 
337 337
 	?>
338 338
 	<div class="lasso--toolbar_wrap lasso-editor-controls--wrap <?php echo $toolbar_class.' '.$mobile_class.' '.$ase_status.' '.sanitize_html_class( $custom_classes );?>" <?php echo $mobile_style ?>>
@@ -556,7 +556,7 @@  discard block
 block discarded – undo
556 556
 	
557 557
 	//editor options
558 558
 	$allow_change_date = lasso_editor_get_option('allow_change_date', 'lasso_editor');
559
-    $allow_edit_excerpt = lasso_editor_get_option('allow_edit_excerpt', 'lasso_editor');
559
+	$allow_edit_excerpt = lasso_editor_get_option('allow_edit_excerpt', 'lasso_editor');
560 560
 	$no_url_setting = lasso_editor_get_option('no_url_setting', 'lasso_editor');
561 561
 	$support_custom_taxonomy   = lasso_editor_get_option( 'support_custom_taxonomy', 'lasso_editor' );
562 562
 	
@@ -577,7 +577,7 @@  discard block
 block discarded – undo
577 577
 	// do we support pending status
578 578
 	$no_pending_status = lasso_editor_get_option('no_pending_status', 'lasso_editor');
579 579
     
580
-    $excerpt = $post->post_excerpt;
580
+	$excerpt = $post->post_excerpt;
581 581
 
582 582
 ?>
583 583
 	<div id="lasso--post-settings__modal" class="lasso--modal lassoShowAnimate <?php echo sanitize_html_class( $custom_classes );?>">
@@ -674,7 +674,7 @@  discard block
 block discarded – undo
674 674
 						}?>
675 675
 						<?php 
676 676
 						if ($allow_change_date) { 
677
-						    $dateformat = get_option( 'date_format' ); 
677
+							$dateformat = get_option( 'date_format' ); 
678 678
 						?>
679 679
 						    <label><?php _e( 'Post Date', 'lasso' ); ?></label>
680 680
 							<input type="text" class="editus_custom_date" name="post_date" value="<?php echo get_the_time($dateformat, $postid);?>"/>
@@ -768,8 +768,8 @@  discard block
 block discarded – undo
768 768
 								$types = lasso_post_types_names();
769 769
 								if ( !empty( $types ) ) {
770 770
 									foreach( $types as $name => $label ) 
771
-                                    {   	
772
-                                        $type = $name;									
771
+									{   	
772
+										$type = $name;									
773 773
 										//$type = preg_replace( '/s\b/','', $name );
774 774
 										if ($type == 'page' && !current_user_can('edit_pages')) {
775 775
 											continue;
@@ -791,7 +791,7 @@  discard block
 block discarded – undo
791 791
 						if ( !empty( $types ) ) {
792 792
 							// get the first element
793 793
 							$keys = array_keys($types);
794
-						    $type =$keys[0];						
794
+							$type =$keys[0];						
795 795
 							//$type = preg_replace( '/s\b/','', $type );
796 796
 							printf( '<input type="hidden" name="object" value="%s">', lcfirst( esc_attr( $type ) ) );		
797 797
 						}
@@ -819,8 +819,8 @@  discard block
 block discarded – undo
819 819
 	global $post;
820 820
 	
821 821
 	global $wp_post_types;
822
-    $labels = &$wp_post_types['post']->labels;
823
-    $labels->name = 'Articles';
822
+	$labels = &$wp_post_types['post']->labels;
823
+	$labels->name = 'Articles';
824 824
 
825 825
 	ob_start();
826 826
 
@@ -880,7 +880,7 @@  discard block
 block discarded – undo
880 880
 	ob_start();
881 881
 
882 882
 
883
-    $use_old_wpimg = lasso_editor_get_option('use_old_wpimg', 'lasso_editor','off');
883
+	$use_old_wpimg = lasso_editor_get_option('use_old_wpimg', 'lasso_editor','off');
884 884
     
885 885
 	// let users add custom css classes
886 886
 	$custom_classes = apply_filters( 'lasso_wpimg_classes', '' );
@@ -982,9 +982,9 @@  discard block
 block discarded – undo
982 982
 function lasso_editor_options_blob() {
983 983
 
984 984
 	$codes   = function_exists( 'aesop_shortcodes' ) ? aesop_shortcodes() : array();
985
-    $codes   = add_wpimg_options( $codes );
985
+	$codes   = add_wpimg_options( $codes );
986 986
 	$codes   = add_wpimg_block_options( $codes );
987
-    $codes   = apply_filters( 'lasso_custom_options', $codes );
987
+	$codes   = apply_filters( 'lasso_custom_options', $codes );
988 988
 	$galleries  = function_exists( 'lasso_editor_galleries_exist' ) && lasso_editor_galleries_exist() ? 'has-galleries' : 'creating-gallery';
989 989
 
990 990
 	$nonce = wp_create_nonce( 'lasso_gallery' );
@@ -1086,9 +1086,9 @@  discard block
 block discarded – undo
1086 1086
 		$return .= '</form>';
1087 1087
 
1088 1088
 		// extra JS codes
1089
-        if (isset($shortcode['codes'])) {
1090
-		    $return .= $shortcode['codes'];
1091
-        }
1089
+		if (isset($shortcode['codes'])) {
1090
+			$return .= $shortcode['codes'];
1091
+		}
1092 1092
 		$blob[$slug] = $return;
1093 1093
 	}
1094 1094
 
@@ -1097,95 +1097,95 @@  discard block
 block discarded – undo
1097 1097
 
1098 1098
 
1099 1099
 function add_wpimg_options( $shortcodes ) {
1100
-    $custom = array(
1101
-        'wpimg'    => array(
1102
-            'name'     => __( 'Image', 'lasso' ),
1103
-            'type'     => 'single',
1104
-            'atts'     => array(
1105
-                'img'    => array(
1106
-                    'type'  => 'media_upload',
1107
-                    'default'  => '',
1108
-                    'desc'   => __( 'Image URL', 'lasso' ),
1109
-                    'tip'  => __( 'URL for the image. Click <em>Select Media</em> to open the WordPress Media Library.', 'aesop-core' )
1110
-                ),
1111
-                'align'    => array(
1112
-                    'type'  => 'select',
1113
-                    'values'  => array(						
1114
-                        array(
1115
-                            'value' => 'center',
1116
-                            'name' => __( 'Center', 'aesop-core' )
1117
-                        ),
1118
-                        array(
1119
-                            'value' => 'left',
1120
-                            'name' => __( 'Left', 'aesop-core' )
1121
-                        ),
1122
-                        array(
1123
-                            'value' => 'right',
1124
-                            'name' => __( 'Right', 'aesop-core' )
1125
-                        ),
1126
-                    ),
1127
-                    'default'  => 'center',
1128
-                    'desc'   => __( 'Alignment', 'lasso' ),
1129
-                    'tip'=>''
1130
-                ),			
1100
+	$custom = array(
1101
+		'wpimg'    => array(
1102
+			'name'     => __( 'Image', 'lasso' ),
1103
+			'type'     => 'single',
1104
+			'atts'     => array(
1105
+				'img'    => array(
1106
+					'type'  => 'media_upload',
1107
+					'default'  => '',
1108
+					'desc'   => __( 'Image URL', 'lasso' ),
1109
+					'tip'  => __( 'URL for the image. Click <em>Select Media</em> to open the WordPress Media Library.', 'aesop-core' )
1110
+				),
1111
+				'align'    => array(
1112
+					'type'  => 'select',
1113
+					'values'  => array(						
1114
+						array(
1115
+							'value' => 'center',
1116
+							'name' => __( 'Center', 'aesop-core' )
1117
+						),
1118
+						array(
1119
+							'value' => 'left',
1120
+							'name' => __( 'Left', 'aesop-core' )
1121
+						),
1122
+						array(
1123
+							'value' => 'right',
1124
+							'name' => __( 'Right', 'aesop-core' )
1125
+						),
1126
+					),
1127
+					'default'  => 'center',
1128
+					'desc'   => __( 'Alignment', 'lasso' ),
1129
+					'tip'=>''
1130
+				),			
1131 1131
                 
1132
-                'imgwidth'    => array(
1133
-                    'type'  => 'text_small',
1134
-                    'default'  => '300px',
1135
-                    'desc'   => __( 'Image Width', 'lasso' ),
1136
-                    'tip'  => __( 'Width of the image. You can enter the size in pixels or percentage such as <code>40%</code> or <code>500px</code>.', 'aesop-core' )
1137
-                ),
1138
-                'imgheight'    => array(
1139
-                    'type'  => 'text_small',
1140
-                    'default'  => '',
1141
-                    'desc'   => __( 'Image Height', 'lasso' ),
1142
-                    'tip'  => __( 'Used only for the Panorama mode. Can be set using pixel values such as <code>500px</code>. If unspecified, the original height would be used. ', 'aesop-core' )
1143
-                ),	
1144
-                'linkoption'    => array(
1145
-                    'type'  => 'select',
1146
-                    'values'  => array(						
1147
-                        array(
1148
-                            'value' => 'none',
1149
-                            'name' => __( 'None', 'aesop-core' )
1150
-                        ),
1151
-                        array(
1152
-                            'value' => 'img',
1153
-                            'name' => __( 'Image', 'aesop-core' )
1154
-                        ),
1155
-                        array(
1156
-                            'value' => 'url',
1157
-                            'name' => __( 'URL', 'aesop-core' )
1158
-                        ),
1159
-                    ),
1160
-                    'default'  => 'none',
1161
-                    'desc'   => __( 'Link', 'lasso' ),
1162
-                    'tip'  => __( 'Click leads to:', 'lasso' )
1163
-                ),				
1132
+				'imgwidth'    => array(
1133
+					'type'  => 'text_small',
1134
+					'default'  => '300px',
1135
+					'desc'   => __( 'Image Width', 'lasso' ),
1136
+					'tip'  => __( 'Width of the image. You can enter the size in pixels or percentage such as <code>40%</code> or <code>500px</code>.', 'aesop-core' )
1137
+				),
1138
+				'imgheight'    => array(
1139
+					'type'  => 'text_small',
1140
+					'default'  => '',
1141
+					'desc'   => __( 'Image Height', 'lasso' ),
1142
+					'tip'  => __( 'Used only for the Panorama mode. Can be set using pixel values such as <code>500px</code>. If unspecified, the original height would be used. ', 'aesop-core' )
1143
+				),	
1144
+				'linkoption'    => array(
1145
+					'type'  => 'select',
1146
+					'values'  => array(						
1147
+						array(
1148
+							'value' => 'none',
1149
+							'name' => __( 'None', 'aesop-core' )
1150
+						),
1151
+						array(
1152
+							'value' => 'img',
1153
+							'name' => __( 'Image', 'aesop-core' )
1154
+						),
1155
+						array(
1156
+							'value' => 'url',
1157
+							'name' => __( 'URL', 'aesop-core' )
1158
+						),
1159
+					),
1160
+					'default'  => 'none',
1161
+					'desc'   => __( 'Link', 'lasso' ),
1162
+					'tip'  => __( 'Click leads to:', 'lasso' )
1163
+				),				
1164 1164
                 
1165
-                'link'    => array(
1166
-                    'type'  => 'text',
1167
-                    'default'  => '',
1168
-                    'desc'   => __( 'URL Link', 'lasso' ),
1169
-                    'tip'  => __( 'URL link', 'lasso' )
1170
-                ),
1171
-                'alt'    => array(
1172
-                    'type'  => 'text',
1173
-                    'default'  => '',
1174
-                    'desc'   => __( 'Image ALT', 'lasso' ),
1175
-                    'tip'  => __( 'ALT tag used for the image. Primarily used for SEO purposes.', 'lasso' )
1176
-                ),
1165
+				'link'    => array(
1166
+					'type'  => 'text',
1167
+					'default'  => '',
1168
+					'desc'   => __( 'URL Link', 'lasso' ),
1169
+					'tip'  => __( 'URL link', 'lasso' )
1170
+				),
1171
+				'alt'    => array(
1172
+					'type'  => 'text',
1173
+					'default'  => '',
1174
+					'desc'   => __( 'Image ALT', 'lasso' ),
1175
+					'tip'  => __( 'ALT tag used for the image. Primarily used for SEO purposes.', 'lasso' )
1176
+				),
1177 1177
                 
1178
-                'caption'    => array(
1179
-                    'type'  => 'text_area',
1180
-                    'default'  => '',
1181
-                    'desc'   => __( 'Caption', 'lasso' ),
1182
-                    'tip'  => __( 'Optional caption for the image.', 'lasso' )
1183
-                ),
1178
+				'caption'    => array(
1179
+					'type'  => 'text_area',
1180
+					'default'  => '',
1181
+					'desc'   => __( 'Caption', 'lasso' ),
1182
+					'tip'  => __( 'Optional caption for the image.', 'lasso' )
1183
+				),
1184 1184
                 
1185 1185
 
1186
-            ),
1187
-            'desc'     => __( 'An image.', 'aesop-core' ),
1188
-            'codes'    => '<script>	            
1186
+			),
1187
+			'desc'     => __( 'An image.', 'aesop-core' ),
1188
+			'codes'    => '<script>	            
1189 1189
 						jQuery(document).ready(function($){
1190 1190
                             function linkSetting(l){								
1191 1191
 							    if ( l=="url") {
@@ -1205,75 +1205,75 @@  discard block
 block discarded – undo
1205 1205
 							})
1206 1206
 						});
1207 1207
 			           </script>'
1208
-        )
1209
-    );
1208
+		)
1209
+	);
1210 1210
 
1211
-    return array_merge( $shortcodes, $custom );
1211
+	return array_merge( $shortcodes, $custom );
1212 1212
 }
1213 1213
 
1214 1214
 function add_wpimg_block_options( $shortcodes ) {
1215
-    $custom = array(
1216
-        'wpimg-block'    => array(
1217
-            'name'     => __( 'Image', 'lasso' ),
1218
-            'type'     => 'single',
1219
-            'atts'     => array(
1220
-                'img'    => array(
1221
-                    'type'  => 'media_upload',
1222
-                    'default'  => '',
1223
-                    'desc'   => __( 'Image URL', 'lasso' ),
1224
-                    'tip'  => __( 'URL for the image. Click <em>Select Media</em> to open the WordPress Media Library.', 'aesop-core' )
1225
-                ),
1226
-                'align'    => array(
1227
-                    'type'  => 'select',
1228
-                    'values'  => array(						
1229
-                        array(
1230
-                            'value' => 'center',
1231
-                            'name' => __( 'Center', 'aesop-core' )
1232
-                        ),
1233
-                        array(
1234
-                            'value' => 'left',
1235
-                            'name' => __( 'Left', 'aesop-core' )
1236
-                        ),
1237
-                        array(
1238
-                            'value' => 'right',
1239
-                            'name' => __( 'Right', 'aesop-core' )
1240
-                        ),
1241
-                    ),
1242
-                    'default'  => 'center',
1243
-                    'desc'   => __( 'Alignment', 'lasso' ),
1244
-                    'tip'=>''
1245
-                ),		
1246
-                'alt'    => array(
1247
-                    'type'  => 'text',
1248
-                    'default'  => '',
1249
-                    'desc'   => __( 'Image ALT', 'lasso' ),
1250
-                    'tip'  => __( 'ALT tag used for the image. Primarily used for SEO purposes.', 'lasso' )
1251
-                ),
1252
-                'caption'    => array(
1253
-                    'type'  => 'text',
1254
-                    'default'  => '',
1255
-                    'desc'   => __( 'Caption', 'lasso' ),
1256
-                    'tip'  => __( 'Optional caption for the image.', 'lasso' )
1257
-                ),
1258
-                'link'    => array(
1259
-                    'type'  => 'text',
1260
-                    'default'  => '',
1261
-                    'desc'   => __( 'Link URL', 'lasso' ),
1262
-                    'tip'  => __( 'Optional URL to link.', 'lasso' )
1263
-                ),
1215
+	$custom = array(
1216
+		'wpimg-block'    => array(
1217
+			'name'     => __( 'Image', 'lasso' ),
1218
+			'type'     => 'single',
1219
+			'atts'     => array(
1220
+				'img'    => array(
1221
+					'type'  => 'media_upload',
1222
+					'default'  => '',
1223
+					'desc'   => __( 'Image URL', 'lasso' ),
1224
+					'tip'  => __( 'URL for the image. Click <em>Select Media</em> to open the WordPress Media Library.', 'aesop-core' )
1225
+				),
1226
+				'align'    => array(
1227
+					'type'  => 'select',
1228
+					'values'  => array(						
1229
+						array(
1230
+							'value' => 'center',
1231
+							'name' => __( 'Center', 'aesop-core' )
1232
+						),
1233
+						array(
1234
+							'value' => 'left',
1235
+							'name' => __( 'Left', 'aesop-core' )
1236
+						),
1237
+						array(
1238
+							'value' => 'right',
1239
+							'name' => __( 'Right', 'aesop-core' )
1240
+						),
1241
+					),
1242
+					'default'  => 'center',
1243
+					'desc'   => __( 'Alignment', 'lasso' ),
1244
+					'tip'=>''
1245
+				),		
1246
+				'alt'    => array(
1247
+					'type'  => 'text',
1248
+					'default'  => '',
1249
+					'desc'   => __( 'Image ALT', 'lasso' ),
1250
+					'tip'  => __( 'ALT tag used for the image. Primarily used for SEO purposes.', 'lasso' )
1251
+				),
1252
+				'caption'    => array(
1253
+					'type'  => 'text',
1254
+					'default'  => '',
1255
+					'desc'   => __( 'Caption', 'lasso' ),
1256
+					'tip'  => __( 'Optional caption for the image.', 'lasso' )
1257
+				),
1258
+				'link'    => array(
1259
+					'type'  => 'text',
1260
+					'default'  => '',
1261
+					'desc'   => __( 'Link URL', 'lasso' ),
1262
+					'tip'  => __( 'Optional URL to link.', 'lasso' )
1263
+				),
1264 1264
                
1265 1265
 
1266
-            ),
1267
-            'desc'     => __( 'A WP Image Block.', 'aesop-core' ),
1268
-            'codes'    => '<script>	            
1266
+			),
1267
+			'desc'     => __( 'A WP Image Block.', 'aesop-core' ),
1268
+			'codes'    => '<script>	            
1269 1269
 						jQuery(document).ready(function($){
1270 1270
                             
1271 1271
 						});
1272 1272
 			           </script>'
1273
-        )
1274
-    );
1273
+		)
1274
+	);
1275 1275
 
1276
-    return array_merge( $shortcodes, $custom );
1276
+	return array_merge( $shortcodes, $custom );
1277 1277
 }
1278 1278
 
1279 1279
 /**
@@ -1318,23 +1318,23 @@  discard block
 block discarded – undo
1318 1318
  * @return string
1319 1319
  */
1320 1320
 function lasso_editor_adjustBrightness($hex, $steps) { 
1321
-    $steps = max(-255, min(255, $steps));
1321
+	$steps = max(-255, min(255, $steps));
1322 1322
 
1323
-    // Normalize into a six character long hex string
1324
-    $hex = str_replace('#', '', $hex);
1325
-    if (strlen($hex) == 3) {
1326
-        $hex = str_repeat(substr($hex,0,1), 2).str_repeat(substr($hex,1,1), 2).str_repeat(substr($hex,2,1), 2);
1327
-    }
1323
+	// Normalize into a six character long hex string
1324
+	$hex = str_replace('#', '', $hex);
1325
+	if (strlen($hex) == 3) {
1326
+		$hex = str_repeat(substr($hex,0,1), 2).str_repeat(substr($hex,1,1), 2).str_repeat(substr($hex,2,1), 2);
1327
+	}
1328 1328
 
1329
-    // Split into three parts: R, G and B
1330
-    $color_parts = str_split($hex, 2);
1331
-    $return = '#';
1329
+	// Split into three parts: R, G and B
1330
+	$color_parts = str_split($hex, 2);
1331
+	$return = '#';
1332 1332
 
1333
-    foreach ($color_parts as $color) {
1334
-        $color   = hexdec($color); // Convert to decimal
1335
-        $color   = max(0,min(255,$color + $steps)); // Adjust color
1336
-        $return .= str_pad(dechex($color), 2, '0', STR_PAD_LEFT); // Make two char hex code
1337
-    }
1333
+	foreach ($color_parts as $color) {
1334
+		$color   = hexdec($color); // Convert to decimal
1335
+		$color   = max(0,min(255,$color + $steps)); // Adjust color
1336
+		$return .= str_pad(dechex($color), 2, '0', STR_PAD_LEFT); // Make two char hex code
1337
+	}
1338 1338
 
1339
-    return $return;
1339
+	return $return;
1340 1340
 }
Please login to merge, or discard this patch.
Spacing   +352 added lines, -352 removed lines patch added patch discarded remove patch
@@ -11,39 +11,39 @@  discard block
 block discarded – undo
11 11
  *
12 12
  * @since 1.0
13 13
  */
14
-add_action( 'wp_footer', 'lasso_editor_controls' );
14
+add_action('wp_footer', 'lasso_editor_controls');
15 15
 function lasso_editor_controls() {
16 16
 
17 17
 	global $post;
18 18
 
19
-	if ( lasso_user_can('edit_posts') ) {
19
+	if (lasso_user_can('edit_posts')) {
20 20
 
21
-		$status = get_post_status( get_the_ID() );
22
-		$use_old_ui   = lasso_editor_get_option( 'use_old_ui', 'lasso_editor' );
23
-		$button_color1 = lasso_editor_get_option('button-color1', 'lasso_editor','#0000ff');
24
-		$button_color2 = lasso_editor_get_option('button-color2', 'lasso_editor','#000000');
25
-		$dialog_color = lasso_editor_get_option('dialog-color', 'lasso_editor','#000055');
26
-		$text_color = lasso_editor_get_option('text-color', 'lasso_editor','#ffffff');
21
+		$status = get_post_status(get_the_ID());
22
+		$use_old_ui   = lasso_editor_get_option('use_old_ui', 'lasso_editor');
23
+		$button_color1 = lasso_editor_get_option('button-color1', 'lasso_editor', '#0000ff');
24
+		$button_color2 = lasso_editor_get_option('button-color2', 'lasso_editor', '#000000');
25
+		$dialog_color = lasso_editor_get_option('dialog-color', 'lasso_editor', '#000055');
26
+		$text_color = lasso_editor_get_option('text-color', 'lasso_editor', '#ffffff');
27 27
 		$hover_color1 = lasso_editor_adjustBrightness($button_color1, 50);
28 28
 		$hover_color2 = lasso_editor_adjustBrightness($button_color2, 50);
29 29
 
30 30
 		// let users add custom css classes
31
-		$custom_classes = apply_filters( 'lasso_control_classes', '' );
31
+		$custom_classes = apply_filters('lasso_control_classes', '');
32 32
 
33 33
 		$post_access_class   = '';
34
-		$post_new_disabled   = lasso_editor_get_option( 'post_adding_disabled', 'lasso_editor' );
35
-		$post_settings_disabled = lasso_editor_get_option( 'post_settings_disabled', 'lasso_editor' );
36
-		$shortcodify_disabled = lasso_editor_get_option( 'shortcodify_disabled', 'lasso_editor' );
34
+		$post_new_disabled   = lasso_editor_get_option('post_adding_disabled', 'lasso_editor');
35
+		$post_settings_disabled = lasso_editor_get_option('post_settings_disabled', 'lasso_editor');
36
+		$shortcodify_disabled = lasso_editor_get_option('shortcodify_disabled', 'lasso_editor');
37 37
 
38 38
 
39 39
 		// CSS class if adding new post objects is disabled
40
-		if ( 'on' == $post_new_disabled ) { $post_access_class = 'lasso--post-new-disabled'; }
40
+		if ('on' == $post_new_disabled) { $post_access_class = 'lasso--post-new-disabled'; }
41 41
 
42 42
 		// CSS class if adjust settings is disabled
43
-		if ( 'on' == $post_settings_disabled ) { $post_access_class = 'lasso--post-settings-disabled'; }
43
+		if ('on' == $post_settings_disabled) { $post_access_class = 'lasso--post-settings-disabled'; }
44 44
 
45 45
 		// CSS class if adding new post objects AND settings are disabled
46
-		if ( 'on' == $post_new_disabled && 'on' == $post_settings_disabled ) { $post_access_class = 'lasso--post-all-disabled'; }
46
+		if ('on' == $post_new_disabled && 'on' == $post_settings_disabled) { $post_access_class = 'lasso--post-all-disabled'; }
47 47
 
48 48
 		// CSS class if shortcodify or (Aesop Shortcode Conversion) is disabled
49 49
 		$sc_saving_class = 'on' == $shortcodify_disabled ? 'shortcodify-disabled' : 'shortcodify-enabled';
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 		?>
58 58
 		<style>
59 59
 		#lasso-html--table:before {
60
-			content: "<?php esc_attr_e( 'Table', 'lasso' );?>";
60
+			content: "<?php esc_attr_e('Table', 'lasso'); ?>";
61 61
 		}
62 62
 		
63 63
 		
@@ -67,32 +67,32 @@  discard block
 block discarded – undo
67 67
 		?>
68 68
 		
69 69
 		.lasso-editor-controls--wrap, #lasso--post-settings2,#lasso--save,#lasso--post-delete,#lasso--exit,#lasso--publish {
70
-			background-image: -webkit-linear-gradient(top,<?php echo $button_color1;?> 0,<?php echo $button_color2;?> 100%);
71
-			background-image: -o-linear-gradient(top,<?php echo $button_color1;?> 0,<?php echo $button_color2;?> 100%);
72
-			background-image: linear-gradient(to bottom,<?php echo $button_color1;?> 0,<?php echo $button_color2;?> 100%);
73
-			color: <?php echo $text_color;?>;
70
+			background-image: -webkit-linear-gradient(top,<?php echo $button_color1; ?> 0,<?php echo $button_color2; ?> 100%);
71
+			background-image: -o-linear-gradient(top,<?php echo $button_color1; ?> 0,<?php echo $button_color2; ?> 100%);
72
+			background-image: linear-gradient(to bottom,<?php echo $button_color1; ?> 0,<?php echo $button_color2; ?> 100%);
73
+			color: <?php echo $text_color; ?>;
74 74
 		}
75 75
 		
76 76
 		.lasso--controls__right a:before, #lasso-toolbar--html__footer_desc, ul.lasso-editor-controls li:before,#lasso-side-comp-button.toolbar--side li:before
77 77
         {
78
-			color: <?php echo $text_color;?> !important;
78
+			color: <?php echo $text_color; ?> !important;
79 79
 		}
80 80
 		
81 81
 		
82 82
 		
83 83
 		ul.lasso-editor-controls li:hover, #lasso--exit:hover,#lasso--post-settings2:hover,#lasso--post-delete:hover,#lasso--publish:hover,#lasso--save:hover {
84
-			background-image: -webkit-linear-gradient(top,<?php echo $hover_color1;?> 0,<?php echo $hover_color2;?> 100%);
85
-			background-image: -o-linear-gradient(top,<?php echo $hover_color1;?> 0,<?php echo $hover_color2;?> 100%);
86
-			background-image: linear-gradient(to bottom,<?php echo $hover_color1;?> 0,<?php echo $hover_color2;?> 100%);
84
+			background-image: -webkit-linear-gradient(top,<?php echo $hover_color1; ?> 0,<?php echo $hover_color2; ?> 100%);
85
+			background-image: -o-linear-gradient(top,<?php echo $hover_color1; ?> 0,<?php echo $hover_color2; ?> 100%);
86
+			background-image: linear-gradient(to bottom,<?php echo $hover_color1; ?> 0,<?php echo $hover_color2; ?> 100%);
87 87
 		}
88 88
 		
89 89
 		.lasso--modal__inner,.sweet-alert,#lasso-toolbar--components.toolbar--drop-up ul,#lasso-toolbar--components__list,#lasso-toolbar--html.html--drop-up #lasso-toolbar--html__wrap,
90 90
 		#lasso-toolbar--link.link--drop-up #lasso-toolbar--link__wrap		{
91
-			background: <?php echo $dialog_color;?>;
92
-			color: <?php echo $text_color;?>;
91
+			background: <?php echo $dialog_color; ?>;
92
+			color: <?php echo $text_color; ?>;
93 93
 		}
94 94
 		.sweet-alert p,.lasso--modal__inner label,.lasso--toolbar__inner label {
95
-			color: <?php echo $text_color;?> !important;
95
+			color: <?php echo $text_color; ?> !important;
96 96
 		}
97 97
 		
98 98
 		<?php if (!$is_mobile) { ?>
@@ -126,48 +126,48 @@  discard block
 block discarded – undo
126 126
         }
127 127
         ?>
128 128
         </style>
129
-		<div id="lasso--controls" class="lasso-post-status--<?php echo sanitize_html_class( $status );?> <?php echo sanitize_html_class( $custom_classes );?>" data-post-id="<?php echo get_the_ID();?>" >
129
+		<div id="lasso--controls" class="lasso-post-status--<?php echo sanitize_html_class($status); ?> <?php echo sanitize_html_class($custom_classes); ?>" data-post-id="<?php echo get_the_ID(); ?>" >
130 130
 
131
-			<ul class="lasso--controls__center lasso-editor-controls lasso-editor-controls--wrap <?php echo $post_access_class;?> "  <?php echo $mobile_style ?> >
131
+			<ul class="lasso--controls__center lasso-editor-controls lasso-editor-controls--wrap <?php echo $post_access_class; ?> "  <?php echo $mobile_style ?> >
132 132
 
133
-				<?php do_action( 'lasso_editor_controls_before' );
133
+				<?php do_action('lasso_editor_controls_before');
134 134
 
135
-				if ( $is_capable ) { ?>
135
+				if ($is_capable) { ?>
136 136
 
137
-					<li id="lasso--edit" title="<?php esc_attr_e( 'Edit Post', 'lasso' );?>"><a href="#" class="lasso--button__primary"></a></li>
137
+					<li id="lasso--edit" title="<?php esc_attr_e('Edit Post', 'lasso'); ?>"><a href="#" class="lasso--button__primary"></a></li>
138 138
 
139
-					<?php if ( 'off' == $post_settings_disabled || empty( $post_settings_disabled ) ) { ?>
140
-						<li id="lasso--post-settings" title="<?php esc_attr_e( 'Post Settings', 'lasso' );?>"><a href="#" class="lasso--button__primary"></a></li>
139
+					<?php if ('off' == $post_settings_disabled || empty($post_settings_disabled)) { ?>
140
+						<li id="lasso--post-settings" title="<?php esc_attr_e('Post Settings', 'lasso'); ?>"><a href="#" class="lasso--button__primary"></a></li>
141 141
 					<?php }
142 142
 
143 143
 				} ?>
144 144
 
145
-				<li id="lasso--post-all" title="<?php esc_attr_e( 'All Posts', 'lasso' );?>"><a href="#" class="lasso--button__primary"></a></li>
145
+				<li id="lasso--post-all" title="<?php esc_attr_e('All Posts', 'lasso'); ?>"><a href="#" class="lasso--button__primary"></a></li>
146 146
 
147
-				<?php if ( $is_capable && wp_revisions_enabled( $post ) ) { ?>
148
-					<li id="lasso--post-revisions" title="<?php esc_attr_e( 'Revisions', 'lasso' );?>"><a href="#" class="lasso--button__primary"></a></li>
147
+				<?php if ($is_capable && wp_revisions_enabled($post)) { ?>
148
+					<li id="lasso--post-revisions" title="<?php esc_attr_e('Revisions', 'lasso'); ?>"><a href="#" class="lasso--button__primary"></a></li>
149 149
 				<?php } ?>
150 150
 
151
-				<?php if ( ( 'off' == $post_new_disabled || empty( $post_new_disabled ) && lasso_user_can('edit_posts') ) ) { ?>
152
-					<li id="lasso--post-new" title="<?php esc_attr_e( 'Add Post', 'lasso' );?>"><a href="#" class="lasso--button__primary"></a></li>
151
+				<?php if (('off' == $post_new_disabled || empty($post_new_disabled) && lasso_user_can('edit_posts'))) { ?>
152
+					<li id="lasso--post-new" title="<?php esc_attr_e('Add Post', 'lasso'); ?>"><a href="#" class="lasso--button__primary"></a></li>
153 153
 				<?php } ?>
154 154
 
155
-				<?php do_action( 'lasso_editor_controls_after' );?>
155
+				<?php do_action('lasso_editor_controls_after'); ?>
156 156
 
157 157
 			</ul>
158 158
 
159
-			<?php if ( is_singular() && !$is_mobile ) { ?>
159
+			<?php if (is_singular() && !$is_mobile) { ?>
160 160
 
161
-				<div class="lasso--controls__right" data-posttype="<?php echo get_post_type( get_the_ID() );?>" data-status="<?php echo $status;?>">
161
+				<div class="lasso--controls__right" data-posttype="<?php echo get_post_type(get_the_ID()); ?>" data-status="<?php echo $status; ?>">
162 162
 				
163
-					<a href="#" title="<?php esc_attr_e( 'Delete Post', 'lasso' );?>" id="lasso--post-delete" class="lasso-save-post lasso--button <?php echo $sc_saving_class;?>"></a>
164
-					<a href="#" title="<?php esc_attr_e( 'Post Settings', 'lasso' );?>" id="lasso--post-settings2" class="lasso-save-post lasso--button <?php echo $sc_saving_class;?>"></a>
163
+					<a href="#" title="<?php esc_attr_e('Delete Post', 'lasso'); ?>" id="lasso--post-delete" class="lasso-save-post lasso--button <?php echo $sc_saving_class; ?>"></a>
164
+					<a href="#" title="<?php esc_attr_e('Post Settings', 'lasso'); ?>" id="lasso--post-settings2" class="lasso-save-post lasso--button <?php echo $sc_saving_class; ?>"></a>
165 165
 
166 166
 
167
-					<a href="#" title="<?php esc_attr_e( 'Save Post', 'lasso' );?>" id="lasso--save" class="lasso-save-post lasso--button <?php echo $sc_saving_class;?>"></a>
167
+					<a href="#" title="<?php esc_attr_e('Save Post', 'lasso'); ?>" id="lasso--save" class="lasso-save-post lasso--button <?php echo $sc_saving_class; ?>"></a>
168 168
 
169
-					<?php if ( ('draft' == $status ) || ('pending' == $status && $can_publish) ) { ?>
170
-						<a href="#" title="<?php $can_publish ? esc_attr_e( 'Publish Post', 'lasso' ) : esc_attr_e( 'Submit For Review', 'lasso' );?>" id="lasso--publish" class="lasso-publish-post lasso--button <?php echo $sc_saving_class;?>"></a>
169
+					<?php if (('draft' == $status) || ('pending' == $status && $can_publish)) { ?>
170
+						<a href="#" title="<?php $can_publish ? esc_attr_e('Publish Post', 'lasso') : esc_attr_e('Submit For Review', 'lasso'); ?>" id="lasso--publish" class="lasso-publish-post lasso--button <?php echo $sc_saving_class; ?>"></a>
171 171
 					<?php } ?>
172 172
 					
173 173
 
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
 		</div>
179 179
 		
180 180
 		
181
-		<?php do_action( 'lasso_editor_controls_after_outside' );?>
181
+		<?php do_action('lasso_editor_controls_after_outside'); ?>
182 182
 
183 183
 	<?php }
184 184
 }
@@ -196,9 +196,9 @@  discard block
 block discarded – undo
196 196
 
197 197
 
198 198
 	// let users add custom css classes
199
-	$custom_classes = apply_filters( 'lasso_sidebar_classes', '' );
199
+	$custom_classes = apply_filters('lasso_sidebar_classes', '');
200 200
 	?>
201
-	<div id="lasso--sidebar" class="<?php echo sanitize_html_class( $custom_classes );?>" >
201
+	<div id="lasso--sidebar" class="<?php echo sanitize_html_class($custom_classes); ?>" >
202 202
 		<div class="lasso--sidebar__inner">
203 203
 			<div id="aesop-generator-settings"><div id="lasso--component__settings"></div></div>
204 204
 		</div>
@@ -216,17 +216,17 @@  discard block
 block discarded – undo
216 216
 	$is_mobile = wp_is_mobile();
217 217
 
218 218
 	// check for lasso story engine and add a class doniting this
219
-	$ase_status = class_exists( 'Aesop_Core' ) || defined( 'LASSO_CUSTOM' ) ? 'ase-active' : 'ase-not-active';
219
+	$ase_status = class_exists('Aesop_Core') || defined('LASSO_CUSTOM') ? 'ase-active' : 'ase-not-active';
220 220
 
221 221
 	// let users add custom css classes
222
-	$custom_classes = apply_filters( 'lasso_toolbar_classes', '' );
222
+	$custom_classes = apply_filters('lasso_toolbar_classes', '');
223 223
 
224 224
 	// are toolbar headings enabled
225
-	$toolbar_headings      = lasso_editor_get_option( 'toolbar_headings', 'lasso_editor' );
226
-	$toolbar_headings_h4      = lasso_editor_get_option( 'toolbar_headings_h4', 'lasso_editor' );
227
-	$toolbar_list      = lasso_editor_get_option( 'toolbar_list', 'lasso_editor' );
225
+	$toolbar_headings = lasso_editor_get_option('toolbar_headings', 'lasso_editor');
226
+	$toolbar_headings_h4 = lasso_editor_get_option('toolbar_headings_h4', 'lasso_editor');
227
+	$toolbar_list = lasso_editor_get_option('toolbar_list', 'lasso_editor');
228 228
 
229
-	$toolbar_class  = $toolbar_headings ? 'toolbar-extended' : false;	
229
+	$toolbar_class = $toolbar_headings ? 'toolbar-extended' : false;	
230 230
 	
231 231
 	//show color
232 232
 	$show_color = lasso_editor_get_option('toolbar_show_color', 'lasso_editor');
@@ -234,56 +234,56 @@  discard block
 block discarded – undo
234 234
 	//show alignment
235 235
 	$show_align = lasso_editor_get_option('toolbar_show_alignment', 'lasso_editor');
236 236
 	
237
-	$status = get_post_status( get_the_ID() );
237
+	$status = get_post_status(get_the_ID());
238 238
 	
239
-	$shortcodify_disabled = lasso_editor_get_option( 'shortcodify_disabled', 'lasso_editor' );
239
+	$shortcodify_disabled = lasso_editor_get_option('shortcodify_disabled', 'lasso_editor');
240 240
 	
241
-	$sc_saving_class = ('on' == $shortcodify_disabled || $ase_status == 'ase-not-active')  ? 'shortcodify-disabled' : 'shortcodify-enabled';
241
+	$sc_saving_class = ('on' == $shortcodify_disabled || $ase_status == 'ase-not-active') ? 'shortcodify-disabled' : 'shortcodify-enabled';
242 242
 
243
-    $use_wp_block_image = lasso_editor_get_option('use_wp_block_image', 'lasso_editor','off');
243
+    $use_wp_block_image = lasso_editor_get_option('use_wp_block_image', 'lasso_editor', 'off');
244 244
 
245 245
 	?>
246
-	<div class="lasso--text-popup lasso-editor-controls--wrap <?php echo $toolbar_class.' '.$ase_status.' '.sanitize_html_class( $custom_classes );?>"  style="display:none;">
247
-		<ul class="lasso--toolbar__inner lasso-editor-controls" <?php if ($is_mobile) {echo 'style="float:left;"';}?>>
248
-			<?php do_action( 'lasso_toolbar_components_before' );?>
249
-		    <li id="lasso-toolbar--bold" title="<?php esc_attr_e( 'Bold', 'lasso' );?>"></li>
250
-		    <li id="lasso-toolbar--underline" title="<?php esc_attr_e( 'Underline', 'lasso' );?>"></li>
251
-		    <li id="lasso-toolbar--italic" title="<?php esc_attr_e( 'Italicize', 'lasso' );?>"></li>
252
-		    <li id="lasso-toolbar--strike" title="<?php esc_attr_e( 'Strikethrough', 'lasso' );?>"></li>
246
+	<div class="lasso--text-popup lasso-editor-controls--wrap <?php echo $toolbar_class.' '.$ase_status.' '.sanitize_html_class($custom_classes); ?>"  style="display:none;">
247
+		<ul class="lasso--toolbar__inner lasso-editor-controls" <?php if ($is_mobile) {echo 'style="float:left;"'; }?>>
248
+			<?php do_action('lasso_toolbar_components_before'); ?>
249
+		    <li id="lasso-toolbar--bold" title="<?php esc_attr_e('Bold', 'lasso'); ?>"></li>
250
+		    <li id="lasso-toolbar--underline" title="<?php esc_attr_e('Underline', 'lasso'); ?>"></li>
251
+		    <li id="lasso-toolbar--italic" title="<?php esc_attr_e('Italicize', 'lasso'); ?>"></li>
252
+		    <li id="lasso-toolbar--strike" title="<?php esc_attr_e('Strikethrough', 'lasso'); ?>"></li>
253 253
 			
254
-		    <?php if ( $toolbar_headings ): ?>
255
-		    <li id="lasso-toolbar--h2" title="<?php esc_attr_e( 'H2 Heading', 'lasso' );?>"></li>
256
-		    <li id="lasso-toolbar--h3" title="<?php esc_attr_e( 'H3 Heading', 'lasso' );?>"></li>
254
+		    <?php if ($toolbar_headings): ?>
255
+		    <li id="lasso-toolbar--h2" title="<?php esc_attr_e('H2 Heading', 'lasso'); ?>"></li>
256
+		    <li id="lasso-toolbar--h3" title="<?php esc_attr_e('H3 Heading', 'lasso'); ?>"></li>
257 257
 			<?php endif; ?>
258 258
 			
259 259
 			
260 260
 			
261
-			<?php if ( $toolbar_headings_h4 ): ?>
262
-		    <li id="lasso-toolbar--h4" title="<?php esc_attr_e( 'H4 Heading', 'lasso' );?>"></li>
263
-		    <li id="lasso-toolbar--h5" title="<?php esc_attr_e( 'H5 Heading', 'lasso' );?>"></li>
264
-			<li id="lasso-toolbar--h6" title="<?php esc_attr_e( 'H6 Heading', 'lasso' );?>"></li>
261
+			<?php if ($toolbar_headings_h4): ?>
262
+		    <li id="lasso-toolbar--h4" title="<?php esc_attr_e('H4 Heading', 'lasso'); ?>"></li>
263
+		    <li id="lasso-toolbar--h5" title="<?php esc_attr_e('H5 Heading', 'lasso'); ?>"></li>
264
+			<li id="lasso-toolbar--h6" title="<?php esc_attr_e('H6 Heading', 'lasso'); ?>"></li>
265 265
 			<?php endif; ?>
266 266
 			
267
-			<?php if ( $show_color ): ?>
268
-		    <li id="lasso-toolbar--color-set" title="<?php esc_attr_e( 'Set Color for Selected Text', 'lasso' );?>"></li>
269
-		    <li id="lasso-toolbar--color-pick" title="<?php esc_attr_e( 'Choose Color', 'lasso' );?>"></li>
267
+			<?php if ($show_color): ?>
268
+		    <li id="lasso-toolbar--color-set" title="<?php esc_attr_e('Set Color for Selected Text', 'lasso'); ?>"></li>
269
+		    <li id="lasso-toolbar--color-pick" title="<?php esc_attr_e('Choose Color', 'lasso'); ?>"></li>
270 270
 			<?php endif; ?>
271 271
 			
272
-			<?php if ( $toolbar_list ): ?>
273
-		    <li id="lasso-toolbar--ol" title="<?php esc_attr_e( 'Ordered List', 'lasso' );?>"></li>
274
-		    <li id="lasso-toolbar--ul" title="<?php esc_attr_e( 'Unordered List', 'lasso' );?>"></li>
272
+			<?php if ($toolbar_list): ?>
273
+		    <li id="lasso-toolbar--ol" title="<?php esc_attr_e('Ordered List', 'lasso'); ?>"></li>
274
+		    <li id="lasso-toolbar--ul" title="<?php esc_attr_e('Unordered List', 'lasso'); ?>"></li>
275 275
 			<?php endif; ?>
276 276
 					
277 277
 		    
278
-			<li id="lasso-toolbar--link" title="<?php esc_attr_e( 'Anchor Link', 'lasso' );?>">
278
+			<li id="lasso-toolbar--link" title="<?php esc_attr_e('Anchor Link', 'lasso'); ?>">
279 279
 		    	<div id="lasso-toolbar--link__wrap" <?php echo $mobile_style ?> >
280
-		    		<div id="lasso-toolbar--link__inner" contenteditable="true" placeholder="<?php esc_attr_e( 'http://url.com', 'lasso' );?>"></div>
281
-		    		<a href="#" title="<?php esc_attr_e( 'Create Link', 'lasso' );?>" class="lasso-toolbar--link__control" id="lasso-toolbar--link__create" ></a>
280
+		    		<div id="lasso-toolbar--link__inner" contenteditable="true" placeholder="<?php esc_attr_e('http://url.com', 'lasso'); ?>"></div>
281
+		    		<a href="#" title="<?php esc_attr_e('Create Link', 'lasso'); ?>" class="lasso-toolbar--link__control" id="lasso-toolbar--link__create" ></a>
282 282
 					<input class="styled-checkbox" type="checkbox" id="aesop-toolbar--link_newtab" checked/>
283
-                    <label for="aesop-toolbar--link_newtab"><?php esc_attr_e( 'Open in a New Tab', 'lasso' );?></label>
283
+                    <label for="aesop-toolbar--link_newtab"><?php esc_attr_e('Open in a New Tab', 'lasso'); ?></label>
284 284
 		    	</div>
285 285
 		    </li>
286
-		    <?php do_action( 'lasso_toolbar_components_after' );?>
286
+		    <?php do_action('lasso_toolbar_components_after'); ?>
287 287
 		</ul>				
288 288
 	</div>
289 289
 
@@ -304,21 +304,21 @@  discard block
 block discarded – undo
304 304
 	$is_mobile = wp_is_mobile();
305 305
 
306 306
 	// check for lasso story engine and add a class doniting this
307
-	$ase_status = class_exists( 'Aesop_Core' ) || defined( 'LASSO_CUSTOM' ) ? 'ase-active' : 'ase-not-active';
307
+	$ase_status = class_exists('Aesop_Core') || defined('LASSO_CUSTOM') ? 'ase-active' : 'ase-not-active';
308 308
 
309 309
 	// let users add custom css classes
310
-	$custom_classes = apply_filters( 'lasso_toolbar_classes', '' );
310
+	$custom_classes = apply_filters('lasso_toolbar_classes', '');
311 311
 
312 312
 	// are toolbar headings enabled
313
-	$toolbar_headings      = lasso_editor_get_option( 'toolbar_headings', 'lasso_editor' );
314
-	$toolbar_headings_h4      = lasso_editor_get_option( 'toolbar_headings_h4', 'lasso_editor' );
315
-	$toolbar_list      = lasso_editor_get_option( 'toolbar_list', 'lasso_editor' );
313
+	$toolbar_headings = lasso_editor_get_option('toolbar_headings', 'lasso_editor');
314
+	$toolbar_headings_h4 = lasso_editor_get_option('toolbar_headings_h4', 'lasso_editor');
315
+	$toolbar_list = lasso_editor_get_option('toolbar_list', 'lasso_editor');
316 316
 
317
-	$toolbar_class  = $toolbar_headings ? 'toolbar-extended' : false;
317
+	$toolbar_class = $toolbar_headings ? 'toolbar-extended' : false;
318 318
 	
319 319
 	// mobile styles
320 320
     $mobile_class = $is_mobile ? 'lasso-mobile' : false;
321
-	$mobile_style =$is_mobile ? 'style="bottom:0px;"' : null;
321
+	$mobile_style = $is_mobile ? 'style="bottom:0px;"' : null;
322 322
 	
323 323
 	//show color
324 324
 	$show_color = lasso_editor_get_option('toolbar_show_color', 'lasso_editor');
@@ -326,140 +326,140 @@  discard block
 block discarded – undo
326 326
 	//show alignment
327 327
 	$show_align = lasso_editor_get_option('toolbar_show_alignment', 'lasso_editor');
328 328
 	
329
-	$status = get_post_status( get_the_ID() );
329
+	$status = get_post_status(get_the_ID());
330 330
 	
331
-	$shortcodify_disabled = lasso_editor_get_option( 'shortcodify_disabled', 'lasso_editor' );
331
+	$shortcodify_disabled = lasso_editor_get_option('shortcodify_disabled', 'lasso_editor');
332 332
 	
333
-	$sc_saving_class = ('on' == $shortcodify_disabled || $ase_status == 'ase-not-active')  ? 'shortcodify-disabled' : 'shortcodify-enabled';
333
+	$sc_saving_class = ('on' == $shortcodify_disabled || $ase_status == 'ase-not-active') ? 'shortcodify-disabled' : 'shortcodify-enabled';
334 334
 
335
-    $use_wp_block_image = lasso_editor_get_option('use_wp_block_image', 'lasso_editor','off');
335
+    $use_wp_block_image = lasso_editor_get_option('use_wp_block_image', 'lasso_editor', 'off');
336 336
 
337 337
 	?>
338
-	<div class="lasso--toolbar_wrap lasso-editor-controls--wrap <?php echo $toolbar_class.' '.$mobile_class.' '.$ase_status.' '.sanitize_html_class( $custom_classes );?>" <?php echo $mobile_style ?>>
339
-		<ul class="lasso--toolbar__inner lasso-editor-controls" <?php if ($is_mobile) {echo 'style="float:left;"';}?>>
340
-			<?php do_action( 'lasso_toolbar_components_before' );?>
338
+	<div class="lasso--toolbar_wrap lasso-editor-controls--wrap <?php echo $toolbar_class.' '.$mobile_class.' '.$ase_status.' '.sanitize_html_class($custom_classes); ?>" <?php echo $mobile_style ?>>
339
+		<ul class="lasso--toolbar__inner lasso-editor-controls" <?php if ($is_mobile) {echo 'style="float:left;"'; }?>>
340
+			<?php do_action('lasso_toolbar_components_before'); ?>
341 341
             <?php if (!$text_select_popup) { ?>
342
-		    <li id="lasso-toolbar--bold" title="<?php esc_attr_e( 'Bold', 'lasso' );?>"></li>
343
-		    <li id="lasso-toolbar--underline" title="<?php esc_attr_e( 'Underline', 'lasso' );?>"></li>
344
-		    <li id="lasso-toolbar--italic" title="<?php esc_attr_e( 'Italicize', 'lasso' );?>"></li>
345
-		    <li id="lasso-toolbar--strike" title="<?php esc_attr_e( 'Strikethrough', 'lasso' );?>"></li>
342
+		    <li id="lasso-toolbar--bold" title="<?php esc_attr_e('Bold', 'lasso'); ?>"></li>
343
+		    <li id="lasso-toolbar--underline" title="<?php esc_attr_e('Underline', 'lasso'); ?>"></li>
344
+		    <li id="lasso-toolbar--italic" title="<?php esc_attr_e('Italicize', 'lasso'); ?>"></li>
345
+		    <li id="lasso-toolbar--strike" title="<?php esc_attr_e('Strikethrough', 'lasso'); ?>"></li>
346 346
             <?php }?>
347
-			<li id="lasso-toolbar--components" class="lasso-toolbar--components" title="<?php esc_attr_e( 'Insert Component', 'lasso' );?>" style="color:#ffffa0;">
347
+			<li id="lasso-toolbar--components" class="lasso-toolbar--components" title="<?php esc_attr_e('Insert Component', 'lasso'); ?>" style="color:#ffffa0;">
348 348
 			    <ul id="lasso-toolbar--components__list" style="display:none;color:white;">
349
-			    	<?php if ( 'ase-active' == $ase_status ): ?>
350
-						<li data-type="image" title="<?php esc_attr_e( 'Image', 'lasso' );?>" class="lasso-toolbar--component__image"></li>
351
-						<li data-type="character" title="<?php esc_attr_e( 'Character', 'lasso' );?>" class="lasso-toolbar--component__character"></li>
352
-						<li data-type="quote" title="<?php esc_attr_e( 'Quote', 'lasso' );?>"  class="lasso-toolbar--component__quote"></li>
353
-						<!--li data-type="content" title="<?php esc_attr_e( 'Content', 'lasso' );?>"  class="lasso-toolbar--component__content"></li-->
354
-						<li data-type="chapter" title="<?php esc_attr_e( 'Chapter', 'lasso' );?>"  class="lasso-toolbar--component__chapter"></li>
355
-						<li data-type="parallax" title="<?php esc_attr_e( 'Parallax', 'lasso' );?>"  class="lasso-toolbar--component__parallax"></li>
356
-						<li data-type="audio" title="<?php esc_attr_e( 'Audio', 'lasso' );?>"  class="lasso-toolbar--component__audio"></li>
357
-						<li data-type="video" title="<?php esc_attr_e( 'Video', 'lasso' );?>"  class="lasso-toolbar--component__video"></li>
358
-						<li data-type="map" title="<?php esc_attr_e( 'Map', 'lasso' );?>"  class="lasso-toolbar--component__map"></li>
359
-						<li data-type="timeline_stop" title="<?php esc_attr_e( 'Timeline', 'lasso' );?>"  class="lasso-toolbar--component__timeline"></li>
360
-						<li data-type="document" title="<?php esc_attr_e( 'Document', 'lasso' );?>"  class="lasso-toolbar--component__document"></li>
361
-						<li data-type="collection" title="<?php esc_attr_e( 'Collection', 'lasso' );?>"  class="lasso-toolbar--component__collection"></li>
362
-						<li data-type="gallery" title="<?php esc_attr_e( 'Gallery', 'lasso' );?>"  class="lasso-toolbar--component__gallery"></li>
363
-						<?php if ( class_exists ('Aesop_GalleryPop') ) { ?>
364
-						     <li data-type="gallery" title="<?php esc_attr_e( 'Gallery Pop', 'lasso' );?>"  class="lasso-toolbar--component__gallerypop"></li>
349
+			    	<?php if ('ase-active' == $ase_status): ?>
350
+						<li data-type="image" title="<?php esc_attr_e('Image', 'lasso'); ?>" class="lasso-toolbar--component__image"></li>
351
+						<li data-type="character" title="<?php esc_attr_e('Character', 'lasso'); ?>" class="lasso-toolbar--component__character"></li>
352
+						<li data-type="quote" title="<?php esc_attr_e('Quote', 'lasso'); ?>"  class="lasso-toolbar--component__quote"></li>
353
+						<!--li data-type="content" title="<?php esc_attr_e('Content', 'lasso'); ?>"  class="lasso-toolbar--component__content"></li-->
354
+						<li data-type="chapter" title="<?php esc_attr_e('Chapter', 'lasso'); ?>"  class="lasso-toolbar--component__chapter"></li>
355
+						<li data-type="parallax" title="<?php esc_attr_e('Parallax', 'lasso'); ?>"  class="lasso-toolbar--component__parallax"></li>
356
+						<li data-type="audio" title="<?php esc_attr_e('Audio', 'lasso'); ?>"  class="lasso-toolbar--component__audio"></li>
357
+						<li data-type="video" title="<?php esc_attr_e('Video', 'lasso'); ?>"  class="lasso-toolbar--component__video"></li>
358
+						<li data-type="map" title="<?php esc_attr_e('Map', 'lasso'); ?>"  class="lasso-toolbar--component__map"></li>
359
+						<li data-type="timeline_stop" title="<?php esc_attr_e('Timeline', 'lasso'); ?>"  class="lasso-toolbar--component__timeline"></li>
360
+						<li data-type="document" title="<?php esc_attr_e('Document', 'lasso'); ?>"  class="lasso-toolbar--component__document"></li>
361
+						<li data-type="collection" title="<?php esc_attr_e('Collection', 'lasso'); ?>"  class="lasso-toolbar--component__collection"></li>
362
+						<li data-type="gallery" title="<?php esc_attr_e('Gallery', 'lasso'); ?>"  class="lasso-toolbar--component__gallery"></li>
363
+						<?php if (class_exists('Aesop_GalleryPop')) { ?>
364
+						     <li data-type="gallery" title="<?php esc_attr_e('Gallery Pop', 'lasso'); ?>"  class="lasso-toolbar--component__gallerypop"></li>
365 365
 						<?php }?>
366
-						<?php if ( class_exists ('Aesop_Events') ) { ?>
367
-						     <li data-type="events" title="<?php esc_attr_e( 'Event', 'lasso' );?>"  class="lasso-toolbar--component__event"></li>
366
+						<?php if (class_exists('Aesop_Events')) { ?>
367
+						     <li data-type="events" title="<?php esc_attr_e('Event', 'lasso'); ?>"  class="lasso-toolbar--component__event"></li>
368 368
 						<?php }?>
369 369
 					<?php else: ?>
370 370
                         <?php if ($use_wp_block_image == 'on') { ?>
371
-                            <li data-type="wpimg-block" title="<?php esc_attr_e( 'WordPress Image', 'lasso' );?>" class="image lasso-toolbar--component__image"></li>
371
+                            <li data-type="wpimg-block" title="<?php esc_attr_e('WordPress Image', 'lasso'); ?>" class="image lasso-toolbar--component__image"></li>
372 372
                         <?php } else { ?>
373
-						    <li data-type="wpimg" title="<?php esc_attr_e( 'WordPress Image', 'lasso' );?>" class="image lasso-toolbar--component__image"></li>
373
+						    <li data-type="wpimg" title="<?php esc_attr_e('WordPress Image', 'lasso'); ?>" class="image lasso-toolbar--component__image"></li>
374 374
                         <?php } ?>
375
-						<li data-type="wpquote" title="<?php esc_attr_e( 'WordPress Quote', 'lasso' );?>" class="quote lasso-toolbar--component__quote"></li>
376
-						<!--li data-type="wpvideo" title="<?php esc_attr_e( 'WordPress Video', 'lasso' );?>" class="video lasso-toolbar--component__video"></li-->
375
+						<li data-type="wpquote" title="<?php esc_attr_e('WordPress Quote', 'lasso'); ?>" class="quote lasso-toolbar--component__quote"></li>
376
+						<!--li data-type="wpvideo" title="<?php esc_attr_e('WordPress Video', 'lasso'); ?>" class="video lasso-toolbar--component__video"></li-->
377 377
 					<?php endif; ?>
378
-					<?php do_action( 'lasso_toolbar_components' );?>
378
+					<?php do_action('lasso_toolbar_components'); ?>
379 379
 			    </ul>
380 380
 			</li>
381 381
             <?php if (!$text_select_popup) { ?>
382 382
             
383
-		    <?php if ( $toolbar_headings ): ?>
384
-		    <li id="lasso-toolbar--h2" title="<?php esc_attr_e( 'H2 Heading', 'lasso' );?>"></li>
385
-		    <li id="lasso-toolbar--h3" title="<?php esc_attr_e( 'H3 Heading', 'lasso' );?>"></li>
383
+		    <?php if ($toolbar_headings): ?>
384
+		    <li id="lasso-toolbar--h2" title="<?php esc_attr_e('H2 Heading', 'lasso'); ?>"></li>
385
+		    <li id="lasso-toolbar--h3" title="<?php esc_attr_e('H3 Heading', 'lasso'); ?>"></li>
386 386
 			<?php endif; ?>
387 387
 			
388 388
 			
389 389
 			
390
-			<?php if ( $toolbar_headings_h4 ): ?>
391
-		    <li id="lasso-toolbar--h4" title="<?php esc_attr_e( 'H4 Heading', 'lasso' );?>"></li>
392
-		    <li id="lasso-toolbar--h5" title="<?php esc_attr_e( 'H5 Heading', 'lasso' );?>"></li>
393
-			<li id="lasso-toolbar--h6" title="<?php esc_attr_e( 'H6 Heading', 'lasso' );?>"></li>
390
+			<?php if ($toolbar_headings_h4): ?>
391
+		    <li id="lasso-toolbar--h4" title="<?php esc_attr_e('H4 Heading', 'lasso'); ?>"></li>
392
+		    <li id="lasso-toolbar--h5" title="<?php esc_attr_e('H5 Heading', 'lasso'); ?>"></li>
393
+			<li id="lasso-toolbar--h6" title="<?php esc_attr_e('H6 Heading', 'lasso'); ?>"></li>
394 394
 			<?php endif; ?>
395 395
 			
396
-			<?php if ( $show_color ): ?>
397
-		    <li id="lasso-toolbar--color-set" title="<?php esc_attr_e( 'Set Color for Selected Text', 'lasso' );?>"></li>
398
-		    <li id="lasso-toolbar--color-pick" title="<?php esc_attr_e( 'Choose Color', 'lasso' );?>"></li>
396
+			<?php if ($show_color): ?>
397
+		    <li id="lasso-toolbar--color-set" title="<?php esc_attr_e('Set Color for Selected Text', 'lasso'); ?>"></li>
398
+		    <li id="lasso-toolbar--color-pick" title="<?php esc_attr_e('Choose Color', 'lasso'); ?>"></li>
399 399
 			<?php endif; ?>
400 400
 			
401
-			<?php if ( $toolbar_list ): ?>
402
-		    <li id="lasso-toolbar--ol" title="<?php esc_attr_e( 'Ordered List', 'lasso' );?>"></li>
403
-		    <li id="lasso-toolbar--ul" title="<?php esc_attr_e( 'Unordered List', 'lasso' );?>"></li>
401
+			<?php if ($toolbar_list): ?>
402
+		    <li id="lasso-toolbar--ol" title="<?php esc_attr_e('Ordered List', 'lasso'); ?>"></li>
403
+		    <li id="lasso-toolbar--ul" title="<?php esc_attr_e('Unordered List', 'lasso'); ?>"></li>
404 404
 			<?php endif; ?>
405 405
 					
406 406
 		    
407
-			<li id="lasso-toolbar--link" title="<?php esc_attr_e( 'Anchor Link', 'lasso' );?>">
407
+			<li id="lasso-toolbar--link" title="<?php esc_attr_e('Anchor Link', 'lasso'); ?>">
408 408
 		    	<div id="lasso-toolbar--link__wrap" <?php echo $mobile_style ?> >
409
-		    		<div id="lasso-toolbar--link__inner" contenteditable="true" placeholder="<?php esc_attr_e( 'http://url.com', 'lasso' );?>"></div>
410
-		    		<a href="#" title="<?php esc_attr_e( 'Create Link', 'lasso' );?>" class="lasso-toolbar--link__control" id="lasso-toolbar--link__create" ></a>
409
+		    		<div id="lasso-toolbar--link__inner" contenteditable="true" placeholder="<?php esc_attr_e('http://url.com', 'lasso'); ?>"></div>
410
+		    		<a href="#" title="<?php esc_attr_e('Create Link', 'lasso'); ?>" class="lasso-toolbar--link__control" id="lasso-toolbar--link__create" ></a>
411 411
 					<input class="styled-checkbox" type="checkbox" id="aesop-toolbar--link_newtab" checked/>
412
-                    <label for="aesop-toolbar--link_newtab"><?php esc_attr_e( 'Open in a New Tab', 'lasso' );?></label>
412
+                    <label for="aesop-toolbar--link_newtab"><?php esc_attr_e('Open in a New Tab', 'lasso'); ?></label>
413 413
 		    	</div>
414 414
 		    </li>
415 415
             
416 416
             <?php } ?>
417 417
             
418
-		    <?php do_action( 'lasso_toolbar_components_after' );?>
419
-		    <li id="lasso-toolbar--html" title="<?php esc_attr_e( 'Insert HTML or Code', 'lasso' );?>">
418
+		    <?php do_action('lasso_toolbar_components_after'); ?>
419
+		    <li id="lasso-toolbar--html" title="<?php esc_attr_e('Insert HTML or Code', 'lasso'); ?>">
420 420
 		    	<div id="lasso-toolbar--html__wrap" <?php echo $mobile_style ?>>
421
-		    		<div id="lasso-toolbar--html__inner" contenteditable="true" placeholder="<?php esc_attr_e( 'Enter HTML to insert', 'lasso' );?>"></div>
421
+		    		<div id="lasso-toolbar--html__inner" contenteditable="true" placeholder="<?php esc_attr_e('Enter HTML to insert', 'lasso'); ?>"></div>
422 422
 		    		<div id="lasso-toolbar--html__footer">
423 423
 					<div id="lasso-toolbar--html__footer_desc" >
424
-					<?php esc_attr_e( 'Enter HTML to insert', 'lasso' );?><br>
425
-					<?php esc_attr_e( 'You can also use Shortcodes', 'lasso' );?><br>
426
-					<?php esc_attr_e( 'You can also enter a URL to embed, such as Youtube, Vimeo and Twitter URLs.', 'lasso' );?>
424
+					<?php esc_attr_e('Enter HTML to insert', 'lasso'); ?><br>
425
+					<?php esc_attr_e('You can also use Shortcodes', 'lasso'); ?><br>
426
+					<?php esc_attr_e('You can also enter a URL to embed, such as Youtube, Vimeo and Twitter URLs.', 'lasso'); ?>
427 427
 					</div>
428 428
 		    			<ul class="lasso-toolbar--html-snips">
429 429
 						
430
-		    				<?php if ( !$toolbar_headings ): ?>
431
-		    				<li id="lasso-html--h2" title="<?php esc_attr_e( 'H2 Heading', 'lasso' );?>">
432
-		    				<li id="lasso-html--h3" title="<?php esc_attr_e( 'H3 Heading', 'lasso' );?>">
430
+		    				<?php if (!$toolbar_headings): ?>
431
+		    				<li id="lasso-html--h2" title="<?php esc_attr_e('H2 Heading', 'lasso'); ?>">
432
+		    				<li id="lasso-html--h3" title="<?php esc_attr_e('H3 Heading', 'lasso'); ?>">
433 433
 		    				<?php endif; ?>
434
-		    				<li id="lasso-html--ol" title="<?php esc_attr_e( 'Ordered List', 'lasso' );?>">
435
-							<li id="lasso-html--ul" title="<?php esc_attr_e( 'Unordered List', 'lasso' );?>">
434
+		    				<li id="lasso-html--ol" title="<?php esc_attr_e('Ordered List', 'lasso'); ?>">
435
+							<li id="lasso-html--ul" title="<?php esc_attr_e('Unordered List', 'lasso'); ?>">
436 436
 							
437
-							<li id="lasso-html--table" title="<?php esc_attr_e( 'Table', 'lasso' );?>">
437
+							<li id="lasso-html--table" title="<?php esc_attr_e('Table', 'lasso'); ?>">
438 438
 		    			</ul>
439
-		    			<a class="lasso-toolbar--html__control lasso-toolbar--html__cancel" href="#"><?php _e( 'Cancel', 'lasso' );?></a>
440
-		    			<a href="#" title="<?php esc_attr_e( 'Insert HTML or Code', 'lasso' );?>" class="lasso-toolbar--html__control" id="lasso-toolbar--html__insert" ><?php _e( 'Insert', 'lasso' );?></a>
439
+		    			<a class="lasso-toolbar--html__control lasso-toolbar--html__cancel" href="#"><?php _e('Cancel', 'lasso'); ?></a>
440
+		    			<a href="#" title="<?php esc_attr_e('Insert HTML or Code', 'lasso'); ?>" class="lasso-toolbar--html__control" id="lasso-toolbar--html__insert" ><?php _e('Insert', 'lasso'); ?></a>
441 441
 		    		</div>
442 442
 		    	</div>
443 443
 		    </li>
444 444
              
445
-			<?php if ( $show_align ): ?>
446
-		    <li id="lasso-toolbar--left-align" title="<?php esc_attr_e( 'Text Left Align', 'lasso' );?>"></li>
447
-		    <li id="lasso-toolbar--center-align" title="<?php esc_attr_e( 'Text Center Align', 'lasso' );?>"></li>
448
-			<li id="lasso-toolbar--right-align" title="<?php esc_attr_e( 'Text Right Align', 'lasso' );?>"></li>
445
+			<?php if ($show_align): ?>
446
+		    <li id="lasso-toolbar--left-align" title="<?php esc_attr_e('Text Left Align', 'lasso'); ?>"></li>
447
+		    <li id="lasso-toolbar--center-align" title="<?php esc_attr_e('Text Center Align', 'lasso'); ?>"></li>
448
+			<li id="lasso-toolbar--right-align" title="<?php esc_attr_e('Text Right Align', 'lasso'); ?>"></li>
449 449
 			<?php endif; ?>
450 450
            
451 451
 		</ul>
452
-		<?php if ( is_singular() && $is_mobile ) { ?>
452
+		<?php if (is_singular() && $is_mobile) { ?>
453 453
 
454
-				<div class="lasso--controls__right" data-posttype="<?php echo get_post_type( get_the_ID() );?>" data-status="<?php echo $status;?>" style="position:static;bottom:0px;right;0px;left:auto;">
454
+				<div class="lasso--controls__right" data-posttype="<?php echo get_post_type(get_the_ID()); ?>" data-status="<?php echo $status; ?>" style="position:static;bottom:0px;right;0px;left:auto;">
455 455
 
456
-					<a href="#" title="<?php esc_attr_e( 'Delete Post', 'lasso' );?>" id="lasso--post-delete" class="lasso-save-post lasso--button <?php echo $sc_saving_class;?>"></a>
457
-					<a href="#" title="<?php esc_attr_e( 'Post Settings', 'lasso' );?>" id="lasso--post-settings2" class="lasso-save-post lasso--button <?php echo $sc_saving_class;?>"></a>
456
+					<a href="#" title="<?php esc_attr_e('Delete Post', 'lasso'); ?>" id="lasso--post-delete" class="lasso-save-post lasso--button <?php echo $sc_saving_class; ?>"></a>
457
+					<a href="#" title="<?php esc_attr_e('Post Settings', 'lasso'); ?>" id="lasso--post-settings2" class="lasso-save-post lasso--button <?php echo $sc_saving_class; ?>"></a>
458 458
 
459
-					<a href="#" title="<?php esc_attr_e( 'Save Post', 'lasso' );?>" id="lasso--save" class="lasso-save-post lasso--button <?php echo $sc_saving_class;?>"></a>
459
+					<a href="#" title="<?php esc_attr_e('Save Post', 'lasso'); ?>" id="lasso--save" class="lasso-save-post lasso--button <?php echo $sc_saving_class; ?>"></a>
460 460
 
461
-					<?php if ( 'draft' == $status && ( lasso_user_can('publish_posts') || lasso_user_can('publish_pages') )  ) { ?>
462
-						<a href="#" title="<?php esc_attr_e( 'Publish Post', 'lasso' );?>" id="lasso--publish" class="lasso-publish-post lasso--button <?php echo $sc_saving_class;?>"></a>
461
+					<?php if ('draft' == $status && (lasso_user_can('publish_posts') || lasso_user_can('publish_pages'))) { ?>
462
+						<a href="#" title="<?php esc_attr_e('Publish Post', 'lasso'); ?>" id="lasso--publish" class="lasso-publish-post lasso--button <?php echo $sc_saving_class; ?>"></a>
463 463
 					<?php } ?>
464 464
 
465 465
 				</div>
@@ -479,20 +479,20 @@  discard block
 block discarded – undo
479 479
  */
480 480
 function lasso_editor_settings_toolbar() {
481 481
 
482
-	$delete_nonce = wp_create_nonce( 'lasso-delete-nonce' );
482
+	$delete_nonce = wp_create_nonce('lasso-delete-nonce');
483 483
 
484 484
 	ob_start();
485 485
 
486 486
 
487 487
 	// let users add custom css classes
488
-	$custom_classes = apply_filters( 'lasso_component_classes', '' );
488
+	$custom_classes = apply_filters('lasso_component_classes', '');
489 489
 
490 490
 	?>
491
-	<ul class="lasso-component--controls editus-center <?php echo sanitize_html_class( $custom_classes );?>" contenteditable="false">
492
-		<li class="lasso-drag" title="<?php esc_attr_e( 'Move', 'lasso' );?>"></li>
493
-		<li class="lasso-component--settings__trigger  lasso-settings" title="<?php esc_attr_e( 'Settings', 'lasso' );?>"></li>
494
-		<li class="lasso-clone" title="<?php esc_attr_e( 'Clone', 'lasso' );?>"></li>
495
-		<li class="lasso-delete" data-postid="<?php echo get_the_ID();?>" data-nonce="<?php echo $delete_nonce;?>" title="<?php esc_attr_e( 'Delete', 'lasso' );?>"></li>
491
+	<ul class="lasso-component--controls editus-center <?php echo sanitize_html_class($custom_classes); ?>" contenteditable="false">
492
+		<li class="lasso-drag" title="<?php esc_attr_e('Move', 'lasso'); ?>"></li>
493
+		<li class="lasso-component--settings__trigger  lasso-settings" title="<?php esc_attr_e('Settings', 'lasso'); ?>"></li>
494
+		<li class="lasso-clone" title="<?php esc_attr_e('Clone', 'lasso'); ?>"></li>
495
+		<li class="lasso-delete" data-postid="<?php echo get_the_ID(); ?>" data-nonce="<?php echo $delete_nonce; ?>" title="<?php esc_attr_e('Delete', 'lasso'); ?>"></li>
496 496
 	</ul>
497 497
 
498 498
 	<?php return ob_get_clean();
@@ -510,13 +510,13 @@  discard block
 block discarded – undo
510 510
 
511 511
 
512 512
 	// has post thumbnail
513
-	$has_thumbnail = has_post_thumbnail( get_the_ID() ) ? 'class="lasso--featImg--has-thumb"' : false;
513
+	$has_thumbnail = has_post_thumbnail(get_the_ID()) ? 'class="lasso--featImg--has-thumb"' : false;
514 514
 
515 515
 	?>
516
-	<ul id="lasso--featImgControls" <?php echo $has_thumbnail;?>>
517
-		<li id="lasso--featImgUpload"><a title="<?php esc_attr_e( 'Replace Image', 'lasso' );?>" href="#"><i class="lasso-icon-image"></i></a></li>
518
-		<li id="lasso--featImgDelete"><a title="<?php esc_attr_e( 'Delete Image', 'lasso' );?>" href="#"><i class="lasso-icon-bin2"></i></a></li>
519
-		<li id="lasso--featImgSave"><a href="#"><?php esc_attr_e( 'save', 'lasso' );?></a></li>
516
+	<ul id="lasso--featImgControls" <?php echo $has_thumbnail; ?>>
517
+		<li id="lasso--featImgUpload"><a title="<?php esc_attr_e('Replace Image', 'lasso'); ?>" href="#"><i class="lasso-icon-image"></i></a></li>
518
+		<li id="lasso--featImgDelete"><a title="<?php esc_attr_e('Delete Image', 'lasso'); ?>" href="#"><i class="lasso-icon-bin2"></i></a></li>
519
+		<li id="lasso--featImgSave"><a href="#"><?php esc_attr_e('save', 'lasso'); ?></a></li>
520 520
 	</ul>
521 521
 
522 522
 	<?php return ob_get_clean();
@@ -540,39 +540,39 @@  discard block
 block discarded – undo
540 540
 
541 541
 	$postid = get_the_ID();
542 542
 
543
-	$status = get_post_status( $postid );
544
-	$nonce = wp_create_nonce( 'lasso-update-post-settings' );
543
+	$status = get_post_status($postid);
544
+	$nonce = wp_create_nonce('lasso-update-post-settings');
545 545
 
546 546
 	// let users add custom css classes
547
-	$custom_classes = apply_filters( 'lasso_modal_settings_classes', '' );
547
+	$custom_classes = apply_filters('lasso_modal_settings_classes', '');
548 548
 
549 549
 	// objects categories
550
-	$categories 		= lasso_get_post_objects( $postid, 'category' );
551
-	$tags 				= lasso_get_post_objects( $postid, 'tag' );
550
+	$categories = lasso_get_post_objects($postid, 'category');
551
+	$tags = lasso_get_post_objects($postid, 'tag');
552 552
 	
553 553
 	// modal tabs
554
-	$tabs  				= lasso_modal_addons('tab');
555
-	$content 			= lasso_modal_addons('content');
554
+	$tabs = lasso_modal_addons('tab');
555
+	$content = lasso_modal_addons('content');
556 556
 	
557 557
 	//editor options
558 558
 	$allow_change_date = lasso_editor_get_option('allow_change_date', 'lasso_editor');
559 559
     $allow_edit_excerpt = lasso_editor_get_option('allow_edit_excerpt', 'lasso_editor');
560 560
 	$no_url_setting = lasso_editor_get_option('no_url_setting', 'lasso_editor');
561
-	$support_custom_taxonomy   = lasso_editor_get_option( 'support_custom_taxonomy', 'lasso_editor' );
561
+	$support_custom_taxonomy = lasso_editor_get_option('support_custom_taxonomy', 'lasso_editor');
562 562
 	
563 563
 	//get custom taxonomy
564 564
 	if ($support_custom_taxonomy) {
565
-		$custom_taxonomies         = array_diff(get_object_taxonomies( get_post_type( $postid ), 'names' ), ['category','post_tag','post_format']);
565
+		$custom_taxonomies = array_diff(get_object_taxonomies(get_post_type($postid), 'names'), ['category', 'post_tag', 'post_format']);
566 566
 	} else {
567 567
 		$custom_taxonomies = [];
568 568
 	}
569 569
 
570 570
 	// are we singular
571
-	$is_singular 		= is_singular();
571
+	$is_singular = is_singular();
572 572
 	$is_singular_class 	= $is_singular ? 'lasso--postsettings__2col' : 'lasso--postsettings__1col';
573 573
 	$has_thumb_class    = has_post_thumbnail() ? 'has-thumbnail' : 'no-thumbnail';
574 574
 	$theme_supports     = current_theme_supports('post-thumbnails');
575
-	$default_image 		= LASSO_URL.'/admin/assets/img/empty-img.png';
575
+	$default_image = LASSO_URL.'/admin/assets/img/empty-img.png';
576 576
 	
577 577
 	// do we support pending status
578 578
 	$no_pending_status = lasso_editor_get_option('no_pending_status', 'lasso_editor');
@@ -580,26 +580,26 @@  discard block
 block discarded – undo
580 580
     $excerpt = $post->post_excerpt;
581 581
 
582 582
 ?>
583
-	<div id="lasso--post-settings__modal" class="lasso--modal lassoShowAnimate <?php echo sanitize_html_class( $custom_classes );?>">
583
+	<div id="lasso--post-settings__modal" class="lasso--modal lassoShowAnimate <?php echo sanitize_html_class($custom_classes); ?>">
584 584
 		<div class="lasso--modal__inner">
585 585
 
586
-			<?php if( $tabs ) { echo $tabs; } ?>
586
+			<?php if ($tabs) { echo $tabs; } ?>
587 587
 
588 588
 			<div class="lasso--modal__content modal__content--core visible" data-addon-content="core">
589
-				<form id="lasso--postsettings__form" enctype="multipart/form-data" class="lasso--post-form <?php echo $is_singular_class.' '.$has_thumb_class;?>" >
589
+				<form id="lasso--postsettings__form" enctype="multipart/form-data" class="lasso--post-form <?php echo $is_singular_class.' '.$has_thumb_class; ?>" >
590 590
 
591
-					<?php if ( $is_singular && $theme_supports ) : ?>
591
+					<?php if ($is_singular && $theme_supports) : ?>
592 592
 					<div class="lasso--postsettings__left">
593
-						<label><?php _e( 'Featured Image', 'lasso' );?><span class="lasso-util--help lasso-util--help-top" data-tooltip="<?php esc_attr_e( 'Change the featured image for this post.', 'lasso' );?>"><i class="lasso-icon-help"></i></span></label>
594
-						<div class="lasso--post-thumb" data-default-thumb="<?php echo esc_url( $default_image );?>">
593
+						<label><?php _e('Featured Image', 'lasso'); ?><span class="lasso-util--help lasso-util--help-top" data-tooltip="<?php esc_attr_e('Change the featured image for this post.', 'lasso'); ?>"><i class="lasso-icon-help"></i></span></label>
594
+						<div class="lasso--post-thumb" data-default-thumb="<?php echo esc_url($default_image); ?>">
595 595
 
596 596
 							<div id="lasso--post-thumb__controls" class="lasso--post-thumb__controls">
597
-								<i id="lasso--post-thumb__add" title="<?php _e('Change Featured Image','lasso');?>" class="dashicons dashicons-edit"></i>
598
-								<i id="lasso--post-thumb__delete" title="<?php _e('Delete Featured Image','lasso');?>" class="dashicons dashicons-no-alt"></i>
597
+								<i id="lasso--post-thumb__add" title="<?php _e('Change Featured Image', 'lasso'); ?>" class="dashicons dashicons-edit"></i>
598
+								<i id="lasso--post-thumb__delete" title="<?php _e('Delete Featured Image', 'lasso'); ?>" class="dashicons dashicons-no-alt"></i>
599 599
 								<i id="lasso--save-status" class="lasso-icon lasso-icon-spinner6 not-visible"></i>
600 600
 							</div>
601 601
 
602
-							<?php echo has_post_thumbnail() ? get_the_post_thumbnail( $post->ID, 'medium' ) : '<img src="'.$default_image.'">'; ?>
602
+							<?php echo has_post_thumbnail() ? get_the_post_thumbnail($post->ID, 'medium') : '<img src="'.$default_image.'">'; ?>
603 603
 
604 604
 						</div>
605 605
 						<div id="lasso--featImgSave"><a href="#" class="not-visible">Save</a></div>
@@ -609,15 +609,15 @@  discard block
 block discarded – undo
609 609
 
610 610
 					<div class="lasso--postsettings__right">
611 611
 
612
-						<?php if( lasso_user_can('publish_posts') || lasso_user_can('publish_pages') ): ?>
612
+						<?php if (lasso_user_can('publish_posts') || lasso_user_can('publish_pages')): ?>
613 613
 						<div class="lasso--postsettings__option story-status-option">
614
-							<label><?php _e( 'Status', 'lasso' );?><span class="lasso-util--help lasso-util--help-top" data-tooltip="<?php esc_attr_e( 'Change the status of the post to draft or publish.', 'lasso' );?>"><i class="lasso-icon-help"></i></span></label>
615
-							<ul class="story-status story-status-<?php echo sanitize_html_class( $status );?>">
616
-								<li id="lasso--status-draft"><?php _e( 'Draft', 'lasso' );?></li>
617
-								<?php if( !$no_pending_status ): ?>								
618
-								<li id="lasso--status-pending"><?php _e( 'Pending', 'lasso' );?></li>
614
+							<label><?php _e('Status', 'lasso'); ?><span class="lasso-util--help lasso-util--help-top" data-tooltip="<?php esc_attr_e('Change the status of the post to draft or publish.', 'lasso'); ?>"><i class="lasso-icon-help"></i></span></label>
615
+							<ul class="story-status story-status-<?php echo sanitize_html_class($status); ?>">
616
+								<li id="lasso--status-draft"><?php _e('Draft', 'lasso'); ?></li>
617
+								<?php if (!$no_pending_status): ?>								
618
+								<li id="lasso--status-pending"><?php _e('Pending', 'lasso'); ?></li>
619 619
 								<?php endif; ?>
620
-								<li id="lasso--status-publish"><?php _e( 'Publish', 'lasso' );?></li>
620
+								<li id="lasso--status-publish"><?php _e('Publish', 'lasso'); ?></li>
621 621
 							</ul>
622 622
 							<div class="lasso--slider_wrap">
623 623
 								<div id="lasso--slider"></div>
@@ -625,10 +625,10 @@  discard block
 block discarded – undo
625 625
 						</div>
626 626
 						<?php endif; ?>
627 627
 
628
-						<?php if ( 'publish' == $status  && !$no_url_setting): ?>
628
+						<?php if ('publish' == $status && !$no_url_setting): ?>
629 629
 						<div class="lasso--postsettings__option story-slug-option">
630
-							<label><?php _e( 'Post URL', 'lasso' );?><span class="lasso-util--help lasso-util--help-top" data-tooltip="<?php esc_attr_e( 'Change the URL (slug) of this post.', 'lasso' );?>"><i class="lasso-icon-help"></i></span></label>
631
-							<input class="lasso--modal__trigger-footer" type="text" name="story_slug" value="<?php echo isset( $post ) ? esc_attr( $post->post_name ) : false;?>">
630
+							<label><?php _e('Post URL', 'lasso'); ?><span class="lasso-util--help lasso-util--help-top" data-tooltip="<?php esc_attr_e('Change the URL (slug) of this post.', 'lasso'); ?>"><i class="lasso-icon-help"></i></span></label>
631
+							<input class="lasso--modal__trigger-footer" type="text" name="story_slug" value="<?php echo isset($post) ? esc_attr($post->post_name) : false; ?>">
632 632
 						</div>
633 633
 						<?php endif; ?>
634 634
 
@@ -637,20 +637,20 @@  discard block
 block discarded – undo
637 637
 					<div class="lasso--postsettings__middle">
638 638
 
639 639
 						<div class="lasso--postsettings__option story-categories-option">
640
-							<label style="width:120px;"><?php _e( 'Categories', 'lasso' );?><span class="lasso-util--help lasso-util--help-top" data-tooltip="<?php esc_attr_e( 'Type a category name and press enter.', 'lasso' );?>"><i class="lasso-icon-help"></i></span></label>
641
-							<input id="lasso--cat-select" class="lasso--modal__trigger-footer" type="hidden" name="story_cats" value="<?php echo $categories;?>">
640
+							<label style="width:120px;"><?php _e('Categories', 'lasso'); ?><span class="lasso-util--help lasso-util--help-top" data-tooltip="<?php esc_attr_e('Type a category name and press enter.', 'lasso'); ?>"><i class="lasso-icon-help"></i></span></label>
641
+							<input id="lasso--cat-select" class="lasso--modal__trigger-footer" type="hidden" name="story_cats" value="<?php echo $categories; ?>">
642 642
 						</div>
643 643
 
644 644
 						<div class="lasso--postsettings__option story-tags-option">
645
-							<label><?php _e( 'Tags', 'lasso' );?><span class="lasso-util--help lasso-util--help-top" data-tooltip="<?php esc_attr_e( 'Type a tag name and press enter.', 'lasso' );?>"><i class="lasso-icon-help"></i></span></label>
646
-							<input id="lasso--tag-select" class="lasso--modal__trigger-footer" type="hidden" name="story_tags" value="<?php echo $tags;?>">
645
+							<label><?php _e('Tags', 'lasso'); ?><span class="lasso-util--help lasso-util--help-top" data-tooltip="<?php esc_attr_e('Type a tag name and press enter.', 'lasso'); ?>"><i class="lasso-icon-help"></i></span></label>
646
+							<input id="lasso--tag-select" class="lasso--modal__trigger-footer" type="hidden" name="story_tags" value="<?php echo $tags; ?>">
647 647
 						</div>
648 648
 						
649 649
 						<?php
650 650
 						if (!empty($custom_taxonomies)) {
651 651
 						?>
652 652
 						<div class="lasso--postsettings__option story-custom-taxonomy-option">
653
-							<label><?php _e( 'Custom Taxonomy', 'lasso' );?><span class="lasso-util--help lasso-util--help-top" data-tooltip="<?php esc_attr_e( 'Choose custom taxonomy.', 'lasso' );?>"><i class="lasso-icon-help"></i></span></label>
653
+							<label><?php _e('Custom Taxonomy', 'lasso'); ?><span class="lasso-util--help lasso-util--help-top" data-tooltip="<?php esc_attr_e('Choose custom taxonomy.', 'lasso'); ?>"><i class="lasso-icon-help"></i></span></label>
654 654
 							<select id="lasso--custom-taxo-select" class="lasso--modal__trigger-footer" name="custom_taxo">
655 655
 							<?php foreach ($custom_taxonomies as $taxonomy) {?>
656 656
 							<option value="<?php echo $taxonomy?>"><?php echo $taxonomy?></option>
@@ -667,18 +667,18 @@  discard block
 block discarded – undo
667 667
 						if ($allow_edit_excerpt) { 
668 668
 						?>
669 669
                         <div class="lasso--postsettings__option story-excerpt-option">
670
-							<label><?php _e( 'Excerpt', 'lasso' );?><span class="lasso-util--help lasso-util--help-top" data-tooltip="<?php esc_attr_e( 'Edit excerpt', 'lasso' );?>"><i class="lasso-icon-help"></i></span></label>
671
-							<input id="lasso--excerpt" class="lasso--modal__trigger-footer" type="text" name="excerpt" value="<?php echo $excerpt;?>" style="width:100%">
670
+							<label><?php _e('Excerpt', 'lasso'); ?><span class="lasso-util--help lasso-util--help-top" data-tooltip="<?php esc_attr_e('Edit excerpt', 'lasso'); ?>"><i class="lasso-icon-help"></i></span></label>
671
+							<input id="lasso--excerpt" class="lasso--modal__trigger-footer" type="text" name="excerpt" value="<?php echo $excerpt; ?>" style="width:100%">
672 672
 						</div>
673 673
                         <?php
674 674
 						}?>
675 675
 						<?php 
676 676
 						if ($allow_change_date) { 
677
-						    $dateformat = get_option( 'date_format' ); 
677
+						    $dateformat = get_option('date_format'); 
678 678
 						?>
679
-						    <label><?php _e( 'Post Date', 'lasso' ); ?></label>
680
-							<input type="text" class="editus_custom_date" name="post_date" value="<?php echo get_the_time($dateformat, $postid);?>"/>
681
-							<a href="#" id="lasso--postsettings-setnow"><?php _e( 'Set to Now', 'lasso' ); ?></a>
679
+						    <label><?php _e('Post Date', 'lasso'); ?></label>
680
+							<input type="text" class="editus_custom_date" name="post_date" value="<?php echo get_the_time($dateformat, $postid); ?>"/>
681
+							<a href="#" id="lasso--postsettings-setnow"><?php _e('Set to Now', 'lasso'); ?></a>
682 682
 						<?php
683 683
 						}?>
684 684
 
@@ -700,23 +700,23 @@  discard block
 block discarded – undo
700 700
 					?>
701 701
 					<!--/div-->
702 702
 
703
-					<?php do_action( 'lasso_modal_post_form' ); // action ?>
703
+					<?php do_action('lasso_modal_post_form'); // action ?>
704 704
 
705 705
 					<div class="lasso--postsettings__footer" >
706
-						<a href="#" class="lasso--postsettings-cancel"><?php _e( 'Cancel', 'lasso' );?></a>
706
+						<a href="#" class="lasso--postsettings-cancel"><?php _e('Cancel', 'lasso'); ?></a>
707 707
 						<input type="hidden" name="status" value="">
708 708
 						<input type="hidden" name="categories" value="">
709
-						<input type="hidden" name="postid" value="<?php echo get_the_ID();?>">
709
+						<input type="hidden" name="postid" value="<?php echo get_the_ID(); ?>">
710 710
 						<input type="hidden" name="action" value="process_update-object_post">
711
-						<input type="hidden" name="nonce" value="<?php echo $nonce;?>">
712
-						<?php do_action( 'lasso_modal_post_form_footer' ); // action ?>
713
-						<input type="submit" id="lasso--postsettings-submit" value="<?php esc_attr_e( 'Save', 'lasso' );?>">
711
+						<input type="hidden" name="nonce" value="<?php echo $nonce; ?>">
712
+						<?php do_action('lasso_modal_post_form_footer'); // action ?>
713
+						<input type="submit" id="lasso--postsettings-submit" value="<?php esc_attr_e('Save', 'lasso'); ?>">
714 714
 					</div>
715 715
 
716 716
 				</form>
717 717
 			</div>
718 718
 
719
-			<?php if( $tabs ) { echo $content; } ?>
719
+			<?php if ($tabs) { echo $content; } ?>
720 720
 
721 721
 		</div>
722 722
 
@@ -738,43 +738,43 @@  discard block
 block discarded – undo
738 738
 	ob_start();
739 739
 
740 740
 
741
-	$status = get_post_status( get_the_ID() );
741
+	$status = get_post_status(get_the_ID());
742 742
 
743
-	$nonce = wp_create_nonce( 'lasso-editor-new-post' );
743
+	$nonce = wp_create_nonce('lasso-editor-new-post');
744 744
 
745 745
 	// let users add custom css classes
746
-	$custom_classes = apply_filters( 'lasso_modal_post_classes', '' );
746
+	$custom_classes = apply_filters('lasso_modal_post_classes', '');
747 747
 
748 748
 	// return the post type
749
-	$type = get_post_type( get_the_ID() );
749
+	$type = get_post_type(get_the_ID());
750 750
 
751 751
 	$mobile_style = "";
752 752
 	if (wp_is_mobile()) {
753 753
 		//$mobile_style = 'style="top:140px !important;"';
754 754
 	}
755 755
 	?>
756
-	<div id="lasso--post-new__modal" class="lasso--modal lasso--modal__med lassoShowAnimate <?php echo sanitize_html_class( $custom_classes );?>" <?php echo $mobile_style;?>">
756
+	<div id="lasso--post-new__modal" class="lasso--modal lasso--modal__med lassoShowAnimate <?php echo sanitize_html_class($custom_classes); ?>" <?php echo $mobile_style; ?>">
757 757
 		<div class="lasso--modal__inner lasso--hasnewform">
758 758
 
759 759
 			<form id="lasso--postnew__form" enctype="multipart/form-data" class="lasso--post-form">
760 760
 
761 761
 				<div class="lasso--postsettings__option story-slug-option lasso--last-option">
762
-					<label><?php esc_attr_e( 'New <span>post</span> title', 'lasso' );?><span class="lasso-util--help lasso-util--help-top" data-tooltip="<?php esc_attr_e( 'Specify title for new post, then save to edit.', 'lasso' );?>"><i class="lasso-icon-help"></i></span></label>
763
-					<input class="lasso--modal__trigger-footer" type="text" required name="story_title" value="" placeholder="<?php esc_attr_e( 'Type Your Title Here', 'lasso' );?>">
762
+					<label><?php esc_attr_e('New <span>post</span> title', 'lasso'); ?><span class="lasso-util--help lasso-util--help-top" data-tooltip="<?php esc_attr_e('Specify title for new post, then save to edit.', 'lasso'); ?>"><i class="lasso-icon-help"></i></span></label>
763
+					<input class="lasso--modal__trigger-footer" type="text" required name="story_title" value="" placeholder="<?php esc_attr_e('Type Your Title Here', 'lasso'); ?>">
764 764
 						<div class="lasso--select-wrap" style="width:90px">
765 765
 						<select id="lasso--select-type" name="story_type">
766 766
 
767 767
 							<?php
768 768
 								$types = lasso_post_types_names();
769
-								if ( !empty( $types ) ) {
770
-									foreach( $types as $name => $label ) 
769
+								if (!empty($types)) {
770
+									foreach ($types as $name => $label) 
771 771
                                     {   	
772 772
                                         $type = $name;									
773 773
 										//$type = preg_replace( '/s\b/','', $name );
774 774
 										if ($type == 'page' && !current_user_can('edit_pages')) {
775 775
 											continue;
776 776
 										}
777
-										printf( '<option value="%s">%s</option>', lcfirst( esc_attr( $type ) ) , ucfirst( esc_attr( $label ) ) );
777
+										printf('<option value="%s">%s</option>', lcfirst(esc_attr($type)), ucfirst(esc_attr($label)));
778 778
 									}
779 779
 
780 780
 								}
@@ -785,19 +785,19 @@  discard block
 block discarded – undo
785 785
 				</div>
786 786
 
787 787
 				<div class="lasso--postsettings__footer">
788
-					<a href="#" class="lasso--postsettings-cancel"><?php _e( 'Cancel', 'lasso' );?></a>
788
+					<a href="#" class="lasso--postsettings-cancel"><?php _e('Cancel', 'lasso'); ?></a>
789 789
 					<input type="hidden" name="action" value="process_new-object_post">
790 790
 					<?php
791
-						if ( !empty( $types ) ) {
791
+						if (!empty($types)) {
792 792
 							// get the first element
793 793
 							$keys = array_keys($types);
794
-						    $type =$keys[0];						
794
+						    $type = $keys[0];						
795 795
 							//$type = preg_replace( '/s\b/','', $type );
796
-							printf( '<input type="hidden" name="object" value="%s">', lcfirst( esc_attr( $type ) ) );		
796
+							printf('<input type="hidden" name="object" value="%s">', lcfirst(esc_attr($type)));		
797 797
 						}
798 798
 					?>
799
-					<input type="hidden" name="nonce" value="<?php echo $nonce;?>">
800
-					<input type="submit" value="<?php esc_attr_e( 'Create', 'lasso' );?>">
799
+					<input type="hidden" name="nonce" value="<?php echo $nonce; ?>">
800
+					<input type="submit" value="<?php esc_attr_e('Create', 'lasso'); ?>">
801 801
 				</div>
802 802
 
803 803
 			</form>
@@ -825,18 +825,18 @@  discard block
 block discarded – undo
825 825
 	ob_start();
826 826
 
827 827
 	// post status
828
-	$status = get_post_status( get_the_ID() );
828
+	$status = get_post_status(get_the_ID());
829 829
 
830 830
 	// let users add custom css classes
831
-	$custom_classes = apply_filters( 'lasso_modal_all_post_classes', '' );
831
+	$custom_classes = apply_filters('lasso_modal_all_post_classes', '');
832 832
 
833 833
 	?>
834
-	<div id="lasso--all-posts__modal" class="lasso--modal lasso--modal__full lassoShowAnimate <?php echo sanitize_html_class( $custom_classes );?>" style="max-height:100%">
834
+	<div id="lasso--all-posts__modal" class="lasso--modal lasso--modal__full lassoShowAnimate <?php echo sanitize_html_class($custom_classes); ?>" style="max-height:100%">
835 835
 		<div class="lasso--modal__inner">
836 836
 
837 837
 			<div class="lasso--post-filtering not-visible">
838 838
 				<div class="lasso--search__results">
839
-					<span id="lasso--results-found"></span><?php _e('results found','lasso');?>
839
+					<span id="lasso--results-found"></span><?php _e('results found', 'lasso'); ?>
840 840
 				</div>
841 841
 				<div class="lasso--search">
842 842
 					<i id="lasso--search__toggle" class="dashicons dashicons-search"></i>
@@ -850,18 +850,18 @@  discard block
 block discarded – undo
850 850
 				$post_types = lasso_post_types_names();
851 851
 				$rest_bases = lasso_post_types_rest_base();
852 852
 
853
-				if ( ! empty( $post_types ) ) {
853
+				if (!empty($post_types)) {
854 854
 					$first = 'active';
855
-					foreach( $post_types as $name => $label ) {
855
+					foreach ($post_types as $name => $label) {
856 856
 						if (array_key_exists($name, $rest_bases)) {
857
-							printf( '<li class="%1s lasso--show-objects" data-post-type="%2s">%3s</li>', esc_attr( $first), esc_attr( $rest_bases[$name] ), esc_attr( $label ) );
857
+							printf('<li class="%1s lasso--show-objects" data-post-type="%2s">%3s</li>', esc_attr($first), esc_attr($rest_bases[$name]), esc_attr($label));
858 858
 						}
859 859
 						$first = '';
860 860
 					}
861 861
 
862 862
 				}
863 863
 
864
-				do_action('lasso_modal_post_objects');?>
864
+				do_action('lasso_modal_post_objects'); ?>
865 865
 
866 866
 			</ul>
867 867
 			<div id="lasso--loading" class="lasso--loading"><div class="lasso--loader"></div></div>
@@ -880,21 +880,21 @@  discard block
 block discarded – undo
880 880
 	ob_start();
881 881
 
882 882
 
883
-    $use_old_wpimg = lasso_editor_get_option('use_old_wpimg', 'lasso_editor','off');
883
+    $use_old_wpimg = lasso_editor_get_option('use_old_wpimg', 'lasso_editor', 'off');
884 884
     
885 885
 	// let users add custom css classes
886
-	$custom_classes = apply_filters( 'lasso_wpimg_classes', '' );
886
+	$custom_classes = apply_filters('lasso_wpimg_classes', '');
887 887
 
888 888
 	?>
889
-	<ul class="lasso-component--controls editus-center <?php echo sanitize_html_class( $custom_classes );?>" contenteditable="false">
890
-		<li class="lasso-drag" title="<?php esc_attr_e( 'Move', 'lasso' );?>"></li>
891
-        <?php if ($use_old_wpimg=='on') {?>
892
-            <li  class="lasso--wpimg-edit lasso-settings" title="<?php esc_attr_e( 'Settings', 'lasso' );?>"></li>
889
+	<ul class="lasso-component--controls editus-center <?php echo sanitize_html_class($custom_classes); ?>" contenteditable="false">
890
+		<li class="lasso-drag" title="<?php esc_attr_e('Move', 'lasso'); ?>"></li>
891
+        <?php if ($use_old_wpimg == 'on') {?>
892
+            <li  class="lasso--wpimg-edit lasso-settings" title="<?php esc_attr_e('Settings', 'lasso'); ?>"></li>
893 893
         <?php } else {?>
894
-            <li  class="lasso-component--settings__trigger lasso-settings" title="<?php esc_attr_e( 'Settings', 'lasso' );?>"></li>
894
+            <li  class="lasso-component--settings__trigger lasso-settings" title="<?php esc_attr_e('Settings', 'lasso'); ?>"></li>
895 895
         <?php } ?>
896
-		<li class="lasso-clone" title="<?php esc_attr_e( 'Clone', 'lasso' );?>"></li>
897
-		<li class="lasso-delete" title="<?php esc_attr_e( 'Delete', 'lasso' );?>"></li>
896
+		<li class="lasso-clone" title="<?php esc_attr_e('Clone', 'lasso'); ?>"></li>
897
+		<li class="lasso-delete" title="<?php esc_attr_e('Delete', 'lasso'); ?>"></li>
898 898
 	</ul>
899 899
 
900 900
 	<?php return ob_get_clean();
@@ -905,10 +905,10 @@  discard block
 block discarded – undo
905 905
 
906 906
 	?>
907 907
 	<ul class="lasso-component--controls editus-center" contenteditable="false">
908
-		<li class="lasso-drag" title="<?php esc_attr_e( 'Move', 'lasso' );?>"></li>
909
-            <li  class="lasso-component--settings__trigger lasso-settings" title="<?php esc_attr_e( 'Settings', 'lasso' );?>"></li>
910
-		<li class="lasso-clone" title="<?php esc_attr_e( 'Clone', 'lasso' );?>"></li>
911
-		<li class="lasso-delete" title="<?php esc_attr_e( 'Delete', 'lasso' );?>"></li>
908
+		<li class="lasso-drag" title="<?php esc_attr_e('Move', 'lasso'); ?>"></li>
909
+            <li  class="lasso-component--settings__trigger lasso-settings" title="<?php esc_attr_e('Settings', 'lasso'); ?>"></li>
910
+		<li class="lasso-clone" title="<?php esc_attr_e('Clone', 'lasso'); ?>"></li>
911
+		<li class="lasso-delete" title="<?php esc_attr_e('Delete', 'lasso'); ?>"></li>
912 912
 	</ul>
913 913
 
914 914
 	<?php return ob_get_clean();
@@ -920,14 +920,14 @@  discard block
 block discarded – undo
920 920
 
921 921
 
922 922
 	// let users add custom css classes
923
-	$custom_classes = apply_filters( 'lasso_wpimg_classes', '' );
923
+	$custom_classes = apply_filters('lasso_wpimg_classes', '');
924 924
 
925 925
 	?>
926
-	<ul class="lasso-component--controls editus-center <?php echo sanitize_html_class( $custom_classes );?>" contenteditable="false">
927
-		<li class="lasso-drag" title="<?php esc_attr_e( 'Move', 'lasso' );?>"></li>
928
-		<li id="lasso--wpvideo-edit" class="lasso-settings" title="<?php esc_attr_e( 'Settings', 'lasso' );?>"></li>
929
-		<li class="lasso-clone" title="<?php esc_attr_e( 'Clone', 'lasso' );?>"></li>
930
-		<li class="lasso-delete" title="<?php esc_attr_e( 'Delete', 'lasso' );?>"></li>
926
+	<ul class="lasso-component--controls editus-center <?php echo sanitize_html_class($custom_classes); ?>" contenteditable="false">
927
+		<li class="lasso-drag" title="<?php esc_attr_e('Move', 'lasso'); ?>"></li>
928
+		<li id="lasso--wpvideo-edit" class="lasso-settings" title="<?php esc_attr_e('Settings', 'lasso'); ?>"></li>
929
+		<li class="lasso-clone" title="<?php esc_attr_e('Clone', 'lasso'); ?>"></li>
930
+		<li class="lasso-delete" title="<?php esc_attr_e('Delete', 'lasso'); ?>"></li>
931 931
 	</ul>
932 932
 
933 933
 	<?php return ob_get_clean();
@@ -940,16 +940,16 @@  discard block
 block discarded – undo
940 940
  */
941 941
 function lasso_map_form_footer() {
942 942
 
943
-	$nonce = wp_create_nonce( 'lasso-process-map' );
943
+	$nonce = wp_create_nonce('lasso-process-map');
944 944
 
945 945
 	ob_start();
946 946
 
947 947
 	?>
948 948
 	<div class="lasso--map-form__footer">
949
-		<input type="hidden" name="postid" value="<?php echo get_the_ID();?>">
950
-		<input type="hidden" name="nonce" value="<?php echo $nonce;?>">
949
+		<input type="hidden" name="postid" value="<?php echo get_the_ID(); ?>">
950
+		<input type="hidden" name="nonce" value="<?php echo $nonce; ?>">
951 951
 		<input type="hidden" name="action" value="process_map_save">
952
-		<input type="submit" class="lasso--map-form__submit" value="<?php esc_attr_e( 'Save Locations', 'lasso' );?>">
952
+		<input type="submit" class="lasso--map-form__submit" value="<?php esc_attr_e('Save Locations', 'lasso'); ?>">
953 953
 	</div>
954 954
 
955 955
 	<?php return ob_get_clean();
@@ -967,7 +967,7 @@  discard block
 block discarded – undo
967 967
 
968 968
 	?>
969 969
 	<div id="lasso--pagerefresh" class="visible">
970
-		<?php _e( 'Save this post and refesh the page to see these changes.', 'lasso' );?>
970
+		<?php _e('Save this post and refesh the page to see these changes.', 'lasso'); ?>
971 971
 	</div>
972 972
 
973 973
 	<?php return ob_get_clean();
@@ -981,46 +981,46 @@  discard block
 block discarded – undo
981 981
  */
982 982
 function lasso_editor_options_blob() {
983 983
 
984
-	$codes   = function_exists( 'aesop_shortcodes' ) ? aesop_shortcodes() : array();
985
-    $codes   = add_wpimg_options( $codes );
986
-	$codes   = add_wpimg_block_options( $codes );
987
-    $codes   = apply_filters( 'lasso_custom_options', $codes );
988
-	$galleries  = function_exists( 'lasso_editor_galleries_exist' ) && lasso_editor_galleries_exist() ? 'has-galleries' : 'creating-gallery';
984
+	$codes   = function_exists('aesop_shortcodes') ? aesop_shortcodes() : array();
985
+    $codes   = add_wpimg_options($codes);
986
+	$codes   = add_wpimg_block_options($codes);
987
+    $codes   = apply_filters('lasso_custom_options', $codes);
988
+	$galleries  = function_exists('lasso_editor_galleries_exist') && lasso_editor_galleries_exist() ? 'has-galleries' : 'creating-gallery';
989 989
 
990
-	$nonce = wp_create_nonce( 'lasso_gallery' );
990
+	$nonce = wp_create_nonce('lasso_gallery');
991 991
 
992 992
 	$blob = array();
993 993
 
994
-	if ( empty( $codes ) )
994
+	if (empty($codes))
995 995
 		return;
996 996
 
997
-	foreach ( $codes as $slug => $shortcode ) {
997
+	foreach ($codes as $slug => $shortcode) {
998 998
 		$return = '';
999 999
 		// Shortcode has atts
1000 1000
 
1001
-		if ( count( $shortcode['atts'] ) && $shortcode['atts'] ) {
1001
+		if (count($shortcode['atts']) && $shortcode['atts']) {
1002 1002
 
1003
-			foreach ( $shortcode['atts'] as $attr_name => $attr_info ) {
1003
+			foreach ($shortcode['atts'] as $attr_name => $attr_info) {
1004 1004
 
1005 1005
 
1006
-				$prefix = isset( $attr_info['prefix'] ) ? sprintf( '<span class="lasso-option-prefix">%s</span>', $attr_info['prefix'] ) : null;
1006
+				$prefix = isset($attr_info['prefix']) ? sprintf('<span class="lasso-option-prefix">%s</span>', $attr_info['prefix']) : null;
1007 1007
 
1008 1008
 				$return .= '<form id="aesop-generator-settings" class="lasso--component-settings-form" class="'.$galleries.'" method="post">';
1009 1009
 				$return .= '<p data-option="'.$attr_name.'" class="lasso-option aesop-'.$slug.'-'.$attr_name.'">';
1010
-				$return .= '<label for="aesop-generator-attr-' . $attr_name . '">' . $attr_info['desc'] . '</label>';
1010
+				$return .= '<label for="aesop-generator-attr-'.$attr_name.'">'.$attr_info['desc'].'</label>';
1011 1011
 				$return .= '<small class="lasso-option-desc">'.$attr_info['tip'].'</small>';
1012 1012
 				// Select
1013 1013
 
1014
-				if ( isset( $attr_info['values'] ) ) {
1014
+				if (isset($attr_info['values'])) {
1015 1015
 
1016
-					$return .= '<select name="' . $attr_name . '" id="aesop-generator-attr-' . $attr_name . '" class="lasso-generator-attr">';
1016
+					$return .= '<select name="'.$attr_name.'" id="aesop-generator-attr-'.$attr_name.'" class="lasso-generator-attr">';
1017 1017
 
1018
-					$i=0;
1018
+					$i = 0;
1019 1019
 
1020
-					foreach ( $attr_info['values'] as $attr_value ) {
1020
+					foreach ($attr_info['values'] as $attr_value) {
1021 1021
 						$attr_value_selected = $attr_info['default'] == $attr_value ? ' selected="selected"' : '';
1022 1022
 
1023
-						$return .= '<option value="'.$attr_info['values'][$i]['value'].'" ' . $attr_value_selected . '>'.$attr_info['values'][$i]['name'].'</option>';
1023
+						$return .= '<option value="'.$attr_info['values'][$i]['value'].'" '.$attr_value_selected.'>'.$attr_info['values'][$i]['name'].'</option>';
1024 1024
 
1025 1025
 						$i++;
1026 1026
 					}
@@ -1029,24 +1029,24 @@  discard block
 block discarded – undo
1029 1029
 
1030 1030
 				} else {
1031 1031
 
1032
-					$attr_field_type = isset( $attr_info['type'] ) ? $attr_info['type'] : 'text';
1032
+					$attr_field_type = isset($attr_info['type']) ? $attr_info['type'] : 'text';
1033 1033
 
1034 1034
 					// image upload
1035
-					if ( 'media_upload' == $attr_info['type'] ) {
1035
+					if ('media_upload' == $attr_info['type']) {
1036 1036
 
1037
-						$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.'" />';
1037
+						$return .= '<input type="'.$attr_field_type.'" name="'.$attr_name.'" value="'.$attr_info['default'].'" id="aesop-generator-attr-'.$attr_name.'" class="lasso-generator-attr aesop-generator-attr-'.$attr_field_type.'" />';
1038 1038
 						$return .= '<a href="#" id="lasso-upload-img" class="lasso-option-button" /></a>';
1039 1039
 
1040
-					} elseif ( 'color' == $attr_info['type'] ) {
1040
+					} elseif ('color' == $attr_info['type']) {
1041 1041
 
1042
-						$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.'" />';
1042
+						$return .= '<input type="color" name="'.$attr_name.'" value="'.$attr_info['default'].'" id="aesop-generator-attr-'.$attr_name.'" class="lasso-generator-attr aesop-generator-attr-'.$attr_field_type.'" />';
1043 1043
 
1044
-					} elseif ( 'text_area' == $attr_info['type'] ) {
1044
+					} elseif ('text_area' == $attr_info['type']) {
1045 1045
 
1046
-						$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.'';
1046
+						$return .= '<textarea name="'.$attr_name.'" id="aesop-generator-attr-'.$attr_name.'" class="lasso-generator-attr aesop-generator-attr-'.$attr_field_type.'" placeholder="'.$attr_info['default'].'" /></textarea>'.$prefix.'';
1047 1047
 
1048 1048
 					} else {
1049
-						$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.'';
1049
+						$return .= '<input type="'.$attr_field_type.'" name="'.$attr_name.'" value="'.$attr_info['default'].'" id="aesop-generator-attr-'.$attr_name.'" class="lasso-generator-attr aesop-generator-attr-'.$attr_field_type.'" />'.$prefix.'';
1050 1050
 					}
1051 1051
 				}
1052 1052
 				$return .= '</p>';
@@ -1057,9 +1057,9 @@  discard block
 block discarded – undo
1057 1057
 		///////////////////////////
1058 1058
 		// START GALLERY AND MAP FRONT END STUFFS
1059 1059
 		///////////////////////////
1060
-		if ( isset( $shortcode['front'] ) && true == $shortcode['front'] ) {
1060
+		if (isset($shortcode['front']) && true == $shortcode['front']) {
1061 1061
 
1062
-			if ( 'gallery' == $shortcode['front_type'] ) {
1062
+			if ('gallery' == $shortcode['front_type']) {
1063 1063
 
1064 1064
 				$return .= lasso_gallery_editor_module();
1065 1065
 
@@ -1070,13 +1070,13 @@  discard block
 block discarded – undo
1070 1070
 		///////////////////////////
1071 1071
 
1072 1072
 		// Single shortcode (not closed)
1073
-		if ( 'single' == $shortcode['type'] ) {
1073
+		if ('single' == $shortcode['type']) {
1074 1074
 
1075 1075
 			$return .= '<input type="hidden" name="lasso-generator-content" id="lasso-generator-content" value="false" />';
1076 1076
 
1077 1077
 		} else {
1078 1078
 
1079
-			$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>';
1079
+			$return .= '<p data-option="content" class="lasso-option lasso-c-comp-text"><label>'.__('Content', 'lasso').'</label><textarea type="text" name="lasso-generator-content" id="lasso-generator-content" value="'.$shortcode['content'].'" /></textarea></p>';
1080 1080
 		}
1081 1081
 
1082 1082
 		$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>';
@@ -1096,95 +1096,95 @@  discard block
 block discarded – undo
1096 1096
 }
1097 1097
 
1098 1098
 
1099
-function add_wpimg_options( $shortcodes ) {
1099
+function add_wpimg_options($shortcodes) {
1100 1100
     $custom = array(
1101 1101
         'wpimg'    => array(
1102
-            'name'     => __( 'Image', 'lasso' ),
1102
+            'name'     => __('Image', 'lasso'),
1103 1103
             'type'     => 'single',
1104 1104
             'atts'     => array(
1105 1105
                 'img'    => array(
1106 1106
                     'type'  => 'media_upload',
1107 1107
                     'default'  => '',
1108
-                    'desc'   => __( 'Image URL', 'lasso' ),
1109
-                    'tip'  => __( 'URL for the image. Click <em>Select Media</em> to open the WordPress Media Library.', 'aesop-core' )
1108
+                    'desc'   => __('Image URL', 'lasso'),
1109
+                    'tip'  => __('URL for the image. Click <em>Select Media</em> to open the WordPress Media Library.', 'aesop-core')
1110 1110
                 ),
1111 1111
                 'align'    => array(
1112 1112
                     'type'  => 'select',
1113 1113
                     'values'  => array(						
1114 1114
                         array(
1115 1115
                             'value' => 'center',
1116
-                            'name' => __( 'Center', 'aesop-core' )
1116
+                            'name' => __('Center', 'aesop-core')
1117 1117
                         ),
1118 1118
                         array(
1119 1119
                             'value' => 'left',
1120
-                            'name' => __( 'Left', 'aesop-core' )
1120
+                            'name' => __('Left', 'aesop-core')
1121 1121
                         ),
1122 1122
                         array(
1123 1123
                             'value' => 'right',
1124
-                            'name' => __( 'Right', 'aesop-core' )
1124
+                            'name' => __('Right', 'aesop-core')
1125 1125
                         ),
1126 1126
                     ),
1127 1127
                     'default'  => 'center',
1128
-                    'desc'   => __( 'Alignment', 'lasso' ),
1128
+                    'desc'   => __('Alignment', 'lasso'),
1129 1129
                     'tip'=>''
1130 1130
                 ),			
1131 1131
                 
1132 1132
                 'imgwidth'    => array(
1133 1133
                     'type'  => 'text_small',
1134 1134
                     'default'  => '300px',
1135
-                    'desc'   => __( 'Image Width', 'lasso' ),
1136
-                    'tip'  => __( 'Width of the image. You can enter the size in pixels or percentage such as <code>40%</code> or <code>500px</code>.', 'aesop-core' )
1135
+                    'desc'   => __('Image Width', 'lasso'),
1136
+                    'tip'  => __('Width of the image. You can enter the size in pixels or percentage such as <code>40%</code> or <code>500px</code>.', 'aesop-core')
1137 1137
                 ),
1138 1138
                 'imgheight'    => array(
1139 1139
                     'type'  => 'text_small',
1140 1140
                     'default'  => '',
1141
-                    'desc'   => __( 'Image Height', 'lasso' ),
1142
-                    'tip'  => __( 'Used only for the Panorama mode. Can be set using pixel values such as <code>500px</code>. If unspecified, the original height would be used. ', 'aesop-core' )
1141
+                    'desc'   => __('Image Height', 'lasso'),
1142
+                    'tip'  => __('Used only for the Panorama mode. Can be set using pixel values such as <code>500px</code>. If unspecified, the original height would be used. ', 'aesop-core')
1143 1143
                 ),	
1144 1144
                 'linkoption'    => array(
1145 1145
                     'type'  => 'select',
1146 1146
                     'values'  => array(						
1147 1147
                         array(
1148 1148
                             'value' => 'none',
1149
-                            'name' => __( 'None', 'aesop-core' )
1149
+                            'name' => __('None', 'aesop-core')
1150 1150
                         ),
1151 1151
                         array(
1152 1152
                             'value' => 'img',
1153
-                            'name' => __( 'Image', 'aesop-core' )
1153
+                            'name' => __('Image', 'aesop-core')
1154 1154
                         ),
1155 1155
                         array(
1156 1156
                             'value' => 'url',
1157
-                            'name' => __( 'URL', 'aesop-core' )
1157
+                            'name' => __('URL', 'aesop-core')
1158 1158
                         ),
1159 1159
                     ),
1160 1160
                     'default'  => 'none',
1161
-                    'desc'   => __( 'Link', 'lasso' ),
1162
-                    'tip'  => __( 'Click leads to:', 'lasso' )
1161
+                    'desc'   => __('Link', 'lasso'),
1162
+                    'tip'  => __('Click leads to:', 'lasso')
1163 1163
                 ),				
1164 1164
                 
1165 1165
                 'link'    => array(
1166 1166
                     'type'  => 'text',
1167 1167
                     'default'  => '',
1168
-                    'desc'   => __( 'URL Link', 'lasso' ),
1169
-                    'tip'  => __( 'URL link', 'lasso' )
1168
+                    'desc'   => __('URL Link', 'lasso'),
1169
+                    'tip'  => __('URL link', 'lasso')
1170 1170
                 ),
1171 1171
                 'alt'    => array(
1172 1172
                     'type'  => 'text',
1173 1173
                     'default'  => '',
1174
-                    'desc'   => __( 'Image ALT', 'lasso' ),
1175
-                    'tip'  => __( 'ALT tag used for the image. Primarily used for SEO purposes.', 'lasso' )
1174
+                    'desc'   => __('Image ALT', 'lasso'),
1175
+                    'tip'  => __('ALT tag used for the image. Primarily used for SEO purposes.', 'lasso')
1176 1176
                 ),
1177 1177
                 
1178 1178
                 'caption'    => array(
1179 1179
                     'type'  => 'text_area',
1180 1180
                     'default'  => '',
1181
-                    'desc'   => __( 'Caption', 'lasso' ),
1182
-                    'tip'  => __( 'Optional caption for the image.', 'lasso' )
1181
+                    'desc'   => __('Caption', 'lasso'),
1182
+                    'tip'  => __('Optional caption for the image.', 'lasso')
1183 1183
                 ),
1184 1184
                 
1185 1185
 
1186 1186
             ),
1187
-            'desc'     => __( 'An image.', 'aesop-core' ),
1187
+            'desc'     => __('An image.', 'aesop-core'),
1188 1188
             'codes'    => '<script>	            
1189 1189
 						jQuery(document).ready(function($){
1190 1190
                             function linkSetting(l){								
@@ -1208,63 +1208,63 @@  discard block
 block discarded – undo
1208 1208
         )
1209 1209
     );
1210 1210
 
1211
-    return array_merge( $shortcodes, $custom );
1211
+    return array_merge($shortcodes, $custom);
1212 1212
 }
1213 1213
 
1214
-function add_wpimg_block_options( $shortcodes ) {
1214
+function add_wpimg_block_options($shortcodes) {
1215 1215
     $custom = array(
1216 1216
         'wpimg-block'    => array(
1217
-            'name'     => __( 'Image', 'lasso' ),
1217
+            'name'     => __('Image', 'lasso'),
1218 1218
             'type'     => 'single',
1219 1219
             'atts'     => array(
1220 1220
                 'img'    => array(
1221 1221
                     'type'  => 'media_upload',
1222 1222
                     'default'  => '',
1223
-                    'desc'   => __( 'Image URL', 'lasso' ),
1224
-                    'tip'  => __( 'URL for the image. Click <em>Select Media</em> to open the WordPress Media Library.', 'aesop-core' )
1223
+                    'desc'   => __('Image URL', 'lasso'),
1224
+                    'tip'  => __('URL for the image. Click <em>Select Media</em> to open the WordPress Media Library.', 'aesop-core')
1225 1225
                 ),
1226 1226
                 'align'    => array(
1227 1227
                     'type'  => 'select',
1228 1228
                     'values'  => array(						
1229 1229
                         array(
1230 1230
                             'value' => 'center',
1231
-                            'name' => __( 'Center', 'aesop-core' )
1231
+                            'name' => __('Center', 'aesop-core')
1232 1232
                         ),
1233 1233
                         array(
1234 1234
                             'value' => 'left',
1235
-                            'name' => __( 'Left', 'aesop-core' )
1235
+                            'name' => __('Left', 'aesop-core')
1236 1236
                         ),
1237 1237
                         array(
1238 1238
                             'value' => 'right',
1239
-                            'name' => __( 'Right', 'aesop-core' )
1239
+                            'name' => __('Right', 'aesop-core')
1240 1240
                         ),
1241 1241
                     ),
1242 1242
                     'default'  => 'center',
1243
-                    'desc'   => __( 'Alignment', 'lasso' ),
1243
+                    'desc'   => __('Alignment', 'lasso'),
1244 1244
                     'tip'=>''
1245 1245
                 ),		
1246 1246
                 'alt'    => array(
1247 1247
                     'type'  => 'text',
1248 1248
                     'default'  => '',
1249
-                    'desc'   => __( 'Image ALT', 'lasso' ),
1250
-                    'tip'  => __( 'ALT tag used for the image. Primarily used for SEO purposes.', 'lasso' )
1249
+                    'desc'   => __('Image ALT', 'lasso'),
1250
+                    'tip'  => __('ALT tag used for the image. Primarily used for SEO purposes.', 'lasso')
1251 1251
                 ),
1252 1252
                 'caption'    => array(
1253 1253
                     'type'  => 'text',
1254 1254
                     'default'  => '',
1255
-                    'desc'   => __( 'Caption', 'lasso' ),
1256
-                    'tip'  => __( 'Optional caption for the image.', 'lasso' )
1255
+                    'desc'   => __('Caption', 'lasso'),
1256
+                    'tip'  => __('Optional caption for the image.', 'lasso')
1257 1257
                 ),
1258 1258
                 'link'    => array(
1259 1259
                     'type'  => 'text',
1260 1260
                     'default'  => '',
1261
-                    'desc'   => __( 'Link URL', 'lasso' ),
1262
-                    'tip'  => __( 'Optional URL to link.', 'lasso' )
1261
+                    'desc'   => __('Link URL', 'lasso'),
1262
+                    'tip'  => __('Optional URL to link.', 'lasso')
1263 1263
                 ),
1264 1264
                
1265 1265
 
1266 1266
             ),
1267
-            'desc'     => __( 'A WP Image Block.', 'aesop-core' ),
1267
+            'desc'     => __('A WP Image Block.', 'aesop-core'),
1268 1268
             'codes'    => '<script>	            
1269 1269
 						jQuery(document).ready(function($){
1270 1270
                             
@@ -1273,7 +1273,7 @@  discard block
 block discarded – undo
1273 1273
         )
1274 1274
     );
1275 1275
 
1276
-    return array_merge( $shortcodes, $custom );
1276
+    return array_merge($shortcodes, $custom);
1277 1277
 }
1278 1278
 
1279 1279
 /**
@@ -1293,14 +1293,14 @@  discard block
 block discarded – undo
1293 1293
 				<div id="lasso--loading" class="lasso--loading"><div class="lasso--loader"></div></div>
1294 1294
 				<div id="lasso--hide" style="display:none;" class="lasso--post-form">
1295 1295
 					<i class="lasso-icon lasso-icon-move"></i>
1296
-					<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>
1296
+					<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>
1297 1297
 					<div class="lasso--slider_wrap">
1298 1298
 						<div id="lasso--slider"></div>
1299 1299
 					</div>
1300 1300
 					<ul id="lasso--revision-list"></ul>
1301 1301
 					<div class="lasso--btn-group lasso--btn-group-small">
1302
-						<a href="#" class="lasso--btn-secondary" id="lasso--close-modal"><?php _e( 'Cancel', 'lasso' );?></a>
1303
-						<a href="#" class="lasso--btn-primary" id="lasso--select-revision"><?php _e( 'Select', 'lasso' );?></a>
1302
+						<a href="#" class="lasso--btn-secondary" id="lasso--close-modal"><?php _e('Cancel', 'lasso'); ?></a>
1303
+						<a href="#" class="lasso--btn-primary" id="lasso--select-revision"><?php _e('Select', 'lasso'); ?></a>
1304 1304
 					</div>
1305 1305
 				</div>
1306 1306
 
@@ -1323,7 +1323,7 @@  discard block
 block discarded – undo
1323 1323
     // Normalize into a six character long hex string
1324 1324
     $hex = str_replace('#', '', $hex);
1325 1325
     if (strlen($hex) == 3) {
1326
-        $hex = str_repeat(substr($hex,0,1), 2).str_repeat(substr($hex,1,1), 2).str_repeat(substr($hex,2,1), 2);
1326
+        $hex = str_repeat(substr($hex, 0, 1), 2).str_repeat(substr($hex, 1, 1), 2).str_repeat(substr($hex, 2, 1), 2);
1327 1327
     }
1328 1328
 
1329 1329
     // Split into three parts: R, G and B
@@ -1332,7 +1332,7 @@  discard block
 block discarded – undo
1332 1332
 
1333 1333
     foreach ($color_parts as $color) {
1334 1334
         $color   = hexdec($color); // Convert to decimal
1335
-        $color   = max(0,min(255,$color + $steps)); // Adjust color
1335
+        $color   = max(0, min(255, $color + $steps)); // Adjust color
1336 1336
         $return .= str_pad(dechex($color), 2, '0', STR_PAD_LEFT); // Make two char hex code
1337 1337
     }
1338 1338
 
Please login to merge, or discard this patch.
public/includes/assets.php 2 patches
Indentation   +88 added lines, -88 removed lines patch added patch discarded remove patch
@@ -15,29 +15,29 @@  discard block
 block discarded – undo
15 15
 		add_action('wp_enqueue_scripts', array($this,'scripts'));
16 16
 	}
17 17
     
18
-    function is_multipage()
19
-    {
20
-        global $post;
21
-        $pos = strpos($post->post_content, "<!--nextpage-->");
22
-        if (!$pos) return -1;
18
+	function is_multipage()
19
+	{
20
+		global $post;
21
+		$pos = strpos($post->post_content, "<!--nextpage-->");
22
+		if (!$pos) return -1;
23 23
         
24
-        global $wp;
25
-        $url =  home_url( $wp->request );
26
-        $index = intval(basename($url)) == 0 ? 0 : intval(basename($url))-1;
27
-        return $index;        
28
-    }
24
+		global $wp;
25
+		$url =  home_url( $wp->request );
26
+		$index = intval(basename($url)) == 0 ? 0 : intval(basename($url))-1;
27
+		return $index;        
28
+	}
29 29
 
30 30
 	public function scripts(){
31 31
 
32 32
 	
33 33
 		global $post;
34 34
 		if ( lasso_user_can('edit_posts') 
35
-		     /* uncomment this line to disable Editus on Gutenberg posts*/
36
-             /* && !( function_exists( 'has_blocks' ) && has_blocks( $post->post_content)  && !is_home()) */              
37
-             ) {
35
+			 /* uncomment this line to disable Editus on Gutenberg posts*/
36
+			 /* && !( function_exists( 'has_blocks' ) && has_blocks( $post->post_content)  && !is_home()) */              
37
+			 ) {
38 38
 			
39 39
 			/**    Returns the time offset from UTC
40
-			*/
40
+			 */
41 41
 			function get_UTC_offset() {
42 42
 				$timezone_string = get_option( 'timezone_string' );
43 43
 				if (empty( $timezone_string ) ) {
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 
53 53
 			wp_enqueue_style('lasso-style', LASSO_URL.'/public/assets/css/lasso.css', LASSO_VERSION, true);
54 54
 
55
-            //don't load autocomplete if it's a stockholm theme
55
+			//don't load autocomplete if it's a stockholm theme
56 56
 			$themename  	= wp_get_theme()->get('Name');
57 57
 			if ($themename !='Stockholm' ) {
58 58
 				wp_enqueue_script('jquery-ui-autocomplete');
@@ -90,13 +90,13 @@  discard block
 block discarded – undo
90 90
 			$bold_tag = lasso_editor_get_option('bold_tag', 'lasso_editor','b');
91 91
 			$i_tag = lasso_editor_get_option('i_tag', 'lasso_editor','i');
92 92
             
93
-            $use_old_wpimg = lasso_editor_get_option('use_old_wpimg', 'lasso_editor','off');
93
+			$use_old_wpimg = lasso_editor_get_option('use_old_wpimg', 'lasso_editor','off');
94 94
             
95
-            $use_wpimgblock = false;
95
+			$use_wpimgblock = false;
96 96
             
97
-            $text_select_popup = lasso_editor_get_option('text_select_popup', 'lasso_editor', false);
97
+			$text_select_popup = lasso_editor_get_option('text_select_popup', 'lasso_editor', false);
98 98
             
99
-            $link_prefix_http = lasso_editor_get_option('link_prefix_http', 'lasso_editor', 'off');
99
+			$link_prefix_http = lasso_editor_get_option('link_prefix_http', 'lasso_editor', 'off');
100 100
 
101 101
 			
102 102
 			//text alignement
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
 			// allow change date for post
112 112
 			$allow_change_date = lasso_editor_get_option('allow_change_date', 'lasso_editor');
113 113
             
114
-            // support custom taxonomy
114
+			// support custom taxonomy
115 115
 			$support_custom_taxonomy = lasso_editor_get_option('support_custom_taxonomy', 'lasso_editor');
116 116
 			
117 117
 			if ($show_color) {
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
 			$tz_offset = get_UTC_offset();
138 138
 			$post_date = get_the_time('U', $postid);
139 139
 			$time = (time()+$tz_offset);
140
-            $delta = $time - $post_date;
140
+			$delta = $time - $post_date;
141 141
             
142 142
 			$strings = array(
143 143
 				'save' 				=> __('Save','lasso'),
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
 				
182 182
 				'catsPlaceholder'     => __('add categories...'),
183 183
 				'tagsPlaceholder'     => __('add tags...'),
184
-                'taxoPlaceholder'     => __('add taxonomy terms...'),
184
+				'taxoPlaceholder'     => __('add taxonomy terms...'),
185 185
 				
186 186
 				
187 187
 			);
@@ -193,11 +193,11 @@  discard block
 block discarded – undo
193 193
 			$gallery_nonce = wp_create_nonce( $gallery_nonce_action );
194 194
 			
195 195
 			
196
-            if ($allow_change_date) {
197
-			    $permalink = get_site_url().'/?p='.$postid;
198
-            } else {
199
-                $permalink = get_permalink($postid);
200
-            }
196
+			if ($allow_change_date) {
197
+				$permalink = get_site_url().'/?p='.$postid;
198
+			} else {
199
+				$permalink = get_permalink($postid);
200
+			}
201 201
 			
202 202
 			// rest api
203 203
 			$rest_nonce = '';
@@ -217,17 +217,17 @@  discard block
 block discarded – undo
217 217
 				}
218 218
 			}
219 219
             
220
-            //excerpt
221
-            $post_excerpt = "";
222
-            $post_excerpt = wp_strip_all_tags($post->post_excerpt,true);
220
+			//excerpt
221
+			$post_excerpt = "";
222
+			$post_excerpt = wp_strip_all_tags($post->post_excerpt,true);
223 223
             
224
-            //find if this is multi page. -1 if not
225
-            $multipage = self::is_multipage();
226
-            $post_content = "";
227
-            //pass post_content if we need to process multipage. In future we may need to pass this for other purposes
228
-            //if ($multipage != -1) {
229
-               $post_content = $post->post_content;
230
-            //}
224
+			//find if this is multi page. -1 if not
225
+			$multipage = self::is_multipage();
226
+			$post_content = "";
227
+			//pass post_content if we need to process multipage. In future we may need to pass this for other purposes
228
+			//if ($multipage != -1) {
229
+			   $post_content = $post->post_content;
230
+			//}
231 231
 			
232 232
 			//get custom taxonomy
233 233
 			$custom_taxonomies         = array_diff(get_object_taxonomies( get_post_type( $postid ), 'names' ), ['category','post_tag','post_format']);
@@ -240,8 +240,8 @@  discard block
 block discarded – undo
240 240
 				$existing_taxo_arr[$taxonomy] = lasso_get_objects( $taxonomy );
241 241
 			}
242 242
             
243
-            $new_post_text    = lasso_editor_get_option( 'new_post_text', 'lasso_editor' );        
244
-            $new_post_text  = !empty($new_post_text) ? $new_post_text : wp_strip_all_tags(apply_filters( 'lasso_new_object_content', __( 'Once upon a time...','lasso')));
243
+			$new_post_text    = lasso_editor_get_option( 'new_post_text', 'lasso_editor' );        
244
+			$new_post_text  = !empty($new_post_text) ? $new_post_text : wp_strip_all_tags(apply_filters( 'lasso_new_object_content', __( 'Once upon a time...','lasso')));
245 245
 
246 246
 
247 247
 			// localized objects
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
 				'nonce'				=> wp_create_nonce('lasso_editor'),
271 271
 				'handle'			=> lasso_editor_settings_toolbar(),
272 272
 				'toolbar'			=> lasso_editor_text_toolbar(),
273
-                'toolbarPopup'		=> $text_select_popup ? lasso_editor_selected_text_toolbar(): false,
273
+				'toolbarPopup'		=> $text_select_popup ? lasso_editor_selected_text_toolbar(): false,
274 274
 				'toolbarHeadings'   => $toolbar_headings,
275 275
 				'toolbarHeadingsH4'   => $toolbar_headings_h4,
276 276
 				'component_modal'	=> lasso_editor_component_modal(),
@@ -322,19 +322,19 @@  discard block
 block discarded – undo
322 322
 				'customFields'      => $custom_fields,
323 323
 				'clickToInsert'     => ($insert_comp_ui =='click'),
324 324
 				'buttonOnEmptyP'     => ($insert_comp_ui =='mediumcom'),      // auto show a button to insert components on an empty paragraph      
325
-                'rtl'               => is_rtl(),				
325
+				'rtl'               => is_rtl(),				
326 326
 				'skipToEdit'        =>( $delta < 10 && $delta >=0 ), // if it's a new post, skip to edit mode
327 327
 				'linksEditable'    => $links_editable,
328 328
 				'supportPendingStatus' => !$no_pending_status,
329 329
 				'tableCode' => apply_filters( 'lasso_table_html_code','<table><tr><th>Cell 1</th><th>Cell 2</th></tr><tr><td>Cell 3</td><td>Cell 4</td></tr></table><p></p>'),
330
-                'hasGutenberg' => (function_exists( 'has_blocks' ) && has_blocks( $post->post_content)) || self::gutenberg_active(),//,
331
-                'multipages'=> $multipage,
332
-                'post_content'=>$post_content,
333
-                'post_excerpt'=>$post_excerpt,
334
-                'supCustTaxo' => $support_custom_taxonomy == 'on',
335
-                'oldWPimg'=> $use_old_wpimg =='on',
336
-                'useWPImgBlk'=> $use_wpimgblock,
337
-                'prefixHTTP'=> $link_prefix_http =='on'
330
+				'hasGutenberg' => (function_exists( 'has_blocks' ) && has_blocks( $post->post_content)) || self::gutenberg_active(),//,
331
+				'multipages'=> $multipage,
332
+				'post_content'=>$post_content,
333
+				'post_excerpt'=>$post_excerpt,
334
+				'supCustTaxo' => $support_custom_taxonomy == 'on',
335
+				'oldWPimg'=> $use_old_wpimg =='on',
336
+				'useWPImgBlk'=> $use_wpimgblock,
337
+				'prefixHTTP'=> $link_prefix_http =='on'
338 338
 			);
339 339
 
340 340
 
@@ -342,7 +342,7 @@  discard block
 block discarded – undo
342 342
 			
343 343
 			
344 344
 			if (!$using_restapiv2) {
345
-               // enqueue REST API V1
345
+			   // enqueue REST API V1
346 346
 			   wp_enqueue_script( 'wp-api-js', LASSO_URL.'/public/assets/js/source/util--wp-api.js', array( 'jquery', 'underscore', 'backbone' ), LASSO_VERSION, true );
347 347
 			   $settings = array( 'root' => home_url( $home_url ), 'nonce' => wp_create_nonce( 'wp_json' ) );
348 348
 			   wp_localize_script( 'wp-api-js', 'WP_API_Settings', $settings );
@@ -358,7 +358,7 @@  discard block
 block discarded – undo
358 358
 			if ($show_color) {
359 359
 				wp_enqueue_script('lasso', LASSO_URL. "/public/assets/js/lasso{$postfix}.js", array('jquery', 'wp-api','iris'), LASSO_VERSION, true);
360 360
 			} else {
361
-			    wp_enqueue_script('lasso', LASSO_URL. "/public/assets/js/lasso{$postfix}.js", array('jquery', 'wp-api'), LASSO_VERSION, true);
361
+				wp_enqueue_script('lasso', LASSO_URL. "/public/assets/js/lasso{$postfix}.js", array('jquery', 'wp-api'), LASSO_VERSION, true);
362 362
 			}
363 363
 			wp_localize_script('lasso', 'lasso_editor', apply_filters('lasso_localized_objects', $objects ) );
364 364
 
@@ -367,44 +367,44 @@  discard block
 block discarded – undo
367 367
 
368 368
 	}
369 369
     
370
-    function gutenberg_active() {
370
+	function gutenberg_active() {
371 371
         
372
-        // Gutenberg plugin is installed and activated.
373
-        $gutenberg = ! ( false === has_filter( 'replace_editor', 'gutenberg_init' ) );
374
-
375
-        // Block editor since 5.0.
376
-        $block_editor = version_compare( $GLOBALS['wp_version'], '5.0-beta', '>' );
377
-
378
-        if ( ! $gutenberg && ! $block_editor ) {
379
-            return false;
380
-        }
381
-
382
-        if ( self::is_classic_editor_plugin_active() ) {
383
-            $editor_option       = get_option( 'classic-editor-replace' );
384
-            $block_editor_active = array( 'no-replace', 'block' );
385
-
386
-            return in_array( $editor_option, $block_editor_active, true );
387
-        }
388
-
389
-        return true;
390
-    }
391
-
392
-    /**
393
-     * Check if Classic Editor plugin is active.
394
-     *
395
-     * @return bool
396
-     */
397
-    function is_classic_editor_plugin_active() {
398
-        if ( ! function_exists( 'is_plugin_active' ) ) {
399
-            include_once ABSPATH . 'wp-admin/includes/plugin.php';
400
-        }
401
-
402
-        if ( is_plugin_active( 'classic-editor/classic-editor.php' ) ) {
403
-            return true;
404
-        }
405
-
406
-        return false;
407
-    }
372
+		// Gutenberg plugin is installed and activated.
373
+		$gutenberg = ! ( false === has_filter( 'replace_editor', 'gutenberg_init' ) );
374
+
375
+		// Block editor since 5.0.
376
+		$block_editor = version_compare( $GLOBALS['wp_version'], '5.0-beta', '>' );
377
+
378
+		if ( ! $gutenberg && ! $block_editor ) {
379
+			return false;
380
+		}
381
+
382
+		if ( self::is_classic_editor_plugin_active() ) {
383
+			$editor_option       = get_option( 'classic-editor-replace' );
384
+			$block_editor_active = array( 'no-replace', 'block' );
385
+
386
+			return in_array( $editor_option, $block_editor_active, true );
387
+		}
388
+
389
+		return true;
390
+	}
391
+
392
+	/**
393
+	 * Check if Classic Editor plugin is active.
394
+	 *
395
+	 * @return bool
396
+	 */
397
+	function is_classic_editor_plugin_active() {
398
+		if ( ! function_exists( 'is_plugin_active' ) ) {
399
+			include_once ABSPATH . 'wp-admin/includes/plugin.php';
400
+		}
401
+
402
+		if ( is_plugin_active( 'classic-editor/classic-editor.php' ) ) {
403
+			return true;
404
+		}
405
+
406
+		return false;
407
+	}
408 408
 
409 409
 }
410 410
 
Please login to merge, or discard this patch.
Spacing   +117 added lines, -117 removed lines patch added patch discarded remove patch
@@ -10,9 +10,9 @@  discard block
 block discarded – undo
10 10
 
11 11
 class assets {
12 12
 
13
-	public function __construct(){
13
+	public function __construct() {
14 14
 
15
-		add_action('wp_enqueue_scripts', array($this,'scripts'));
15
+		add_action('wp_enqueue_scripts', array($this, 'scripts'));
16 16
 	}
17 17
     
18 18
     function is_multipage()
@@ -22,16 +22,16 @@  discard block
 block discarded – undo
22 22
         if (!$pos) return -1;
23 23
         
24 24
         global $wp;
25
-        $url =  home_url( $wp->request );
26
-        $index = intval(basename($url)) == 0 ? 0 : intval(basename($url))-1;
25
+        $url = home_url($wp->request);
26
+        $index = intval(basename($url)) == 0 ? 0 : intval(basename($url)) - 1;
27 27
         return $index;        
28 28
     }
29 29
 
30
-	public function scripts(){
30
+	public function scripts() {
31 31
 
32 32
 	
33 33
 		global $post;
34
-		if ( lasso_user_can('edit_posts') 
34
+		if (lasso_user_can('edit_posts') 
35 35
 		     /* uncomment this line to disable Editus on Gutenberg posts*/
36 36
              /* && !( function_exists( 'has_blocks' ) && has_blocks( $post->post_content)  && !is_home()) */              
37 37
              ) {
@@ -39,9 +39,9 @@  discard block
 block discarded – undo
39 39
 			/**    Returns the time offset from UTC
40 40
 			*/
41 41
 			function get_UTC_offset() {
42
-				$timezone_string = get_option( 'timezone_string' );
43
-				if (empty( $timezone_string ) ) {
44
-					return get_option('gmt_offset')*3600;
42
+				$timezone_string = get_option('timezone_string');
43
+				if (empty($timezone_string)) {
44
+					return get_option('gmt_offset') * 3600;
45 45
 				}
46 46
 				
47 47
 				$origin_dtz = new \DateTimeZone($timezone_string);				
@@ -53,8 +53,8 @@  discard block
 block discarded – undo
53 53
 			wp_enqueue_style('lasso-style', LASSO_URL.'/public/assets/css/lasso.css', LASSO_VERSION, true);
54 54
 
55 55
             //don't load autocomplete if it's a stockholm theme
56
-			$themename  	= wp_get_theme()->get('Name');
57
-			if ($themename !='Stockholm' ) {
56
+			$themename = wp_get_theme()->get('Name');
57
+			if ($themename != 'Stockholm') {
58 58
 				wp_enqueue_script('jquery-ui-autocomplete');
59 59
 			}
60 60
 			wp_enqueue_script('jquery-ui-draggable');
@@ -67,30 +67,30 @@  discard block
 block discarded – undo
67 67
 			// url for json api
68 68
 			$home_url = function_exists('json_get_url_prefix') ? json_get_url_prefix() : false;
69 69
 
70
-			$article_object 	= lasso_editor_get_option('article_class','lasso_editor');
70
+			$article_object 	= lasso_editor_get_option('article_class', 'lasso_editor');
71 71
 
72
-			$article_object 	= empty( $article_object ) && lasso_get_supported_theme_class() ? lasso_get_supported_theme_class() : $article_object;
72
+			$article_object 	= empty($article_object) && lasso_get_supported_theme_class() ? lasso_get_supported_theme_class() : $article_object;
73 73
 
74
-			$featImgClass 		= lasso_editor_get_option('featimg_class','lasso_editor');
75
-			if (empty( $featImgClass )) {
74
+			$featImgClass = lasso_editor_get_option('featimg_class', 'lasso_editor');
75
+			if (empty($featImgClass)) {
76 76
 				$featImgClass = lasso_get_supported_theme_featured_image_class();
77 77
 			}
78
-			$titleClass 		= lasso_editor_get_option('title_class','lasso_editor');
79
-			if (empty( $titleClass )) {
78
+			$titleClass = lasso_editor_get_option('title_class', 'lasso_editor');
79
+			if (empty($titleClass)) {
80 80
 				$titleClass = lasso_get_supported_theme_title_class();
81 81
 			}
82
-			$toolbar_headings  	= lasso_editor_get_option('toolbar_headings', 'lasso_editor');
83
-			$toolbar_headings_h4  	= lasso_editor_get_option('toolbar_headings_h4', 'lasso_editor');
82
+			$toolbar_headings = lasso_editor_get_option('toolbar_headings', 'lasso_editor');
83
+			$toolbar_headings_h4 = lasso_editor_get_option('toolbar_headings_h4', 'lasso_editor');
84 84
 			$objectsNoSave  	= lasso_editor_get_option('dont_save', 'lasso_editor');
85
-			$objectsNonEditable  	= lasso_editor_get_option('non_editable', 'lasso_editor');
85
+			$objectsNonEditable = lasso_editor_get_option('non_editable', 'lasso_editor');
86 86
 			$disableRESTSave = lasso_editor_get_option('save_using_rest_disabled', 'lasso_editor');
87
-			$save_to_post_disabled  = lasso_editor_get_option( 'post_save_disabled', 'lasso_editor' );
88
-			$edit_post_disabled  = lasso_editor_get_option( 'post_edit_disabled', 'lasso_editor' );
87
+			$save_to_post_disabled = lasso_editor_get_option('post_save_disabled', 'lasso_editor');
88
+			$edit_post_disabled = lasso_editor_get_option('post_edit_disabled', 'lasso_editor');
89 89
 			
90
-			$bold_tag = lasso_editor_get_option('bold_tag', 'lasso_editor','b');
91
-			$i_tag = lasso_editor_get_option('i_tag', 'lasso_editor','i');
90
+			$bold_tag = lasso_editor_get_option('bold_tag', 'lasso_editor', 'b');
91
+			$i_tag = lasso_editor_get_option('i_tag', 'lasso_editor', 'i');
92 92
             
93
-            $use_old_wpimg = lasso_editor_get_option('use_old_wpimg', 'lasso_editor','off');
93
+            $use_old_wpimg = lasso_editor_get_option('use_old_wpimg', 'lasso_editor', 'off');
94 94
             
95 95
             $use_wpimgblock = false;
96 96
             
@@ -116,8 +116,8 @@  discard block
 block discarded – undo
116 116
 			
117 117
 			if ($show_color) {
118 118
 				//color picker
119
-				wp_enqueue_style( 'wp-color-picker' );
120
-				wp_enqueue_script( 'iris', admin_url( 'js/iris.min.js' ), array( 'jquery-ui-draggable', 'jquery-ui-slider', 'jquery-touch-punch' ), false, 1 );
119
+				wp_enqueue_style('wp-color-picker');
120
+				wp_enqueue_script('iris', admin_url('js/iris.min.js'), array('jquery-ui-draggable', 'jquery-ui-slider', 'jquery-touch-punch'), false, 1);
121 121
 			}
122 122
 			
123 123
 			// click to insert components, not drag and drop
@@ -129,54 +129,54 @@  discard block
 block discarded – undo
129 129
 			
130 130
 			// custom fields
131 131
 			
132
-			$custom_fields = apply_filters( 'editus_custom_fields', null ); 
132
+			$custom_fields = apply_filters('editus_custom_fields', null); 
133 133
 
134 134
 
135 135
 			// post id reference
136 136
 			$postid 			= get_the_ID();
137 137
 			$tz_offset = get_UTC_offset();
138 138
 			$post_date = get_the_time('U', $postid);
139
-			$time = (time()+$tz_offset);
139
+			$time = (time() + $tz_offset);
140 140
             $delta = $time - $post_date;
141 141
             
142 142
 			$strings = array(
143
-				'save' 				=> __('Save','lasso'),
144
-				'selectText'	  	=> __('Please Select Text First.','lasso'),
145
-				'cancel' 			=> __('Cancel','lasso'),
146
-				'exiteditor' 		=> __('Exit Editor','lasso'),
147
-				'saving' 			=> __('Saving...','lasso'),
148
-				'saved'				=> __('Saved!','lasso'),
149
-				'adding' 			=> __('Adding...','lasso'),
150
-				'added'				=> __('Added!','lasso'),
151
-				'loading' 			=> __('Loading...','lasso'),
152
-				'loadMore'			=> __('Load More','lasso'),
153
-				'close'			=> __('Close','lasso'),
154
-				'noPostsFound'		=> __('No more posts found','lasso'),
155
-				'fetchFail'	    	=> __('Fetching failed.','lasso'),
156
-				'galleryCreated' 	=> __('Gallery Created!','lasso'),
157
-				'galleryUpdated' 	=> __('Gallery Updated!','lasso'),
158
-				'justWrite'			=> __('Just write...','lasso'),
159
-				'chooseImage'		=> __('Choose an image','lasso'),
160
-				'updateImage'		=> __('Update Image','lasso'),
161
-				'insertImage'		=> __('Insert Image','lasso'),
162
-				'selectImage'		=> __('Select Image','lasso'),
163
-				'removeFeatImg'     => __('Remove featured image?','lasso'),
164
-				'updateSelectedImg' => __('Update Selected Image','lasso'),
165
-				'chooseImages'		=> __('Choose images','lasso'),
166
-				'editImage'			=> __('Edit Image','lasso'),
167
-				'addImages'			=> __('Add Images','lasso'),
168
-				'addNewGallery'		=> __('Add New Gallery','lasso'),
169
-				'selectGallery'		=> __('Select Editus Gallery Image','lasso'),
170
-				'useSelectedImages' => __('Use Selected Images','lasso'),
171
-				'publishPost'		=> __('Publish Post?','lasso'),
172
-				'publishYes'		=> __('Yes, publish it!','lasso'),
173
-				'deletePost'		=> __('Trash Post?','lasso'),
174
-				'deleteYes'			=> __('Yes, trash it!','lasso'),
175
-				'warning'			=> __('Oh snap!','laso'),
176
-				'cancelText'		=> __('O.K. got it!','lasso'),
177
-				'missingClass'		=> __('It looks like we are either missing the Article CSS class, or it is configured incorrectly. Editus will not function correctly without this CSS class.','lasso'),
143
+				'save' 				=> __('Save', 'lasso'),
144
+				'selectText'	  	=> __('Please Select Text First.', 'lasso'),
145
+				'cancel' 			=> __('Cancel', 'lasso'),
146
+				'exiteditor' 		=> __('Exit Editor', 'lasso'),
147
+				'saving' 			=> __('Saving...', 'lasso'),
148
+				'saved'				=> __('Saved!', 'lasso'),
149
+				'adding' 			=> __('Adding...', 'lasso'),
150
+				'added'				=> __('Added!', 'lasso'),
151
+				'loading' 			=> __('Loading...', 'lasso'),
152
+				'loadMore'			=> __('Load More', 'lasso'),
153
+				'close'			=> __('Close', 'lasso'),
154
+				'noPostsFound'		=> __('No more posts found', 'lasso'),
155
+				'fetchFail'	    	=> __('Fetching failed.', 'lasso'),
156
+				'galleryCreated' 	=> __('Gallery Created!', 'lasso'),
157
+				'galleryUpdated' 	=> __('Gallery Updated!', 'lasso'),
158
+				'justWrite'			=> __('Just write...', 'lasso'),
159
+				'chooseImage'		=> __('Choose an image', 'lasso'),
160
+				'updateImage'		=> __('Update Image', 'lasso'),
161
+				'insertImage'		=> __('Insert Image', 'lasso'),
162
+				'selectImage'		=> __('Select Image', 'lasso'),
163
+				'removeFeatImg'     => __('Remove featured image?', 'lasso'),
164
+				'updateSelectedImg' => __('Update Selected Image', 'lasso'),
165
+				'chooseImages'		=> __('Choose images', 'lasso'),
166
+				'editImage'			=> __('Edit Image', 'lasso'),
167
+				'addImages'			=> __('Add Images', 'lasso'),
168
+				'addNewGallery'		=> __('Add New Gallery', 'lasso'),
169
+				'selectGallery'		=> __('Select Editus Gallery Image', 'lasso'),
170
+				'useSelectedImages' => __('Use Selected Images', 'lasso'),
171
+				'publishPost'		=> __('Publish Post?', 'lasso'),
172
+				'publishYes'		=> __('Yes, publish it!', 'lasso'),
173
+				'deletePost'		=> __('Trash Post?', 'lasso'),
174
+				'deleteYes'			=> __('Yes, trash it!', 'lasso'),
175
+				'warning'			=> __('Oh snap!', 'laso'),
176
+				'cancelText'		=> __('O.K. got it!', 'lasso'),
177
+				'missingClass'		=> __('It looks like we are either missing the Article CSS class, or it is configured incorrectly. Editus will not function correctly without this CSS class.', 'lasso'),
178 178
 				'missingConfirm'	=> __('Update Settings', 'lasso'),
179
-				'helperText'		=> __('one more letter','lasso'),
179
+				'helperText'		=> __('one more letter', 'lasso'),
180 180
 				'editingBackup'  	=> __('You are currently editing a backup copy of this post.'),
181 181
 				
182 182
 				'catsPlaceholder'     => __('add categories...'),
@@ -186,11 +186,11 @@  discard block
 block discarded – undo
186 186
 				
187 187
 			);
188 188
 
189
-			$api_url = trailingslashit( home_url() ) . 'lasso-internal-api';
189
+			$api_url = trailingslashit(home_url()).'lasso-internal-api';
190 190
 
191 191
 			$gallery_class = new gallery();
192 192
 			$gallery_nonce_action = $gallery_class->nonce_action;
193
-			$gallery_nonce = wp_create_nonce( $gallery_nonce_action );
193
+			$gallery_nonce = wp_create_nonce($gallery_nonce_action);
194 194
 			
195 195
 			
196 196
             if ($allow_change_date) {
@@ -205,13 +205,13 @@  discard block
 block discarded – undo
205 205
 			  
206 206
 			if (function_exists('rest_url')) {
207 207
 				//$rest_root = esc_url_raw( rest_url());
208
-				$rest_nonce = wp_create_nonce( 'wp_rest' );
209
-				$settings = array( 'root' => $rest_root, 'nonce' => $rest_nonce );
210
-				wp_enqueue_script( 'wp-api', '', array( 'jquery', 'underscore', 'backbone' ), LASSO_VERSION, true );
211
-				wp_localize_script( 'wp-api', 'wpApiSettings', $settings );
212
-				wp_localize_script( 'wp-api', 'WP_API_Settings', $settings );
208
+				$rest_nonce = wp_create_nonce('wp_rest');
209
+				$settings = array('root' => $rest_root, 'nonce' => $rest_nonce);
210
+				wp_enqueue_script('wp-api', '', array('jquery', 'underscore', 'backbone'), LASSO_VERSION, true);
211
+				wp_localize_script('wp-api', 'wpApiSettings', $settings);
212
+				wp_localize_script('wp-api', 'WP_API_Settings', $settings);
213 213
 				
214
-				if ( class_exists( 'WP_REST_Controller' )) {
214
+				if (class_exists('WP_REST_Controller')) {
215 215
 					// we are using REST API V2
216 216
 					$using_restapiv2 = true;
217 217
 				}
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
             
220 220
             //excerpt
221 221
             $post_excerpt = "";
222
-            $post_excerpt = wp_strip_all_tags($post->post_excerpt,true);
222
+            $post_excerpt = wp_strip_all_tags($post->post_excerpt, true);
223 223
             
224 224
             //find if this is multi page. -1 if not
225 225
             $multipage = self::is_multipage();
@@ -230,24 +230,24 @@  discard block
 block discarded – undo
230 230
             //}
231 231
 			
232 232
 			//get custom taxonomy
233
-			$custom_taxonomies         = array_diff(get_object_taxonomies( get_post_type( $postid ), 'names' ), ['category','post_tag','post_format']);
234
-			$post_taxo_arr    = array();
233
+			$custom_taxonomies         = array_diff(get_object_taxonomies(get_post_type($postid), 'names'), ['category', 'post_tag', 'post_format']);
234
+			$post_taxo_arr = array();
235 235
 			foreach ($custom_taxonomies as $taxonomy) {
236
-				$post_taxo_arr[$taxonomy] = lasso_get_post_objects( $postid, $taxonomy );
236
+				$post_taxo_arr[$taxonomy] = lasso_get_post_objects($postid, $taxonomy);
237 237
 			}
238
-			$existing_taxo_arr    = array();
238
+			$existing_taxo_arr = array();
239 239
 			foreach ($custom_taxonomies as $taxonomy) {
240
-				$existing_taxo_arr[$taxonomy] = lasso_get_objects( $taxonomy );
240
+				$existing_taxo_arr[$taxonomy] = lasso_get_objects($taxonomy);
241 241
 			}
242 242
             
243
-            $new_post_text    = lasso_editor_get_option( 'new_post_text', 'lasso_editor' );        
244
-            $new_post_text  = !empty($new_post_text) ? $new_post_text : wp_strip_all_tags(apply_filters( 'lasso_new_object_content', __( 'Once upon a time...','lasso')));
243
+            $new_post_text = lasso_editor_get_option('new_post_text', 'lasso_editor');        
244
+            $new_post_text = !empty($new_post_text) ? $new_post_text : wp_strip_all_tags(apply_filters('lasso_new_object_content', __('Once upon a time...', 'lasso')));
245 245
 
246 246
 
247 247
 			// localized objects
248 248
 			$objects = array(
249
-				'ajaxurl' 			=> esc_url( $api_url ),
250
-				'ajaxurl2' 			=> esc_url( admin_url( 'admin-ajax.php' )),
249
+				'ajaxurl' 			=> esc_url($api_url),
250
+				'ajaxurl2' 			=> esc_url(admin_url('admin-ajax.php')),
251 251
 				'siteUrl'           => site_url(),
252 252
 				'rest_root'         => $rest_root,
253 253
 				'rest_nonce'        => $rest_nonce,
@@ -256,13 +256,13 @@  discard block
 block discarded – undo
256 256
 				'featImgClass'		=> $featImgClass,
257 257
 				'titleClass'		=> $titleClass,
258 258
 				'strings'			=> $strings,
259
-				'settingsLink'		=> function_exists('is_multisite') && is_multisite() ? network_admin_url( 'settings.php?page=lasso-editor' ) : admin_url( 'admin.php?page=lasso-editor-settings' ),
260
-				'post_status'		=> get_post_status( $postid ),
259
+				'settingsLink'		=> function_exists('is_multisite') && is_multisite() ? network_admin_url('settings.php?page=lasso-editor') : admin_url('admin.php?page=lasso-editor-settings'),
260
+				'post_status'		=> get_post_status($postid),
261 261
 				'postid'			=> $postid,
262 262
 				'permalink'			=> $permalink,
263 263
 				'edit_others_pages'	=> current_user_can('edit_others_pages') ? true : false,
264 264
 				'edit_others_posts'	=> current_user_can('edit_others_posts') ? true : false,
265
-				'userCanEdit'		=> current_user_can('edit_post', $postid ),
265
+				'userCanEdit'		=> current_user_can('edit_post', $postid),
266 266
 				'can_publish'		=> is_page() ? current_user_can('publish_pages') : current_user_can('publish_posts'),
267 267
 				//'can_publish_posts'	=> current_user_can('publish_posts'),
268 268
 				//'can_publish_pages'	=> current_user_can('publish_pages'),
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
 				'nonce'				=> wp_create_nonce('lasso_editor'),
271 271
 				'handle'			=> lasso_editor_settings_toolbar(),
272 272
 				'toolbar'			=> lasso_editor_text_toolbar(),
273
-                'toolbarPopup'		=> $text_select_popup ? lasso_editor_selected_text_toolbar(): false,
273
+                'toolbarPopup'		=> $text_select_popup ? lasso_editor_selected_text_toolbar() : false,
274 274
 				'toolbarHeadings'   => $toolbar_headings,
275 275
 				'toolbarHeadingsH4'   => $toolbar_headings_h4,
276 276
 				'component_modal'	=> lasso_editor_component_modal(),
@@ -302,39 +302,39 @@  discard block
 block discarded – undo
302 302
 				'extCusTaxonomies' => $existing_taxo_arr,
303 303
 				'noResultsDiv'		=> lasso_editor_empty_results(),
304 304
 				'noRevisionsDiv'	=> lasso_editor_empty_results('revision'),
305
-				'mapTileProvider'   => function_exists('aesop_map_tile_provider') ? aesop_map_tile_provider( $postid ) : false,
306
-				'mapLocations'		=> get_post_meta( $postid, 'ase_map_component_locations' ),
307
-				'mapStart'			=> get_post_meta( $postid, 'ase_map_component_start_point', true ),
308
-				'mapZoom'			=> get_post_meta( $postid, 'ase_map_component_zoom', true ),
305
+				'mapTileProvider'   => function_exists('aesop_map_tile_provider') ? aesop_map_tile_provider($postid) : false,
306
+				'mapLocations'		=> get_post_meta($postid, 'ase_map_component_locations'),
307
+				'mapStart'			=> get_post_meta($postid, 'ase_map_component_start_point', true),
308
+				'mapZoom'			=> get_post_meta($postid, 'ase_map_component_zoom', true),
309 309
 				'revisionModal' 	=> lasso_editor_revision_modal(),
310 310
 				'isMobile'          => wp_is_mobile(),
311
-				'enableAutoSave'    => lasso_editor_get_option( 'enable_autosave', 'lasso_editor' ),
311
+				'enableAutoSave'    => lasso_editor_get_option('enable_autosave', 'lasso_editor'),
312 312
 				'showColor'         => $show_color,
313 313
 				'showAlignment'     => $show_align,
314 314
 				'showIgnoredItems'  => lasso_editor_get_option('show_ignored_items', 'lasso_editor'),
315 315
 				'restapi2'          => $using_restapiv2,
316 316
 				'saveusingrest'     => $using_restapiv2 && !$disableRESTSave,
317
-				'newObjectContent'  => '<p class="editus-firstp" placeholder="'. $new_post_text . '"></p>',
317
+				'newObjectContent'  => '<p class="editus-firstp" placeholder="'.$new_post_text.'"></p>',
318 318
 				'disableSavePost'   => $save_to_post_disabled,
319 319
 				'disableEditPost'   => $edit_post_disabled,
320 320
 				'boldTag'           => $bold_tag,
321 321
 				'iTag'           	=> $i_tag, 
322 322
 				'customFields'      => $custom_fields,
323
-				'clickToInsert'     => ($insert_comp_ui =='click'),
324
-				'buttonOnEmptyP'     => ($insert_comp_ui =='mediumcom'),      // auto show a button to insert components on an empty paragraph      
323
+				'clickToInsert'     => ($insert_comp_ui == 'click'),
324
+				'buttonOnEmptyP'     => ($insert_comp_ui == 'mediumcom'), // auto show a button to insert components on an empty paragraph      
325 325
                 'rtl'               => is_rtl(),				
326
-				'skipToEdit'        =>( $delta < 10 && $delta >=0 ), // if it's a new post, skip to edit mode
326
+				'skipToEdit'        =>($delta < 10 && $delta >= 0), // if it's a new post, skip to edit mode
327 327
 				'linksEditable'    => $links_editable,
328 328
 				'supportPendingStatus' => !$no_pending_status,
329
-				'tableCode' => apply_filters( 'lasso_table_html_code','<table><tr><th>Cell 1</th><th>Cell 2</th></tr><tr><td>Cell 3</td><td>Cell 4</td></tr></table><p></p>'),
330
-                'hasGutenberg' => (function_exists( 'has_blocks' ) && has_blocks( $post->post_content)) || self::gutenberg_active(),//,
329
+				'tableCode' => apply_filters('lasso_table_html_code', '<table><tr><th>Cell 1</th><th>Cell 2</th></tr><tr><td>Cell 3</td><td>Cell 4</td></tr></table><p></p>'),
330
+                'hasGutenberg' => (function_exists('has_blocks') && has_blocks($post->post_content)) || self::gutenberg_active(), //,
331 331
                 'multipages'=> $multipage,
332 332
                 'post_content'=>$post_content,
333 333
                 'post_excerpt'=>$post_excerpt,
334 334
                 'supCustTaxo' => $support_custom_taxonomy == 'on',
335
-                'oldWPimg'=> $use_old_wpimg =='on',
335
+                'oldWPimg'=> $use_old_wpimg == 'on',
336 336
                 'useWPImgBlk'=> $use_wpimgblock,
337
-                'prefixHTTP'=> $link_prefix_http =='on'
337
+                'prefixHTTP'=> $link_prefix_http == 'on'
338 338
 			);
339 339
 
340 340
 
@@ -343,9 +343,9 @@  discard block
 block discarded – undo
343 343
 			
344 344
 			if (!$using_restapiv2) {
345 345
                // enqueue REST API V1
346
-			   wp_enqueue_script( 'wp-api-js', LASSO_URL.'/public/assets/js/source/util--wp-api.js', array( 'jquery', 'underscore', 'backbone' ), LASSO_VERSION, true );
347
-			   $settings = array( 'root' => home_url( $home_url ), 'nonce' => wp_create_nonce( 'wp_json' ) );
348
-			   wp_localize_script( 'wp-api-js', 'WP_API_Settings', $settings );
346
+			   wp_enqueue_script('wp-api-js', LASSO_URL.'/public/assets/js/source/util--wp-api.js', array('jquery', 'underscore', 'backbone'), LASSO_VERSION, true);
347
+			   $settings = array('root' => home_url($home_url), 'nonce' => wp_create_nonce('wp_json'));
348
+			   wp_localize_script('wp-api-js', 'WP_API_Settings', $settings);
349 349
 			}
350 350
 			
351 351
 			if ($allow_change_date) {
@@ -354,13 +354,13 @@  discard block
 block discarded – undo
354 354
 				wp_enqueue_style('jquery-ui');
355 355
 			}
356 356
 
357
-			$postfix = ( defined( 'SCRIPT_DEBUG' ) && true === SCRIPT_DEBUG ) ? '' : '.min';
357
+			$postfix = (defined('SCRIPT_DEBUG') && true === SCRIPT_DEBUG) ? '' : '.min';
358 358
 			if ($show_color) {
359
-				wp_enqueue_script('lasso', LASSO_URL. "/public/assets/js/lasso{$postfix}.js", array('jquery', 'wp-api','iris'), LASSO_VERSION, true);
359
+				wp_enqueue_script('lasso', LASSO_URL."/public/assets/js/lasso{$postfix}.js", array('jquery', 'wp-api', 'iris'), LASSO_VERSION, true);
360 360
 			} else {
361
-			    wp_enqueue_script('lasso', LASSO_URL. "/public/assets/js/lasso{$postfix}.js", array('jquery', 'wp-api'), LASSO_VERSION, true);
361
+			    wp_enqueue_script('lasso', LASSO_URL."/public/assets/js/lasso{$postfix}.js", array('jquery', 'wp-api'), LASSO_VERSION, true);
362 362
 			}
363
-			wp_localize_script('lasso', 'lasso_editor', apply_filters('lasso_localized_objects', $objects ) );
363
+			wp_localize_script('lasso', 'lasso_editor', apply_filters('lasso_localized_objects', $objects));
364 364
 
365 365
 
366 366
 		}
@@ -370,20 +370,20 @@  discard block
 block discarded – undo
370 370
     function gutenberg_active() {
371 371
         
372 372
         // Gutenberg plugin is installed and activated.
373
-        $gutenberg = ! ( false === has_filter( 'replace_editor', 'gutenberg_init' ) );
373
+        $gutenberg = !(false === has_filter('replace_editor', 'gutenberg_init'));
374 374
 
375 375
         // Block editor since 5.0.
376
-        $block_editor = version_compare( $GLOBALS['wp_version'], '5.0-beta', '>' );
376
+        $block_editor = version_compare($GLOBALS['wp_version'], '5.0-beta', '>');
377 377
 
378
-        if ( ! $gutenberg && ! $block_editor ) {
378
+        if (!$gutenberg && !$block_editor) {
379 379
             return false;
380 380
         }
381 381
 
382
-        if ( self::is_classic_editor_plugin_active() ) {
383
-            $editor_option       = get_option( 'classic-editor-replace' );
384
-            $block_editor_active = array( 'no-replace', 'block' );
382
+        if (self::is_classic_editor_plugin_active()) {
383
+            $editor_option       = get_option('classic-editor-replace');
384
+            $block_editor_active = array('no-replace', 'block');
385 385
 
386
-            return in_array( $editor_option, $block_editor_active, true );
386
+            return in_array($editor_option, $block_editor_active, true);
387 387
         }
388 388
 
389 389
         return true;
@@ -395,11 +395,11 @@  discard block
 block discarded – undo
395 395
      * @return bool
396 396
      */
397 397
     function is_classic_editor_plugin_active() {
398
-        if ( ! function_exists( 'is_plugin_active' ) ) {
399
-            include_once ABSPATH . 'wp-admin/includes/plugin.php';
398
+        if (!function_exists('is_plugin_active')) {
399
+            include_once ABSPATH.'wp-admin/includes/plugin.php';
400 400
         }
401 401
 
402
-        if ( is_plugin_active( 'classic-editor/classic-editor.php' ) ) {
402
+        if (is_plugin_active('classic-editor/classic-editor.php')) {
403 403
             return true;
404 404
         }
405 405
 
Please login to merge, or discard this patch.
admin/includes/menus/settings.php 2 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -98,8 +98,8 @@  discard block
 block discarded – undo
98 98
 		if ( !is_user_logged_in() )
99 99
 			return;
100 100
         
101
-        // check for lasso story engine and add a class doniting this
102
-        $ase_status = class_exists( 'Aesop_Core' ) || defined( 'LASSO_CUSTOM' ) ? 'ase-active' : 'ase-not-active';
101
+		// check for lasso story engine and add a class doniting this
102
+		$ase_status = class_exists( 'Aesop_Core' ) || defined( 'LASSO_CUSTOM' ) ? 'ase-active' : 'ase-not-active';
103 103
 
104 104
 		$article_object   = lasso_editor_get_option( 'article_class', 'lasso_editor' );
105 105
 		$featImgClass    = lasso_editor_get_option( 'featimg_class', 'lasso_editor' );
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 		$edit_post_disabled  = lasso_editor_get_option( 'post_edit_disabled', 'lasso_editor' );
111 111
 		$post_settings_disabled = lasso_editor_get_option( 'post_settings_disabled', 'lasso_editor' );
112 112
 		$allow_change_date = lasso_editor_get_option( 'allow_change_date', 'lasso_editor' );
113
-        $allow_edit_excerpt = lasso_editor_get_option( 'allow_edit_excerpt', 'lasso_editor' );
113
+		$allow_edit_excerpt = lasso_editor_get_option( 'allow_edit_excerpt', 'lasso_editor' );
114 114
 		$allow_new_category = lasso_editor_get_option( 'allow_new_category', 'lasso_editor' );
115 115
 		$shortcodify_disabled  = lasso_editor_get_option( 'shortcodify_disabled', 'lasso_editor' );
116 116
 		$enable_autosave  = lasso_editor_get_option( 'enable_autosave', 'lasso_editor' );
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
 		$toolbar_show_color      = lasso_editor_get_option( 'toolbar_show_color', 'lasso_editor' );
123 123
 		$toolbar_show_alignment  = lasso_editor_get_option( 'toolbar_show_alignment', 'lasso_editor' );
124 124
         
125
-        $text_select_popup = lasso_editor_get_option('text_select_popup', 'lasso_editor', false);
125
+		$text_select_popup = lasso_editor_get_option('text_select_popup', 'lasso_editor', false);
126 126
 		
127 127
 		$objectsNoSave  	= lasso_editor_get_option('dont_save', 'lasso_editor');
128 128
 		$objectsNonEditable  	= lasso_editor_get_option('non_editable', 'lasso_editor');
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
 		$bold_tag = lasso_editor_get_option( 'bold_tag', 'lasso_editor',  "b");
138 138
 		$i_tag = lasso_editor_get_option( 'i_tag', 'lasso_editor',  "i");
139 139
         
140
-        $add_table = lasso_editor_get_option('add_table', 'lasso_editor', false);
140
+		$add_table = lasso_editor_get_option('add_table', 'lasso_editor', false);
141 141
 		
142 142
 		// do we support pending status
143 143
 		$no_pending_status = lasso_editor_get_option('no_pending_status', 'lasso_editor');
@@ -149,16 +149,16 @@  discard block
 block discarded – undo
149 149
 			$insert_comp_ui = 'drag';
150 150
 		}
151 151
         
152
-        $link_prefix_http = lasso_editor_get_option('link_prefix_http', 'lasso_editor');
152
+		$link_prefix_http = lasso_editor_get_option('link_prefix_http', 'lasso_editor');
153 153
         
154
-        $use_old_wpimg = lasso_editor_get_option('use_old_wpimg', 'lasso_editor','off');
155
-        $use_wp_block_image = lasso_editor_get_option('use_wp_block_image', 'lasso_editor','off');
154
+		$use_old_wpimg = lasso_editor_get_option('use_old_wpimg', 'lasso_editor','off');
155
+		$use_wp_block_image = lasso_editor_get_option('use_wp_block_image', 'lasso_editor','off');
156 156
 		
157 157
 		$support_custom_taxonomy   = lasso_editor_get_option( 'support_custom_taxonomy', 'lasso_editor' );
158 158
         
159
-        $new_post_text    = lasso_editor_get_option( 'new_post_text', 'lasso_editor' );
159
+		$new_post_text    = lasso_editor_get_option( 'new_post_text', 'lasso_editor' );
160 160
         
161
-        $no_wrap_shortcode    = lasso_editor_get_option( 'no_wrap_shortcode', 'lasso_editor');
161
+		$no_wrap_shortcode    = lasso_editor_get_option( 'no_wrap_shortcode', 'lasso_editor');
162 162
 
163 163
 ?>
164 164
 		<div class="wrap">
Please login to merge, or discard this patch.
Spacing   +187 added lines, -187 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,47 +95,47 @@  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 101
         // check for lasso story engine and add a class doniting this
102
-        $ase_status = class_exists( 'Aesop_Core' ) || defined( 'LASSO_CUSTOM' ) ? 'ase-active' : 'ase-not-active';
103
-
104
-		$article_object   = lasso_editor_get_option( 'article_class', 'lasso_editor' );
105
-		$featImgClass    = lasso_editor_get_option( 'featimg_class', 'lasso_editor' );
106
-		$titleClass    = lasso_editor_get_option( 'title_class', 'lasso_editor' );
107
-
108
-		$post_new_disabled   = lasso_editor_get_option( 'post_adding_disabled', 'lasso_editor' );
109
-		$save_to_post_disabled  = lasso_editor_get_option( 'post_save_disabled', 'lasso_editor' );
110
-		$edit_post_disabled  = lasso_editor_get_option( 'post_edit_disabled', 'lasso_editor' );
111
-		$post_settings_disabled = lasso_editor_get_option( 'post_settings_disabled', 'lasso_editor' );
112
-		$allow_change_date = lasso_editor_get_option( 'allow_change_date', 'lasso_editor' );
113
-        $allow_edit_excerpt = lasso_editor_get_option( 'allow_edit_excerpt', 'lasso_editor' );
114
-		$allow_new_category = lasso_editor_get_option( 'allow_new_category', 'lasso_editor' );
115
-		$shortcodify_disabled  = lasso_editor_get_option( 'shortcodify_disabled', 'lasso_editor' );
116
-		$enable_autosave  = lasso_editor_get_option( 'enable_autosave', 'lasso_editor' );
117
-
118
-		$use_old_ui      = lasso_editor_get_option( 'use_old_ui', 'lasso_editor' );
119
-		$toolbar_headings      = lasso_editor_get_option( 'toolbar_headings', 'lasso_editor' );
120
-		$toolbar_headings_h4      = lasso_editor_get_option( 'toolbar_headings_h4', 'lasso_editor' );
121
-		$toolbar_list      = lasso_editor_get_option( 'toolbar_list', 'lasso_editor' );
122
-		$toolbar_show_color      = lasso_editor_get_option( 'toolbar_show_color', 'lasso_editor' );
123
-		$toolbar_show_alignment  = lasso_editor_get_option( 'toolbar_show_alignment', 'lasso_editor' );
102
+        $ase_status = class_exists('Aesop_Core') || defined('LASSO_CUSTOM') ? 'ase-active' : 'ase-not-active';
103
+
104
+		$article_object   = lasso_editor_get_option('article_class', 'lasso_editor');
105
+		$featImgClass = lasso_editor_get_option('featimg_class', 'lasso_editor');
106
+		$titleClass = lasso_editor_get_option('title_class', 'lasso_editor');
107
+
108
+		$post_new_disabled   = lasso_editor_get_option('post_adding_disabled', 'lasso_editor');
109
+		$save_to_post_disabled  = lasso_editor_get_option('post_save_disabled', 'lasso_editor');
110
+		$edit_post_disabled  = lasso_editor_get_option('post_edit_disabled', 'lasso_editor');
111
+		$post_settings_disabled = lasso_editor_get_option('post_settings_disabled', 'lasso_editor');
112
+		$allow_change_date = lasso_editor_get_option('allow_change_date', 'lasso_editor');
113
+        $allow_edit_excerpt = lasso_editor_get_option('allow_edit_excerpt', 'lasso_editor');
114
+		$allow_new_category = lasso_editor_get_option('allow_new_category', 'lasso_editor');
115
+		$shortcodify_disabled = lasso_editor_get_option('shortcodify_disabled', 'lasso_editor');
116
+		$enable_autosave = lasso_editor_get_option('enable_autosave', 'lasso_editor');
117
+
118
+		$use_old_ui = lasso_editor_get_option('use_old_ui', 'lasso_editor');
119
+		$toolbar_headings = lasso_editor_get_option('toolbar_headings', 'lasso_editor');
120
+		$toolbar_headings_h4 = lasso_editor_get_option('toolbar_headings_h4', 'lasso_editor');
121
+		$toolbar_list = lasso_editor_get_option('toolbar_list', 'lasso_editor');
122
+		$toolbar_show_color      = lasso_editor_get_option('toolbar_show_color', 'lasso_editor');
123
+		$toolbar_show_alignment  = lasso_editor_get_option('toolbar_show_alignment', 'lasso_editor');
124 124
         
125 125
         $text_select_popup = lasso_editor_get_option('text_select_popup', 'lasso_editor', false);
126 126
 		
127
-		$objectsNoSave  	= lasso_editor_get_option('dont_save', 'lasso_editor');
128
-		$objectsNonEditable  	= lasso_editor_get_option('non_editable', 'lasso_editor');
127
+		$objectsNoSave = lasso_editor_get_option('dont_save', 'lasso_editor');
128
+		$objectsNonEditable = lasso_editor_get_option('non_editable', 'lasso_editor');
129 129
 		$disable_tour = lasso_editor_get_option('disable_tour', 'lasso_editor');
130 130
 		$show_ignored_items = lasso_editor_get_option('show_ignored_items', 'lasso_editor');
131 131
 		$save_using_rest_disabled = lasso_editor_get_option('save_using_rest_disabled', 'lasso_editor');
132 132
 		
133
-		$default_post_types = apply_filters( 'lasso_allowed_post_types', array( 'post', 'page'));
134
-		$allowed_post_types = lasso_editor_get_option( 'allowed_post_types', 'lasso_editor',  $default_post_types);
133
+		$default_post_types = apply_filters('lasso_allowed_post_types', array('post', 'page'));
134
+		$allowed_post_types = lasso_editor_get_option('allowed_post_types', 'lasso_editor', $default_post_types);
135 135
 		
136 136
 		$links_editable = lasso_editor_get_option('links_editable', 'lasso_editor', false);
137
-		$bold_tag = lasso_editor_get_option( 'bold_tag', 'lasso_editor',  "b");
138
-		$i_tag = lasso_editor_get_option( 'i_tag', 'lasso_editor',  "i");
137
+		$bold_tag = lasso_editor_get_option('bold_tag', 'lasso_editor', "b");
138
+		$i_tag = lasso_editor_get_option('i_tag', 'lasso_editor', "i");
139 139
         
140 140
         $add_table = lasso_editor_get_option('add_table', 'lasso_editor', false);
141 141
 		
@@ -151,43 +151,43 @@  discard block
 block discarded – undo
151 151
         
152 152
         $link_prefix_http = lasso_editor_get_option('link_prefix_http', 'lasso_editor');
153 153
         
154
-        $use_old_wpimg = lasso_editor_get_option('use_old_wpimg', 'lasso_editor','off');
155
-        $use_wp_block_image = lasso_editor_get_option('use_wp_block_image', 'lasso_editor','off');
154
+        $use_old_wpimg = lasso_editor_get_option('use_old_wpimg', 'lasso_editor', 'off');
155
+        $use_wp_block_image = lasso_editor_get_option('use_wp_block_image', 'lasso_editor', 'off');
156 156
 		
157
-		$support_custom_taxonomy   = lasso_editor_get_option( 'support_custom_taxonomy', 'lasso_editor' );
157
+		$support_custom_taxonomy = lasso_editor_get_option('support_custom_taxonomy', 'lasso_editor');
158 158
         
159
-        $new_post_text    = lasso_editor_get_option( 'new_post_text', 'lasso_editor' );
159
+        $new_post_text = lasso_editor_get_option('new_post_text', 'lasso_editor');
160 160
         
161
-        $no_wrap_shortcode    = lasso_editor_get_option( 'no_wrap_shortcode', 'lasso_editor');
161
+        $no_wrap_shortcode = lasso_editor_get_option('no_wrap_shortcode', 'lasso_editor');
162 162
 
163 163
 ?>
164 164
 		<div class="wrap">
165 165
         
166
-	    	<h2><?php _e( 'Editus Settings', 'lasso' );?></h2>
166
+	    	<h2><?php _e('Editus Settings', 'lasso'); ?></h2>
167 167
             
168 168
 			<form id="lasso-editor-settings-form" class="lasso--form-settings" method="post" enctype="multipart/form-data">
169 169
 
170
-				<?php do_action('lasso_settings_before');?>
170
+				<?php do_action('lasso_settings_before'); ?>
171 171
 				
172 172
 				
173 173
 				
174
-				<h3><?php _e( 'Enable for:', 'lasso' );?></h3>
174
+				<h3><?php _e('Enable for:', 'lasso'); ?></h3>
175 175
 				<div class="lasso-editor-settings--option-wrap">
176 176
 					<div class="lasso-editor-settings--option-inner">
177 177
 						
178
-						<span class="lasso--setting-description"><?php _e( 'Enable Editus for the following post types.', 'lasso' );?></span>
178
+						<span class="lasso--setting-description"><?php _e('Enable Editus for the following post types.', 'lasso'); ?></span>
179 179
 						<?php
180 180
 						$args = array(
181 181
 							'public'   => true
182 182
 						);
183 183
 						 
184
-						$allowed_post_types = apply_filters( 'lasso_allowed_post_types', $allowed_post_types );
185
-						$post_types = get_post_types( $args, 'objects' );
184
+						$allowed_post_types = apply_filters('lasso_allowed_post_types', $allowed_post_types);
185
+						$post_types = get_post_types($args, 'objects');
186 186
 						 
187
-						foreach ( $post_types  as $post_type ) {
187
+						foreach ($post_types  as $post_type) {
188 188
 						   if ($post_type->name == 'attachment') continue;
189
-						   $checked ="";
190
-						   if (  in_array( $post_type->name, $allowed_post_types )  ) {
189
+						   $checked = "";
190
+						   if (in_array($post_type->name, $allowed_post_types)) {
191 191
 								$checked = 'checked="checked"';
192 192
 						   }
193 193
 						   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>';
@@ -197,133 +197,133 @@  discard block
 block discarded – undo
197 197
 				</div>
198 198
 				
199 199
 
200
-				<h3><?php _e( 'Internal Settings', 'lasso' );?></h3>
200
+				<h3><?php _e('Internal Settings', 'lasso'); ?></h3>
201 201
 				<div class="lasso-editor-settings--option-wrap">
202 202
 					<div class="lasso-editor-settings--option-inner" style="border:none;">
203
-						<label><?php _e( 'Article Class', 'lasso' );?></label>
204
-						<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>
205
-						<input type="text" name="lasso_editor[article_class]" id="lasso_editor[article_class]" value="<?php echo esc_attr( $article_object );?>" placeholder=".entry-content">
203
+						<label><?php _e('Article Class', 'lasso'); ?></label>
204
+						<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>
205
+						<input type="text" name="lasso_editor[article_class]" id="lasso_editor[article_class]" value="<?php echo esc_attr($article_object); ?>" placeholder=".entry-content">
206 206
 					</div>
207 207
 				
208 208
 					<div class="lasso-editor-settings--option-inner" style="border:none;">
209
-						<label><?php _e( 'Featured Image Class', 'lasso' );?></label>
210
-						<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>
211
-						<input type="text" name="lasso_editor[featimg_class]" id="lasso_editor[featimg_class]" value="<?php echo esc_attr( $featImgClass );?>" placeholder=".entry-content">
209
+						<label><?php _e('Featured Image Class', 'lasso'); ?></label>
210
+						<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>
211
+						<input type="text" name="lasso_editor[featimg_class]" id="lasso_editor[featimg_class]" value="<?php echo esc_attr($featImgClass); ?>" placeholder=".entry-content">
212 212
 					</div>
213 213
 				
214 214
 					<div class="lasso-editor-settings--option-inner" style="border:none;">
215
-						<label><?php _e( 'Article Title Class', 'lasso' );?></label>
216
-						<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>
217
-						<input type="text" name="lasso_editor[title_class]" id="lasso_editor[title_class]" value="<?php echo esc_attr( $titleClass );?>" placeholder=".entry-content">
215
+						<label><?php _e('Article Title Class', 'lasso'); ?></label>
216
+						<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>
217
+						<input type="text" name="lasso_editor[title_class]" id="lasso_editor[title_class]" value="<?php echo esc_attr($titleClass); ?>" placeholder=".entry-content">
218 218
 					</div>
219 219
 				
220 220
 					<div class="lasso-editor-settings--option-inner" style="border:none;">
221
-						<label><?php _e( 'Ignored Items to Save', 'lasso' );?></label>
222
-						<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>
223
-						<textarea name="lasso_editor[dont_save]" id="lasso_editor[dont_save]" placeholder=".classname, .another-class"><?php echo esc_attr( $objectsNoSave );?></textarea>
221
+						<label><?php _e('Ignored Items to Save', 'lasso'); ?></label>
222
+						<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>
223
+						<textarea name="lasso_editor[dont_save]" id="lasso_editor[dont_save]" placeholder=".classname, .another-class"><?php echo esc_attr($objectsNoSave); ?></textarea>
224 224
 					</div>
225 225
 				
226 226
 					<div class="lasso-editor-settings--option-inner" style="border:none;">
227
-						<label><?php _e( 'Read Only Items', 'lasso' );?></label>
228
-						<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>
229
-						<textarea name="lasso_editor[non_editable]" id="lasso_editor[non_editable]" placeholder=".classname, .another-class"><?php echo esc_attr( $objectsNonEditable );?></textarea>
227
+						<label><?php _e('Read Only Items', 'lasso'); ?></label>
228
+						<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>
229
+						<textarea name="lasso_editor[non_editable]" id="lasso_editor[non_editable]" placeholder=".classname, .another-class"><?php echo esc_attr($objectsNonEditable); ?></textarea>
230 230
 					</div>
231 231
 				
232 232
 					<div class="lasso-editor-settings--option-inner" >
233
-						<input type="checkbox" class="checkbox" name="lasso_editor[show_ignored_items]" id="lasso_editor[show_ignored_items]" <?php echo checked( $show_ignored_items, 'on' );?> >
234
-						<label for="lasso_editor[show_ignored_items]"> <?php _e( 'Show Ignored Items', 'lasso' );?></label>
235
-						<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>
233
+						<input type="checkbox" class="checkbox" name="lasso_editor[show_ignored_items]" id="lasso_editor[show_ignored_items]" <?php echo checked($show_ignored_items, 'on'); ?> >
234
+						<label for="lasso_editor[show_ignored_items]"> <?php _e('Show Ignored Items', 'lasso'); ?></label>
235
+						<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>
236 236
 					</div>
237 237
 				</div>
238 238
 
239
-				<h3><?php _e( 'Editor UI', 'lasso' );?></h3>
239
+				<h3><?php _e('Editor UI', 'lasso'); ?></h3>
240 240
 				<div class="lasso-editor-settings--option-wrap">
241 241
 					<div class="lasso-editor-settings--option-inner" style="border:none;">
242
-						<input type="checkbox" class="checkbox" name="lasso_editor[use_old_ui]" id="lasso_editor_use_old_ui" <?php echo checked( $use_old_ui, 'on' );?> >
243
-						<label for="lasso_editor[use_old_ui]"><?php _e( 'Use the Old Toolbar', 'lasso' );?></label>
244
-						<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>
242
+						<input type="checkbox" class="checkbox" name="lasso_editor[use_old_ui]" id="lasso_editor_use_old_ui" <?php echo checked($use_old_ui, 'on'); ?> >
243
+						<label for="lasso_editor[use_old_ui]"><?php _e('Use the Old Toolbar', 'lasso'); ?></label>
244
+						<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>
245 245
 					</div>
246 246
 				    <div id="lasso-editor-settings--colors">
247 247
 					<?php
248
-					self::create_section_for_color_picker('button-color1', _e( 'Editor Bar Color Top', 'lasso' ), '#0000ff');
249
-					self::create_section_for_color_picker('button-color2', _e( 'Editor Bar Color Bottom', 'lasso' ), '#000030');
250
-					self::create_section_for_color_picker('dialog-color', _e( 'Dialog Color', 'lasso' ), '#000055');
251
-					self::create_section_for_color_picker('text-color', _e( 'Icon/Text Color', 'lasso' ), '#ffffff');
248
+					self::create_section_for_color_picker('button-color1', _e('Editor Bar Color Top', 'lasso'), '#0000ff');
249
+					self::create_section_for_color_picker('button-color2', _e('Editor Bar Color Bottom', 'lasso'), '#000030');
250
+					self::create_section_for_color_picker('dialog-color', _e('Dialog Color', 'lasso'), '#000055');
251
+					self::create_section_for_color_picker('text-color', _e('Icon/Text Color', 'lasso'), '#ffffff');
252 252
 					?>
253
-					<button type="button" id="lasso-editor-settings--default-colors" ><?php _e( 'Default Colors', 'lasso' );?></button>
253
+					<button type="button" id="lasso-editor-settings--default-colors" ><?php _e('Default Colors', 'lasso'); ?></button>
254 254
 				    <div style="height:50px;"></div>
255 255
 					</div>
256 256
 					<div class="lasso-editor-settings--option-inner" style="border:none;">
257
-						<input type="checkbox" class="checkbox" name="lasso_editor[toolbar_headings]" id="lasso_editor[toolbar_headings]" <?php echo checked( $toolbar_headings, 'on' );?> >
258
-						<label for="lasso_editor[toolbar_headings]"><?php _e( 'Enable H2 and H3 Buttons', 'lasso' );?></label>
259
-						<span class="lasso--setting-description"><?php _e( 'Show the buttons to set H2 and H3 settings.', 'lasso' );?></span>
257
+						<input type="checkbox" class="checkbox" name="lasso_editor[toolbar_headings]" id="lasso_editor[toolbar_headings]" <?php echo checked($toolbar_headings, 'on'); ?> >
258
+						<label for="lasso_editor[toolbar_headings]"><?php _e('Enable H2 and H3 Buttons', 'lasso'); ?></label>
259
+						<span class="lasso--setting-description"><?php _e('Show the buttons to set H2 and H3 settings.', '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_headings_h4]" id="lasso_editor[toolbar_headings_h4]" <?php echo checked( $toolbar_headings_h4, 'on' );?> >
264
-						<label for="lasso_editor[toolbar_headings_h4]"><?php _e( 'Enable H4/H5/H6 Buttons', 'lasso' );?></label>
265
-						<span class="lasso--setting-description"><?php _e( 'Show the buttons to set H4/H5/H6 settings.', 'lasso' );?></span>
263
+						<input type="checkbox" class="checkbox" name="lasso_editor[toolbar_headings_h4]" id="lasso_editor[toolbar_headings_h4]" <?php echo checked($toolbar_headings_h4, 'on'); ?> >
264
+						<label for="lasso_editor[toolbar_headings_h4]"><?php _e('Enable H4/H5/H6 Buttons', 'lasso'); ?></label>
265
+						<span class="lasso--setting-description"><?php _e('Show the buttons to set H4/H5/H6 settings.', '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[toolbar_list]" id="lasso_editor[toolbar_list]" <?php echo checked( $toolbar_list, 'on' );?> >
271
-						<label for="lasso_editor[toolbar_list]"><?php _e( 'Enable OL/UL Buttons', 'lasso' );?></label>
272
-						<span class="lasso--setting-description"><?php _e( 'Show the buttons to create Ordered and Unordered Lists from text selection.', 'lasso' );?></span>
270
+						<input type="checkbox" class="checkbox" name="lasso_editor[toolbar_list]" id="lasso_editor[toolbar_list]" <?php echo checked($toolbar_list, 'on'); ?> >
271
+						<label for="lasso_editor[toolbar_list]"><?php _e('Enable OL/UL Buttons', 'lasso'); ?></label>
272
+						<span class="lasso--setting-description"><?php _e('Show the buttons to create Ordered and Unordered Lists from text selection.', 'lasso'); ?></span>
273 273
 					</div>
274 274
 					
275 275
 					<div class="lasso-editor-settings--option-inner" style="border:none;">
276
-						<input type="checkbox" class="checkbox" name="lasso_editor[toolbar_show_color]" id="lasso_editor[toolbar_show_color]" <?php echo checked( $toolbar_show_color, 'on' );?> >
277
-						<label for="lasso_editor[toolbar_show_color]"><?php _e( 'Enable Text Color Buttons', 'lasso' );?></label>
278
-						<span class="lasso--setting-description"><?php _e( 'Show the buttons to set text colors.', 'lasso' );?></span>
276
+						<input type="checkbox" class="checkbox" name="lasso_editor[toolbar_show_color]" id="lasso_editor[toolbar_show_color]" <?php echo checked($toolbar_show_color, 'on'); ?> >
277
+						<label for="lasso_editor[toolbar_show_color]"><?php _e('Enable Text Color Buttons', 'lasso'); ?></label>
278
+						<span class="lasso--setting-description"><?php _e('Show the buttons to set text colors.', 'lasso'); ?></span>
279 279
 
280 280
 					</div>
281 281
 					<div class="lasso-editor-settings--option-inner" style="border:none;">
282
-						<input type="checkbox" class="checkbox" name="lasso_editor[toolbar_show_alignment]" id="lasso_editor[toolbar_show_alignment]" <?php echo checked( $toolbar_show_alignment, 'on' );?> >
283
-						<label for="lasso_editor[toolbar_show_alignment]"><?php _e( 'Enable Text Align Buttons', 'lasso' );?></label>
284
-						<span class="lasso--setting-description"><?php _e( 'Show the buttons to set text alignment.', 'lasso' );?></span>
282
+						<input type="checkbox" class="checkbox" name="lasso_editor[toolbar_show_alignment]" id="lasso_editor[toolbar_show_alignment]" <?php echo checked($toolbar_show_alignment, 'on'); ?> >
283
+						<label for="lasso_editor[toolbar_show_alignment]"><?php _e('Enable Text Align Buttons', 'lasso'); ?></label>
284
+						<span class="lasso--setting-description"><?php _e('Show the buttons to set text alignment.', 'lasso'); ?></span>
285 285
 
286 286
 					</div>
287 287
 					
288 288
 					<div class="lasso-editor-settings--option-inner" style="border:none;">
289
-						<input type="checkbox" class="checkbox" name="lasso_editor[links_editable]" id="lasso_editor[links_editable]" <?php echo checked( $links_editable, 'on' );?> >
290
-						<label for="lasso_editor[links_editable]"><?php _e( 'Make links editable under the Editing Mode', 'lasso' );?></label>
291
-						<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>
289
+						<input type="checkbox" class="checkbox" name="lasso_editor[links_editable]" id="lasso_editor[links_editable]" <?php echo checked($links_editable, 'on'); ?> >
290
+						<label for="lasso_editor[links_editable]"><?php _e('Make links editable under the Editing Mode', 'lasso'); ?></label>
291
+						<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>
292 292
 
293 293
 					</div>
294 294
 					<div class="lasso-editor-settings--option-inner" style="border:none;">
295
-					    <label for="lasso_editor[insert_comp_ui]"> <?php _e( 'Insert Component UI', 'lasso' );?></label>
296
-						<span class="lasso--setting-description"><?php _e( 'UI mechanism to insert components', 'lasso' );?></span>
295
+					    <label for="lasso_editor[insert_comp_ui]"> <?php _e('Insert Component UI', 'lasso'); ?></label>
296
+						<span class="lasso--setting-description"><?php _e('UI mechanism to insert components', 'lasso'); ?></span>
297 297
 						<div class="lasso-editor-settings--option-inner" style="border:none;">
298
-					       <input type="radio" name="lasso_editor[insert_comp_ui]" value='drag' <?php echo checked( $insert_comp_ui, 'drag' );?>> <?php _e( 'Drag and Drop', 'lasso' );?>
298
+					       <input type="radio" name="lasso_editor[insert_comp_ui]" value='drag' <?php echo checked($insert_comp_ui, 'drag'); ?>> <?php _e('Drag and Drop', 'lasso'); ?>
299 299
 						</div>
300 300
 						<div class="lasso-editor-settings--option-inner" style="border:none;">
301
-						<input type="radio" name="lasso_editor[insert_comp_ui]" value="click" <?php echo checked( $insert_comp_ui, 'click' );?>> <?php _e( 'Click', 'lasso' );?>
301
+						<input type="radio" name="lasso_editor[insert_comp_ui]" value="click" <?php echo checked($insert_comp_ui, 'click'); ?>> <?php _e('Click', 'lasso'); ?>
302 302
 						</div>
303 303
 						<div class="lasso-editor-settings--option-inner" style="border:none;">
304
-						<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' );?>
304
+						<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'); ?>
305 305
 						</div>
306 306
 					</div>
307 307
                     
308 308
                     <div class="lasso-editor-settings--option-inner" >
309
-						<input type="checkbox" class="checkbox" name="lasso_editor[text_select_popup]" id="lasso_editor[text_select_popup]" <?php echo checked( $text_select_popup, 'on' );?> >
310
-						<label for="lasso_editor[text_select_popup]"><?php _e( 'Popup When Text is Selected', 'lasso' );?></label>
311
-						<span class="lasso--setting-description"><?php _e( 'Instead of using the bottom toolbar to format texts, use a popup box to format texts.', 'lasso' );?></span>
309
+						<input type="checkbox" class="checkbox" name="lasso_editor[text_select_popup]" id="lasso_editor[text_select_popup]" <?php echo checked($text_select_popup, 'on'); ?> >
310
+						<label for="lasso_editor[text_select_popup]"><?php _e('Popup When Text is Selected', 'lasso'); ?></label>
311
+						<span class="lasso--setting-description"><?php _e('Instead of using the bottom toolbar to format texts, use a popup box to format texts.', 'lasso'); ?></span>
312 312
 
313 313
 					</div>
314 314
                     
315 315
 				</div>
316 316
 				
317
-				<h3><?php _e( 'Component', 'lasso' );?></h3>
317
+				<h3><?php _e('Component', 'lasso'); ?></h3>
318 318
                 <div class="lasso-editor-settings--option-wrap" style="border:none;" >
319 319
                     <div class="lasso-editor-settings--option-inner" style="border:none">
320
-						<input type="checkbox" class="checkbox" name="lasso_editor[add_table]" id="lasso_editor[add_table]" <?php echo checked( $add_table, 'on' );?> >
321
-						<label for="lasso_editor[add_table]"><?php _e( 'Additional Component: Table', 'lasso' );?></label>
322
-						<span class="lasso--setting-description"><?php _e( 'Allow user to add and edit tables.', 'lasso' );?></span>
320
+						<input type="checkbox" class="checkbox" name="lasso_editor[add_table]" id="lasso_editor[add_table]" <?php echo checked($add_table, 'on'); ?> >
321
+						<label for="lasso_editor[add_table]"><?php _e('Additional Component: Table', 'lasso'); ?></label>
322
+						<span class="lasso--setting-description"><?php _e('Allow user to add and edit tables.', 'lasso'); ?></span>
323 323
 
324 324
 					</div>
325 325
                 
326
-                <?php if ( 'ase-active' != $ase_status ) { ?>
326
+                <?php if ('ase-active' != $ase_status) { ?>
327 327
                     <script>
328 328
                     $(document).ready(function(){
329 329
                         $("#lasso_editor\\[use_old_wpimg\\]").on('change', function(){                        
@@ -349,150 +349,150 @@  discard block
 block discarded – undo
349 349
                     </script>
350 350
                 
351 351
                     <div class="lasso-editor-settings--option-inner" style="border:none">
352
-						<input type="checkbox" class="checkbox" name="lasso_editor[use_old_wpimg]" id="lasso_editor[use_old_wpimg]" <?php echo checked( $use_old_wpimg, 'on' );?> >
353
-						<label for="lasso_editor[use_old_wpimg]"><?php _e( 'Use Simple Image', 'lasso' );?></label>
354
-						<span class="lasso--setting-description"><?php _e( 'Use Simple Image Component without Extra Options.', 'lasso' );?></span>
352
+						<input type="checkbox" class="checkbox" name="lasso_editor[use_old_wpimg]" id="lasso_editor[use_old_wpimg]" <?php echo checked($use_old_wpimg, 'on'); ?> >
353
+						<label for="lasso_editor[use_old_wpimg]"><?php _e('Use Simple Image', 'lasso'); ?></label>
354
+						<span class="lasso--setting-description"><?php _e('Use Simple Image Component without Extra Options.', 'lasso'); ?></span>
355 355
 
356 356
 					</div>
357 357
                 
358 358
                 
359 359
                     <div class="lasso-editor-settings--option-inner">
360
-						<input type="checkbox" class="checkbox" name="lasso_editor[use_wp_block_image]" id="lasso_editor[use_wp_block_image]" <?php echo checked( $use_wp_block_image, 'on' );?> >
361
-						<label for="lasso_editor[use_wp_block_image]"><?php _e( 'Use WP Image Block', 'lasso' );?></label>
362
-						<span class="lasso--setting-description"><?php _e( 'Use WP Image Block as the image component. Gutenberg Block Editor needs to be enabled.', 'lasso' );?></span>
360
+						<input type="checkbox" class="checkbox" name="lasso_editor[use_wp_block_image]" id="lasso_editor[use_wp_block_image]" <?php echo checked($use_wp_block_image, 'on'); ?> >
361
+						<label for="lasso_editor[use_wp_block_image]"><?php _e('Use WP Image Block', 'lasso'); ?></label>
362
+						<span class="lasso--setting-description"><?php _e('Use WP Image Block as the image component. Gutenberg Block Editor needs to be enabled.', 'lasso'); ?></span>
363 363
 
364 364
 					</div>
365 365
                 <?php }?>
366 366
                 </div>
367 367
 				
368 368
 
369
-				<h3><?php _e( 'Post Settings UI', 'lasso' );?></h3>
369
+				<h3><?php _e('Post Settings UI', 'lasso'); ?></h3>
370 370
 				<div class="lasso-editor-settings--option-wrap"  >
371 371
 					<div class="lasso-editor-settings--option-inner" style="border:none">
372
-						<input type="checkbox" class="checkbox" name="lasso_editor[post_settings_disabled]" id="lasso_editor[post_settings_disabled]" <?php echo checked( $post_settings_disabled, 'on' );?> >
373
-						<label for="lasso_editor[post_settings_disabled]"> <?php _e( 'Disable Post Settings', 'lasso' );?></label>
374
-						<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>
372
+						<input type="checkbox" class="checkbox" name="lasso_editor[post_settings_disabled]" id="lasso_editor[post_settings_disabled]" <?php echo checked($post_settings_disabled, 'on'); ?> >
373
+						<label for="lasso_editor[post_settings_disabled]"> <?php _e('Disable Post Settings', 'lasso'); ?></label>
374
+						<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>
375 375
 					</div>
376 376
 					
377 377
 					<div class="lasso-editor-settings--option-inner" style="border:none">
378
-						<input type="checkbox" class="checkbox" name="lasso_editor[allow_change_date]" id="lasso_editor[allow_change_date]" <?php echo checked( $allow_change_date, 'on' );?> >
379
-						<label for="lasso_editor[allow_change_date]"> <?php _e( 'Allow Changing Post Date', 'lasso' );?></label>
380
-						<span class="lasso--setting-description"><?php _e( 'Add the date selector to change the post\'s date to the Post Setting dialog', 'lasso' );?></span>
378
+						<input type="checkbox" class="checkbox" name="lasso_editor[allow_change_date]" id="lasso_editor[allow_change_date]" <?php echo checked($allow_change_date, 'on'); ?> >
379
+						<label for="lasso_editor[allow_change_date]"> <?php _e('Allow Changing Post Date', 'lasso'); ?></label>
380
+						<span class="lasso--setting-description"><?php _e('Add the date selector to change the post\'s date to the Post Setting dialog', 'lasso'); ?></span>
381 381
 					</div>
382 382
                     
383 383
                     <div class="lasso-editor-settings--option-inner" style="border:none">
384
-						<input type="checkbox" class="checkbox" name="lasso_editor[allow_edit_excerpt]" id="lasso_editor[allow_edit_excerpt]" <?php echo checked( $allow_edit_excerpt, 'on' );?> >
385
-						<label for="lasso_editor[allow_edit_excerpt]"> <?php _e( 'Allow Editing Excerpt', 'lasso' );?></label>
386
-						<span class="lasso--setting-description"><?php _e( 'Allow the post\'s excerpt to be edited in the Post Setting dialog', 'lasso' );?></span>
384
+						<input type="checkbox" class="checkbox" name="lasso_editor[allow_edit_excerpt]" id="lasso_editor[allow_edit_excerpt]" <?php echo checked($allow_edit_excerpt, 'on'); ?> >
385
+						<label for="lasso_editor[allow_edit_excerpt]"> <?php _e('Allow Editing Excerpt', 'lasso'); ?></label>
386
+						<span class="lasso--setting-description"><?php _e('Allow the post\'s excerpt to be edited in the Post Setting dialog', 'lasso'); ?></span>
387 387
 					</div>
388 388
 					
389 389
 					<div class="lasso-editor-settings--option-inner" style="border:none">
390
-						<input type="checkbox" class="checkbox" name="lasso_editor[allow_new_category]" id="lasso_editor[allow_new_category]" <?php echo checked( $allow_new_category, 'on' );?> >
391
-						<label for="lasso_editor[allow_new_category]"> <?php _e( 'Allow Adding New Category', 'lasso' );?></label>
392
-						<span class="lasso--setting-description"><?php _e( 'Add the user to create new, previously non-existing categories for posts.', 'lasso' );?></span>
390
+						<input type="checkbox" class="checkbox" name="lasso_editor[allow_new_category]" id="lasso_editor[allow_new_category]" <?php echo checked($allow_new_category, 'on'); ?> >
391
+						<label for="lasso_editor[allow_new_category]"> <?php _e('Allow Adding New Category', 'lasso'); ?></label>
392
+						<span class="lasso--setting-description"><?php _e('Add the user to create new, previously non-existing categories for posts.', 'lasso'); ?></span>
393 393
 					</div>
394 394
 					
395 395
 					<div class="lasso-editor-settings--option-inner" style="border:none">
396
-						<input type="checkbox" class="checkbox" name="lasso_editor[no_pending_status]" id="lasso_editor[no_pending_status]" <?php echo checked( $no_pending_status, 'on' );?> >
397
-						<label for="lasso_editor[no_pending_status]"> <?php _e( 'Do Not Allow "Pending" Status', 'lasso' );?></label>
398
-						<span class="lasso--setting-description"><?php _e( 'Remove the Option to Set the Status to Pending.', 'lasso' );?></span>
396
+						<input type="checkbox" class="checkbox" name="lasso_editor[no_pending_status]" id="lasso_editor[no_pending_status]" <?php echo checked($no_pending_status, 'on'); ?> >
397
+						<label for="lasso_editor[no_pending_status]"> <?php _e('Do Not Allow "Pending" Status', 'lasso'); ?></label>
398
+						<span class="lasso--setting-description"><?php _e('Remove the Option to Set the Status to Pending.', 'lasso'); ?></span>
399 399
 					</div>
400 400
 					
401 401
 					<div class="lasso-editor-settings--option-inner" style="border:none">
402
-						<input type="checkbox" class="checkbox" name="lasso_editor[no_url_setting]" id="lasso_editor[no_slug_setting]" <?php echo checked( $no_url_setting, 'on' );?> >
403
-						<label for="lasso_editor[no_url_setting]"> <?php _e( 'Remove POST URL Option', 'lasso' );?></label>
404
-						<span class="lasso--setting-description"><?php _e( 'Remove the Option to Set the URL for the Post.', 'lasso' );?></span>
402
+						<input type="checkbox" class="checkbox" name="lasso_editor[no_url_setting]" id="lasso_editor[no_slug_setting]" <?php echo checked($no_url_setting, 'on'); ?> >
403
+						<label for="lasso_editor[no_url_setting]"> <?php _e('Remove POST URL Option', 'lasso'); ?></label>
404
+						<span class="lasso--setting-description"><?php _e('Remove the Option to Set the URL for the Post.', 'lasso'); ?></span>
405 405
 					</div>
406 406
 				
407 407
 					<div class="lasso-editor-settings--option-inner" style="border:none">
408
-						<input type="checkbox" class="checkbox" name="lasso_editor[post_adding_disabled]" id="lasso_editor[post_adding_disabled]" <?php echo checked( $post_new_disabled, 'on' );?> >
409
-						<label for="lasso_editor[post_adding_disabled]"><?php _e( 'Disable Post Adding', 'lasso' );?></label>
410
-						<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>
408
+						<input type="checkbox" class="checkbox" name="lasso_editor[post_adding_disabled]" id="lasso_editor[post_adding_disabled]" <?php echo checked($post_new_disabled, 'on'); ?> >
409
+						<label for="lasso_editor[post_adding_disabled]"><?php _e('Disable Post Adding', 'lasso'); ?></label>
410
+						<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>
411 411
 					</div>
412 412
 					
413 413
 					<div class="lasso-editor-settings--option-inner" >
414
-						<input type="checkbox" class="checkbox" name="lasso_editor[support_custom_taxonomy]" id="lasso_editor[support_custom_taxonomy]" <?php echo checked( $support_custom_taxonomy, 'on' );?> >
415
-						<label for="lasso_editor[support_custom_taxonomy]"><?php _e( 'Support Custom Taxonomy', 'lasso' );?></label>
416
-						<span class="lasso--setting-description"><?php _e( 'Allow editing custom taxonomies.', 'lasso' );?></span>
414
+						<input type="checkbox" class="checkbox" name="lasso_editor[support_custom_taxonomy]" id="lasso_editor[support_custom_taxonomy]" <?php echo checked($support_custom_taxonomy, 'on'); ?> >
415
+						<label for="lasso_editor[support_custom_taxonomy]"><?php _e('Support Custom Taxonomy', 'lasso'); ?></label>
416
+						<span class="lasso--setting-description"><?php _e('Allow editing custom taxonomies.', 'lasso'); ?></span>
417 417
 					</div>
418 418
 					
419 419
 
420 420
 				</div>
421 421
 				
422
-				<h3><?php _e( 'Misc', 'lasso' );?></h3>
422
+				<h3><?php _e('Misc', 'lasso'); ?></h3>
423 423
 				<div class="lasso-editor-settings--option-wrap">
424 424
 					<div class="lasso-editor-settings--option-inner" style="border:none">
425
-						<input type="checkbox" class="checkbox" name="lasso_editor[disable_tour]" id="lasso_editor[disable_tour]" <?php echo checked( $disable_tour, 'on' );?> >
426
-						<label for="lasso_editor[disable_tour]"> <?php _e( 'Do Not Show Tour Dialog', 'lasso' );?></label>
427
-						<span class="lasso--setting-description"><?php _e( 'Check this box to disable the tour dialog box for all users.', 'lasso' );?></span>
425
+						<input type="checkbox" class="checkbox" name="lasso_editor[disable_tour]" id="lasso_editor[disable_tour]" <?php echo checked($disable_tour, 'on'); ?> >
426
+						<label for="lasso_editor[disable_tour]"> <?php _e('Do Not Show Tour Dialog', 'lasso'); ?></label>
427
+						<span class="lasso--setting-description"><?php _e('Check this box to disable the tour dialog box for all users.', 'lasso'); ?></span>
428 428
 					</div>
429 429
                     
430 430
                     <div class="lasso-editor-settings--option-inner" style="border:none;">
431
-						<label><?php _e( 'Placeholder Text for New Post', 'lasso' );?></label>
432
-						<span class="lasso--setting-description"><?php _e( 'Placeholder text to be displayed when a new post is created.', 'lasso' );?></span>
433
-						<input type="text" name="lasso_editor[new_post_text]" id="lasso_editor[new_post_text]" value="<?php echo esc_attr( $new_post_text );?>" placeholder="<?php $def = wp_strip_all_tags(apply_filters( 'lasso_new_object_content', __( 'Once upon a time...','lasso')));echo $def;?>", true)>
431
+						<label><?php _e('Placeholder Text for New Post', 'lasso'); ?></label>
432
+						<span class="lasso--setting-description"><?php _e('Placeholder text to be displayed when a new post is created.', 'lasso'); ?></span>
433
+						<input type="text" name="lasso_editor[new_post_text]" id="lasso_editor[new_post_text]" value="<?php echo esc_attr($new_post_text); ?>" placeholder="<?php $def = wp_strip_all_tags(apply_filters('lasso_new_object_content', __('Once upon a time...', 'lasso'))); echo $def; ?>", true)>
434 434
 					</div>
435 435
 
436 436
 					<div class="lasso-editor-settings--option-inner" style="border:none">
437
-					    <label for="lasso_editor[bold_tag]"> <?php _e( '"Bold" Tag', 'lasso' );?></label>
438
-						<span class="lasso--setting-description"><?php _e( 'Choose the HTML tag used for the "Bold" style.', 'lasso' );?></span>
439
-					    <input type="radio" name="lasso_editor[bold_tag]" value='b' <?php echo checked( $bold_tag, 'b' );?>> b
440
-						<input type="radio" name="lasso_editor[bold_tag]" value="strong" <?php echo checked( $bold_tag, 'strong' );?>> strong
437
+					    <label for="lasso_editor[bold_tag]"> <?php _e('"Bold" Tag', 'lasso'); ?></label>
438
+						<span class="lasso--setting-description"><?php _e('Choose the HTML tag used for the "Bold" style.', 'lasso'); ?></span>
439
+					    <input type="radio" name="lasso_editor[bold_tag]" value='b' <?php echo checked($bold_tag, 'b'); ?>> b
440
+						<input type="radio" name="lasso_editor[bold_tag]" value="strong" <?php echo checked($bold_tag, 'strong'); ?>> strong
441 441
 					</div>
442 442
 					<div class="lasso-editor-settings--option-inner" style="border:none">
443
-					    <label for="lasso_editor[i_tag]"> <?php _e( '"Italic" Tag', 'lasso' );?></label>
444
-						<span class="lasso--setting-description"><?php _e( 'Choose the HTML tag used for the "Italic" style.', 'lasso' );?></span>
445
-					    <input type="radio" name="lasso_editor[i_tag]" value='i' <?php echo checked( $i_tag, 'i' );?>> i
446
-						<input type="radio" name="lasso_editor[i_tag]" value="em" <?php echo checked( $i_tag, 'em' );?>> em
443
+					    <label for="lasso_editor[i_tag]"> <?php _e('"Italic" Tag', 'lasso'); ?></label>
444
+						<span class="lasso--setting-description"><?php _e('Choose the HTML tag used for the "Italic" style.', 'lasso'); ?></span>
445
+					    <input type="radio" name="lasso_editor[i_tag]" value='i' <?php echo checked($i_tag, 'i'); ?>> i
446
+						<input type="radio" name="lasso_editor[i_tag]" value="em" <?php echo checked($i_tag, 'em'); ?>> em
447 447
 					</div>
448 448
                     <div class="lasso-editor-settings--option-inner" >
449
-						<input type="checkbox" class="checkbox" name="lasso_editor[link_prefix_http]" id="lasso_editor[link_prefix_http]" <?php echo checked( $link_prefix_http, 'on' );?> >
450
-						<label for="lasso_editor[link_prefix_http]"><?php _e( 'Auto Prefix HTTP to links', 'lasso' );?></label>
451
-						<span class="lasso--setting-description"><?php _e( 'When user adds a hyperlink, automatically add http:// if the user does not specify it explicitly.', 'lasso' );?></span>
449
+						<input type="checkbox" class="checkbox" name="lasso_editor[link_prefix_http]" id="lasso_editor[link_prefix_http]" <?php echo checked($link_prefix_http, 'on'); ?> >
450
+						<label for="lasso_editor[link_prefix_http]"><?php _e('Auto Prefix HTTP to links', 'lasso'); ?></label>
451
+						<span class="lasso--setting-description"><?php _e('When user adds a hyperlink, automatically add http:// if the user does not specify it explicitly.', 'lasso'); ?></span>
452 452
 					</div>
453 453
 				</div>
454 454
 
455
-				<h3><?php _e( 'Advanced Options', 'lasso' );?></h3>
456
-                <span class="lasso--setting-description"><?php _e( 'Suggested not to turn these options on without consulting the developer.', 'lasso' );?></span>
455
+				<h3><?php _e('Advanced Options', 'lasso'); ?></h3>
456
+                <span class="lasso--setting-description"><?php _e('Suggested not to turn these options on without consulting the developer.', 'lasso'); ?></span>
457 457
                 <span class="lasso--setting-description"> </span>
458 458
 				<div class="lasso-editor-settings--option-wrap ">
459 459
 					<div class="lasso-editor-settings--option-inner" style="border:none">
460
-						<input type="checkbox" class="checkbox" name="lasso_editor[shortcodify_disabled]" id="lasso_editor[shortcodify_disabled]" <?php echo checked( $shortcodify_disabled, 'on' );?> >
461
-						<label for="lasso_editor[shortcodify_disabled]"><?php _e( 'Disable Aesop Component Conversion', 'lasso' );?></label>
462
-						<span class="lasso--setting-description"><?php _e( 'Check this box to disable the conversion process used on Aesop Story Engine components.', 'lasso' );?></span>
460
+						<input type="checkbox" class="checkbox" name="lasso_editor[shortcodify_disabled]" id="lasso_editor[shortcodify_disabled]" <?php echo checked($shortcodify_disabled, 'on'); ?> >
461
+						<label for="lasso_editor[shortcodify_disabled]"><?php _e('Disable Aesop Component Conversion', 'lasso'); ?></label>
462
+						<span class="lasso--setting-description"><?php _e('Check this box to disable the conversion process used on Aesop Story Engine components.', 'lasso'); ?></span>
463 463
 					</div>
464 464
 				
465 465
 					<div class="lasso-editor-settings--option-inner" style="border:none">
466
-						<input type="checkbox" class="checkbox" name="lasso_editor[enable_autosave]" id="lasso_editor[enable_autosave]" <?php echo checked( $enable_autosave, 'on' );?> >
467
-						<label for="lasso_editor[enable_autosave]"><?php _e( 'Enable Auto Save', 'lasso' );?></label>
468
-						<span class="lasso--setting-description"><?php _e( 'Check this box to enable auto save.', 'lasso' );?></span>
466
+						<input type="checkbox" class="checkbox" name="lasso_editor[enable_autosave]" id="lasso_editor[enable_autosave]" <?php echo checked($enable_autosave, 'on'); ?> >
467
+						<label for="lasso_editor[enable_autosave]"><?php _e('Enable Auto Save', 'lasso'); ?></label>
468
+						<span class="lasso--setting-description"><?php _e('Check this box to enable auto save.', 'lasso'); ?></span>
469 469
 					</div>
470 470
 				
471 471
 					<div class="lasso-editor-settings--option-inner" style="border:none">
472
-						<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' );?> >
473
-						<label for="lasso_editor[post_save_disabled]"><?php _e( 'Disable Post Saving', 'lasso' );?></label>
474
-						<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>
472
+						<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'); ?> >
473
+						<label for="lasso_editor[post_save_disabled]"><?php _e('Disable Post Saving', 'lasso'); ?></label>
474
+						<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>
475 475
 
476 476
 					</div>
477 477
 					
478 478
 					<div class="lasso-editor-settings--option-inner" style="border:none">
479
-						<input type="checkbox" class="checkbox" name="lasso_editor[post_edit_disabled]" id="lasso_editor[post_edit_disabled]" <?php echo checked( $edit_post_disabled, 'on' );?> >
480
-						<label for="lasso_editor[post_edit_disabled]"><?php _e( 'Disable Post Editing', 'lasso' );?></label>
481
-						<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>
479
+						<input type="checkbox" class="checkbox" name="lasso_editor[post_edit_disabled]" id="lasso_editor[post_edit_disabled]" <?php echo checked($edit_post_disabled, 'on'); ?> >
480
+						<label for="lasso_editor[post_edit_disabled]"><?php _e('Disable Post Editing', 'lasso'); ?></label>
481
+						<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>
482 482
 
483 483
 					</div>
484 484
 				
485 485
 					<div class="lasso-editor-settings--option-inner" style="border:none">
486
-						<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' );?> >
487
-						<label for="lasso_editor[save_using_rest_disabled]"><?php _e( "Don't Use REST API to Save", 'lasso' );?></label>
488
-						<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>
486
+						<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'); ?> >
487
+						<label for="lasso_editor[save_using_rest_disabled]"><?php _e("Don't Use REST API to Save", 'lasso'); ?></label>
488
+						<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>
489 489
 
490 490
 					</div>
491 491
                     
492 492
                     <div class="lasso-editor-settings--option-inner">
493
-						<input type="checkbox" class="checkbox" name="lasso_editor[no_wrap_shortcode]" id="lasso_editor[no_wrap_shortcode]" <?php echo checked( $no_wrap_shortcode, 'on' );?> >
494
-						<label for="lasso_editor[no_wrap_shortcode]"><?php _e( "Don't Wrap Shortcodes", 'lasso' );?></label>
495
-						<span class="lasso--setting-description"><?php _e( 'By default Editus wraps shortcodes so they can be preserved. Disable this behavior.', 'lasso' );?></span>
493
+						<input type="checkbox" class="checkbox" name="lasso_editor[no_wrap_shortcode]" id="lasso_editor[no_wrap_shortcode]" <?php echo checked($no_wrap_shortcode, 'on'); ?> >
494
+						<label for="lasso_editor[no_wrap_shortcode]"><?php _e("Don't Wrap Shortcodes", 'lasso'); ?></label>
495
+						<span class="lasso--setting-description"><?php _e('By default Editus wraps shortcodes so they can be preserved. Disable this behavior.', 'lasso'); ?></span>
496 496
 
497 497
 					</div>
498 498
 				</div>
@@ -502,11 +502,11 @@  discard block
 block discarded – undo
502 502
 
503 503
 				<div class="lasso-editor-settings--submit">
504 504
 				    <input type="hidden" name="action" value="lasso-editor-settings" />
505
-				    <input type="submit" class="button-primary" value="<?php esc_attr_e( 'Save Settings', 'lasso' );?>" />
506
-					<?php wp_nonce_field( 'nonce', 'lasso_editor_settings' ); ?>
505
+				    <input type="submit" class="button-primary" value="<?php esc_attr_e('Save Settings', 'lasso'); ?>" />
506
+					<?php wp_nonce_field('nonce', 'lasso_editor_settings'); ?>
507 507
 				</div>
508 508
 				
509
-				<?php do_action('lasso_settings_after');?>
509
+				<?php do_action('lasso_settings_after'); ?>
510 510
 			</form>
511 511
 
512 512
 		</div><?php
Please login to merge, or discard this patch.