|
@@ -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,45 +95,45 @@ 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
|
|
- $objectsNoSave = lasso_editor_get_option('dont_save', 'lasso_editor'); |
126
|
|
- $objectsNonEditable = lasso_editor_get_option('non_editable', 'lasso_editor'); |
|
125
|
+ $objectsNoSave = lasso_editor_get_option('dont_save', 'lasso_editor'); |
|
126
|
+ $objectsNonEditable = lasso_editor_get_option('non_editable', 'lasso_editor'); |
127
|
127
|
$disable_tour = lasso_editor_get_option('disable_tour', 'lasso_editor'); |
128
|
128
|
$show_ignored_items = lasso_editor_get_option('show_ignored_items', 'lasso_editor'); |
129
|
129
|
$save_using_rest_disabled = lasso_editor_get_option('save_using_rest_disabled', 'lasso_editor'); |
130
|
130
|
|
131
|
|
- $default_post_types = apply_filters( 'lasso_allowed_post_types', array( 'post', 'page')); |
132
|
|
- $allowed_post_types = lasso_editor_get_option( 'allowed_post_types', 'lasso_editor', $default_post_types); |
|
131
|
+ $default_post_types = apply_filters('lasso_allowed_post_types', array('post', 'page')); |
|
132
|
+ $allowed_post_types = lasso_editor_get_option('allowed_post_types', 'lasso_editor', $default_post_types); |
133
|
133
|
|
134
|
134
|
$links_editable = lasso_editor_get_option('links_editable', 'lasso_editor', false); |
135
|
|
- $bold_tag = lasso_editor_get_option( 'bold_tag', 'lasso_editor', "b"); |
136
|
|
- $i_tag = lasso_editor_get_option( 'i_tag', 'lasso_editor', "i"); |
|
135
|
+ $bold_tag = lasso_editor_get_option('bold_tag', 'lasso_editor', "b"); |
|
136
|
+ $i_tag = lasso_editor_get_option('i_tag', 'lasso_editor', "i"); |
137
|
137
|
|
138
|
138
|
$add_table = lasso_editor_get_option('add_table', 'lasso_editor', false); |
139
|
139
|
|
|
@@ -149,43 +149,43 @@ discard block |
|
|
block discarded – undo |
149
|
149
|
|
150
|
150
|
$link_prefix_http = lasso_editor_get_option('link_prefix_http', 'lasso_editor'); |
151
|
151
|
|
152
|
|
- $use_old_wpimg = lasso_editor_get_option('use_old_wpimg', 'lasso_editor','off'); |
153
|
|
- $use_wp_block_image = lasso_editor_get_option('use_wp_block_image', 'lasso_editor','off'); |
|
152
|
+ $use_old_wpimg = lasso_editor_get_option('use_old_wpimg', 'lasso_editor', 'off'); |
|
153
|
+ $use_wp_block_image = lasso_editor_get_option('use_wp_block_image', 'lasso_editor', 'off'); |
154
|
154
|
|
155
|
|
- $support_custom_taxonomy = lasso_editor_get_option( 'support_custom_taxonomy', 'lasso_editor' ); |
|
155
|
+ $support_custom_taxonomy = lasso_editor_get_option('support_custom_taxonomy', 'lasso_editor'); |
156
|
156
|
|
157
|
|
- $new_post_text = lasso_editor_get_option( 'new_post_text', 'lasso_editor' ); |
|
157
|
+ $new_post_text = lasso_editor_get_option('new_post_text', 'lasso_editor'); |
158
|
158
|
|
159
|
|
- $no_wrap_shortcode = lasso_editor_get_option( 'no_wrap_shortcode', 'lasso_editor'); |
|
159
|
+ $no_wrap_shortcode = lasso_editor_get_option('no_wrap_shortcode', 'lasso_editor'); |
160
|
160
|
|
161
|
161
|
?> |
162
|
162
|
<div class="wrap"> |
163
|
163
|
|
164
|
|
- <h2><?php _e( 'Editus Settings', 'lasso' );?></h2> |
|
164
|
+ <h2><?php _e('Editus Settings', 'lasso'); ?></h2> |
165
|
165
|
|
166
|
166
|
<form id="lasso-editor-settings-form" class="lasso--form-settings" method="post" enctype="multipart/form-data"> |
167
|
167
|
|
168
|
|
- <?php do_action('lasso_settings_before');?> |
|
168
|
+ <?php do_action('lasso_settings_before'); ?> |
169
|
169
|
|
170
|
170
|
|
171
|
171
|
|
172
|
|
- <h3><?php _e( 'Enable for:', 'lasso' );?></h3> |
|
172
|
+ <h3><?php _e('Enable for:', 'lasso'); ?></h3> |
173
|
173
|
<div class="lasso-editor-settings--option-wrap"> |
174
|
174
|
<div class="lasso-editor-settings--option-inner"> |
175
|
175
|
|
176
|
|
- <span class="lasso--setting-description"><?php _e( 'Enable Editus for the following post types.', 'lasso' );?></span> |
|
176
|
+ <span class="lasso--setting-description"><?php _e('Enable Editus for the following post types.', 'lasso'); ?></span> |
177
|
177
|
<?php |
178
|
178
|
$args = array( |
179
|
179
|
'public' => true |
180
|
180
|
); |
181
|
181
|
|
182
|
|
- $allowed_post_types = apply_filters( 'lasso_allowed_post_types', $allowed_post_types ); |
183
|
|
- $post_types = get_post_types( $args, 'objects' ); |
|
182
|
+ $allowed_post_types = apply_filters('lasso_allowed_post_types', $allowed_post_types); |
|
183
|
+ $post_types = get_post_types($args, 'objects'); |
184
|
184
|
|
185
|
|
- foreach ( $post_types as $post_type ) { |
|
185
|
+ foreach ($post_types as $post_type) { |
186
|
186
|
if ($post_type->name == 'attachment') continue; |
187
|
|
- $checked =""; |
188
|
|
- if ( in_array( $post_type->name, $allowed_post_types ) ) { |
|
187
|
+ $checked = ""; |
|
188
|
+ if (in_array($post_type->name, $allowed_post_types)) { |
189
|
189
|
$checked = 'checked="checked"'; |
190
|
190
|
} |
191
|
191
|
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>'; |
|
@@ -195,126 +195,126 @@ discard block |
|
|
block discarded – undo |
195
|
195
|
</div> |
196
|
196
|
|
197
|
197
|
|
198
|
|
- <h3><?php _e( 'Internal Settings', 'lasso' );?></h3> |
|
198
|
+ <h3><?php _e('Internal Settings', 'lasso'); ?></h3> |
199
|
199
|
<div class="lasso-editor-settings--option-wrap"> |
200
|
200
|
<div class="lasso-editor-settings--option-inner" style="border:none;"> |
201
|
|
- <label><?php _e( 'Article Class', 'lasso' );?></label> |
202
|
|
- <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> |
203
|
|
- <input type="text" name="lasso_editor[article_class]" id="lasso_editor[article_class]" value="<?php echo esc_attr( $article_object );?>" placeholder=".entry-content"> |
|
201
|
+ <label><?php _e('Article Class', 'lasso'); ?></label> |
|
202
|
+ <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> |
|
203
|
+ <input type="text" name="lasso_editor[article_class]" id="lasso_editor[article_class]" value="<?php echo esc_attr($article_object); ?>" placeholder=".entry-content"> |
204
|
204
|
</div> |
205
|
205
|
|
206
|
206
|
<div class="lasso-editor-settings--option-inner" style="border:none;"> |
207
|
|
- <label><?php _e( 'Featured Image Class', 'lasso' );?></label> |
208
|
|
- <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> |
209
|
|
- <input type="text" name="lasso_editor[featimg_class]" id="lasso_editor[featimg_class]" value="<?php echo esc_attr( $featImgClass );?>" placeholder=".entry-content"> |
|
207
|
+ <label><?php _e('Featured Image Class', 'lasso'); ?></label> |
|
208
|
+ <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> |
|
209
|
+ <input type="text" name="lasso_editor[featimg_class]" id="lasso_editor[featimg_class]" value="<?php echo esc_attr($featImgClass); ?>" placeholder=".entry-content"> |
210
|
210
|
</div> |
211
|
211
|
|
212
|
212
|
<div class="lasso-editor-settings--option-inner" style="border:none;"> |
213
|
|
- <label><?php _e( 'Article Title Class', 'lasso' );?></label> |
214
|
|
- <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> |
215
|
|
- <input type="text" name="lasso_editor[title_class]" id="lasso_editor[title_class]" value="<?php echo esc_attr( $titleClass );?>" placeholder=".entry-content"> |
|
213
|
+ <label><?php _e('Article Title Class', 'lasso'); ?></label> |
|
214
|
+ <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> |
|
215
|
+ <input type="text" name="lasso_editor[title_class]" id="lasso_editor[title_class]" value="<?php echo esc_attr($titleClass); ?>" placeholder=".entry-content"> |
216
|
216
|
</div> |
217
|
217
|
|
218
|
218
|
<div class="lasso-editor-settings--option-inner" style="border:none;"> |
219
|
|
- <label><?php _e( 'Ignored Items to Save', 'lasso' );?></label> |
220
|
|
- <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> |
221
|
|
- <textarea name="lasso_editor[dont_save]" id="lasso_editor[dont_save]" placeholder=".classname, .another-class"><?php echo esc_attr( $objectsNoSave );?></textarea> |
|
219
|
+ <label><?php _e('Ignored Items to Save', 'lasso'); ?></label> |
|
220
|
+ <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> |
|
221
|
+ <textarea name="lasso_editor[dont_save]" id="lasso_editor[dont_save]" placeholder=".classname, .another-class"><?php echo esc_attr($objectsNoSave); ?></textarea> |
222
|
222
|
</div> |
223
|
223
|
|
224
|
224
|
<div class="lasso-editor-settings--option-inner" style="border:none;"> |
225
|
|
- <label><?php _e( 'Read Only Items', 'lasso' );?></label> |
226
|
|
- <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> |
227
|
|
- <textarea name="lasso_editor[non_editable]" id="lasso_editor[non_editable]" placeholder=".classname, .another-class"><?php echo esc_attr( $objectsNonEditable );?></textarea> |
|
225
|
+ <label><?php _e('Read Only Items', 'lasso'); ?></label> |
|
226
|
+ <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> |
|
227
|
+ <textarea name="lasso_editor[non_editable]" id="lasso_editor[non_editable]" placeholder=".classname, .another-class"><?php echo esc_attr($objectsNonEditable); ?></textarea> |
228
|
228
|
</div> |
229
|
229
|
|
230
|
230
|
<div class="lasso-editor-settings--option-inner" > |
231
|
|
- <input type="checkbox" class="checkbox" name="lasso_editor[show_ignored_items]" id="lasso_editor[show_ignored_items]" <?php echo checked( $show_ignored_items, 'on' );?> > |
232
|
|
- <label for="lasso_editor[show_ignored_items]"> <?php _e( 'Show Ignored Items', 'lasso' );?></label> |
233
|
|
- <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> |
|
231
|
+ <input type="checkbox" class="checkbox" name="lasso_editor[show_ignored_items]" id="lasso_editor[show_ignored_items]" <?php echo checked($show_ignored_items, 'on'); ?> > |
|
232
|
+ <label for="lasso_editor[show_ignored_items]"> <?php _e('Show Ignored Items', 'lasso'); ?></label> |
|
233
|
+ <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> |
234
|
234
|
</div> |
235
|
235
|
</div> |
236
|
236
|
|
237
|
|
- <h3><?php _e( 'Editor UI', 'lasso' );?></h3> |
|
237
|
+ <h3><?php _e('Editor UI', 'lasso'); ?></h3> |
238
|
238
|
<div class="lasso-editor-settings--option-wrap"> |
239
|
239
|
<div class="lasso-editor-settings--option-inner" style="border:none;"> |
240
|
|
- <input type="checkbox" class="checkbox" name="lasso_editor[use_old_ui]" id="lasso_editor_use_old_ui" <?php echo checked( $use_old_ui, 'on' );?> > |
241
|
|
- <label for="lasso_editor[use_old_ui]"><?php _e( 'Use the Old Toolbar', 'lasso' );?></label> |
242
|
|
- <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> |
|
240
|
+ <input type="checkbox" class="checkbox" name="lasso_editor[use_old_ui]" id="lasso_editor_use_old_ui" <?php echo checked($use_old_ui, 'on'); ?> > |
|
241
|
+ <label for="lasso_editor[use_old_ui]"><?php _e('Use the Old Toolbar', 'lasso'); ?></label> |
|
242
|
+ <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> |
243
|
243
|
</div> |
244
|
244
|
<div id="lasso-editor-settings--colors"> |
245
|
245
|
<?php |
246
|
|
- self::create_section_for_color_picker('button-color1', _e( 'Editor Bar Color Top', 'lasso' ), '#0000ff'); |
247
|
|
- self::create_section_for_color_picker('button-color2', _e( 'Editor Bar Color Bottom', 'lasso' ), '#000030'); |
248
|
|
- self::create_section_for_color_picker('dialog-color', _e( 'Dialog Color', 'lasso' ), '#000055'); |
249
|
|
- self::create_section_for_color_picker('text-color', _e( 'Icon/Text Color', 'lasso' ), '#ffffff'); |
|
246
|
+ self::create_section_for_color_picker('button-color1', _e('Editor Bar Color Top', 'lasso'), '#0000ff'); |
|
247
|
+ self::create_section_for_color_picker('button-color2', _e('Editor Bar Color Bottom', 'lasso'), '#000030'); |
|
248
|
+ self::create_section_for_color_picker('dialog-color', _e('Dialog Color', 'lasso'), '#000055'); |
|
249
|
+ self::create_section_for_color_picker('text-color', _e('Icon/Text Color', 'lasso'), '#ffffff'); |
250
|
250
|
?> |
251
|
|
- <button type="button" id="lasso-editor-settings--default-colors" ><?php _e( 'Default Colors', 'lasso' );?></button> |
|
251
|
+ <button type="button" id="lasso-editor-settings--default-colors" ><?php _e('Default Colors', 'lasso'); ?></button> |
252
|
252
|
<div style="height:50px;"></div> |
253
|
253
|
</div> |
254
|
254
|
<div class="lasso-editor-settings--option-inner" style="border:none;"> |
255
|
|
- <input type="checkbox" class="checkbox" name="lasso_editor[toolbar_headings]" id="lasso_editor[toolbar_headings]" <?php echo checked( $toolbar_headings, 'on' );?> > |
256
|
|
- <label for="lasso_editor[toolbar_headings]"><?php _e( 'Enable H2 and H3 Buttons', 'lasso' );?></label> |
257
|
|
- <span class="lasso--setting-description"><?php _e( 'Show the buttons to set H2 and H3 settings.', 'lasso' );?></span> |
|
255
|
+ <input type="checkbox" class="checkbox" name="lasso_editor[toolbar_headings]" id="lasso_editor[toolbar_headings]" <?php echo checked($toolbar_headings, 'on'); ?> > |
|
256
|
+ <label for="lasso_editor[toolbar_headings]"><?php _e('Enable H2 and H3 Buttons', 'lasso'); ?></label> |
|
257
|
+ <span class="lasso--setting-description"><?php _e('Show the buttons to set H2 and H3 settings.', 'lasso'); ?></span> |
258
|
258
|
|
259
|
259
|
</div> |
260
|
260
|
<div class="lasso-editor-settings--option-inner" style="border:none;"> |
261
|
|
- <input type="checkbox" class="checkbox" name="lasso_editor[toolbar_headings_h4]" id="lasso_editor[toolbar_headings_h4]" <?php echo checked( $toolbar_headings_h4, 'on' );?> > |
262
|
|
- <label for="lasso_editor[toolbar_headings_h4]"><?php _e( 'Enable H4/H5/H6 Buttons', 'lasso' );?></label> |
263
|
|
- <span class="lasso--setting-description"><?php _e( 'Show the buttons to set H4/H5/H6 settings.', 'lasso' );?></span> |
|
261
|
+ <input type="checkbox" class="checkbox" name="lasso_editor[toolbar_headings_h4]" id="lasso_editor[toolbar_headings_h4]" <?php echo checked($toolbar_headings_h4, 'on'); ?> > |
|
262
|
+ <label for="lasso_editor[toolbar_headings_h4]"><?php _e('Enable H4/H5/H6 Buttons', 'lasso'); ?></label> |
|
263
|
+ <span class="lasso--setting-description"><?php _e('Show the buttons to set H4/H5/H6 settings.', 'lasso'); ?></span> |
264
|
264
|
|
265
|
265
|
</div> |
266
|
266
|
|
267
|
267
|
<div class="lasso-editor-settings--option-inner" style="border:none;"> |
268
|
|
- <input type="checkbox" class="checkbox" name="lasso_editor[toolbar_list]" id="lasso_editor[toolbar_list]" <?php echo checked( $toolbar_list, 'on' );?> > |
269
|
|
- <label for="lasso_editor[toolbar_list]"><?php _e( 'Enable OL/UL Buttons', 'lasso' );?></label> |
270
|
|
- <span class="lasso--setting-description"><?php _e( 'Show the buttons to create Ordered and Unordered Lists from text selection.', 'lasso' );?></span> |
|
268
|
+ <input type="checkbox" class="checkbox" name="lasso_editor[toolbar_list]" id="lasso_editor[toolbar_list]" <?php echo checked($toolbar_list, 'on'); ?> > |
|
269
|
+ <label for="lasso_editor[toolbar_list]"><?php _e('Enable OL/UL Buttons', 'lasso'); ?></label> |
|
270
|
+ <span class="lasso--setting-description"><?php _e('Show the buttons to create Ordered and Unordered Lists from text selection.', 'lasso'); ?></span> |
271
|
271
|
</div> |
272
|
272
|
|
273
|
273
|
<div class="lasso-editor-settings--option-inner" style="border:none;"> |
274
|
|
- <input type="checkbox" class="checkbox" name="lasso_editor[toolbar_show_color]" id="lasso_editor[toolbar_show_color]" <?php echo checked( $toolbar_show_color, 'on' );?> > |
275
|
|
- <label for="lasso_editor[toolbar_show_color]"><?php _e( 'Enable Text Color Buttons', 'lasso' );?></label> |
276
|
|
- <span class="lasso--setting-description"><?php _e( 'Show the buttons to set text colors.', 'lasso' );?></span> |
|
274
|
+ <input type="checkbox" class="checkbox" name="lasso_editor[toolbar_show_color]" id="lasso_editor[toolbar_show_color]" <?php echo checked($toolbar_show_color, 'on'); ?> > |
|
275
|
+ <label for="lasso_editor[toolbar_show_color]"><?php _e('Enable Text Color Buttons', 'lasso'); ?></label> |
|
276
|
+ <span class="lasso--setting-description"><?php _e('Show the buttons to set text colors.', 'lasso'); ?></span> |
277
|
277
|
|
278
|
278
|
</div> |
279
|
279
|
<div class="lasso-editor-settings--option-inner" style="border:none;"> |
280
|
|
- <input type="checkbox" class="checkbox" name="lasso_editor[toolbar_show_alignment]" id="lasso_editor[toolbar_show_alignment]" <?php echo checked( $toolbar_show_alignment, 'on' );?> > |
281
|
|
- <label for="lasso_editor[toolbar_show_alignment]"><?php _e( 'Enable Text Align Buttons', 'lasso' );?></label> |
282
|
|
- <span class="lasso--setting-description"><?php _e( 'Show the buttons to set text alignment.', 'lasso' );?></span> |
|
280
|
+ <input type="checkbox" class="checkbox" name="lasso_editor[toolbar_show_alignment]" id="lasso_editor[toolbar_show_alignment]" <?php echo checked($toolbar_show_alignment, 'on'); ?> > |
|
281
|
+ <label for="lasso_editor[toolbar_show_alignment]"><?php _e('Enable Text Align Buttons', 'lasso'); ?></label> |
|
282
|
+ <span class="lasso--setting-description"><?php _e('Show the buttons to set text alignment.', 'lasso'); ?></span> |
283
|
283
|
|
284
|
284
|
</div> |
285
|
285
|
|
286
|
286
|
<div class="lasso-editor-settings--option-inner" style="border:none;"> |
287
|
|
- <input type="checkbox" class="checkbox" name="lasso_editor[links_editable]" id="lasso_editor[links_editable]" <?php echo checked( $links_editable, 'on' );?> > |
288
|
|
- <label for="lasso_editor[links_editable]"><?php _e( 'Make links editable under the Editing Mode', 'lasso' );?></label> |
289
|
|
- <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> |
|
287
|
+ <input type="checkbox" class="checkbox" name="lasso_editor[links_editable]" id="lasso_editor[links_editable]" <?php echo checked($links_editable, 'on'); ?> > |
|
288
|
+ <label for="lasso_editor[links_editable]"><?php _e('Make links editable under the Editing Mode', 'lasso'); ?></label> |
|
289
|
+ <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> |
290
|
290
|
|
291
|
291
|
</div> |
292
|
292
|
<div class="lasso-editor-settings--option-inner"> |
293
|
|
- <label for="lasso_editor[insert_comp_ui]"> <?php _e( 'Insert Component UI', 'lasso' );?></label> |
294
|
|
- <span class="lasso--setting-description"><?php _e( 'UI mechanism to insert components', 'lasso' );?></span> |
|
293
|
+ <label for="lasso_editor[insert_comp_ui]"> <?php _e('Insert Component UI', 'lasso'); ?></label> |
|
294
|
+ <span class="lasso--setting-description"><?php _e('UI mechanism to insert components', 'lasso'); ?></span> |
295
|
295
|
<div class="lasso-editor-settings--option-inner" style="border:none;"> |
296
|
|
- <input type="radio" name="lasso_editor[insert_comp_ui]" value='drag' <?php echo checked( $insert_comp_ui, 'drag' );?>> <?php _e( 'Drag and Drop', 'lasso' );?> |
|
296
|
+ <input type="radio" name="lasso_editor[insert_comp_ui]" value='drag' <?php echo checked($insert_comp_ui, 'drag'); ?>> <?php _e('Drag and Drop', 'lasso'); ?> |
297
|
297
|
</div> |
298
|
298
|
<div class="lasso-editor-settings--option-inner" style="border:none;"> |
299
|
|
- <input type="radio" name="lasso_editor[insert_comp_ui]" value="click" <?php echo checked( $insert_comp_ui, 'click' );?>> <?php _e( 'Click', 'lasso' );?> |
|
299
|
+ <input type="radio" name="lasso_editor[insert_comp_ui]" value="click" <?php echo checked($insert_comp_ui, 'click'); ?>> <?php _e('Click', 'lasso'); ?> |
300
|
300
|
</div> |
301
|
301
|
<div class="lasso-editor-settings--option-inner" style="border:none;"> |
302
|
|
- <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' );?> |
|
302
|
+ <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'); ?> |
303
|
303
|
</div> |
304
|
304
|
</div> |
305
|
305
|
|
306
|
306
|
</div> |
307
|
307
|
|
308
|
|
- <h3><?php _e( 'Component', 'lasso' );?></h3> |
|
308
|
+ <h3><?php _e('Component', 'lasso'); ?></h3> |
309
|
309
|
<div class="lasso-editor-settings--option-wrap" style="border:none;" > |
310
|
310
|
<div class="lasso-editor-settings--option-inner" style="border:none"> |
311
|
|
- <input type="checkbox" class="checkbox" name="lasso_editor[add_table]" id="lasso_editor[add_table]" <?php echo checked( $add_table, 'on' );?> > |
312
|
|
- <label for="lasso_editor[add_table]"><?php _e( 'Additional Component: Table', 'lasso' );?></label> |
313
|
|
- <span class="lasso--setting-description"><?php _e( 'Allow user to add and edit tables.', 'lasso' );?></span> |
|
311
|
+ <input type="checkbox" class="checkbox" name="lasso_editor[add_table]" id="lasso_editor[add_table]" <?php echo checked($add_table, 'on'); ?> > |
|
312
|
+ <label for="lasso_editor[add_table]"><?php _e('Additional Component: Table', 'lasso'); ?></label> |
|
313
|
+ <span class="lasso--setting-description"><?php _e('Allow user to add and edit tables.', 'lasso'); ?></span> |
314
|
314
|
|
315
|
315
|
</div> |
316
|
316
|
|
317
|
|
- <?php if ( 'ase-active' != $ase_status ) { ?> |
|
317
|
+ <?php if ('ase-active' != $ase_status) { ?> |
318
|
318
|
<script> |
319
|
319
|
$(document).ready(function(){ |
320
|
320
|
$("#lasso_editor\\[use_old_wpimg\\]").on('change', function(){ |
|
@@ -340,150 +340,150 @@ discard block |
|
|
block discarded – undo |
340
|
340
|
</script> |
341
|
341
|
|
342
|
342
|
<div class="lasso-editor-settings--option-inner" style="border:none"> |
343
|
|
- <input type="checkbox" class="checkbox" name="lasso_editor[use_old_wpimg]" id="lasso_editor[use_old_wpimg]" <?php echo checked( $use_old_wpimg, 'on' );?> > |
344
|
|
- <label for="lasso_editor[use_old_wpimg]"><?php _e( 'Use Simple Image', 'lasso' );?></label> |
345
|
|
- <span class="lasso--setting-description"><?php _e( 'Use Simple Image Component without Extra Options.', 'lasso' );?></span> |
|
343
|
+ <input type="checkbox" class="checkbox" name="lasso_editor[use_old_wpimg]" id="lasso_editor[use_old_wpimg]" <?php echo checked($use_old_wpimg, 'on'); ?> > |
|
344
|
+ <label for="lasso_editor[use_old_wpimg]"><?php _e('Use Simple Image', 'lasso'); ?></label> |
|
345
|
+ <span class="lasso--setting-description"><?php _e('Use Simple Image Component without Extra Options.', 'lasso'); ?></span> |
346
|
346
|
|
347
|
347
|
</div> |
348
|
348
|
|
349
|
349
|
|
350
|
350
|
<div class="lasso-editor-settings--option-inner"> |
351
|
|
- <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' );?> > |
352
|
|
- <label for="lasso_editor[use_wp_block_image]"><?php _e( 'Use WP Image Block', 'lasso' );?></label> |
353
|
|
- <span class="lasso--setting-description"><?php _e( 'Use WP Image Block as the image component. Gutenberg Block Editor needs to be enabled.', 'lasso' );?></span> |
|
351
|
+ <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'); ?> > |
|
352
|
+ <label for="lasso_editor[use_wp_block_image]"><?php _e('Use WP Image Block', 'lasso'); ?></label> |
|
353
|
+ <span class="lasso--setting-description"><?php _e('Use WP Image Block as the image component. Gutenberg Block Editor needs to be enabled.', 'lasso'); ?></span> |
354
|
354
|
|
355
|
355
|
</div> |
356
|
356
|
<?php }?> |
357
|
357
|
</div> |
358
|
358
|
|
359
|
359
|
|
360
|
|
- <h3><?php _e( 'Post Settings UI', 'lasso' );?></h3> |
|
360
|
+ <h3><?php _e('Post Settings UI', 'lasso'); ?></h3> |
361
|
361
|
<div class="lasso-editor-settings--option-wrap" > |
362
|
362
|
<div class="lasso-editor-settings--option-inner" style="border:none"> |
363
|
|
- <input type="checkbox" class="checkbox" name="lasso_editor[post_settings_disabled]" id="lasso_editor[post_settings_disabled]" <?php echo checked( $post_settings_disabled, 'on' );?> > |
364
|
|
- <label for="lasso_editor[post_settings_disabled]"> <?php _e( 'Disable Post Settings', 'lasso' );?></label> |
365
|
|
- <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> |
|
363
|
+ <input type="checkbox" class="checkbox" name="lasso_editor[post_settings_disabled]" id="lasso_editor[post_settings_disabled]" <?php echo checked($post_settings_disabled, 'on'); ?> > |
|
364
|
+ <label for="lasso_editor[post_settings_disabled]"> <?php _e('Disable Post Settings', 'lasso'); ?></label> |
|
365
|
+ <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> |
366
|
366
|
</div> |
367
|
367
|
|
368
|
368
|
<div class="lasso-editor-settings--option-inner" style="border:none"> |
369
|
|
- <input type="checkbox" class="checkbox" name="lasso_editor[allow_change_date]" id="lasso_editor[allow_change_date]" <?php echo checked( $allow_change_date, 'on' );?> > |
370
|
|
- <label for="lasso_editor[allow_change_date]"> <?php _e( 'Allow Changing Post Date', 'lasso' );?></label> |
371
|
|
- <span class="lasso--setting-description"><?php _e( 'Add the date selector to change the post\'s date to the Post Setting dialog', 'lasso' );?></span> |
|
369
|
+ <input type="checkbox" class="checkbox" name="lasso_editor[allow_change_date]" id="lasso_editor[allow_change_date]" <?php echo checked($allow_change_date, 'on'); ?> > |
|
370
|
+ <label for="lasso_editor[allow_change_date]"> <?php _e('Allow Changing Post Date', 'lasso'); ?></label> |
|
371
|
+ <span class="lasso--setting-description"><?php _e('Add the date selector to change the post\'s date to the Post Setting dialog', 'lasso'); ?></span> |
372
|
372
|
</div> |
373
|
373
|
|
374
|
374
|
<div class="lasso-editor-settings--option-inner" style="border:none"> |
375
|
|
- <input type="checkbox" class="checkbox" name="lasso_editor[allow_edit_excerpt]" id="lasso_editor[allow_edit_excerpt]" <?php echo checked( $allow_edit_excerpt, 'on' );?> > |
376
|
|
- <label for="lasso_editor[allow_edit_excerpt]"> <?php _e( 'Allow Editing Excerpt', 'lasso' );?></label> |
377
|
|
- <span class="lasso--setting-description"><?php _e( 'Allow the post\'s excerpt to be edited in the Post Setting dialog', 'lasso' );?></span> |
|
375
|
+ <input type="checkbox" class="checkbox" name="lasso_editor[allow_edit_excerpt]" id="lasso_editor[allow_edit_excerpt]" <?php echo checked($allow_edit_excerpt, 'on'); ?> > |
|
376
|
+ <label for="lasso_editor[allow_edit_excerpt]"> <?php _e('Allow Editing Excerpt', 'lasso'); ?></label> |
|
377
|
+ <span class="lasso--setting-description"><?php _e('Allow the post\'s excerpt to be edited in the Post Setting dialog', 'lasso'); ?></span> |
378
|
378
|
</div> |
379
|
379
|
|
380
|
380
|
<div class="lasso-editor-settings--option-inner" style="border:none"> |
381
|
|
- <input type="checkbox" class="checkbox" name="lasso_editor[allow_new_category]" id="lasso_editor[allow_new_category]" <?php echo checked( $allow_new_category, 'on' );?> > |
382
|
|
- <label for="lasso_editor[allow_new_category]"> <?php _e( 'Allow Adding New Category', 'lasso' );?></label> |
383
|
|
- <span class="lasso--setting-description"><?php _e( 'Add the user to create new, previously non-existing categories for posts.', 'lasso' );?></span> |
|
381
|
+ <input type="checkbox" class="checkbox" name="lasso_editor[allow_new_category]" id="lasso_editor[allow_new_category]" <?php echo checked($allow_new_category, 'on'); ?> > |
|
382
|
+ <label for="lasso_editor[allow_new_category]"> <?php _e('Allow Adding New Category', 'lasso'); ?></label> |
|
383
|
+ <span class="lasso--setting-description"><?php _e('Add the user to create new, previously non-existing categories for posts.', 'lasso'); ?></span> |
384
|
384
|
</div> |
385
|
385
|
|
386
|
386
|
<div class="lasso-editor-settings--option-inner" style="border:none"> |
387
|
|
- <input type="checkbox" class="checkbox" name="lasso_editor[no_pending_status]" id="lasso_editor[no_pending_status]" <?php echo checked( $no_pending_status, 'on' );?> > |
388
|
|
- <label for="lasso_editor[no_pending_status]"> <?php _e( 'Do Not Allow "Pending" Status', 'lasso' );?></label> |
389
|
|
- <span class="lasso--setting-description"><?php _e( 'Remove the Option to Set the Status to Pending.', 'lasso' );?></span> |
|
387
|
+ <input type="checkbox" class="checkbox" name="lasso_editor[no_pending_status]" id="lasso_editor[no_pending_status]" <?php echo checked($no_pending_status, 'on'); ?> > |
|
388
|
+ <label for="lasso_editor[no_pending_status]"> <?php _e('Do Not Allow "Pending" Status', 'lasso'); ?></label> |
|
389
|
+ <span class="lasso--setting-description"><?php _e('Remove the Option to Set the Status to Pending.', 'lasso'); ?></span> |
390
|
390
|
</div> |
391
|
391
|
|
392
|
392
|
<div class="lasso-editor-settings--option-inner" style="border:none"> |
393
|
|
- <input type="checkbox" class="checkbox" name="lasso_editor[no_url_setting]" id="lasso_editor[no_slug_setting]" <?php echo checked( $no_url_setting, 'on' );?> > |
394
|
|
- <label for="lasso_editor[no_url_setting]"> <?php _e( 'Remove POST URL Option', 'lasso' );?></label> |
395
|
|
- <span class="lasso--setting-description"><?php _e( 'Remove the Option to Set the URL for the Post.', 'lasso' );?></span> |
|
393
|
+ <input type="checkbox" class="checkbox" name="lasso_editor[no_url_setting]" id="lasso_editor[no_slug_setting]" <?php echo checked($no_url_setting, 'on'); ?> > |
|
394
|
+ <label for="lasso_editor[no_url_setting]"> <?php _e('Remove POST URL Option', 'lasso'); ?></label> |
|
395
|
+ <span class="lasso--setting-description"><?php _e('Remove the Option to Set the URL for the Post.', 'lasso'); ?></span> |
396
|
396
|
</div> |
397
|
397
|
|
398
|
398
|
<div class="lasso-editor-settings--option-inner" style="border:none"> |
399
|
|
- <input type="checkbox" class="checkbox" name="lasso_editor[post_adding_disabled]" id="lasso_editor[post_adding_disabled]" <?php echo checked( $post_new_disabled, 'on' );?> > |
400
|
|
- <label for="lasso_editor[post_adding_disabled]"><?php _e( 'Disable Post Adding', 'lasso' );?></label> |
401
|
|
- <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> |
|
399
|
+ <input type="checkbox" class="checkbox" name="lasso_editor[post_adding_disabled]" id="lasso_editor[post_adding_disabled]" <?php echo checked($post_new_disabled, 'on'); ?> > |
|
400
|
+ <label for="lasso_editor[post_adding_disabled]"><?php _e('Disable Post Adding', 'lasso'); ?></label> |
|
401
|
+ <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> |
402
|
402
|
</div> |
403
|
403
|
|
404
|
404
|
<div class="lasso-editor-settings--option-inner" > |
405
|
|
- <input type="checkbox" class="checkbox" name="lasso_editor[support_custom_taxonomy]" id="lasso_editor[support_custom_taxonomy]" <?php echo checked( $support_custom_taxonomy, 'on' );?> > |
406
|
|
- <label for="lasso_editor[support_custom_taxonomy]"><?php _e( 'Support Custom Taxonomy', 'lasso' );?></label> |
407
|
|
- <span class="lasso--setting-description"><?php _e( 'Allow editing custom taxonomies.', 'lasso' );?></span> |
|
405
|
+ <input type="checkbox" class="checkbox" name="lasso_editor[support_custom_taxonomy]" id="lasso_editor[support_custom_taxonomy]" <?php echo checked($support_custom_taxonomy, 'on'); ?> > |
|
406
|
+ <label for="lasso_editor[support_custom_taxonomy]"><?php _e('Support Custom Taxonomy', 'lasso'); ?></label> |
|
407
|
+ <span class="lasso--setting-description"><?php _e('Allow editing custom taxonomies.', 'lasso'); ?></span> |
408
|
408
|
</div> |
409
|
409
|
|
410
|
410
|
|
411
|
411
|
</div> |
412
|
412
|
|
413
|
|
- <h3><?php _e( 'Misc', 'lasso' );?></h3> |
|
413
|
+ <h3><?php _e('Misc', 'lasso'); ?></h3> |
414
|
414
|
<div class="lasso-editor-settings--option-wrap"> |
415
|
415
|
<div class="lasso-editor-settings--option-inner" style="border:none"> |
416
|
|
- <input type="checkbox" class="checkbox" name="lasso_editor[disable_tour]" id="lasso_editor[disable_tour]" <?php echo checked( $disable_tour, 'on' );?> > |
417
|
|
- <label for="lasso_editor[disable_tour]"> <?php _e( 'Do Not Show Tour Dialog', 'lasso' );?></label> |
418
|
|
- <span class="lasso--setting-description"><?php _e( 'Check this box to disable the tour dialog box for all users.', 'lasso' );?></span> |
|
416
|
+ <input type="checkbox" class="checkbox" name="lasso_editor[disable_tour]" id="lasso_editor[disable_tour]" <?php echo checked($disable_tour, 'on'); ?> > |
|
417
|
+ <label for="lasso_editor[disable_tour]"> <?php _e('Do Not Show Tour Dialog', 'lasso'); ?></label> |
|
418
|
+ <span class="lasso--setting-description"><?php _e('Check this box to disable the tour dialog box for all users.', 'lasso'); ?></span> |
419
|
419
|
</div> |
420
|
420
|
|
421
|
421
|
<div class="lasso-editor-settings--option-inner" style="border:none;"> |
422
|
|
- <label><?php _e( 'Placeholder Text for New Post', 'lasso' );?></label> |
423
|
|
- <span class="lasso--setting-description"><?php _e( 'Placeholder text to be displayed when a new post is created.', 'lasso' );?></span> |
424
|
|
- <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)> |
|
422
|
+ <label><?php _e('Placeholder Text for New Post', 'lasso'); ?></label> |
|
423
|
+ <span class="lasso--setting-description"><?php _e('Placeholder text to be displayed when a new post is created.', 'lasso'); ?></span> |
|
424
|
+ <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)> |
425
|
425
|
</div> |
426
|
426
|
|
427
|
427
|
<div class="lasso-editor-settings--option-inner" style="border:none"> |
428
|
|
- <label for="lasso_editor[bold_tag]"> <?php _e( '"Bold" Tag', 'lasso' );?></label> |
429
|
|
- <span class="lasso--setting-description"><?php _e( 'Choose the HTML tag used for the "Bold" style.', 'lasso' );?></span> |
430
|
|
- <input type="radio" name="lasso_editor[bold_tag]" value='b' <?php echo checked( $bold_tag, 'b' );?>> b |
431
|
|
- <input type="radio" name="lasso_editor[bold_tag]" value="strong" <?php echo checked( $bold_tag, 'strong' );?>> strong |
|
428
|
+ <label for="lasso_editor[bold_tag]"> <?php _e('"Bold" Tag', 'lasso'); ?></label> |
|
429
|
+ <span class="lasso--setting-description"><?php _e('Choose the HTML tag used for the "Bold" style.', 'lasso'); ?></span> |
|
430
|
+ <input type="radio" name="lasso_editor[bold_tag]" value='b' <?php echo checked($bold_tag, 'b'); ?>> b |
|
431
|
+ <input type="radio" name="lasso_editor[bold_tag]" value="strong" <?php echo checked($bold_tag, 'strong'); ?>> strong |
432
|
432
|
</div> |
433
|
433
|
<div class="lasso-editor-settings--option-inner" style="border:none"> |
434
|
|
- <label for="lasso_editor[i_tag]"> <?php _e( '"Italic" Tag', 'lasso' );?></label> |
435
|
|
- <span class="lasso--setting-description"><?php _e( 'Choose the HTML tag used for the "Italic" style.', 'lasso' );?></span> |
436
|
|
- <input type="radio" name="lasso_editor[i_tag]" value='i' <?php echo checked( $i_tag, 'i' );?>> i |
437
|
|
- <input type="radio" name="lasso_editor[i_tag]" value="em" <?php echo checked( $i_tag, 'em' );?>> em |
|
434
|
+ <label for="lasso_editor[i_tag]"> <?php _e('"Italic" Tag', 'lasso'); ?></label> |
|
435
|
+ <span class="lasso--setting-description"><?php _e('Choose the HTML tag used for the "Italic" style.', 'lasso'); ?></span> |
|
436
|
+ <input type="radio" name="lasso_editor[i_tag]" value='i' <?php echo checked($i_tag, 'i'); ?>> i |
|
437
|
+ <input type="radio" name="lasso_editor[i_tag]" value="em" <?php echo checked($i_tag, 'em'); ?>> em |
438
|
438
|
</div> |
439
|
439
|
<div class="lasso-editor-settings--option-inner" > |
440
|
|
- <input type="checkbox" class="checkbox" name="lasso_editor[link_prefix_http]" id="lasso_editor[link_prefix_http]" <?php echo checked( $link_prefix_http, 'on' );?> > |
441
|
|
- <label for="lasso_editor[link_prefix_http]"><?php _e( 'Auto Prefix HTTP to links', 'lasso' );?></label> |
442
|
|
- <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> |
|
440
|
+ <input type="checkbox" class="checkbox" name="lasso_editor[link_prefix_http]" id="lasso_editor[link_prefix_http]" <?php echo checked($link_prefix_http, 'on'); ?> > |
|
441
|
+ <label for="lasso_editor[link_prefix_http]"><?php _e('Auto Prefix HTTP to links', 'lasso'); ?></label> |
|
442
|
+ <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> |
443
|
443
|
</div> |
444
|
444
|
</div> |
445
|
445
|
|
446
|
|
- <h3><?php _e( 'Advanced Options', 'lasso' );?></h3> |
447
|
|
- <span class="lasso--setting-description"><?php _e( 'Suggested not to turn these options on without consulting the developer.', 'lasso' );?></span> |
|
446
|
+ <h3><?php _e('Advanced Options', 'lasso'); ?></h3> |
|
447
|
+ <span class="lasso--setting-description"><?php _e('Suggested not to turn these options on without consulting the developer.', 'lasso'); ?></span> |
448
|
448
|
<span class="lasso--setting-description"> </span> |
449
|
449
|
<div class="lasso-editor-settings--option-wrap "> |
450
|
450
|
<div class="lasso-editor-settings--option-inner" style="border:none"> |
451
|
|
- <input type="checkbox" class="checkbox" name="lasso_editor[shortcodify_disabled]" id="lasso_editor[shortcodify_disabled]" <?php echo checked( $shortcodify_disabled, 'on' );?> > |
452
|
|
- <label for="lasso_editor[shortcodify_disabled]"><?php _e( 'Disable Aesop Component Conversion', 'lasso' );?></label> |
453
|
|
- <span class="lasso--setting-description"><?php _e( 'Check this box to disable the conversion process used on Aesop Story Engine components.', 'lasso' );?></span> |
|
451
|
+ <input type="checkbox" class="checkbox" name="lasso_editor[shortcodify_disabled]" id="lasso_editor[shortcodify_disabled]" <?php echo checked($shortcodify_disabled, 'on'); ?> > |
|
452
|
+ <label for="lasso_editor[shortcodify_disabled]"><?php _e('Disable Aesop Component Conversion', 'lasso'); ?></label> |
|
453
|
+ <span class="lasso--setting-description"><?php _e('Check this box to disable the conversion process used on Aesop Story Engine components.', 'lasso'); ?></span> |
454
|
454
|
</div> |
455
|
455
|
|
456
|
456
|
<div class="lasso-editor-settings--option-inner" style="border:none"> |
457
|
|
- <input type="checkbox" class="checkbox" name="lasso_editor[enable_autosave]" id="lasso_editor[enable_autosave]" <?php echo checked( $enable_autosave, 'on' );?> > |
458
|
|
- <label for="lasso_editor[enable_autosave]"><?php _e( 'Enable Auto Save', 'lasso' );?></label> |
459
|
|
- <span class="lasso--setting-description"><?php _e( 'Check this box to enable auto save.', 'lasso' );?></span> |
|
457
|
+ <input type="checkbox" class="checkbox" name="lasso_editor[enable_autosave]" id="lasso_editor[enable_autosave]" <?php echo checked($enable_autosave, 'on'); ?> > |
|
458
|
+ <label for="lasso_editor[enable_autosave]"><?php _e('Enable Auto Save', 'lasso'); ?></label> |
|
459
|
+ <span class="lasso--setting-description"><?php _e('Check this box to enable auto save.', 'lasso'); ?></span> |
460
|
460
|
</div> |
461
|
461
|
|
462
|
462
|
<div class="lasso-editor-settings--option-inner" style="border:none"> |
463
|
|
- <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' );?> > |
464
|
|
- <label for="lasso_editor[post_save_disabled]"><?php _e( 'Disable Post Saving', 'lasso' );?></label> |
465
|
|
- <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> |
|
463
|
+ <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'); ?> > |
|
464
|
+ <label for="lasso_editor[post_save_disabled]"><?php _e('Disable Post Saving', 'lasso'); ?></label> |
|
465
|
+ <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> |
466
|
466
|
|
467
|
467
|
</div> |
468
|
468
|
|
469
|
469
|
<div class="lasso-editor-settings--option-inner" style="border:none"> |
470
|
|
- <input type="checkbox" class="checkbox" name="lasso_editor[post_edit_disabled]" id="lasso_editor[post_edit_disabled]" <?php echo checked( $edit_post_disabled, 'on' );?> > |
471
|
|
- <label for="lasso_editor[post_edit_disabled]"><?php _e( 'Disable Post Editing', 'lasso' );?></label> |
472
|
|
- <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> |
|
470
|
+ <input type="checkbox" class="checkbox" name="lasso_editor[post_edit_disabled]" id="lasso_editor[post_edit_disabled]" <?php echo checked($edit_post_disabled, 'on'); ?> > |
|
471
|
+ <label for="lasso_editor[post_edit_disabled]"><?php _e('Disable Post Editing', 'lasso'); ?></label> |
|
472
|
+ <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> |
473
|
473
|
|
474
|
474
|
</div> |
475
|
475
|
|
476
|
476
|
<div class="lasso-editor-settings--option-inner" style="border:none"> |
477
|
|
- <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' );?> > |
478
|
|
- <label for="lasso_editor[save_using_rest_disabled]"><?php _e( "Don't Use REST API to Save", 'lasso' );?></label> |
479
|
|
- <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> |
|
477
|
+ <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'); ?> > |
|
478
|
+ <label for="lasso_editor[save_using_rest_disabled]"><?php _e("Don't Use REST API to Save", 'lasso'); ?></label> |
|
479
|
+ <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> |
480
|
480
|
|
481
|
481
|
</div> |
482
|
482
|
|
483
|
483
|
<div class="lasso-editor-settings--option-inner"> |
484
|
|
- <input type="checkbox" class="checkbox" name="lasso_editor[no_wrap_shortcode]" id="lasso_editor[no_wrap_shortcode]" <?php echo checked( $no_wrap_shortcode, 'on' );?> > |
485
|
|
- <label for="lasso_editor[no_wrap_shortcode]"><?php _e( "Don't Wrap Shortcodes", 'lasso' );?></label> |
486
|
|
- <span class="lasso--setting-description"><?php _e( 'By default Editus wraps shortcodes so they can be preserved. Disable this behavior.', 'lasso' );?></span> |
|
484
|
+ <input type="checkbox" class="checkbox" name="lasso_editor[no_wrap_shortcode]" id="lasso_editor[no_wrap_shortcode]" <?php echo checked($no_wrap_shortcode, 'on'); ?> > |
|
485
|
+ <label for="lasso_editor[no_wrap_shortcode]"><?php _e("Don't Wrap Shortcodes", 'lasso'); ?></label> |
|
486
|
+ <span class="lasso--setting-description"><?php _e('By default Editus wraps shortcodes so they can be preserved. Disable this behavior.', 'lasso'); ?></span> |
487
|
487
|
|
488
|
488
|
</div> |
489
|
489
|
</div> |
|
@@ -493,11 +493,11 @@ discard block |
|
|
block discarded – undo |
493
|
493
|
|
494
|
494
|
<div class="lasso-editor-settings--submit"> |
495
|
495
|
<input type="hidden" name="action" value="lasso-editor-settings" /> |
496
|
|
- <input type="submit" class="button-primary" value="<?php esc_attr_e( 'Save Settings', 'lasso' );?>" /> |
497
|
|
- <?php wp_nonce_field( 'nonce', 'lasso_editor_settings' ); ?> |
|
496
|
+ <input type="submit" class="button-primary" value="<?php esc_attr_e('Save Settings', 'lasso'); ?>" /> |
|
497
|
+ <?php wp_nonce_field('nonce', 'lasso_editor_settings'); ?> |
498
|
498
|
</div> |
499
|
499
|
|
500
|
|
- <?php do_action('lasso_settings_after');?> |
|
500
|
+ <?php do_action('lasso_settings_after'); ?> |
501
|
501
|
</form> |
502
|
502
|
|
503
|
503
|
</div><?php |