GravityView
2.17
The best, easiest way to display Gravity Forms entries on your website.
|
Go to the source code of this file.
Variables | |
$field = $gravityview->field->field | |
if(! isset( $gravityview)||empty( $gravityview->template)) | $field_id = $gravityview->field->ID |
The default date field output template. More... | |
$field_settings = $gravityview->field->as_configuration() | |
$value = $gravityview->value | |
if( $value==='1970-01-01') if(! empty( $field_settings) &&! empty( $field_settings['date_display']) &&! empty( $value)) | else |
Unix Epoch probably isn't what you're looking for. More... | |
$field = $gravityview->field->field |
Definition at line 15 of file field-date.php.
if (! isset($gravityview)||empty($gravityview->template)) $field_id = $gravityview->field->ID |
The default date field output template.
$gravityview
Definition at line 14 of file field-date.php.
$field_settings = $gravityview->field->as_configuration() |
Definition at line 17 of file field-date.php.
$value = $gravityview->value |
Definition at line 16 of file field-date.php.
if ($value==='1970-01-01') if (! empty($field_settings) &&! empty($field_settings[ 'date_display']) &&! empty($value)) else |
Unix Epoch probably isn't what you're looking for.
gravityview/fields/date/hide_epoch
Whether to hide 1970-01-01
dates; that is normally an erroneous date. Return false to show value. Use __return_false
callback. bool | $hide_epoch | True: hide values that are 1970-01-01. False: show the value. |
\GV\Template_Context | $gravityview | The $gravityview context object. |
Definition at line 46 of file field-date.php.