/** * Rendering Editor field * @package Skip * @since 1.0 * @return string $html Returns The HTML Code. */ public function render() { global $skip_used_dialog; $skip_used_dialog = TRUE; if (array_key_exists('class', $this->params)) { $class = $this->params['class'] . ' skip_editor'; } else { $class = 'skip_editor'; } $settings = array('textarea_name' => $this->field_name, 'editor_class' => $class); ob_start(array($this, 'buffer')); wp_editor(stripslashes($this->value), $this->params['id'], $settings); ob_end_flush(); $this->content = $this->buffer; return parent::render(); }
/** * Rendering Select field * @package Skip * @since 1.0 * @return string $html Returns The HTML Code. */ public function render() { $this->content = ''; foreach ($this->elements as $element) { $params = $element['params']; unset($element['params']); $label = $element['label']; unset($element['label']); $params = array_merge($element, $params); if ($params['value'] == $this->value) { $params['selected'] = 'selected'; } $this->content .= '<option' . $this->params($params) . '>' . $label . '</option>'; } return parent::render(); }
$this->delete = $args['delete']; $args['close_tag'] = FALSE; // No Close tag for Input type Text $args['label'] = $label; parent::__construct('input', $name, $args); $this->del_param('value'); // Not needed here $this->add_param('type', 'file'); // This is a text field! } /** * Rendering Editor field * @package Skip * @since 1.0 * @return string $html Returns The HTML Code. */ public function render() { global $skip_javascripts; $file_url = $this->value['url']; $file_path = $this->value['file'];
$args['close_tag'] = FALSE; // No Close tag for Input type Text $args['save'] = FALSE; $args['value'] = $value; parent::__construct('input', $name, $args); $this->add_param('type', 'submit'); // This is a text field!