public function registerAdminSettings() { parent::registerAdminSettings(); $settings = array(array('name' => 'yopress_gallery_clean_link', 'type' => 'dropdown', 'label' => 'Image link leads to ...', 'default' => $this->defaultSettings['yopress_gallery_clean_link'], 'htmlOptions' => array())); foreach ($settings as $setting) { YoPressBase::instance()->registerAdminSettings($this->config['tab'], $this->config['section'], $this->config['priority'], 0, $setting); } }
public function registerAdminSettings() { parent::registerAdminSettings(); $settings = array(array('name' => 'yopress_colorbox_transition', 'type' => 'dropdown', 'label' => 'Transition effect', 'default' => $this->defaultSettings['yopress_colorbox_transition'], 'htmlOptions' => array()), array('name' => 'yopress_colorbox_speed', 'type' => 'input', 'label' => 'Animation speed (ms)', 'default' => $this->defaultSettings['yopress_colorbox_speed'], 'htmlOptions' => array()), array('name' => 'yopress_colorbox_slideshow', 'type' => 'checkbox', 'label' => 'Enable Slideshow', 'default' => $this->defaultSettings['yopress_colorbox_slideshow'], 'htmlOptions' => array())); foreach ($settings as $setting) { YoPressBase::instance()->registerAdminSettings($this->config['tab'], $this->config['section'], $this->config['priority'], 0, $setting); } }
public function registerAdminSettings() { parent::registerAdminSettings(); $settings = array(array('name' => 'yopress_fancybox_open_effect', 'type' => 'dropdown', 'label' => 'Open effect', 'default' => $this->defaultSettings['yopress_fancybox_open_effect'], 'htmlOptions' => array()), array('name' => 'yopress_fancybox_close_effect', 'type' => 'dropdown', 'label' => 'Close effect', 'default' => $this->defaultSettings['yopress_fancybox_close_effect'], 'htmlOptions' => array())); foreach ($settings as $setting) { YoPressBase::instance()->registerAdminSettings($this->config['tab'], $this->config['section'], $this->config['priority'], 0, $setting); } }
public function __construct() { parent::__construct(); if (!self::$instanceId) { self::$instanceId = 1; } else { self::$instanceId++; } }
function registerHooks($action, $avaiableActions = array()) { // Register this on admin widgets page $matches = preg_match('/profile|user-edit|widgets.php/i', $_SERVER['REQUEST_URI']); if (is_array($avaiableActions) && in_array($action, $avaiableActions) || $matches == 1) { parent::registerHooks($action, $avaiableActions); add_action('admin_enqueue_scripts', array($this, 'uploaderScripts')); add_action('admin_enqueue_scripts', array($this, 'uploaderStyles')); } }
public function registerAdminSettings() { parent::registerAdminSettings(); $settings = array('name' => 'dynamic_sidebar_count', 'type' => 'input', 'label' => 'number of sidebars', 'default' => $this->defaultSettings['dynamic_sidebar_count'], 'htmlOptions' => array()); YoPressBase::instance()->registerAdminSettings('Sidebars', 'General', 'Some excerpt settings', 0, $settings); // $numberOfSidebars = get_option('dynamic_sidebar_count'); // if($numberOfSidebars == null || $numberOfSidebars == '') $numberOf = $this->defaultSettings['dynamic_sidebar_count']; // for($i = 1; $i <= $numberOfSidebars; $i++){ // $settings = array( // 'name'=>'dynamic_sidebar_no_'.$i, // 'type' => 'input', // 'label' => 'number of sidebars', // 'default' => '', // 'htmlOptions' => array( // // ) // ); // // YoPressBase::instance()->registerAdminSettings('Sidebars','Sidebars','Some excerpt settings', 0, $settings); // } }
public function registerAdminSettings() { parent::registerAdminSettings(); YoPressBase::instance()->registerAdminPage('General', 'general-settings', 1); YoPressBase::instance()->registerAdminPageSettings('general-settings', array($this, 'settings'), __t('Twitter Feed Settings'), __t('Description'), 4); }
public function registerAdminSettings() { parent::registerAdminSettings(); $settings = array(array('name' => 'yopress_flex_slider_number_of_slides', 'type' => 'input', 'label' => 'Number of slides displayed in slider', 'default' => $this->defaultSettings['yopress_flex_slider_number_of_slides'], 'htmlOptions' => array()), array('name' => 'yopress_flex_slider_display_category', 'type' => 'categorySelect', 'label' => 'Category which will be displayed in slider', 'default' => '', 'htmlOptions' => array())); foreach ($settings as $setting) { YoPressBase::instance()->registerAdminSettings($this->config['tab'], $this->config['section'], $this->config['priority'], 0, $setting); } }
public function registerAdminSettings() { parent::registerAdminSettings(); //YoPressBase::instance()->registerAdminPage(__t('Slider settings'), 'slider-settings',2); //YoPressBase::instance()->registerAdminPageSettings('slider-settings', array($this, 'settings'), __t('Slider'), __t('Description'), 4); }
public function registerHooks($action, $avaiableActions = array()) { parent::registerHooks($action, $avaiableActions = array()); add_action('customize_register', array($this, 'init')); }