'wysiwyg_widget widget_text', 'description' => __('A widget with a WYSIWYG / Rich Text editor - supports media uploading')); // $control_ops = array('width' => 560, 'height' => 400); // $id_base = 'wysiwyg_widget'; // parent::__construct($id_base, 'WYSIWYG Widget', $widget_ops, $control_ops); // } public function __construct() { parent::__construct( 'wysiwyg_widget', // Base ID 'WYSIWYG Widget', // Name array( 'description' => __( 'A widget with a WYSIWYG / Rich Text editor - supports media uploading', 'text_domain' ), ), // Args array('width' => 560, 'height' => 400) //size ); } function widget($args, $instance) { extract($args); $title = apply_filters('widget_title', empty($instance['title']) ? '' : $instance['title'], $instance, $this->id_base); $text = apply_filters('widget_text', $instance['text'], $instance); echo $before_widget; if (!empty($title)) { echo $before_title . $title . $after_title; } ?>
'', 'text' => '', 'type' => 'visual')); $title = strip_tags($instance['title']); $text = $instance['text']; $type = esc_textarea($instance['type']); ?>

get_field_id('text'), array( 'textarea_name' => $this->get_field_name('text'), 'textarea_rows' => 25 )) ?>