10 <label
for=
"<?php echo $this->get_field_id(); ?>" class=
"<?php echo $this->get_label_class(); ?>"><?php
12 echo
'<span class="gv-label">'.$this->get_field_label().
'</span>';
22 if( isset( $override_input ) ) {
27 $class =
'widefat mt-wp_editor codemirror ';
31 if( $show_mt && $this->field[
'merge_tags'] !==
false || $this->field[
'merge_tags'] ===
'force' ) {
32 $class .=
' merge-tag-support mt-position-right ';
34 if( empty( $this->field[
'show_all_fields'] ) ) {
35 $class .=
' mt-hide_all_fields ';
39 $class .= rgar( $this->field,
'class' );
45 $default_rows = apply_filters(
'gravityview/admin/field-types/textarea/rows', 5 );
47 $rows = rgar( $this->field,
'rows', $default_rows );
49 # $this->codemirror( $this->get_field_id() ); 52 <textarea name=
"<?php echo esc_attr( $this->name ); ?>" placeholder=
"<?php echo esc_attr( $placeholder ); ?>" id=
"<?php echo $this->get_field_id(); ?>" class=
"<?php echo gravityview_sanitize_html_class( $class ); ?>" rows=
"<?php echo absint( $rows ); ?>"><?php echo esc_textarea( $this->value ); ?></textarea>
59 $settings = wp_enqueue_code_editor( array(
'type' =>
'text/html' ) );
69 wp.codeEditor.initialize(
"<?php echo $field_id;?>", {});
show_merge_tags()
Verify if field should have merge tags.
get_field_desc()
Retrieve field description.
render_input( $override_input=null)
codemirror( $field_id='')
Modify option field type by extending this class.
if(false !==strpos( $value, '00:00')) $field_id
string $field_id ID of the field being displayed