@@ -11,19 +11,19 @@ |
||
11 | 11 | |
12 | 12 | var $label = 'Post ID'; |
13 | 13 | |
14 | - var $search_operators = array( 'is', 'isnot', 'greater_than', 'less_than' ); |
|
14 | + var $search_operators = array('is', 'isnot', 'greater_than', 'less_than'); |
|
15 | 15 | |
16 | 16 | /** |
17 | 17 | * GravityView_Field_Post_ID constructor. |
18 | 18 | */ |
19 | 19 | public function __construct() { |
20 | - $this->label = __( 'Post ID', 'gravityview' ); |
|
20 | + $this->label = __('Post ID', 'gravityview'); |
|
21 | 21 | parent::__construct(); |
22 | 22 | } |
23 | 23 | |
24 | - function field_options( $field_options, $template_id, $field_id, $context, $input_type ) { |
|
24 | + function field_options($field_options, $template_id, $field_id, $context, $input_type) { |
|
25 | 25 | |
26 | - $this->add_field_support('link_to_post', $field_options ); |
|
26 | + $this->add_field_support('link_to_post', $field_options); |
|
27 | 27 | |
28 | 28 | return $field_options; |
29 | 29 | } |
@@ -7,35 +7,35 @@ |
||
7 | 7 | |
8 | 8 | var $name = 'source_url'; |
9 | 9 | |
10 | - var $search_operators = array( 'is', 'isnot', 'contains', 'starts_with', 'ends_with' ); |
|
10 | + var $search_operators = array('is', 'isnot', 'contains', 'starts_with', 'ends_with'); |
|
11 | 11 | |
12 | 12 | var $label = 'Source URL'; |
13 | 13 | |
14 | 14 | public function __construct() { |
15 | - $this->label = esc_attr__( 'Source URL', 'gravityview' ); |
|
15 | + $this->label = esc_attr__('Source URL', 'gravityview'); |
|
16 | 16 | parent::__construct(); |
17 | 17 | } |
18 | 18 | |
19 | - function field_options( $field_options, $template_id, $field_id, $context, $input_type ) { |
|
19 | + function field_options($field_options, $template_id, $field_id, $context, $input_type) { |
|
20 | 20 | |
21 | 21 | // Don't link to entry; doesn't make sense. |
22 | - unset( $field_options['show_as_link'] ); |
|
22 | + unset($field_options['show_as_link']); |
|
23 | 23 | |
24 | - if( 'edit' === $context ) { |
|
24 | + if ('edit' === $context) { |
|
25 | 25 | return $field_options; |
26 | 26 | } |
27 | 27 | |
28 | 28 | $add_options = array(); |
29 | 29 | $add_options['link_to_source'] = array( |
30 | 30 | 'type' => 'checkbox', |
31 | - 'label' => __( 'Link to URL:', 'gravityview' ), |
|
31 | + 'label' => __('Link to URL:', 'gravityview'), |
|
32 | 32 | 'desc' => __('Display as a link to the Source URL', 'gravityview'), |
33 | 33 | 'value' => false, |
34 | 34 | 'merge_tags' => false, |
35 | 35 | ); |
36 | 36 | $add_options['source_link_text'] = array( |
37 | 37 | 'type' => 'text', |
38 | - 'label' => __( 'Link Text:', 'gravityview' ), |
|
38 | + 'label' => __('Link Text:', 'gravityview'), |
|
39 | 39 | 'desc' => __('Customize the link text. If empty, the link text will be the the URL.', 'gravityview'), |
40 | 40 | 'value' => NULL, |
41 | 41 | 'merge_tags' => true, |
@@ -7,15 +7,15 @@ discard block |
||
7 | 7 | |
8 | 8 | var $name = 'textarea'; |
9 | 9 | |
10 | - var $search_operators = array( 'is', 'isnot', 'contains', 'starts_with', 'ends_with' ); |
|
10 | + var $search_operators = array('is', 'isnot', 'contains', 'starts_with', 'ends_with'); |
|
11 | 11 | |
12 | 12 | var $_gf_field_class_name = 'GF_Field_Textarea'; |
13 | 13 | |
14 | 14 | var $group = 'standard'; |
15 | 15 | |
16 | - function field_options( $field_options, $template_id = '', $field_id = '', $context = '', $input_type = '' ) { |
|
16 | + function field_options($field_options, $template_id = '', $field_id = '', $context = '', $input_type = '') { |
|
17 | 17 | |
18 | - if( 'edit' === $context ) { |
|
18 | + if ('edit' === $context) { |
|
19 | 19 | return $field_options; |
20 | 20 | } |
21 | 21 | |
@@ -23,16 +23,16 @@ discard block |
||
23 | 23 | 'type' => 'number', |
24 | 24 | 'merge_tags' => false, |
25 | 25 | 'value' => null, |
26 | - 'label' => __( 'Maximum words shown', 'gravityview' ), |
|
27 | - 'tooltip' => __( 'Enter the number of words to be shown. If specified it truncates the text. Leave it blank if you want to show the full text.', 'gravityview' ), |
|
26 | + 'label' => __('Maximum words shown', 'gravityview'), |
|
27 | + 'tooltip' => __('Enter the number of words to be shown. If specified it truncates the text. Leave it blank if you want to show the full text.', 'gravityview'), |
|
28 | 28 | ); |
29 | 29 | |
30 | 30 | $field_options['make_clickable'] = array( |
31 | 31 | 'type' => 'checkbox', |
32 | 32 | 'merge_tags' => false, |
33 | 33 | 'value' => 0, |
34 | - 'label' => __( 'Convert text URLs to HTML links', 'gravityview' ), |
|
35 | - 'tooltip' => __( 'Converts URI, www, FTP, and email addresses in HTML links', 'gravityview' ), |
|
34 | + 'label' => __('Convert text URLs to HTML links', 'gravityview'), |
|
35 | + 'tooltip' => __('Converts URI, www, FTP, and email addresses in HTML links', 'gravityview'), |
|
36 | 36 | ); |
37 | 37 | |
38 | 38 | return $field_options; |
@@ -7,21 +7,21 @@ |
||
7 | 7 | |
8 | 8 | var $name = 'post_title'; |
9 | 9 | |
10 | - var $search_operators = array( 'is', 'isnot', 'contains', 'starts_with', 'ends_with' ); |
|
10 | + var $search_operators = array('is', 'isnot', 'contains', 'starts_with', 'ends_with'); |
|
11 | 11 | |
12 | 12 | var $_gf_field_class_name = 'GF_Field_Post_Title'; |
13 | 13 | |
14 | 14 | var $group = 'post'; |
15 | 15 | |
16 | - function field_options( $field_options, $template_id, $field_id, $context, $input_type ) { |
|
16 | + function field_options($field_options, $template_id, $field_id, $context, $input_type) { |
|
17 | 17 | |
18 | - if( 'edit' === $context ) { |
|
18 | + if ('edit' === $context) { |
|
19 | 19 | return $field_options; |
20 | 20 | } |
21 | 21 | |
22 | - $this->add_field_support('link_to_post', $field_options ); |
|
22 | + $this->add_field_support('link_to_post', $field_options); |
|
23 | 23 | |
24 | - $this->add_field_support('dynamic_data', $field_options ); |
|
24 | + $this->add_field_support('dynamic_data', $field_options); |
|
25 | 25 | |
26 | 26 | return $field_options; |
27 | 27 | } |
@@ -7,18 +7,18 @@ discard block |
||
7 | 7 | |
8 | 8 | var $name = 'website'; |
9 | 9 | |
10 | - var $search_operators = array( 'is', 'isnot', 'contains', 'starts_with', 'ends_with' ); |
|
10 | + var $search_operators = array('is', 'isnot', 'contains', 'starts_with', 'ends_with'); |
|
11 | 11 | |
12 | 12 | var $_gf_field_class_name = 'GF_Field_Website'; |
13 | 13 | |
14 | 14 | var $group = 'advanced'; |
15 | 15 | |
16 | - function field_options( $field_options, $template_id = '', $field_id = '', $context = '', $input_type = '' ) { |
|
16 | + function field_options($field_options, $template_id = '', $field_id = '', $context = '', $input_type = '') { |
|
17 | 17 | |
18 | 18 | // It makes no sense to use this as the link. |
19 | - unset( $field_options['show_as_link'] ); |
|
19 | + unset($field_options['show_as_link']); |
|
20 | 20 | |
21 | - if( 'edit' === $context ) { |
|
21 | + if ('edit' === $context) { |
|
22 | 22 | return $field_options; |
23 | 23 | } |
24 | 24 | |
@@ -27,8 +27,8 @@ discard block |
||
27 | 27 | */ |
28 | 28 | $field_options['anchor_text'] = array( |
29 | 29 | 'type' => 'text', |
30 | - 'label' => __( 'Link Text:', 'gravityview' ), |
|
31 | - 'desc' => __( 'Define custom link text. Leave blank to display the URL', 'gravityview' ), |
|
30 | + 'label' => __('Link Text:', 'gravityview'), |
|
31 | + 'desc' => __('Define custom link text. Leave blank to display the URL', 'gravityview'), |
|
32 | 32 | 'value' => '', |
33 | 33 | 'merge_tags' => 'force', |
34 | 34 | ); |
@@ -36,15 +36,15 @@ discard block |
||
36 | 36 | $field_options['truncatelink'] = array( |
37 | 37 | 'type' => 'checkbox', |
38 | 38 | 'value' => true, |
39 | - 'label' => __( 'Shorten Link Display', 'gravityview' ), |
|
40 | - 'tooltip' => __( 'Only show the domain for a URL instead of the whole link.', 'gravityview' ), |
|
41 | - 'desc' => __( 'Don’t show the full URL, only show the domain.', 'gravityview' ) |
|
39 | + 'label' => __('Shorten Link Display', 'gravityview'), |
|
40 | + 'tooltip' => __('Only show the domain for a URL instead of the whole link.', 'gravityview'), |
|
41 | + 'desc' => __('Don’t show the full URL, only show the domain.', 'gravityview') |
|
42 | 42 | ); |
43 | 43 | |
44 | 44 | $field_options['open_same_window'] = array( |
45 | 45 | 'type' => 'checkbox', |
46 | 46 | 'value' => false, |
47 | - 'label' => __( 'Open link in the same window?', 'gravityview' ), |
|
47 | + 'label' => __('Open link in the same window?', 'gravityview'), |
|
48 | 48 | ); |
49 | 49 | |
50 | 50 | return $field_options; |
@@ -7,21 +7,21 @@ |
||
7 | 7 | |
8 | 8 | var $name = 'post_content'; |
9 | 9 | |
10 | - var $search_operators = array( 'is', 'isnot', 'contains', 'starts_with', 'ends_with' ); |
|
10 | + var $search_operators = array('is', 'isnot', 'contains', 'starts_with', 'ends_with'); |
|
11 | 11 | |
12 | 12 | var $_gf_field_class_name = 'GF_Field_Post_Content'; |
13 | 13 | |
14 | 14 | var $group = 'post'; |
15 | 15 | |
16 | - function field_options( $field_options, $template_id, $field_id, $context, $input_type ) { |
|
16 | + function field_options($field_options, $template_id, $field_id, $context, $input_type) { |
|
17 | 17 | |
18 | - unset( $field_options['show_as_link'] ); |
|
18 | + unset($field_options['show_as_link']); |
|
19 | 19 | |
20 | - if( 'edit' === $context ) { |
|
20 | + if ('edit' === $context) { |
|
21 | 21 | return $field_options; |
22 | 22 | } |
23 | 23 | |
24 | - $this->add_field_support('dynamic_data', $field_options ); |
|
24 | + $this->add_field_support('dynamic_data', $field_options); |
|
25 | 25 | |
26 | 26 | return $field_options; |
27 | 27 | } |
@@ -9,24 +9,24 @@ |
||
9 | 9 | |
10 | 10 | var $name = 'number'; |
11 | 11 | |
12 | - var $search_operators = array( 'is', 'isnot', 'greater_than', 'less_than' ); |
|
12 | + var $search_operators = array('is', 'isnot', 'greater_than', 'less_than'); |
|
13 | 13 | |
14 | 14 | var $_gf_field_class_name = 'GF_Field_Number'; |
15 | 15 | |
16 | 16 | var $group = 'standard'; |
17 | 17 | |
18 | - function field_options( $field_options, $template_id, $field_id, $context, $input_type ) { |
|
18 | + function field_options($field_options, $template_id, $field_id, $context, $input_type) { |
|
19 | 19 | |
20 | 20 | $field_options['number_format'] = array( |
21 | 21 | 'type' => 'checkbox', |
22 | - 'label' => __( 'Format number?', 'gravityview' ), |
|
22 | + 'label' => __('Format number?', 'gravityview'), |
|
23 | 23 | 'desc' => __('Display numbers with thousands separators.', 'gravityview'), |
24 | 24 | 'value' => false, |
25 | 25 | ); |
26 | 26 | |
27 | 27 | $field_options['decimals'] = array( |
28 | 28 | 'type' => 'number', |
29 | - 'label' => __( 'Decimals', 'gravityview' ), |
|
29 | + 'label' => __('Decimals', 'gravityview'), |
|
30 | 30 | 'desc' => __('Precision of the number of decimal places. Leave blank to use existing precision.', 'gravityview'), |
31 | 31 | 'value' => '', |
32 | 32 | 'merge_tags' => false, |
@@ -4,7 +4,7 @@ |
||
4 | 4 | |
5 | 5 | var $name = 'checkbox'; |
6 | 6 | |
7 | - var $search_operators = array( 'is', 'in', 'not in', 'isnot', 'contains'); |
|
7 | + var $search_operators = array('is', 'in', 'not in', 'isnot', 'contains'); |
|
8 | 8 | |
9 | 9 | var $_gf_field_class_name = 'GF_Field_Checkbox'; |
10 | 10 |
@@ -7,20 +7,20 @@ |
||
7 | 7 | |
8 | 8 | var $name = 'post_tags'; |
9 | 9 | |
10 | - var $search_operators = array( 'is', 'in', 'not in', 'isnot', 'contains'); |
|
10 | + var $search_operators = array('is', 'in', 'not in', 'isnot', 'contains'); |
|
11 | 11 | |
12 | 12 | var $_gf_field_class_name = 'GF_Field_Post_Tags'; |
13 | 13 | |
14 | 14 | var $group = 'post'; |
15 | 15 | |
16 | - function field_options( $field_options, $template_id, $field_id, $context, $input_type ) { |
|
16 | + function field_options($field_options, $template_id, $field_id, $context, $input_type) { |
|
17 | 17 | |
18 | - if( 'edit' === $context ) { |
|
18 | + if ('edit' === $context) { |
|
19 | 19 | return $field_options; |
20 | 20 | } |
21 | 21 | |
22 | - $this->add_field_support('dynamic_data', $field_options ); |
|
23 | - $this->add_field_support('link_to_term', $field_options ); |
|
22 | + $this->add_field_support('dynamic_data', $field_options); |
|
23 | + $this->add_field_support('link_to_term', $field_options); |
|
24 | 24 | |
25 | 25 | return $field_options; |
26 | 26 | } |