| Server IP : 159.203.156.69 / Your IP : 216.73.217.172 Web Server : nginx/1.24.0 System : Linux main-ubuntu 6.8.0-71-generic #71-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 16:52:38 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/php/green-estate-prod/wp-content/themes/spaciaz/inc/customize-control/ |
Upload File : |
<?php
if (!defined( 'ABSPATH' )){
exit;
}
/**
* Class OSF_Customize_Control_Editor
*/
class Spaciaz_Customize_Control_Editor extends WP_Customize_Control {
public $type = 'opal-editor';
/**
* Render the control's content.
*
* @return void
*/
public function render_content() {
?>
<label>
<span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span>
<span class="description customize-control-description"><?php echo esc_html( $this->description ); ?></span>
</label>
<input type="hidden" <?php $this->link(); ?> value="<?php echo esc_attr( $this->value() ); ?>">
<?php
wp_editor( $this->value(), $this->id, array(
'textarea_name' => $this->id,
'textarea_rows' => 5
) );
do_action( 'admin_footer' );
do_action( 'admin_print_footer_scripts' );
}
public function enqueue() {
wp_enqueue_script( 'spaciaz-customizer-editor', get_theme_file_uri('assets/js/admin/editor.js'), array(), SPACIAZ_VERSION, true );
}
}