Exemplo n.º 1
3
 public function __construct($manager, $id, $args = array())
 {
     parent::__construct($manager, $id, $args);
     $this->remove_tab('uploaded');
     $this->add_tab('medialibrary', __('Media Library'), array($this, 'tab_medialibrary'));
 }
Exemplo n.º 2
0
 /**
  * Constructor.
  *
  * If $args['settings'] is not defined, use the $id as the setting ID.
  *
  * @since 3.4.0
  * @uses WP_Customize_Upload_Control::__construct()
  *
  * @param WP_Customize_Manager $manager
  * @param string $id
  * @param array $args
  */
 public function __construct($manager, $id, $args)
 {
     $this->statuses = array('' => __('No Image', ''));
     parent::__construct($manager, $id, $args);
     $this->add_tab('upload-new', __('Upload New', 'Theme Name'), array($this, 'tab_upload_new'));
     $this->add_tab('uploaded', __('Uploaded', 'Theme Name'), array($this, 'tab_uploaded'));
     // Early priority to occur before $this->manager->prepare_controls();
     add_action('customize_controls_init', array($this, 'prepare_control'), 5);
 }
 /**
  * Create a new Voce Image Control
  */
 public function __construct($manager, $id, $args)
 {
     parent::__construct($manager, $id, $args);
     $output_formats = array('src', 'id');
     $this->output_format = 'src';
     if (!empty($args['output_format']) && in_array($args['output_format'], $output_formats)) {
         $this->output_format = $args['output_format'];
     }
     $this->remove_tab('upload-new');
     $this->remove_tab('uploaded');
 }
 /**
  * Constructor.
  *
  * If $args['settings'] is not defined, use the $id as the setting ID.
  *
  * @uses   WP_Customize_Image_Control::__construct()
  * @param  WP_Customize_Manager $manager
  * @param  string $id
  * @param  array $args
  * @since  1.0.0
  */
 public function __construct($manager, $id, $args)
 {
     parent::__construct($manager, $id, $args);
     $this->theme = reach_get_theme();
     /**
      * Usually, this control will be instantiated during the customize_register
      * event, so if that is the current filter, call the method directly.
      */
     if (current_filter() == 'customize_register') {
         $this->customize_register($manager);
     } elseif (!did_action('customize_register')) {
         add_action('customize_register', array($this, 'customize_register'));
     } else {
         wp_die(__('Reach_Customizer_Retina_Image_Control must be instantiated before or during the customize_register action.', 'reach'));
     }
     add_action('customize_save', array($this, 'customize_save'));
     add_action('customize_save_after', array($this, 'customize_save_after'));
 }
 /**
  * Constructor.
  *
  * @since 4.5.0
  * @access public
  *
  * @param WP_Customize_Manager $manager Customizer bootstrap instance.
  * @param string               $id      Control ID.
  * @param array                $args    Optional. Arguments to override class property defaults.
  */
 public function __construct($manager, $id, $args = array())
 {
     parent::__construct($manager, $id, $args);
     $this->button_labels = array('select' => __('Select logo'), 'change' => __('Change logo'), 'remove' => __('Remove'), 'default' => __('Default'), 'placeholder' => __('No logo selected'), 'frame_title' => __('Select logo'), 'frame_button' => __('Choose logo'));
 }
 public function __construct($manager)
 {
     parent::__construct($manager, 'digitalstore_theme_options[logo_image]', array('label' => __('Logo Image'), 'section' => 'strings', 'context' => 'custom-logo-image', 'removed' => 'removed', 'statuses' => array('' => __('No Image', 'edd-digitalstore'), 'removed' => __('Removed', 'edd-digitalstore'))));
 }
 public function __construct($manager)
 {
     parent::__construct($manager, 'header_image', array('label' => __('Header Image'), 'section' => 'header', 'context' => 'custom-header', 'removed' => 'remove-header', 'get_url' => 'get_header_image', 'statuses' => array('' => __('Default'), 'remove-header' => __('No Image'), 'random-default-image' => __('Random Default Image'), 'random-uploaded-image' => __('Random Uploaded Image'))));
     $this->add_tab('default', __('Default'), array($this, 'tab_default_headers'));
 }
 public function __construct($manager, $id, $args)
 {
     $this->get_url = array($this, 'get_img_url');
     if (!empty($id)) {
         $this->context = $id;
     }
     parent::__construct($manager, $id, $args);
 }
 /**
  * Constructor.
  *
  * @since 3.4.0
  * @uses WP_Customize_Image_Control::__construct()
  *
  * @param WP_Customize_Manager $manager Customizer bootstrap instance.
  */
 public function __construct($manager)
 {
     parent::__construct($manager, 'background_image', array('label' => __('Background Image'), 'section' => 'background_image'));
 }
 /**
  * Constructor.
  *
  * @since 3.4.0
  *
  * @param WP_Customize_Manager $manager Customizer bootstrap instance.
  */
 public function __construct($manager)
 {
     parent::__construct($manager, 'header_image', array('label' => __('Header Image'), 'settings' => array('default' => 'header_image', 'data' => 'header_image_data'), 'section' => 'header_image', 'removed' => 'remove-header', 'get_url' => 'get_header_image'));
 }
Exemplo n.º 11
0
 public function __construct($manager, $id, $args)
 {
     $this->get_url = array($this, 'get_img_url');
     parent::__construct($manager, $id, $args);
 }
Exemplo n.º 12
0
 public function __construct($manager, $id, $args = array())
 {
     parent::__construct($manager, $id, $args);
     $this->add_tab('medialibrary', esc_attr__('Media Library', 'converio'), array($this, 'tab_medialibrary'));
 }
Exemplo n.º 13
0
 public function __construct($manager, $id, $args)
 {
     parent::__construct($manager, $id, $args);
     $this->add_tab('tab_defaults', 'default', array($this, 'tab_defaults'));
 }
Exemplo n.º 14
0
 /**
  * Constructor.
  *
  * @since 3.4.0
  * @uses WP_Customize_Image_Control::__construct()
  *
  * @param WP_Customize_Manager $manager
  */
 public function __construct($manager, $id, $args = array())
 {
     parent::__construct($manager, $id, $args);
 }
 /**
  * Constructor
  */
 function __construct($manager, $id, $args)
 {
     // Just calling the parent constructor here
     parent::__construct($manager, $id, $args);
 }
 /**
  * Constructor.
  *
  * @since 3.4.0
  * @uses WP_Customize_Image_Control::__construct()
  * @uses WP_Customize_Image_Control::add_tab()
  *
  * @param WP_Customize_Manager $manager
  */
 public function __construct($manager)
 {
     parent::__construct($manager, 'header_image', array('label' => __('Header Image'), 'settings' => array('default' => 'header_image', 'data' => 'header_image_data'), 'section' => 'header_image', 'context' => 'custom-header', 'removed' => 'remove-header', 'get_url' => 'get_header_image', 'statuses' => array('' => __('Default'), 'remove-header' => __('No Image'), 'random-default-image' => __('Random Default Image'), 'random-uploaded-image' => __('Random Uploaded Image'))));
     // Remove the upload tab.
     $this->remove_tab('upload-new');
 }
Exemplo n.º 17
-1
 /**
  * Constructor.
  *
  * If $args['settings'] is not defined, use the $id as the setting ID.
  *
  * @since 3.4.0
  * @uses WP_Customize_Upload_Control::__construct()
  *
  * @param WP_Customize_Manager $manager
  * @param string $id
  * @param array $args
  */
 public function __construct($manager, $id, $args)
 {
     $this->statuses = array('' => __('No Image', 'tc-profiles'));
     parent::__construct($manager, $id, $args);
     $this->add_tab('upload-new', __('Upload New', 'tc-profiles'), array($this, 'tab_upload_new'));
     $this->add_tab('uploaded', __('Uploaded', 'tc-profiles'), array($this, 'tab_uploaded'));
     if ($this->setting->default) {
         $this->add_tab('default', __('Default', 'tc-profiles'), array($this, 'tab_default_background'));
     }
     // Early priority to occur before $this->manager->prepare_controls();
     add_action('customize_controls_init', array($this, 'prepare_control'), 5);
 }