GravityView
2.17
The best, easiest way to display Gravity Forms entries on your website.
includes
fields
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
8
class
GravityView_Post_Excerpt
extends
GravityView_Field
{
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
41
new
GravityView_Post_Excerpt
;
GravityView_Field
Modify field settings by extending this class.
Definition:
class-gravityview-field.php:11
GravityView_Post_Excerpt\field_options
field_options( $field_options, $template_id, $field_id, $context, $input_type, $form_id)
Definition:
class-gravityview-field-post-excerpt.php:27
GravityView_Post_Excerpt\$group
$group
Definition:
class-gravityview-field-post-excerpt.php:18
GravityView_Post_Excerpt\$_gf_field_class_name
$_gf_field_class_name
Definition:
class-gravityview-field-post-excerpt.php:16
GravityView_Field\add_field_support
add_field_support( $key, &$field_options)
Definition:
class-gravityview-field.php:508
GravityView_Post_Excerpt\$search_operators
$search_operators
Definition:
class-gravityview-field-post-excerpt.php:14
GravityView_Post_Excerpt\$name
$name
Definition:
class-gravityview-field-post-excerpt.php:10
GravityView_Post_Excerpt
Definition:
class-gravityview-field-post-excerpt.php:8
GravityView_Post_Excerpt\$is_searchable
$is_searchable
Definition:
class-gravityview-field-post-excerpt.php:12
GravityView_Post_Excerpt\__construct
__construct()
Definition:
class-gravityview-field-post-excerpt.php:22
$form_id
if(empty( $created_by)) $form_id
Definition:
other_entries.php:20
GravityView_Post_Excerpt
new GravityView_Post_Excerpt
Definition:
class-gravityview-field-post-excerpt.php:41
GravityView_Post_Excerpt\$icon
$icon
Definition:
class-gravityview-field-post-excerpt.php:20
$field_id
if(false !==strpos( $value, '00:00')) $field_id
string $field_id ID of the field being displayed
Definition:
time.php:22