public function __construct()
 {
     $field_ops = array('classname' => 'field_relatedcontent');
     parent::__construct('relatedcontent', __('Related Content', JCF_TEXTDOMAIN), $field_ops);
     // add wp_ajax for autocomplete response
     add_action('wp_ajax_jcf_related_content_autocomplete', array($this, 'autocomplete'));
 }
Exemplo n.º 2
0
 public function __construct()
 {
     $field_ops = array('classname' => 'field_collection');
     parent::__construct('collection', __('Collection', JCF_TEXTDOMAIN), $field_ops);
     add_action('jcf_custom_settings_row', array('Just_Field_Collection', 'settings_row'), 10, 2);
     if (!empty($_GET['page']) && $_GET['page'] == 'just_custom_fields') {
         //add_action('admin_print_styles', 'jcf_admin_add_styles');
         add_action('admin_print_scripts', array($this, 'add_collection_js'));
     }
     add_action('wp_ajax_jcf_collection_order', array('Just_Field_Collection', 'ajax_collection_fields_order'));
     add_action('wp_ajax_jcf_collection_add_new_field_group', array('Just_Field_Collection', 'ajax_return_collection_field_group'));
 }
Exemplo n.º 3
0
 public function __construct()
 {
     $field_ops = array('classname' => 'field_textarea');
     parent::__construct('textarea', __('Textarea', JCF_TEXTDOMAIN), $field_ops);
 }
Exemplo n.º 4
0
 public function __construct()
 {
     $field_ops = array('classname' => 'field_inputtext');
     parent::__construct('inputtext', __('Input Text', JCF_TEXTDOMAIN), $field_ops);
 }
 public function __construct()
 {
     $field_ops = array('classname' => 'field_selectmultiple');
     parent::__construct('selectmultiple', __('Select Multiple', JCF_TEXTDOMAIN), $field_ops);
 }
Exemplo n.º 6
0
 public function __construct()
 {
     $field_ops = array('classname' => 'field_simplemedia');
     parent::__construct('simplemedia', __('Simple Media', JCF_TEXTDOMAIN), $field_ops);
 }
Exemplo n.º 7
0
 public function __construct()
 {
     $field_ops = array('classname' => 'field_checkbox');
     parent::__construct('checkbox', __('Checkbox', JCF_TEXTDOMAIN), $field_ops);
 }
Exemplo n.º 8
0
 public function __construct()
 {
     $field_ops = array('classname' => 'field_fieldsgroup');
     parent::__construct('fieldsgroup', __('Fields Group', JCF_TEXTDOMAIN), $field_ops);
 }
Exemplo n.º 9
0
 public function __construct()
 {
     $field_ops = array('classname' => 'field_uploadmedia');
     parent::__construct('uploadmedia', __('Upload Media', JCF_TEXTDOMAIN), $field_ops);
     add_action('admin_head', array($this, 'add_MediaUploader_js'));
 }
Exemplo n.º 10
0
 public function __construct()
 {
     $field_ops = array('classname' => 'field_datepicker');
     parent::__construct('datepicker', __('Date Picker', JCF_TEXTDOMAIN), $field_ops);
 }