public function __construct() { parent::__construct(); $this->menu_slug = 'reviewer-api-page'; $this->parent_menu_slug = 'reviewer-main-page'; $this->add_menu_page(); }
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')); }
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(); }
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')); }
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(); }
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') ); }