false, 'required' => false, 'label' => false, 'description' => false, 'field_alignment' => true, ); } protected function extra_field_default_opts() { return array( 'field_alignment' => 'left', ); } public function show_primary_options() { $field = $this->get_field(); do_action('hashform_before_html_primary_option'); ?>
'field_options[description_' . absint($field['id']) . ']', 'textarea_rows' => 8, ); $html_id = 'hf-field-desc_' . absint($field['id']); /* * wp_editor() gives no way to put an attribute on the textarea * it prints, and the canvas has to know where to mirror what is * typed. handleTinyMceChange() already writes the editor back * to this textarea and fires change on it, so naming a target * here is all the live preview needs. */ $preview_id = self::preview_id($field['id']); $add_target = function ($editor_html) use ($html_id, $preview_id) { return str_replace( '

get_field(); $content = isset($field['description']) ? $field['description'] : ''; $content = apply_filters('hashform_translate_string', $content, 'Hash Form', HashFormBuilder::get_form_title($field['form_id']) . ' - ' . $field['id'] . ' - ' . 'Field Description'); /* * Sanitized again on the way out, not only on the way in: rows saved * before that was done still hold whatever was pasted into them. */ $content = HashFormHelper::sanitize_html_field_content($content); ?>
>