示例#1
0
 function create_admin_menu()
 {
     add_menu_page('Jobs Shop', 'Jobs Shop', 'manage_options', 'jobsshop', array($this, 'create_admin_page'), '', 33);
     add_submenu_page('jobsshop', 'Snap Categories', 'Categories', 'manage_options', 'edit-tags.php?taxonomy=snap_category');
     add_submenu_page('jobsshop', 'Configuration', 'Configuration', 'manage_options', 'configuration', array($this, 'create_configuration_page'));
     add_submenu_page('jobsshop', 'Payment Options', 'Payment Options', 'manage_options', 'payment-options', array($this, 'create_payment_option_page'));
 }
 /**
  * Registers the Attendees admin page
  */
 public function attendees_page_register()
 {
     $this->attendees_page = add_submenu_page(null, 'Attendee list', 'Attendee list', 'edit_posts', self::$attendees_slug, array($this, 'attendees_page_inside'));
     add_action('admin_enqueue_scripts', array($this, 'attendees_page_load_css_js'));
     add_action('admin_enqueue_scripts', array($this, 'attendees_page_load_pointers'));
     add_action('load-' . $this->attendees_page, array($this, 'attendees_page_screen_setup'));
 }
 /**
  * Loads each admin page
  *
  * @return    void
  *
  * @access    public
  * @since     2.0
  */
 public function add_page()
 {
     /* loop through options */
     foreach ((array) $this->options as $option) {
         /* loop through pages */
         foreach ((array) $this->get_pages($option) as $page) {
             /* load page in WP top level menu */
             if (!isset($page['parent_slug']) || empty($page['parent_slug'])) {
                 $page_hook = add_menu_page($page['page_title'], $page['menu_title'], $page['capability'], $page['menu_slug'], array(&$this, 'display_page'), $page['icon_url'], $page['position']);
                 /* load page in WP sub menu */
             } else {
                 $page_hook = add_submenu_page($page['parent_slug'], $page['page_title'], $page['menu_title'], $page['capability'], $page['menu_slug'], array(&$this, 'display_page'));
             }
             /* only load if not a hidden page */
             if (!isset($page['hidden_page'])) {
                 /* associate $page_hook with page id */
                 $this->page_hook[$page['id']] = $page_hook;
                 /* add scripts */
                 add_action('admin_print_scripts-' . $page_hook, array(&$this, 'scripts'));
                 /* add styles */
                 add_action('admin_print_styles-' . $page_hook, array(&$this, 'styles'));
                 /* add contextual help */
                 add_action('load-' . $page_hook, array(&$this, 'help'));
             }
         }
     }
     return false;
 }
示例#4
0
function gocardless_admin_menu_option()
{
    if (function_exists('add_menu_page') && function_exists('add_submenu_page')) {
        add_menu_page('GoCardless', 'GoCardless', 'manage_options', 'gocardless_admin', 'gocardless_admin');
        add_submenu_page('gocardless_admin', 'GoCardless Setup', 'Setup', 'manage_options', 'gocardless_admin_setup', 'gocardless_admin_setup');
    }
}
 /**
  * Initialise admin menu items
  */
 public static function init_admin_menu()
 {
     add_submenu_page('livefyre_apps', 'General', 'General', "manage_options", 'livefyre_apps', array('Livefyre_Apps_Admin', 'menu_general'));
     add_menu_page('Livefyre Apps', 'Livefyre Apps', 'manage_options', 'livefyre_apps', array('Livefyre_Apps_Admin', 'menu_general'), LFAPPS__PLUGIN_URL . "assets/img/livefyre-icon_x16.png");
     //community authentication page (invisible and only handles data sent back from livefyre.com)
     add_submenu_page(null, 'Livefyre', 'Livefyre', "manage_options", 'livefyre', array('Livefyre_Apps_Admin', 'menu_general'));
 }
 function admin_menu()
 {
     // validate
     if (!$this->parent->is_field_unlocked('options_page')) {
         return true;
     }
     $parent_slug = 'acf-options';
     $parent_title = __('Options', 'acf');
     // set parent slug
     $custom = apply_filters('acf_register_options_page', array());
     if (!empty($custom)) {
         $parent_slug = $custom[0]['slug'];
         $parent_title = $custom[0]['title'];
     }
     // Parent
     $parent_page = add_menu_page($parent_title, __('Options', 'acf'), 'edit_posts', $parent_slug, array($this, 'html'));
     // some fields require js + css
     add_action('admin_print_scripts-' . $parent_page, array($this, 'admin_print_scripts'));
     add_action('admin_print_styles-' . $parent_page, array($this, 'admin_print_styles'));
     // Add admin head
     add_action('admin_head-' . $parent_page, array($this, 'admin_head'));
     add_action('admin_footer-' . $parent_page, array($this, 'admin_footer'));
     if (!empty($custom)) {
         foreach ($custom as $c) {
             $child_page = add_submenu_page($parent_slug, $c['title'], $c['title'], 'edit_posts', $c['slug'], array($this, 'html'));
             // some fields require js + css
             add_action('admin_print_scripts-' . $child_page, array($this, 'admin_print_scripts'));
             add_action('admin_print_styles-' . $child_page, array($this, 'admin_print_styles'));
             // Add admin head
             add_action('admin_head-' . $child_page, array($this, 'admin_head'));
             add_action('admin_footer-' . $child_page, array($this, 'admin_footer'));
         }
     }
 }
 function ewww_ngg_bulk_menu()
 {
     if (!defined('NGGFOLDER')) {
         return;
     }
     add_submenu_page(NGGFOLDER, esc_html__('Bulk Optimize', EWWW_IMAGE_OPTIMIZER_DOMAIN), esc_html__('Bulk Optimize', EWWW_IMAGE_OPTIMIZER_DOMAIN), apply_filters('ewww_image_optimizer_manual_permissions', ''), 'ewww-ngg-bulk', array(&$this, 'ewww_ngg_bulk_preview'));
 }
示例#8
0
 /**
  * Adds the roles page to the admin.
  *
  * @since  1.0.0
  * @access public
  * @return void
  */
 public function add_admin_page()
 {
     // The "Roles" page should be shown for anyone that has the 'list_roles', 'edit_roles', or
     // 'delete_roles' caps, so we're checking against all three.
     $edit_roles_cap = 'list_roles';
     // If the current user can 'edit_roles'.
     if (current_user_can('edit_roles')) {
         $edit_roles_cap = 'edit_roles';
     } elseif (current_user_can('delete_roles')) {
         $edit_roles_cap = 'delete_roles';
     }
     // Get the page title.
     $title = esc_html__('Roles', 'members');
     if (isset($_GET['action']) && 'edit' === $_GET['action'] && isset($_GET['role'])) {
         $title = esc_html__('Edit Role', 'members');
     }
     // Create the Manage Roles page.
     $this->page = add_submenu_page('users.php', $title, esc_html__('Roles', 'members'), $edit_roles_cap, 'roles', array($this, 'page'));
     // Let's roll if we have a page.
     if ($this->page) {
         // If viewing the edit role page.
         if (isset($_REQUEST['action']) && 'edit' === $_REQUEST['action'] && current_user_can('edit_roles')) {
             $this->page_obj = new Members_Admin_Role_Edit();
         } else {
             $this->page_obj = new Members_Admin_Roles();
         }
         // Load actions.
         add_action("load-{$this->page}", array($this, 'load'));
         // Load scripts/styles.
         add_action('admin_enqueue_scripts', array($this, 'enqueue'));
     }
 }
示例#9
0
 /**
  * Add options page   
  */
 public function add_settings_page()
 {
     global $WCMp;
     add_submenu_page('woocommerce', __('WCMp', $WCMp->text_domain), __('WCMp', $WCMp->text_domain), 'manage_woocommerce', 'wcmp-setting-admin', array($this, 'create_wcmp_settings'), $WCMp->plugin_url . 'assets/images/dualcube.png');
     $this->tabs = $this->get_wcmp_settings_tabs();
     $this->tabsection_general = $this->get_wcmp_settings_tabsections_general();
 }
示例#10
0
 /**
  * Add a hidden upload page.
  *
  * There is no need to access it directly.
  *
  * @since 4.3.0
  */
 public function admin_menu_upload_site_icon()
 {
     $hook = add_submenu_page(null, __('Site Icon'), __('Site Icon'), 'manage_options', 'site-icon', array($this, 'upload_site_icon_page'));
     add_action("load-{$hook}", array($this, 'add_upload_settings'));
     add_action("load-{$hook}", array($this, 'maybe_skip_cropping'));
     add_action("admin_print_scripts-{$hook}", array($this, 'enqueue_scripts'));
 }
/**
 * Generate WP Admin Menu
 * @return menu
 */
function wpmanga_adminmenu()
{
    if (current_user_can('edit_posts') || current_user_can('edit_pages')) {
        // Projects
        add_menu_page('Projects', 'Projects', 'edit_posts', 'manga', 'wpmanga_listProjects');
        add_submenu_page('manga', 'Add/Edit/Delete Project', '-- Add/Edit/Delete', 'edit_posts', 'manga/project', 'wpmanga_dataProject');
        // Volume Covers
        add_submenu_page('manga', 'Volume Covers', 'Volume Covers', 'edit_posts', 'manga/list/volume', 'wpmanga_listCovers');
        add_submenu_page('manga', 'Add/Edit/Delete Volume Cover', '-- Add/Edit/Delete', 'edit_posts', 'manga/volume', 'wpmanga_dataCover');
        // Releases
        add_submenu_page('manga', 'Releases', 'Releases', 'edit_posts', 'manga/list/release', 'wpmanga_listReleases');
        add_submenu_page('manga', 'Add/Edit/Delete Release', '-- Add/Edit/Delete', 'edit_posts', 'manga/release', 'wpmanga_dataRelease');
        // Miscellaneous Pages
        if (is_admin()) {
            add_submenu_page('manga', 'WP Manga Settings', 'Settings', 'manage_options', 'manga/settings', 'wpmanga_settings');
        }
        add_submenu_page('manga', 'About', 'About', 'edit_posts', 'manga/about', 'wpmanga_about');
        // Load Required JavaScript and StyleSheet
        if (preg_match("/(manga\\/project|manga\\/volume)/i", $_GET['page'])) {
            wp_enqueue_style('thickbox');
            wp_enqueue_script('jquery');
            wp_enqueue_script('media-upload');
            wp_enqueue_script('pimage-upload', plugin_sURL() . 'admin/assets/media-uploader.js', array('jquery', 'media-upload', 'thickbox'));
        }
        if (preg_match("/(manga\\/release)/i", $_GET['page'])) {
            wp_enqueue_script('jquery');
            wp_enqueue_script('jquery-ui', plugin_sURL() . 'admin/assets/jquery-ui.custom.js', array('jquery'));
            wp_enqueue_script('datetime', plugin_sURL() . 'admin/assets/jquery-ui.datetime.js', array('jquery'));
            wp_enqueue_style('datetime', plugin_sURL() . 'admin/assets/jquery-ui.datetime.css');
            wp_enqueue_style('jquery-ui', plugin_sURL() . 'admin/assets/jquery-ui.custom.css');
        }
    }
}
 /**
  * Add MultilingualPress network settings and module page.
  *
  * @return void
  */
 public function register_settings_page()
 {
     $view = new Mlp_General_Settings_View($this->model);
     // Register options page
     $this->page_hook = add_submenu_page('settings.php', __('MultilingualPress', 'multilingual-press'), __('MultilingualPress', 'multilingual-press'), 'manage_network_options', 'mlp', array($view, 'render_page'));
     $this->assets->provide(array('mlp_admin_js', 'mlp_admin_css'));
 }
示例#13
0
 public function register_my_custom_menu_page()
 {
     add_menu_page(
         'RJ Quickcharts',
         'RJ Quickcharts',
         'read',
         'rj-quickcharts/admin/rjqc-admin.php',
         '',
         '',
         '26.1'
     );
     add_submenu_page(
         'rj-quickcharts/admin/rjqc-admin.php',
         'My Charts',
         'My Charts',
         'read',
         'rj-quickcharts/admin/rjqc-admin.php'
     );
     add_submenu_page(
         'rj-quickcharts/admin/rjqc-admin.php',
         'New Chart',
         'New Chart',
         'read',
         'rj-quickcharts/admin/rjqc-admin-new.php'
     );
 }
示例#14
0
 function register_brainstorm_menu()
 {
     if (!current_user_can('manage_options')) {
         return false;
     }
     global $submenu;
     if (defined('BSF_MENU_POS')) {
         $required_place = BSF_MENU_POS;
     } else {
         $required_place = 200;
     }
     $place = bsf_get_free_menu_position($required_place, 1);
     $page = add_menu_page('Ultimate', 'Ultimate', 'administrator', 'ultimate-dashboard', array($this, 'load_modules'), '', $place);
     //	Add sub-menu for OPN if OPN in installed - {One Page Navigator}.
     if (defined('OPN_VERSION')) {
         if (defined('BSF_MENU_POS')) {
             $required_place = BSF_MENU_POS;
         } else {
             $required_place = 200;
         }
         $place = bsf_get_free_menu_position($required_place, 1);
         $page = add_menu_page('OPN', 'OPN', 'administrator', 'opn-settings', array($this, 'load_opn'), 'dashicons-admin-generic', $place);
     }
     $icon_manager_page = add_submenu_page("ultimate-dashboard", __("Icon Manager", "ultimate_vc"), __("Icon Manager", "ultimate_vc"), "administrator", "font-icon-Manager", array($this, 'ultimate_icon_manager_menu'));
     $AIO_Icon_Manager = new AIO_Icon_Manager();
     add_action('admin_print_scripts-' . $icon_manager_page, array($AIO_Icon_Manager, 'admin_scripts'));
     $Ultimate_Google_Font_Manager = new Ultimate_Google_Font_Manager();
     $google_font_manager_page = add_submenu_page("ultimate-dashboard", __("Google Font Manager", "ultimate_vc"), __("Google Fonts", "ultimate_vc"), "administrator", "ultimate-font-manager", array($Ultimate_Google_Font_Manager, 'ultimate_font_manager_dashboard'));
     add_action('admin_print_scripts-' . $google_font_manager_page, array($Ultimate_Google_Font_Manager, 'admin_google_font_scripts'));
     // must be at end of all sub menu
     add_submenu_page("ultimate-dashboard", __("About Ultimate", "ultimate_vc"), __("About Ultimate", "ultimate_vc"), "administrator", "about-ultimate", array($this, 'load_about'));
     $submenu['ultimate-dashboard'][0][0] = __("Modules", "ultimate_vc");
 }
function bwg_options_panel()
{
    $galleries_page = add_menu_page('Photo Gallery', 'Photo Gallery', 'manage_options', 'galleries_bwg', 'bwg_gallery', WD_BWG_URL . '/images/icons/best-wordpress-gallery.png');
    $galleries_page = add_submenu_page('galleries_bwg', __('Add Galleries/Images', 'bwg_back'), __('Add Galleries/Images', 'bwg_back'), 'manage_options', 'galleries_bwg', 'bwg_gallery');
    add_action('admin_print_styles-' . $galleries_page, 'bwg_styles');
    add_action('admin_print_scripts-' . $galleries_page, 'bwg_scripts');
    add_action('load-' . $galleries_page, 'bwg_add_galleries_per_page_option');
    $albums_page = add_submenu_page('galleries_bwg', __('Albums', 'bwg_back'), __('Albums', 'bwg_back'), 'manage_options', 'albums_bwg', 'bwg_gallery');
    add_action('admin_print_styles-' . $albums_page, 'bwg_styles');
    add_action('admin_print_scripts-' . $albums_page, 'bwg_scripts');
    add_action('load-' . $albums_page, 'bwg_add_albums_per_page_option');
    $tags_page = add_submenu_page('galleries_bwg', __('Tags', 'bwg_back'), __('Tags', 'bwg_back'), 'manage_options', 'tags_bwg', 'bwg_gallery');
    add_action('admin_print_styles-' . $tags_page, 'bwg_styles');
    add_action('admin_print_scripts-' . $tags_page, 'bwg_scripts');
    add_action('load-' . $tags_page, 'bwg_add_tags_per_page_option');
    $options_page = add_submenu_page('galleries_bwg', __('Options', 'bwg_back'), __('Options', 'bwg_back'), 'manage_options', 'options_bwg', 'bwg_gallery');
    add_action('admin_print_styles-' . $options_page, 'bwg_styles');
    add_action('admin_print_scripts-' . $options_page, 'bwg_options_scripts');
    $themes_page = add_submenu_page('galleries_bwg', __('Themes', 'bwg_back'), __('Themes', 'bwg_back'), 'manage_options', 'themes_bwg', 'bwg_gallery');
    add_action('admin_print_styles-' . $themes_page, 'bwg_styles');
    add_action('admin_print_scripts-' . $themes_page, 'bwg_options_scripts');
    add_action('load-' . $themes_page, 'bwg_add_themes_per_page_option');
    add_submenu_page('galleries_bwg', __('Generate Shortcode', 'bwg_back'), __('Generate Shortcode', 'bwg_back'), 'manage_options', 'BWGShortcode', 'bwg_gallery');
    $licensing_plugins_page = add_submenu_page('galleries_bwg', __('Get Pro', 'bwg_back'), __('Get Pro', 'bwg_back'), 'manage_options', 'licensing_bwg', 'bwg_gallery');
    add_action('admin_print_styles-' . $licensing_plugins_page, 'bwg_licensing_styles');
    add_submenu_page('galleries_bwg', __('Featured Plugins', 'bwg_back'), __('Featured Plugins', 'bwg_back'), 'manage_options', 'featured_plugins_bwg', 'bwg_featured');
    add_submenu_page('galleries_bwg', __('Featured Themes', 'bwg_back'), __('Featured Themes', 'bwg_back'), 'manage_options', 'featured_themes_bwg', 'bwg_featured_themes');
    $uninstall_page = add_submenu_page('galleries_bwg', __('Uninstall', 'bwg_back'), __('Uninstall', 'bwg_back'), 'manage_options', 'uninstall_bwg', 'bwg_gallery');
    add_action('admin_print_styles-' . $uninstall_page, 'bwg_styles');
    add_action('admin_print_scripts-' . $uninstall_page, 'bwg_options_scripts');
    add_menu_page('Photo Gallery Add-ons', 'Photo Gallery Add-ons', 'manage_options', 'addons_bwg', 'bwg_addons', WD_BWG_URL . '/addons/images/add-ons-icon.png');
}
示例#16
0
/**
 * Sets up any functionality needed in the admin.
 *
 * @since 0.2.0
 */
function members_admin_setup()
{
    global $members;
    /* Add contextual help to the "Help" tab for the plugin's pages in the admin. */
    add_filter('contextual_help', 'members_admin_contextual_help', 10, 2);
    /* If the role manager feature is active, add its admin pages. */
    if (members_get_setting('role_manager')) {
        /**
         * The "Roles" page should be shown for anyone that has the 'list_roles', 'edit_roles', or 
         * 'delete_roles' caps, so we're checking against all three.
         */
        /* If the current user can 'edit_roles'. */
        if (current_user_can('edit_roles')) {
            $edit_roles_cap = 'edit_roles';
        } elseif (current_user_can('delete_roles')) {
            $edit_roles_cap = 'delete_roles';
        } else {
            $edit_roles_cap = 'list_roles';
        }
        /* Create the Manage Roles page. */
        $members->edit_roles_page = add_submenu_page('users.php', esc_attr__('Roles', 'members'), esc_attr__('Roles', 'members'), $edit_roles_cap, 'roles', 'members_edit_roles_page');
        /* Create the New Role page. */
        $members->new_roles_page = add_submenu_page('users.php', esc_attr__('Add New Role', 'members'), esc_attr__('Add New Role', 'members'), 'create_roles', 'role-new', 'members_new_role_page');
    }
    /* Load post meta boxes on the post editing screen. */
    add_action('load-post.php', 'members_admin_load_post_meta_boxes');
    add_action('load-post-new.php', 'members_admin_load_post_meta_boxes');
    /* Load stylesheets and scripts for our custom admin pages. */
    add_action('admin_enqueue_scripts', 'members_admin_enqueue_style');
    add_action('admin_enqueue_scripts', 'members_admin_enqueue_scripts');
}
/**
 * Adds an admin page to the plugins admin menu dropdown.
 * The page displays instructions to admins to fully activate
 * the Media Vault plugin
 *
 * @since 0.8.5
 */
function mgjp_mv_extra_activation_steps_page()
{
    if (is_multisite() && !is_network_admin()) {
        return;
    }
    add_submenu_page('plugins.php', __('Media Vault Activation Helper', 'media-vault'), __('Media Vault Activation', 'media-vault'), 'install_plugins', 'mgjp-mv-eas', 'mgjp_mv_render_extra_activation_steps_page');
}
示例#18
0
function r_bopenlearn_menu()
{
    add_menu_page('B Open Learn', 'B Open Learn', 'manage_options', __FILE__, 'r_bopenlearn_overview', plugin_dir_url(__FILE__) . '/images/icon.png');
    add_submenu_page(__FILE__, 'Subject Suggestion', 'Subject Suggestion', 'manage_options', __FILE__ . '_suggestion', 'r_bopenlearn');
    add_submenu_page(__FILE__, 'New Post Suggestion', 'New Post Suggestion', 'manage_options', __FILE__ . '_newpost', 'r_newpost');
    add_submenu_page(__FILE__, 'Course Tracker', 'Course Tracker', 'manage_options', __FILE__ . '_ctrack', 'r_ctrack');
}
示例#19
0
function PricerrTheme_admin_menu()
{
    $icn = get_bloginfo('template_url') . "/images/pricerr.gif";
    $capability = 10;
    add_menu_page(__('Pricerr Theme'), __('Pricerr Theme', 'PricerrTheme'), $capability, "PT1_admin_mnu", 'PricerrTheme_summary_scr', $icn, 0);
    add_submenu_page("PT1_admin_mnu", __('Site Summary', 'PricerrTheme'), pricerrtheme_disp_spcl_cst_pic('overview_icon.png') . __('Site Summary', 'PricerrTheme'), $capability, "PT1_admin_mnu", 'PricerrTheme_summary_scr');
    add_submenu_page("PT1_admin_mnu", __('General Options', 'PricerrTheme'), pricerrtheme_disp_spcl_cst_pic('setup_icon.png') . __('General Options', 'PricerrTheme'), $capability, "general-options", 'PricerrTheme_general_options');
    add_submenu_page("PT1_admin_mnu", __('Layout Settings', 'PricerrTheme'), pricerrtheme_disp_spcl_cst_pic('layout_icon.png') . __('Layout Settings', 'PricerrTheme'), $capability, "layout-settings", 'PricerrTheme_layout_settings');
    add_submenu_page('PT1_admin_mnu', __('Category Images', 'PricerrTheme'), pricerrtheme_disp_spcl_cst_pic('image_icon.png') . __('Category Images', 'PricerrTheme'), '10', 'cat_images', 'PricerrTheme_category_images');
    add_submenu_page("PT1_admin_mnu", __('Email Settings', 'PricerrTheme'), pricerrtheme_disp_spcl_cst_pic('email_icon.png') . __('Email Settings', 'PricerrTheme'), $capability, 'email-settings', 'PricerrTheme_email_settings');
    add_submenu_page("PT1_admin_mnu", __('Pricing Settings', 'PricerrTheme'), pricerrtheme_disp_spcl_cst_pic('dollar_icon.png') . __('Pricing Settings', 'PricerrTheme'), $capability, 'pricing-settings', 'PricerrTheme_pricing_options');
    add_submenu_page("PT1_admin_mnu", __('Payment Gateways', 'PricerrTheme'), pricerrtheme_disp_spcl_cst_pic('gateway_icon.png') . __('Payment Gateways', 'PricerrTheme'), $capability, 'payment-methods', 'PricerrTheme_payment_methods');
    add_submenu_page('PT1_admin_mnu', __('Withdraw Requests', 'PricerrTheme'), pricerrtheme_disp_spcl_cst_pic('wallet_icon.png') . __('Withdraw Requests', 'PricerrTheme'), $capability, 'withdraw-req', 'PricerrTheme_withdrawals');
    add_submenu_page('PT1_admin_mnu', __('User Balances', 'PricerrTheme'), pricerrtheme_disp_spcl_cst_pic('bal_icon.png') . __('User Balances', 'PricerrTheme'), '10', 'User-Balances', 'PricerrTheme_user_balances');
    add_submenu_page('PT1_admin_mnu', __('User Badges', 'PricerrTheme'), pricerrtheme_disp_spcl_cst_pic('badge1.png') . __('User Badges', 'PricerrTheme'), '10', 'user_badges', 'PricerrTheme_user_badges');
    add_submenu_page('PT1_admin_mnu', __('User Levels', 'PricerrTheme'), pricerrtheme_disp_spcl_cst_pic('bdg1.png') . __('User Levels', 'PricerrTheme'), '10', 'user_levels', 'PricerrTheme_user_levels');
    add_submenu_page("PT1_admin_mnu", __('InSite Transactions', 'PricerrTheme'), pricerrtheme_disp_spcl_cst_pic('list_icon.png') . __('InSite Transactions', 'PricerrTheme'), $capability, 'trans-site', 'PricerrTheme_hist_trans');
    add_submenu_page('PT1_admin_mnu', __('Orders', 'PricerrTheme'), pricerrtheme_disp_spcl_cst_pic('orders_icon.png') . __('Orders', 'PricerrTheme'), $capability, 'order-stats', 'PricerrTheme_orders_m');
    add_submenu_page('PT1_admin_mnu', __('User Reviews', 'PricerrTheme'), pricerrtheme_disp_spcl_cst_pic('review_icon.png') . __('User Reviews', 'PricerrTheme'), $capability, 'usrrev', 'PricerrTheme_user_reviews_scr');
    add_submenu_page('PT1_admin_mnu', __('Private Messages', 'PricerrTheme'), pricerrtheme_disp_spcl_cst_pic('mess_icon.png') . __('Private Messages', 'PricerrTheme'), $capability, 'privmess', 'PricerrTheme_private_messages_scr');
    add_submenu_page('PT1_admin_mnu', __('Chat Messages', 'PricerrTheme'), pricerrtheme_disp_spcl_cst_pic('mess_icon.png') . __('Chat Messages', 'PricerrTheme'), $capability, 'chatmess', 'PricerrTheme_chat_messages_scr');
    add_submenu_page("PT1_admin_mnu", __('Tracking Tools', 'PricerrTheme'), pricerrtheme_disp_spcl_cst_pic('track_icon.png') . __('Tracking Tools', 'PricerrTheme'), $capability, 'track-tools', 'PricerrTheme_tracking_tools');
    add_submenu_page("PT1_admin_mnu", __('Advertising', 'PricerrTheme'), pricerrtheme_disp_spcl_cst_pic('adv_icon.png') . __('Advertising', 'PricerrTheme'), $capability, 'adv-tools', 'PricerrTheme_advertising_scr');
    add_submenu_page("PT1_admin_mnu", __('Info Stuff', 'PricerrTheme'), pricerrtheme_disp_spcl_cst_pic('info_icon.png') . __('Info Stuff', 'PricerrTheme'), $capability, 'info-stuff', 'PricerrTheme_information');
    do_action('PricerrTheme_new_admin_options_menu');
}
 public static function admin_menu()
 {
     add_submenu_page('mobiloud', 'Design', 'Design', "activate_plugins", 'mobiloud', array('Mobiloud_Admin', 'menu_get_started'));
     add_menu_page('MobiLoud', 'MobiLoud', 'activate_plugins', 'mobiloud', array('Mobiloud_Admin', 'menu_get_started'), "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+PHN2ZyAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIiAgIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyIgICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgICB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgICB4bWxuczpzb2RpcG9kaT0iaHR0cDovL3NvZGlwb2RpLnNvdXJjZWZvcmdlLm5ldC9EVEQvc29kaXBvZGktMC5kdGQiICAgeG1sbnM6aW5rc2NhcGU9Imh0dHA6Ly93d3cuaW5rc2NhcGUub3JnL25hbWVzcGFjZXMvaW5rc2NhcGUiICAgdmVyc2lvbj0iMS4wIiAgIGlkPSJMYXllcl8xIiAgIHg9IjBweCIgICB5PSIwcHgiICAgd2lkdGg9IjI0cHgiICAgaGVpZ2h0PSIyNHB4IiAgIHZpZXdCb3g9IjAgMCAyNCAyNCIgICBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCAyNCAyNCIgICB4bWw6c3BhY2U9InByZXNlcnZlIiAgIGlua3NjYXBlOnZlcnNpb249IjAuNDguNCByOTkzOSIgICBzb2RpcG9kaTpkb2NuYW1lPSJtbC1tZW51LWljb250ci5zdmciPjxtZXRhZGF0YSAgICAgaWQ9Im1ldGFkYXRhMjkiPjxyZGY6UkRGPjxjYzp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yNiwwIC0xLjMxMjUsLTAuNTg0NSAtMS4zMTI1LC0xLjMxMjUgMCwtMC4yMDU3NDQgMC4wNDA1NjUsLTAuMzg5MDQ5IDAuMTI1LC0wLjU2MjUgTCA3LjU2MjUsMTYuMTU2MjUgYyAwLjYzNCwtMS4yMzcgMSwtMi42NCAxLC00LjEyNSBsIDAsLTAuMDMxMjUgLTAuMDMxMjUsMCAwLC0wLjAzMTI1IGMgMCwtMS40ODUgLTAuMzM0NzUsLTIuODg5IC0wLjk2ODc1LC00LjEyNSBsIDAuMDMxMjUsMCBDIDcuNTQ1NTU3LDcuNzUyMzAxOCA3LjQ5NTc2NDIsNy42NjA0MzU3IDcuNDY4NzUsNy41NjI1IDcuNDQxNzM1Nyw3LjQ2NDU2NDMgNy40Mzc1LDcuMzYwNTU5MSA3LjQzNzUsNy4yNSA3LjQzNzUsNi41MjMgOC4wMjQsNS45Mzc1IDguNzUsNS45Mzc1IHoiICAgICBpZD0icGF0aDExIiAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgICAgIHRyYW5zZm9ybT0ibWF0cml4KDAuODQ3NDU3NjIsMCwwLDAuODQ3NDU3NjIsMS44MzA1MDg1LDEuODMwNTA4NSkiIC8+PC9zdmc+", '25.90239843209');
     add_submenu_page('mobiloud', 'Settings', 'Settings', "activate_plugins", 'mobiloud_settings', array('Mobiloud_Admin', 'menu_settings'));
     add_submenu_page('mobiloud', 'Push Notification', 'Push Notifications', "activate_plugins", 'mobiloud_push', array('Mobiloud_Admin', 'menu_push'));
 }
示例#21
0
 function ewww_ngg_bulk_menu()
 {
     if (!defined('NGGFOLDER')) {
         return;
     }
     add_submenu_page(NGGFOLDER, esc_html__('Bulk Optimize', EWWW_IMAGE_OPTIMIZER_DOMAIN), esc_html__('Bulk Optimize', EWWW_IMAGE_OPTIMIZER_DOMAIN), 'NextGEN Manage gallery', 'ewww-ngg-bulk', array(&$this, 'ewww_ngg_bulk_preview'));
 }
示例#22
0
function wpm_add_pages()
{
    global $wpm_options;
    $page = add_submenu_page('themes.php', __('Manage Menubar', 'wpm'), $wpm_options->admin_name, 8, $wpm_options->admin_file);
    add_action("admin_print_scripts-{$page}", 'wpm_scripts');
    return true;
}
示例#23
0
/**
 * Setup the Admin menu in WordPress
 *
 * @return void
 */
function cx_admin_menu()
{
    global $wp_version, $CX;
    // Add old style custom icon for before WP 3.8
    $old_ico = version_compare($wp_version, '3.8', '<') ? CX_URL . '/assets/img/cx-ico-16.png' : '';
    /**
     * Menu for Admins
     */
    if (current_user_can('manage_options')) {
        add_menu_page($CX->meta['Name'], 'Chat X', 'manage_options', 'chat_x', 'cx_console_template', $old_ico, '50.9874');
        /**
         * Menu for Operators
         */
    } else {
        if (current_user_can('answer_visitors')) {
            add_menu_page($CX->meta['Name'], 'Chat X', 'cx_op', 'chat_x', 'cx_console_template', $old_ico, '50.9874');
        }
    }
    /**
     * Add submenus
     */
    // Chat Logs
    add_submenu_page('chat_x', __('Chat Logs', 'cx'), __('Chat Logs', 'cx'), 'manage_options', 'cx_chat_logs', 'cx_render_chat_logs');
    // Offline Messages
    add_submenu_page('chat_x', __('Offline messages', 'cx'), __('Offline messages', 'cx'), 'manage_options', 'edit.php?post_type=cx_offline_msg');
    /*add_submenu_page(
    		'chat_x',
    		__( 'Predefined messages', 'cx' ), 
    		__( 'Predefined messages', 'cx' ), 
    		'manage_options',
    		'edit.php?post_type=cx_predefined_msg'
    	);*/
    // Remove publish box some post types
    remove_meta_box('submitdiv', 'cx_offline_msg', 'side');
}
示例#24
0
/**
 * Ingresa los distintos niveles del menú de administración.
 * @return none
 */
function jin_places_menu()
{
    $icon = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABfUlEQVQ4T52Tz1XCQBDGvwGCHGMFYgVgBYYOwiU8DAe2Au0AqECtIB6MPHIJJcQKDBWIHeANE8j4dvPgJSHgnzklOzO/2Zn5llBijuPrVI/vATbApIM4YNBE2FZYDKfiQZocvQHULPoYuCpCDgHubEygEQOviDRTQerxnIBrMILhwOpkwSUAL5DBXNlein5/KYOd6bRJSfVdfg9tK5dzHBBp50J0V/8BPBBwK6/L1a2QANpWHRAM2ZawLeN0C46vQ4sCImplAxn4BGD8OER1ZQmpxyEBF/KfgQ8A5q/WuKvquF7aSgp4FLZ1V6aZgyHuAS8zk5h8BSDuipve/E8AGfzkely2upNDzDod11NVhW2lgiqxXAtKxlo0AqjNhAWYlJBA3CRGC+CQ4/pkpw/lylV8noUgCpDQHJtaiMZaV/51Y4Xapo0Km2A2xKDX3uXlAa63JGa/UqH59ktb7JXo+Hr1LG4lCZsMdI4D0v2PAbTV48mYelxAiEgbZ1v4BtnNpRGzeMr6AAAAAElFTkSuQmCC";
    add_menu_page('Places  by @jinglero', 'Places', 'manage_options', 'jin-places', 'jin_places_admin_list', $icon, 20);
    add_submenu_page('jin-places', 'Agregar un Lugar a Places by Jinglero', 'Agregar', 'manage_options', 'jin-places-add', 'jin_places_admin_add');
    add_submenu_page('jin-places', 'Configuración de Places by Jinglero', 'Configuración', 'manage_options', 'jin-places-config', 'jin_places_admin_config');
}
 function vtprd_add_admin_menu_setup_items()
 {
     // add items to the Pricing Deals custom post type menu structure
     global $vtprd_setup_options;
     //V1.0.9.0 ADD WRAPPING 'IF'
     if (!isset($vtprd_setup_options['register_under_tools_menu'])) {
         $vtprd_setup_options = get_option('vtprd_setup_options');
     }
     if (isset($vtprd_setup_options['register_under_tools_menu']) && $vtprd_setup_options['register_under_tools_menu'] == 'yes') {
         $settingsLocation = 'options-general.php';
     } else {
         $settingsLocation = 'edit.php?post_type=vtprd-rule';
     }
     add_submenu_page($settingsLocation, __('Pricing Deal Settings', 'vtprd'), __('Pricing Deal Settings', 'vtprd'), 'administrator', 'vtprd_setup_options_page', array(&$this, 'vtprd_setup_options_cntl'));
     if (!defined('VTPRD_PRO_DIRNAME')) {
         //update to pro version...
         add_submenu_page('edit.php?post_type=vtprd-rule', __('Upgrade to Pricing Deals Pro', 'vtprd'), __('Upgrade to Pro', 'vtprd'), 'administrator', 'vtprd_pro_upgrade', array(&$this, 'vtprd_pro_upgrade_cntl'));
     }
     add_submenu_page('edit.php?post_type=vtprd-rule', __('Pricing Deals Help', 'vtprd'), __('Pricing Deals Help', 'vtprd'), 'administrator', 'vtprd_show_help_page', array(&$this, 'vtprd_show_help_page_cntl'));
     /* 
        add_submenu_page(
     		'edit.php?post_type=vtprd-rule',	// The ID of the top-level menu page to which this submenu item belongs
     		__( 'Pricing Deals FAQ', 'vtprd' ), // The value used to populate the browser's title bar when the menu page is active                           
     		__( 'Pricing Deals FAQ', 'vtprd' ),					// The label of this submenu item displayed in the menu
     		'administrator',					// What roles are able to access this submenu item
     		'vtprd_show_faq_page',	// The slug used to represent this submenu item
     		array( &$this, 'vtprd_show_faq_page_cntl' ) 				// The callback function used to render the options for this submenu item
     	);  
     */
     //Add a DUPLICATE custom tax URL to be in the main Pricing Deals menu as well as in the PRODUCT menu
     //post_type=product => PARENT plugin post_type
     add_submenu_page('edit.php?post_type=vtprd-rule', __('Pricing Deals Categories', 'vtprd'), __('Pricing Deals Categories', 'vtprd'), 'administrator', 'edit-tags.php?taxonomy=vtprd_rule_category&post_type=product', '');
 }
 /**
  * Registers menu items
  *
  * @access public
  * @return void
  */
 public static function menu()
 {
     if (current_theme_supports('realia-statistics')) {
         add_submenu_page('edit.php?post_type=property', __('Property Views', 'realia'), __('Property Views', 'realia'), 'manage_options', 'property_views', array(__CLASS__, 'property_views_template'));
         add_submenu_page('edit.php?post_type=property', __('Search Queries', 'realia'), __('Search Queries', 'realia'), 'manage_options', 'search_queries', array(__CLASS__, 'search_queries_template'));
     }
 }
 /**
  * Register the administration menu for this plugin into the WordPress Dashboard menu.
  *
  */
 public function add_plugin_admin_menu()
 {
     $this->plugin_screen_hook_suffix = add_menu_page('Wemahu Dashboard', 'Wemahu', 'manage_options', $this->plugin_slug, array($this, 'display_wemahu_dashboard'));
     $this->plugin_screen_hook_suffix = add_submenu_page($this->plugin_slug, 'Wemahu Rulesets', 'Rulesets', 'manage_options', 'wemahu_rulesets', array($this, 'display_wemahu_rulesets'));
     $this->plugin_screen_hook_suffix = add_submenu_page($this->plugin_slug, 'Wemahu Settings', 'Settings', 'manage_options', 'wemahu_settings', array($this, 'display_wemahu_settings'));
     $this->plugin_screen_hook_suffix = add_submenu_page($this->plugin_slug, 'Wemahu Help', 'Help/About', 'manage_options', 'wemahu_help', array($this, 'display_wemahu_help'));
 }
示例#28
0
function xyz_ips_menu()
{
    add_menu_page('insert-php-code-snippet', 'XYZ PHP Code', 'manage_options', 'insert-php-code-snippet-manage', 'xyz_ips_snippets', plugins_url('insert-php-code-snippet/images/logo.png'));
    add_submenu_page('insert-php-code-snippet-manage', 'PHPCode Snippets', 'PHPCode Snippets', 'manage_options', 'insert-php-code-snippet-manage', 'xyz_ips_snippets');
    add_submenu_page('insert-php-code-snippet-manage', 'PHPCode Snippets - Manage settings', 'Settings', 'manage_options', 'insert-php-code-snippet-settings', 'xyz_ips_settings');
    add_submenu_page('insert-php-code-snippet-manage', 'PHPCode Snippets - About', 'About', 'manage_options', 'insert-php-code-snippet-about', 'xyz_ips_about');
}
function form_add_admin()
{
    global $form_name, $form_shortname, $form;
    $form_options = form_options();
    if (isset($_GET['page']) && $_GET['page'] == "form") {
        if (isset($_REQUEST['action']) && 'install' == $_REQUEST['action']) {
            delete_option('form_log');
            foreach ($form_options as $value) {
                if (isset($_REQUEST[$value['id']])) {
                    update_option($value['id'], $_REQUEST[$value['id']]);
                } else {
                    delete_option($value['id']);
                }
            }
            header("Location: admin.php?page=form&installed=true");
            die;
        }
    }
    add_menu_page($form_name, $form_name, 'manage_options', 'form', 'form_main');
    add_submenu_page('form', $form_name . ' - Setup', 'Setup', 'manage_options', 'form', 'form_main');
    if (get_option("form_version")) {
        if (!isset($form['output']['menus']) && !isset($_SESSION['form']['menus'])) {
            form_output('headers');
        }
        //load menus
        if (isset($form['output']['menus']) && is_array($form['output']['menus']) && count($form['output']['menus']) > 0) {
            $_SESSION['form']['menus'] = $form['output']['menus'];
        }
        if (isset($_SESSION['form']['menus'])) {
            foreach ($_SESSION['form']['menus'] as $menu) {
                add_submenu_page('form', $form_name . ' - ' . $menu[0], $menu[0], 'manage_options', $menu[1], 'form_main');
            }
        }
    }
}
function inscricoes_estatisticas_menu()
{
    $topLevelMenuLabel = 'Relatórios';
    /* Top level menu */
    add_menu_page($topLevelMenuLabel, $topLevelMenuLabel, 'edit_published_posts', 'inscricoes_estatisticas', 'relatorios_sumario_page_callback_function');
    /* inscritos */
    add_submenu_page('inscricoes_estatisticas', 'Inscrições por Estado', 'Inscrições por Estado', 'edit_published_posts', 'inscritos_estado', 'inscritos_estado_page_callback_function');
    add_submenu_page('inscricoes_estatisticas', 'Inscrições por Estado - listagem', 'Inscrições por Estado - listagem', 'edit_published_posts', 'inscritos_estado_total', 'inscritos_estado_total_page_callback_function');
    add_submenu_page('inscricoes_estatisticas', 'Inscrições por Setorial - listagem', 'Inscrições por Setorial - listagem', 'edit_published_posts', 'inscritos_setorial_total', 'inscritos_setorial_total_page_callback_function');
    add_submenu_page('inscricoes_estatisticas', 'Inscrições por Setorial/Estado', 'Inscrições por Setorial/Estado', 'edit_published_posts', 'inscritos_setorial_estado', 'inscritos_setorial_estado_page_callback_function');
    add_submenu_page('inscricoes_estatisticas', 'Inscritos que votaram/não votaram', 'Inscritos que votaram/não votaram', 'edit_published_posts', 'votos_inscritos_votaram', 'votos_inscritos_votaram_page_callback_function');
    /* candidatos */
    add_submenu_page('inscricoes_estatisticas', 'Candidatos inscritos por setorial', 'Candidatos inscritos por setorial', 'edit_published_posts', 'candidatos_setorial', 'candidatos_setorial_page_callback_function');
    add_submenu_page('inscricoes_estatisticas', 'Candidatos inscritos - total por estado', 'Candidatos inscritos - total por estado', 'edit_published_posts', 'candidatos_estado_total', 'candidatos_estado_total_page_callback_function');
    add_submenu_page('inscricoes_estatisticas', 'Candidatos inscritos por setorial/estado', 'Candidatos inscritos por setorial/estado', 'edit_published_posts', 'candidatos_setorial_estado', 'candidatos_setorial_estado_page_callback_function');
    add_submenu_page('inscricoes_estatisticas', 'Candidatos por gênero por setorial/estado', 'Candidatos por gênero por setorial/estado', 'edit_published_posts', 'candidatos_genero', 'candidatos_genero_page_callback_function');
    add_submenu_page('inscricoes_estatisticas', 'Candidatos por gênero por estado - listagem', 'Candidatos por gênero por estado - listagem', 'edit_published_posts', 'candidatos_genero_estado_total', 'candidatos_genero_estado_total_page_callback_function');
    add_submenu_page('inscricoes_estatisticas', 'Candidatos afrodescendentes por setorial/estado', 'Candidatos afrodescendentes', 'edit_published_posts', 'candidatos_afrodesc', 'candidatos_afrodesc_page_callback_function');
    add_submenu_page('inscricoes_estatisticas', 'Candidatos afrodescendentes por setorial/estado', 'Candidatos afrodescendentes por estado', 'edit_published_posts', 'candidatos_afrodesc_estado_total', 'candidatos_afrodesc_estado_total_page_callback_function');
    /* votos
       add_submenu_page('inscricoes_estatisticas', 'Total geral de votos', 'Total geral de votos', 'manage_options', 'votos_total', 'votos_total_page_callback_function');
       add_submenu_page('inscricoes_estatisticas', 'Total de votos por estado - listagem', 'Total de votos por estado - listagem', 'manage_options', 'votos_estado_total', 'votos_estado_total_page_callback_function');
       add_submenu_page('inscricoes_estatisticas', 'Total de votos por setorial', 'Votos por setorial', 'manage_options', 'votos_setorial', 'votos_setorial_page_callback_function');
       add_submenu_page('inscricoes_estatisticas', 'Total de votos por gênero por estado - listagem', 'Votos por gênero - listagem', 'manage_options', 'votos_genero_estado_total', 'votos_genero_estado_total_page_callback_function');    
       add_submenu_page('inscricoes_estatisticas', 'Total de votos por afrodescendência', 'Votos por afrodescendência', 'manage_options', 'votos_afrodesc_total', 'votos_afrodesc_total_page_callback_function');           
       add_submenu_page('inscricoes_estatisticas', 'Votos por setorial/estado', 'Votos por setorial/estado', 'manage_options', 'votos_setorial_estado', 'votos_setorial_estado_page_callback_function');
       add_submenu_page('inscricoes_estatisticas', 'Votos por gênero setorial/estado', 'Votos por gênero', 'manage_options', 'votos_genero_setorial_estado', 'votos_genero_setorial_estado_page_callback_function');
       add_submenu_page('inscricoes_estatisticas', 'Votos por afrodescendência setorial/estado', 'Votos por afrodescendência', 'manage_options', 'votos_afrodesc_setorial_estado', 'votos_afrodesc_setorial_estado_page_callback_function');
       */
    add_submenu_page('inscricoes_estatisticas', 'Relatório dos inscritos que não votaram', 'Relatório dos inscritos que não votaram', 'manage_options', 'relatorio_inscritos_naovotaram', 'relatorio_inscritos_naovotaram_page_callback_function');
    add_submenu_page('inscricoes_estatisticas', 'Candidatos mais votados por setorial e estado', 'Mais votados por setorial e estado', 'curate', 'maisvotados_setorial_estado', 'maisvotados_setorial_estado_page_callback_function');
    add_submenu_page('inscricoes_estatisticas', 'Resumo das setoriais', 'Resumo das setoriais', 'curate', 'resumo_setorial_estado', 'resumo_setorial_estado_page_callback_function');
    /* verificacao de fraude */
    add_submenu_page('inscricoes_estatisticas', 'Auditoria: votos por setorial/estado ', 'Auditoria: votos por setorial estado', 'manage_options', 'listagem_votos_auditoria', 'listagem_votos_auditoria_page_callback_function');
}