コード例 #1
0
 public function __construct()
 {
     parent::__construct();
     $this->menu_slug = 'reviewer-api-page';
     $this->parent_menu_slug = 'reviewer-main-page';
     $this->add_menu_page();
 }
コード例 #2
0
 public static function get_instance()
 {
     // If the single instance hasn't been set, set it now.
     if (null == self::$instance) {
         self::$instance = new self();
     }
     return self::$instance;
 }
コード例 #3
0
 public function __construct()
 {
     parent::__construct();
     $this->menu_slug = 'reviewer-users-ratings-page';
     $this->parent_menu_slug = 'reviewer-main-page';
     //$this->templates_option = RWP_Reviewer::get_option( 'rwp_templates' );
     $this->add_menu_page();
     // Localize
     add_action('admin_enqueue_scripts', array($this, 'localize_script'));
 }
コード例 #4
0
 public function __construct()
 {
     parent::__construct();
     $this->set_colors_palettes();
     $this->template_fields = RWP_Template_Manager_Page::get_template_fields();
     $this->menu_slug = 'reviewer-template-manager-page';
     $this->option_name = 'rwp_templates';
     $this->option_value = RWP_Reviewer::get_option($this->option_name);
     $this->add_menu_page();
     $this->register_page_fields();
     $this->add_fix_image_uploading();
 }
コード例 #5
0
 public function __construct()
 {
     parent::__construct();
     $this->preferences_fields = RWP_Preferences_Page::get_preferences_fields();
     $this->menu_slug = 'reviewer-preferences-page';
     $this->parent_menu_slug = 'reviewer-main-page';
     $this->option_name = 'rwp_preferences';
     $this->option_value = RWP_Reviewer::get_option($this->option_name);
     $this->add_menu_page();
     $this->register_page_fields();
     add_action('admin_enqueue_scripts', array($this, 'localize_script'));
 }
コード例 #6
0
 public function __construct()
 {
     parent::__construct();
     global $current_user;
     get_currentuserinfo();
     $this->user = $current_user;
     $this->set_support_fields();
     $this->menu_slug = 'reviewer-support-page';
     $this->parent_menu_slug = 'reviewer-main-page';
     $this->option_name = 'rwp_support';
     $this->option_value = RWP_Reviewer::get_option($this->option_name);
     $this->add_menu_page();
     $this->register_page_fields();
 }
コード例 #7
0
 public function __construct()
 {
     parent::__construct();
     if (isset($_GET['rwp_file'])) {
         $this->download($_GET['rwp_file']);
     }
     $this->set_io_fields();
     $this->menu_slug = 'reviewer-io-page';
     $this->parent_menu_slug = 'reviewer-main-page';
     $this->option_name = 'rwp_io';
     $this->option_value = RWP_Reviewer::get_option($this->option_name);
     if (empty($this->option_value)) {
         add_option($this->option_name, array());
     }
     $this->add_menu_page();
     $this->register_page_fields();
     //add_action( 'admin_enqueue_scripts', array( $this, 'localize_script') );
 }