예제 #1
0
 /**
  * Register the Dashboard Pages which are later hidden but these pages
  * are used to render the Welcome and Credits pages.
  *
  * @access public
  * @since 1.2
  * @return void
  */
 public function admin_menus()
 {
     // About Page
     add_dashboard_page(__('Welcome to Post Promoter Pro', 'ppp-txt'), __('Welcome to Post Promoter Pro', 'ppp-txt'), $this->minimum_capability, 'ppp-about', array($this, 'about_screen'));
     // Getting Started Page
     add_dashboard_page(__('Getting started with Post Promoter Pro', 'ppp-txt'), __('Getting started with Post Promoter Pro', 'ppp-txt'), $this->minimum_capability, 'ppp-getting-started', array($this, 'getting_started_screen'));
 }
예제 #2
0
 /**
  * Add admin menus/screens
  *
  * @access public
  * @return void
  */
 public function admin_menus()
 {
     $welcome_page_name = __('Install WPLMS', 'vibe');
     $welcome_page_title = __('Welcome to WPLMS', 'vibe');
     if (!$this->check_installed()) {
         $page = add_dashboard_page($welcome_page_title, $welcome_page_name, 'manage_options', 'wplms-install', array($this, 'install_screen'));
         add_action('admin_print_styles-' . $page, array($this, 'admin_css'));
     }
     if (empty($_GET['page'])) {
         return;
     }
     $welcome_page_name = __('About WPLMS', 'vibe');
     $welcome_page_title = __('Welcome to WPLMS', 'vibe');
     switch ($_GET['page']) {
         case 'wplms-about':
             $page = add_dashboard_page($welcome_page_title, $welcome_page_name, 'manage_options', 'wplms-about', array($this, 'about_screen'));
             add_action('admin_print_styles-' . $page, array($this, 'admin_css'));
             break;
         case 'wplms-system':
             $page = add_dashboard_page($welcome_page_title, $welcome_page_name, 'manage_options', 'wplms-system', array($this, 'system_screen'));
             add_action('admin_print_styles-' . $page, array($this, 'admin_css'));
             break;
         case 'wplms-changelog':
             $page = add_dashboard_page($welcome_page_title, $welcome_page_name, 'manage_options', 'wplms-changelog', array($this, 'changelog_screen'));
             add_action('admin_print_styles-' . $page, array($this, 'admin_css'));
             break;
     }
 }
 /**
  * Add SendGrid statistics page in the menu
  *
  * @return void
  */
 public static function add_statistics_menu()
 {
     if (Sendgrid_Tools::get_auth_method() == "apikey" and !Sendgrid_Tools::check_api_key(Sendgrid_Tools::get_api_key()) or Sendgrid_Tools::get_auth_method() == "username" and !Sendgrid_Tools::check_username_password(Sendgrid_Tools::get_username(), Sendgrid_Tools::get_password())) {
         return;
     }
     add_dashboard_page("SendGrid Statistics", "SendGrid Statistics", "manage_options", "sendgrid-statistics", array(__CLASS__, "show_statistics_page"));
 }
function relevanssi_menu()
{
    global $relevanssi_variables;
    RELEVANSSI_PREMIUM ? $name = "Relevanssi Premium" : ($name = "Relevanssi");
    add_options_page($name, $name, apply_filters('relevanssi_options_capability', 'manage_options'), $relevanssi_variables['file'], 'relevanssi_options');
    add_dashboard_page(__('User searches', 'relevanssi'), __('User searches', 'relevanssi'), apply_filters('relevanssi_user_searches_capability', 'edit_pages'), $relevanssi_variables['file'], 'relevanssi_search_stats');
}
예제 #5
0
 /**
  * Register the Dashboard Pages which are later hidden but these pages
  * are used to render the Welcome and Credits pages.
  *
  * @access public
  * @since 1.4
  * @return void
  */
 public function admin_menus()
 {
     // About
     add_dashboard_page(__('Theme Details', 'wpex'), __('Theme Details', 'wpex'), $this->minimum_capability, 'wpex-about', array($this, 'about_screen'));
     // Recommended
     add_dashboard_page(__('Recommendations | GoPress Theme', 'wpex'), __('Recommendations', 'wpex'), $this->minimum_capability, 'wpex-recommended', array($this, 'recommended_screen'));
 }
 /**
  * Register the Dashboard Pages which are later hidden but these pages
  * are used to render the Welcome and Credits pages.
  *
  * @access public
  * @since 1.4
  * @return void
  */
 public function admin_menus()
 {
     // About Page
     add_dashboard_page(__('Welcome to Easy Digital Downloads', 'edd'), __('Welcome to Easy Digital Downloads', 'edd'), $this->minimum_capability, 'edd-about', array($this, 'about_screen'));
     // Credits Page
     add_dashboard_page(__('Welcome to Easy Digital Downloads', 'edd'), __('Welcome to Easy Digital Downloads', 'edd'), $this->minimum_capability, 'edd-credits', array($this, 'credits_screen'));
 }
 /**
  * Add admin menus/screens
  *
  * @access public
  * @return void
  */
 public function admin_menus()
 {
     if (empty($_GET['page'])) {
         return;
     }
     $welcome_page_name = __('About WP Club Manager', 'wp-club-manager');
     $welcome_page_title = __('Welcome to WP Club Manager', 'wp-club-manager');
     switch ($_GET['page']) {
         case 'wpcm-about':
             $page = add_dashboard_page($welcome_page_title, $welcome_page_name, 'manage_options', 'wpcm-about', array($this, 'about_screen'));
             add_action('admin_print_styles-' . $page, array($this, 'admin_css'));
             break;
         case 'wpcm-getting-started':
             $page = add_dashboard_page($welcome_page_title, $welcome_page_name, 'manage_options', 'wpcm-getting-started', array($this, 'getting_started_screen'));
             add_action('admin_print_styles-' . $page, array($this, 'admin_css'));
             break;
         case 'wpcm-changelog':
             $page = add_dashboard_page($welcome_page_title, $welcome_page_name, 'manage_options', 'wpcm-changelog', array($this, 'changelog_screen'));
             add_action('admin_print_styles-' . $page, array($this, 'admin_css'));
             break;
         case 'wpcm-translators':
             $page = add_dashboard_page($welcome_page_title, $welcome_page_name, 'manage_options', 'wpcm-translators', array($this, 'translators_screen'));
             add_action('admin_print_styles-' . $page, array($this, 'admin_css'));
             break;
     }
 }
예제 #8
0
 /**
  * Register the Dashboard Pages which are later hidden but these pages
  * are used to render the Welcome and Credits pages.
  *
  * @access public
  * @since 1.4
  * @return void
  */
 public function admin_menus()
 {
     // About Page
     add_dashboard_page(__('Welcome to WP Booking Calendar', 'wpdev-booking-overview'), __('Welcome to WP Booking Calendar', 'wpdev-booking-overview'), $this->minimum_capability, 'wpbc-about', array($this, 'about_screen'));
     // Credits Page
     add_dashboard_page(__('Welcome to WP Booking Calendar', 'wpdev-booking-overview'), __('Welcome to WP Booking Calendar', 'wpdev-booking-overview'), $this->minimum_capability, 'wpbc-about-premium', array($this, 'about_premium_screen'));
 }
 /**
  * Add SendGrid statistics page in the menu
  *
  * @return void
  */
 public static function add_statistics_menu()
 {
     if (!Sendgrid_Tools::check_username_password(get_option('sendgrid_user'), get_option('sendgrid_pwd'))) {
         return;
     }
     add_dashboard_page("SendGrid Statistics", "SendGrid Statistics", "manage_options", "sendgrid-statistics", array(__CLASS__, "show_statistics_page"));
 }
 public function tcp_admin_menu()
 {
     //new version page
     $title = __('Enjoy TheCartPress', 'tcp');
     $new_version = add_dashboard_page($title, $title, 'manage_options', 'tcp-new-version', array($this, 'new_version_page'));
     //add_action( "admin_print_styles-$new_version", array( $this, 'new_version_css' ) );
 }
예제 #11
0
 public function add_menu()
 {
     $hook = add_dashboard_page('vendidero', 'Vendidero', 'manage_options', 'vendidero', array($this, 'screen'));
     add_action('load-' . $hook, array($this, 'process'));
     add_action('admin_print_styles-' . $hook, array($this, 'enqueue_styles'));
     add_action('admin_enqueue_scripts', array($this, 'enqueue_scripts'));
 }
예제 #12
0
/**
 * Create the menus on the welcome page
 *
 * @access public
 * @return void
 */
function msa_welcome_menus()
{
    // Getting Started Page.
    add_dashboard_page(__('Getting Started with My Site Audit', 'msa'), __('Getting Started with My Site Audit', 'msa'), 'manage_options', 'msa-getting-started', 'msa_welcome_getting_started_page');
    /*
    // About Page
    
    add_dashboard_page(
    	__( 'About My Site Audit', 'msa' ),
    	__( 'About My Site Audit', 'msa' ),
    	'manage_options',
    	'msa-about',
    	'msa_welcome_about_page'
    );
    
    // Changelog Page
    
    add_dashboard_page(
    	__( 'My Site Audit Changelog', 'msa' ),
    	__( 'My Site Audit Changelog', 'msa' ),
    	'manage_options',
    	'msa-changelog',
    	'msa_welcome_changelog_page'
    );
    */
    // Credits Page.
    add_dashboard_page(__('Creators of My Site Audit', 'msa'), __('Creators of My Site Audit', 'msa'), 'manage_options', 'msa-credits', 'msa_welcome_credits_page');
}
예제 #13
0
 /**
  * Register the Dashboard Pages which are later hidden but these pages
  * are used to render the Welcome and Credits pages.
  *
  * @access public
  * @since 1.0
  * @return void
  */
 public function admin_menus()
 {
     // About Page
     add_dashboard_page(__('Welcome to WP User Manager', 'wpum'), __('Welcome to WP User Manager', 'wpum'), $this->minimum_capability, 'wpum-about', array($this, 'about_screen'));
     // Getting Started Page
     add_dashboard_page(__('Getting started with WP User Manager', 'wpum'), __('Getting started with WP User Manager', 'wpum'), $this->minimum_capability, 'wpum-getting-started', array($this, 'getting_started_screen'));
 }
 public function admin_menu()
 {
     $this->user_created_pages = SerializeStringToArray(get_option($this->prefix('user_created_pages')));
     if ($this->user_created_pages && count($this->user_created_pages) >= 1) {
         foreach ($this->user_created_pages as $page) {
             if (isset($page['page_slug']) && isset($page['page_title']) && isset($page['parent_menu'])) {
                 if ($page['parent_menu'] == 'new_menu') {
                     add_menu_page($page['page_title'], $page['page_title'], 'manage_options', $page['page_slug'], array($this, 'user_created_menu_pages'));
                 } elseif ($page['parent_menu'] == 'dashboard') {
                     add_dashboard_page($page['page_title'], $page['page_title'], 'manage_options', $page['page_slug'], array($this, 'user_created_menu_pages'));
                 } elseif ($page['parent_menu'] == 'posts') {
                     add_posts_page($page['page_title'], $page['page_title'], 'manage_options', $page['page_slug'], array($this, 'user_created_menu_pages'));
                 } elseif ($page['parent_menu'] == 'media') {
                     add_media_page($page['page_title'], $page['page_title'], 'manage_options', $page['page_slug'], array($this, 'user_created_menu_pages'));
                 } elseif ($page['parent_menu'] == 'pages') {
                     add_pages_page($page['page_title'], $page['page_title'], 'manage_options', $page['page_slug'], array($this, 'user_created_menu_pages'));
                 } elseif ($page['parent_menu'] == 'comments') {
                     add_comments_page($page['page_title'], $page['page_title'], 'manage_options', $page['page_slug'], array($this, 'user_created_menu_pages'));
                 } elseif ($page['parent_menu'] == 'theme') {
                     add_theme_page($page['page_title'], $page['page_title'], 'manage_options', $page['page_slug'], array($this, 'user_created_menu_pages'));
                 } elseif ($page['parent_menu'] == 'plugins') {
                     add_plugins_page($page['page_title'], $page['page_title'], 'manage_options', $page['page_slug'], array($this, 'user_created_menu_pages'));
                 } elseif ($page['parent_menu'] == 'users') {
                     add_users_page($page['page_title'], $page['page_title'], 'manage_options', $page['page_slug'], array($this, 'user_created_menu_pages'));
                 } elseif ($page['parent_menu'] == 'management') {
                     add_management_page($page['page_title'], $page['page_title'], 'manage_options', $page['page_slug'], array($this, 'user_created_menu_pages'));
                 } elseif ($page['parent_menu'] == 'options') {
                     add_options_page($page['page_title'], $page['page_title'], 'manage_options', $page['page_slug'], array($this, 'user_created_menu_pages'));
                 } elseif (array_key_exists($page['parent_menu'], $user_pages)) {
                     add_submenu_page($page['parent_menu'], $page['page_title'], $page['page_title'], 'manage_options', $page['page_slug'], array($this, 'user_created_menu_pages'));
                 }
             }
         }
     }
 }
예제 #15
0
 /**
  * Add admin menus/screens
  */
 public function admin_menu()
 {
     $page = filter_input(INPUT_GET, 'page', FILTER_SANITIZE_STRING);
     if ('pronamic-pay-about' === $page) {
         $hook_suffix = add_dashboard_page(__('About Pronamic Pay', 'pronamic_ideal'), __('Welcome to Pronamic Pay', 'pronamic_ideal'), 'manage_options', $page, array($this, 'page_about'));
         add_action('admin_print_styles-' . $hook_suffix, array($this, 'admin_css'));
     }
 }
예제 #16
0
 public function admin_menus()
 {
     $welcome_page_title = __('Welcome to WP PRO Advertising System', 'wpproads');
     // About
     $about = add_dashboard_page($welcome_page_title, $welcome_page_title, 'manage_options', 'pas-about', array($this, 'about_screen'));
     remove_submenu_page('index.php', 'pas-about');
     add_action('admin_print_styles-' . $about, array($this, 'admin_css'));
 }
예제 #17
0
 public function registerAdminMenu()
 {
     add_options_page(__('Buoy Settings', 'better-angels'), __('Buoy', 'better-angels'), 'manage_options', $this->prefix . 'settings', array($this, 'renderOptionsPage'));
     add_menu_page(__('Emergency Team', 'better-angels'), __('My Team', 'better-angels'), 'read', $this->prefix . 'choose-angels', array($this, 'renderChooseAngelsPage'), plugins_url('img/icon-bw-life-preserver.svg', __FILE__));
     add_submenu_page(null, __('Respond to Alert', 'better-angels'), __('Respond to Alert', 'better-angels'), 'read', $this->prefix . 'review-alert', array($this, 'renderReviewAlertPage'));
     add_submenu_page(null, __('Incident Chat', 'better-angels'), __('Incident Chat', 'better-angels'), 'read', $this->prefix . 'incident-chat', array($this, 'renderIncidentChatPage'));
     add_dashboard_page(__('Activate Alert', 'better-angels'), __('Activate Alert', 'better-angels'), 'read', $this->prefix . 'activate-alert', array($this, 'renderActivateAlertPage'));
 }
예제 #18
0
 public function admin_menus()
 {
     if (!$this->welcome_folder_exists) {
         return;
     }
     // Add menu page
     add_dashboard_page(__('Welcome to', $this->plugin_name), __('Welcome to', $this->plugin_name), $this->minimum_capability, $this->plugin_slug . '-welcome', array($this, 'quick_start_screen'));
 }
예제 #19
0
/**
 * Add new SendGrid statistics page in wordpress admin menu
 * 
 * @return void
 */
function add_dashboard_menu()
{
    $sendgridSettings = new wpSendGridSettings();
    if (!$sendgridSettings->checkUsernamePassword(get_option('sendgrid_user'), get_option('sendgrid_pwd'))) {
        return;
    }
    add_dashboard_page("SendGrid Statistics", "SendGrid Statistics", "manage_options", "sendgrid-statistics", "sendgrid_statistics_page");
}
 function theme_UpdateNotifierMenu()
 {
     if (function_exists('simplexml_load_string')) {
         if ((double) $this->xml->latest > (double) $this->theme_data['Version']) {
             add_dashboard_page(THEME_NAME . ' Theme Updates', THEME_NAME . ' <span class="update-plugins count-1"><span class="update-count">Update!</span></span>', 'administrator', 'theme-update-notifier', array(&$this, 'theme_UpdateNotifier'));
         }
     }
 }
 public function addMenuItem()
 {
     switch ($this->pageType) {
         case "top":
             if ($this->actionHookIsValid($this->menuSlug, '')) {
                 add_menu_page($this->pageTitle, $this->menuTitle, $this->userCapabilities, $this->menuSlug, array(&$this, 'render'));
             }
             break;
         case "custom":
             if ($this->actionHookIsValid($this->menuSlug, "edit.php?post_type={$this->targetPostType}")) {
                 add_submenu_page("edit.php?post_type={$this->targetPostType}", $this->pageTitle, $this->menuTitle, $this->userCapabilities, $this->menuSlug, array(&$this, 'render'));
                 //add_posts_page($this->pageTitle, $this->menuTitle, $this->userCapabilities, $this->menuSlug, array( &$this, 'render' ));
             }
             break;
         case "dashboard":
             if ($this->actionHookIsValid($this->menuSlug, 'index.php')) {
                 add_dashboard_page($this->pageTitle, $this->menuTitle, $this->userCapabilities, $this->menuSlug, array(&$this, 'render'));
             }
             break;
         case "posts":
             if ($this->actionHookIsValid($this->menuSlug, 'edit.php')) {
                 add_posts_page($this->pageTitle, $this->menuTitle, $this->userCapabilities, $this->menuSlug, array(&$this, 'render'));
             }
             break;
         case "pages":
             if ($this->actionHookIsValid($this->menuSlug, 'edit.php?post_type=page')) {
                 add_pages_page($this->pageTitle, $this->menuTitle, $this->userCapabilities, $this->menuSlug, array(&$this, 'render'));
             }
             break;
         case "settings":
             if ($this->actionHookIsValid($this->menuSlug, 'options-general.php')) {
                 add_options_page($this->pageTitle, $this->menuTitle, $this->userCapabilities, $this->menuSlug, array(&$this, 'render'));
             }
             break;
         case "users":
             if ($this->actionHookIsValid($this->menuSlug, 'user.php') || $this->actionHookIsValid($this->menuSlug, 'profile.php')) {
                 add_users_page($this->pageTitle, $this->menuTitle, $this->userCapabilities, $this->menuSlug, array(&$this, 'render'));
             }
             break;
         case "plugins":
             if ($this->actionHookIsValid($this->menuSlug, 'plugins.php')) {
                 add_plugins_page($this->pageTitle, $this->menuTitle, $this->userCapabilities, $this->menuSlug, array(&$this, 'render'));
             }
             break;
         case "theme":
             if ($this->actionHookIsValid($this->menuSlug, 'themes.php')) {
                 add_theme_page($this->pageTitle, $this->menuTitle, $this->userCapabilities, $this->menuSlug, array(&$this, 'render'));
             }
             break;
         default:
             // Defaults to Tools Menu
             if ($this->actionHookIsValid($this->menuSlug, 'tools.php')) {
                 add_management_page($this->pageTitle, $this->menuTitle, $this->userCapabilities, $this->menuSlug, array(&$this, 'render'));
             }
             break;
     }
     return $this;
 }
예제 #22
0
 function add_page()
 {
     $this->page = add_dashboard_page($this->title, $this->menu, $this->permissions, $this->slug, array($this, 'render_page'), 10);
     add_action('load-' . $this->page, array($this, 'page_actions'), 9);
     add_action('admin_print_scripts-' . $this->page, array($this, 'page_styles'), 10);
     add_action('admin_print_styles-' . $this->page, array($this, 'page_scripts'), 10);
     add_action("admin_footer-" . $this->page, array($this, 'footer_scripts'));
     remove_submenu_page('index.php', $this->slug);
 }
예제 #23
0
 /**
  * Register the Dashboard Pages which are later hidden but these pages
  * are used to render the Welcome and Credits pages.
  *
  * @access public
  * @since 1.0
  * @return void
  */
 public function admin_menus()
 {
     // About Page
     add_dashboard_page(__('Welcome to Easy Property Listings', 'epl'), __('Welcome to Easy Property Listings', 'epl'), $this->minimum_capability, 'epl-about', array($this, 'about_screen'));
     // Getting Started Page
     add_dashboard_page(__('Getting started with Easy Property Listings', 'epl'), __('Getting started with Easy Property Listings', 'epl'), $this->minimum_capability, 'epl-getting-started', array($this, 'getting_started_screen'));
     // Credits Page
     add_dashboard_page(__('The people that build Easy Property Listings', 'epl'), __('The people that build Easy Property Listings', 'epl'), $this->minimum_capability, 'epl-credits', array($this, 'credits_screen'));
 }
function client_status_admin_menu()
{
    global $client_status_options;
    add_options_page('Client Status Options', 'Client Status', 10, 'client-status-options', 'client_status_plugin_options');
    if ($client_status_options['install_type'] == CLIENT_STATUS_INSTALL_TYPE_DASHBOARD) {
        add_dashboard_page('Client Status', 'Client Status', 10, 'client-status-dashboard', 'client_status_plugin_dashboard');
        remove_meta_box('postcustom', 'client_status_client', 'normal');
    }
}
예제 #25
0
 /**
  * Register fake page
  * 
  * @return null
  */
 public function add_ud_splash_page()
 {
     if (empty($_GET['page'])) {
         return;
     }
     if ($_GET['page'] == $this->page_slug) {
         add_dashboard_page(__('Welcome to Usability Dynamics, Inc.', $this->domain), __('Welcome', $this->domain), 'manage_options', $this->page_slug, array($this, 'ud_splash_page'));
     }
 }
예제 #26
0
 /**
  * Register the Dashboard Pages which are later hidden but these pages
  * are used to render the Welcome and Credits pages.
  *
  * @access public
  * @since 1.4
  * @return void
  */
 public function admin_menus()
 {
     // About Page
     add_dashboard_page(__('Welcome to WordPress Landing Pages', 'landing-pages'), __('Welcome to WordPress Landing Pages', 'landing-pages'), $this->minimum_capability, 'lp-quick-start', array($this, 'quick_start_screen'));
     // About InboundNow Page
     add_dashboard_page(__('About the Inbound Now Marketing Platform', 'landing-pages'), __('About the Inbound Now Marketing Platform', 'landing-pages'), $this->minimum_capability, 'about-inboundnow', array($this, 'about_inboundnow_screen'));
     // Developer Page
     add_dashboard_page(__('Developers and Designers', 'landing-pages'), __('Developers and Designers', 'landing-pages'), $this->minimum_capability, 'inbound-developers', array($this, 'dev_designer_screen'));
 }
 /**
  * Add the My Networks page to the site-level dashboard
  *
  * If the user is super admin on another Network, don't require elevated
  * permissions on the current Site
  */
 public function admin_menu()
 {
     // Bail if user has no networks
     if (!user_has_networks()) {
         return;
     }
     // Add the dashboard page
     add_dashboard_page(esc_html__('My Networks', 'wp-multi-network'), esc_html__('My Networks', 'wp-multi-network'), 'read', 'my-networks', array($this, 'my_networks_page'));
 }
 /**
  * Add admin menus/screens.
  *
  * @since 1.8.0
  */
 public function admin_menus()
 {
     if (!isset($_GET['page']) || 'sensei-welcome' != $_GET['page']) {
         return;
     }
     $welcome_page_name = __('Sensei Activation', 'woothemes-sensei');
     $welcome_page_title = __('Welcome to Sensei', 'woothemes-sensei');
     add_dashboard_page($welcome_page_title, $welcome_page_name, 'manage_options', 'sensei-welcome', array($this, 'welcome_screen'));
 }
예제 #29
0
 /**
  * Register the Dashboard Pages which are later hidden but these pages
  * are used to render the Welcome and Credits pages.
  *
  * @access public
  * @since 1.4
  * @return void
  */
 public function admin_menus()
 {
     // What's New
     add_dashboard_page(__('What\'s new in AffiliateWP', 'affiliate-wp'), __('What\'s new in AffiliateWP', 'affiliate-wp'), $this->minimum_capability, 'affwp-what-is-new', array($this, 'whats_new_screen'));
     // Getting Started Page
     add_dashboard_page(__('Getting started with AffiliateWP', 'affiliate-wp'), __('Getting started with AffiliateWP', 'affiliate-wp'), $this->minimum_capability, 'affwp-getting-started', array($this, 'getting_started_screen'));
     // Credits Page
     add_dashboard_page(__('The people that build AffiliateWP', 'affiliate-wp'), __('The people that build AffiliateWP', 'affiliate-wp'), $this->minimum_capability, 'affwp-credits', array($this, 'credits_screen'));
 }
예제 #30
0
/**
 * Provides a notification everytime the theme is updated
 * Original code courtesy of João Araújo of Unisphere Design - http://themeforest.net/user/unisphere
 */
function update_notifier_menu()
{
    $xml = get_latest_theme_version(21600);
    // This tells the function to cache the remote call for 21600 seconds (6 hours)
    $theme_data = get_theme_data(TEMPLATEPATH . '/style.css');
    // Get theme data from style.css (current version is what we want)
    if (version_compare($theme_data['Version'], $xml->latest) == -1) {
        add_dashboard_page($theme_data['Name'] . 'Theme Updates', $theme_data['Name'] . '<span class="update-plugins count-1"><span class="update-count">New Updates</span></span>', 'administrator', strtolower($theme_data['Name']) . '-updates', update_notifier);
    }
}