GravityView  2.17
The best, easiest way to display Gravity Forms entries on your website.
class-gravityview-field-post-excerpt.php
Go to the documentation of this file.
1 <?php
2 /**
3  * @file class-gravityview-field-post-excerpt.php
4  * @package GravityView
5  * @subpackage includes\fields
6  */
7 
9 
10  var $name = 'post_excerpt';
11 
12  var $is_searchable = true;
13 
14  var $search_operators = array( 'contains', 'is', 'isnot', 'starts_with', 'ends_with' );
15 
16  var $_gf_field_class_name = 'GF_Field_Post_Excerpt';
17 
18  var $group = 'post';
19 
20  var $icon = 'dashicons-format-quote';
21 
22  public function __construct() {
23  $this->label = esc_html__( 'Post Excerpt', 'gk-gravityview' );
24  parent::__construct();
25  }
26 
27  public function field_options( $field_options, $template_id, $field_id, $context, $input_type, $form_id ) {
28 
29  unset( $field_options['show_as_link'] );
30 
31  if( 'edit' === $context ) {
32  return $field_options;
33  }
34 
35  $this->add_field_support('dynamic_data', $field_options );
36 
37  return $field_options;
38  }
39 }
40 
Modify field settings by extending this class.
field_options( $field_options, $template_id, $field_id, $context, $input_type, $form_id)
$group
$_gf_field_class_name
add_field_support( $key, &$field_options)
$search_operators
$name
$is_searchable
__construct()
if(empty( $created_by)) $form_id
new GravityView_Post_Excerpt
$icon
if(false !==strpos( $value, '00:00')) $field_id
string $field_id ID of the field being displayed
Definition: time.php:22