6 if( !class_exists(
'GravityView_FieldType_text') ) {
7 include_once(
GRAVITYVIEW_DIR .
'includes/admin/field-types/type_text.php' );
13 if ( isset( $override_input ) ) {
23 if ( $show_mt && $this->field[
'merge_tags'] !==
false || $this->field[
'merge_tags'] ===
'force' ) {
24 $class =
'gv-merge-tag-support mt-position-right mt-hide_all_fields ';
34 $atts .= $max ?
' max="' . (int) $max .
'"' :
'';
35 $atts .= $min ?
' min="' . (int) $min .
'"' :
'';
36 $atts .= $step ?
' step="' . (int) $step .
'"' :
'';
38 <input name=
"<?php echo esc_attr( $this->name ); ?>" id=
"<?php echo $this->get_field_id(); ?>" type=
"number" 39 value=
"<?php echo esc_attr( $this->value ); ?>" 40 class=
"<?php echo esc_attr( $class ); ?>"<?php echo $atts; ?>>
const GRAVITYVIEW_DIR
"GRAVITYVIEW_DIR" "./" The absolute path to the plugin directory, with trailing slash ...
show_merge_tags()
Verify if field should have merge tags.
render_input( $override_input=null)
static get( $array, $key, $default=null)
Grab a value from an array or an object or default.