/** * GravityView_Field_Transaction_Type constructor. */ public function __construct() { $this->label = esc_html__('Transaction Type', 'gravityview'); $this->description = esc_html__('The type of the order: one-time payment or subscription', 'gravityview'); add_filter('gravityview_field_entry_value_' . $this->name . '_pre_link', array($this, 'get_content'), 10, 4); parent::__construct(); }
function __construct() { $this->label = esc_html__('List', 'gravityview'); parent::__construct(); add_filter('gravityview/template/field_label', array($this, '_filter_field_label'), 10, 4); add_filter('gravityview/common/get_form_fields', array($this, 'add_form_fields'), 10, 3); }
/** * GravityView_Field_Date_Created constructor. */ public function __construct() { $this->label = esc_html__('Date Created', 'gravityview'); $this->description = esc_html__('The date the entry was created.', 'gravityview'); add_filter('gravityview_field_entry_value_' . $this->name . '_pre_link', array($this, 'get_content'), 10, 4); parent::__construct(); }
public function __construct() { $this->label = esc_html__('Post Category', 'gravityview'); add_action('gravityview/edit-entry/render/before', array($this, 'add_edit_entry_post_category_choices_filter')); add_action('gravityview/edit-entry/render/after', array($this, 'remove_edit_entry_post_category_choices_filter')); add_action('gravityview/edit_entry/after_update', array($this, 'set_post_categories'), 10, 2); parent::__construct(); }
function __construct() { self::$path = plugin_dir_path(__FILE__); self::$file = __FILE__; $this->doing_ajax = defined('DOING_AJAX') && DOING_AJAX; $this->add_hooks(); parent::__construct(); }
/** * Add `choice_display` setting to the field * * @param array $field_options * @param string $template_id * @param string $field_id * @param string $context * @param string $input_type * * @since 1.17 * * @return array */ function field_options($field_options, $template_id, $field_id, $context, $input_type) { // Set the $_field_id var $field_options = parent::field_options($field_options, $template_id, $field_id, $context, $input_type); if ($this->is_choice_value_enabled()) { $field_options['choice_display'] = array('type' => 'radio', 'value' => 'value', 'label' => __('What should be displayed:', 'gravityview'), 'desc' => __('This input has a label and a value. What should be displayed?', 'gravityview'), 'choices' => array('value' => __('Value of the input', 'gravityview'), 'label' => __('Label of the input', 'gravityview'))); } return $field_options; }
/** * Add `choice_display` setting to the field * * @param array $field_options * @param string $template_id * @param string $field_id * @param string $context * @param string $input_type * * @since 1.17 * * @return array */ function field_options($field_options, $template_id, $field_id, $context, $input_type) { // Set the $_field_id var $field_options = parent::field_options($field_options, $template_id, $field_id, $context, $input_type); // It's not the parent field; it's an input if (floor($field_id) !== floatval($field_id)) { if ($this->is_choice_value_enabled()) { $desc = esc_html__('This input has a label and a value. What should be displayed?', 'gravityview'); $default = 'value'; $choices = array('tick' => __('A check mark, if the input is checked', 'gravityview'), 'value' => __('Value of the input', 'gravityview'), 'label' => __('Label of the input', 'gravityview')); } else { $desc = ''; $default = 'tick'; $choices = array('tick' => __('A check mark, if the input is checked', 'gravityview'), 'label' => __('Label of the input', 'gravityview')); } $field_options['choice_display'] = array('type' => 'radio', 'class' => 'vertical', 'label' => __('What should be displayed:', 'gravityview'), 'value' => $default, 'desc' => $desc, 'choices' => $choices); } return $field_options; }
public function __construct() { $this->label = esc_html__('Multi Select', 'gravityview'); parent::__construct(); }
public function __construct() { $this->label = esc_html__('Source URL', 'gravityview'); parent::__construct(); }
function field_options($field_options, $template_id = '', $field_id = '', $context = '', $input_type = '') { // Set variables parent::field_options($field_options, $template_id, $field_id, $context, $input_type); if ('edit' === $context) { return $field_options; } /** * Set default date format based on field ID and Form ID */ add_filter('gravityview_date_format', array($this, '_filter_date_display_date_format')); $this->add_field_support('date_display', $field_options); remove_filter('gravityview_date_format', array($this, '_filter_date_display_date_format')); return $field_options; }
public function __construct() { $this->label = esc_html__('Other Entries', 'gravityview'); $this->description = esc_html__('Display other entries created by the entry creator.', 'gravityview'); parent::__construct(); }
public function __construct() { $this->label = esc_html__('Section', 'gravityview'); parent::__construct(); add_filter('gravityview_field_entry_value_section', array($this, 'prevent_empty_field')); }
public function __construct() { $this->label = esc_html__('Link to Entry', 'gravityview'); $this->description = esc_html__('A dedicated link to the single entry with customizable text.', 'gravityview'); parent::__construct(); }
/** * GravityView_Field_Is_Fulfilled constructor. */ public function __construct() { $this->label = esc_html__('Is Fulfilled', 'gravityview'); add_filter('gravityview_field_entry_value_' . $this->name . '_pre_link', array($this, 'get_content'), 10, 4); parent::__construct(); }
public function __construct() { $this->label = esc_html__('Credit Card', 'gravityview'); parent::__construct(); }
/** * GravityView_Field_Calculation constructor. */ public function __construct() { $this->label = esc_html__('Calculation', 'gravityview'); add_filter('gravityview_blacklist_field_types', array($this, 'blacklist_field_types'), 10, 2); parent::__construct(); }
public function __construct() { $this->label = esc_html__('Password', 'gravityview'); $this->add_hooks(); parent::__construct(); }
public function __construct() { $this->label = esc_html__('Workflow Step', 'gravityview'); parent::__construct(); }
/** * GravityView_Field_Payment_Amount constructor. */ public function __construct() { $this->label = esc_html__('Transaction ID', 'gravityview'); parent::__construct(); }
public function __construct() { $this->label = esc_html__('Address', 'gravityview'); parent::__construct(); }
/** * GravityView_Field_Payment_Status constructor. */ public function __construct() { $this->label = esc_html__('Payment Status', 'gravityview'); $this->description = esc_html__('The current payment status of the entry (ie "Processing", "Failed", "Cancelled", "Approved").', 'gravityview'); parent::__construct(); }
public function __construct() { $this->label = esc_html__('Hidden', 'gravityview'); $this->edit_entry_add_hooks(); parent::__construct(); }
public function __construct() { $this->label = esc_html__('Single Line Text', 'gravityview'); parent::__construct(); }
function __construct() { parent::__construct(); add_filter('gravityview/template/field_label', array($this, '_filter_field_label'), 10, 4); }
function __construct() { parent::__construct(); add_filter('gravityview_field_entry_value_section', array($this, 'prevent_empty_field')); }
public function __construct() { $this->label = esc_html__('Post Image', 'gravityview'); parent::__construct(); }
public function __construct() { $this->label = esc_html__('Custom Content', 'gravityview'); parent::__construct(); }
public function __construct() { $this->label = esc_html__('Paragraph Text', 'gravityview'); parent::__construct(); }
public function __construct() { $this->label = esc_html__('Quiz Score', 'gravityview'); parent::__construct(); }
public function __construct() { $this->label = esc_html__('File Upload', 'gravityview'); parent::__construct(); }