예제 #1
0
function mobileview_admin_menu()
{
    if (!defined('MOBILEVIEW_MENU')) {
        define('MOBILEVIEW_MENU', true);
        // Add the main plugin menu for MobileView
        $mobileview_menu = add_menu_page('MobileView', 'MobileView', 'manage_options', 'mobileview-admin', 'mobileview_admin_panel', get_mobileview_url() . '/admin/images/mobileview-admin-icon.png', 50);
        add_action("admin_print_styles-{$mobileview_menu}", 'mobileview_admin_head_style');
    }
}
예제 #2
0
 function get_url_for_this_icon($short_icon_name)
 {
     if (file_exists(get_mobileview_directory() . '/resources/icons/sets/' . $short_icon_name)) {
         return get_mobileview_url() . '/resources/icons/sets/' . $short_icon_name;
     }
 }