コード例 #1
0
 public function __construct()
 {
     parent::__construct();
     $this->_nicename = __('Checkbox', 'ninja-forms');
     $this->_settings['label_pos']['value'] = 'right';
     add_filter('ninja_forms_custom_columns', array($this, 'custom_columns'), 10, 2);
 }
コード例 #2
0
ファイル: Textarea.php プロジェクト: idies/escience-2016-wp
 public function __construct()
 {
     parent::__construct();
     $this->_nicename = __('Paragraph Text', 'ninja-forms');
     $this->_settings['default']['type'] = 'textarea';
     $this->_settings['placeholder']['type'] = 'textarea';
 }
コード例 #3
0
ファイル: FieldOptIn.php プロジェクト: seancho0420/globalink
 public function __construct()
 {
     parent::__construct();
     /*
      * Setup 'type' options for the opt-in field.
      */
     $this->_settings['type']['options'] = array(array('label' => __('Single', 'ninja-forms'), 'value' => 'single'), array('label' => __('Multiple', 'ninja-forms'), 'value' => 'multiple'));
     /*
      * Add a refresh extra for the groups fieldset.
      */
     $this->_settings['fieldset']['label'] = __('Lists', 'ninja-forms') . ' <a href="#"><small>' . __('refresh', 'ninja-forms') . '</small></a>';
     $this->_settings['fieldset']['deps'] = array('type' => 'multiple');
     /*
      * Hide the 'type' and 'fieldset' ('groups') settings until they are ready for use.
      */
     $this->_settings['type']['group'] = '';
     $this->_settings['fieldset']['group'] = '';
     /*
      * Single Opt-In Default. Multiple Opt-In will use the groups fieldset.
      */
     $this->_settings['default']['type'] = 'toggle';
     $this->_settings['default']['value'] = 0;
     $this->_settings['default']['label'] = __('Opt-In by default', 'ninja-forms');
     $this->_settings['default']['group'] = 'primary';
 }
コード例 #4
0
 public function __construct()
 {
     parent::__construct();
     $this->_nicename = __('Shipping', 'ninja-forms');
     add_filter('ninja-forms-field-settings-groups', array($this, 'add_setting_group'));
     add_filter('ninja_forms_merge_tag_value_shipping', array($this, 'merge_tag_value'), 10, 2);
 }
コード例 #5
0
ファイル: hr.php プロジェクト: idies/escience-2016-wp
 public function __construct()
 {
     parent::__construct();
     $this->_settings['classes']['group'] = 'primary';
     $this->_nicename = __('Divider', 'ninja-forms');
     add_filter('nf_sub_hidden_field_types', array($this, 'hide_field_type'));
     unset($this->_settings['classes']['settings']['wrapper ']);
 }
コード例 #6
0
 public function __construct()
 {
     parent::__construct();
     $this->_nicename = __('Paragraph Text', 'ninja-forms');
     $this->_settings['default']['type'] = 'textarea';
     $this->_settings['placeholder']['type'] = 'textarea';
     add_filter('ninja_forms_merge_tag_value_' . $this->_name, array($this, 'filter_merge_tag_value'), 10, 2);
 }
コード例 #7
0
 public function __construct()
 {
     parent::__construct();
     $this->_nicename = __('Single Checkbox', 'ninja-forms');
     $this->_settings['label_pos']['value'] = 'right';
     add_filter('ninja_forms_custom_columns', array($this, 'custom_columns'), 10, 2);
     add_filter('ninja_forms_merge_tag_value_' . $this->_name, array($this, 'filter_merge_tag_value'), 10, 2);
     add_filter('ninja_forms_merge_tag_calc_value_' . $this->_name, array($this, 'filter_merge_tag_value_calc'), 10, 2);
 }
コード例 #8
0
ファイル: HTML.php プロジェクト: idies/escience-2016-wp
 public function __construct()
 {
     parent::__construct();
     $this->_settings['label']['width'] = 'full';
     $this->_settings['default']['group'] = 'primary';
     $this->_settings['default']['type'] = 'rte';
     $this->_settings['default']['use_merge_tags'] = array('include' => array('calcs'));
     $this->_nicename = __('HTML', 'ninja-forms');
 }
コード例 #9
0
 public function __construct()
 {
     parent::__construct();
     $this->_nicename = __('Product', 'ninja-forms');
     $this->_settings['product_price']['width'] = 'full';
     add_filter('ninja_forms_merge_tag_value_product', array($this, 'merge_tag_value'), 10, 2);
     add_filter('ninja_forms_localize_field_' . $this->_name, array($this, 'filter_required_setting'));
     add_filter('ninja_forms_localize_field_' . $this->_name . '_preview', array($this, 'filter_required_setting_preview'));
 }
コード例 #10
0
ファイル: StarRating.php プロジェクト: idies/escience-2016-wp
 public function __construct()
 {
     parent::__construct();
     $this->_settings['default']['group'] = 'primary';
     $this->_settings['default']['label'] = __('Number of Stars', 'ninja-forms');
     $this->_settings['default']['width'] = 'one-half';
     $this->_settings['default']['use_merge_tags'] = FALSE;
     $this->_settings['default']['value'] = 5;
     $this->_nicename = __('Star Rating', 'ninja-forms');
 }
コード例 #11
0
ファイル: HTML.php プロジェクト: JSreactor/MarketCrater.com
 public function __construct()
 {
     parent::__construct();
     $this->_settings['label']['width'] = 'full';
     $this->_settings['default']['group'] = 'primary';
     $this->_settings['default']['type'] = 'rte';
     $this->_settings['default']['use_merge_tags'] = array('include' => array('calcs'), 'exclude' => array('form', 'fields'));
     $this->_nicename = __('HTML', 'ninja-forms');
     add_filter('nf_sub_hidden_field_types', array($this, 'hide_field_type'));
 }
コード例 #12
0
 public function __construct()
 {
     parent::__construct();
     $this->_nicename = __('Anti-Spam', 'ninja-forms');
     // Rename Label setting to Question
     $this->_settings['label']['label'] = __('Question', 'ninja-forms');
     $this->_settings['label_pos']['label'] = __('Question Position', 'ninja-forms');
     // Manually set Field Key and stop tracking.
     $this->_settings['key']['value'] = 'spam';
     $this->_settings['manual_key']['value'] = TRUE;
     // Default Required setting to TRUE and hide setting.
     $this->_settings['required']['value'] = 1;
     $this->_settings['required']['group'] = '';
     add_filter('nf_sub_hidden_field_types', array($this, 'hide_field_type'));
 }
コード例 #13
0
 public function __construct()
 {
     parent::__construct();
     $this->_nicename = __('Password', 'ninja-forms');
 }
コード例 #14
0
 public function __construct()
 {
     parent::__construct();
     $this->_nicename = __('Textbox', 'ninja-forms');
 }
コード例 #15
0
ファイル: Checkbox.php プロジェクト: kjohnson/3.0-commits-io
 public function __construct()
 {
     parent::__construct();
     $this->_nicename = __('Checkbox', 'ninja-forms');
     $this->_settings['label_pos']['value'] = 'right';
 }
コード例 #16
0
ファイル: Product.php プロジェクト: idies/escience-2016-wp
 public function __construct()
 {
     parent::__construct();
     $this->_nicename = __('Product', 'ninja-forms');
     add_filter('ninja_forms_merge_tag_value_product', array($this, 'merge_tag_value'), 10, 2);
 }
コード例 #17
0
 public function __construct()
 {
     parent::__construct();
     $this->_nicename = __('Credit Card Expiration', 'ninja-forms');
     add_filter('nf_sub_hidden_field_types', array($this, 'hide_field_type'));
 }
コード例 #18
0
ファイル: Textbox.php プロジェクト: idies/escience-2016-wp
 public function __construct()
 {
     parent::__construct();
     $this->_nicename = __('Single Line Text', 'ninja-forms');
 }