Changeset 13660 for trunk/wp-admin/menu.php
- Timestamp:
- 03/11/2010 05:05:16 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/menu.php
r13645 r13660 28 28 if ( is_multisite() && is_super_admin() ) { 29 29 /* translators: Network menu item */ 30 $menu[0] = array(__('Super Admin'), 'manage_network', 'ms-admin.php', '', 'menu-top menu-top-first ', 'menu-site', 'div');30 $menu[0] = array(__('Super Admin'), 'manage_network', 'ms-admin.php', '', 'menu-top menu-top-first menu-icon-site', 'menu-site', 'div'); 31 31 $submenu[ 'ms-admin.php' ][1] = array( __('Admin'), 'manage_network', 'ms-admin.php' ); 32 32 /* translators: Sites menu item */ … … 39 39 $menu[1] = array( '', 'read', 'separator1', '', 'wp-menu-separator' ); 40 40 41 $menu[2] = array( __('Dashboard'), 'read', 'index.php', '', 'menu-top ', 'menu-dashboard', 'div' );41 $menu[2] = array( __('Dashboard'), 'read', 'index.php', '', 'menu-top menu-icon-dashboard', 'menu-dashboard', 'div' ); 42 42 } else { 43 $menu[2] = array( __('Dashboard'), 'read', 'index.php', '', 'menu-top menu-top-first ', 'menu-dashboard', 'div' );43 $menu[2] = array( __('Dashboard'), 'read', 'index.php', '', 'menu-top menu-top-first menu-icon-dashboard', 'menu-dashboard', 'div' ); 44 44 } 45 45 … … 80 80 $menu[4] = array( '', 'read', 'separator1', '', 'wp-menu-separator' ); 81 81 82 $menu[5] = array( __('Posts'), 'edit_posts', 'edit.php', '', 'open-if-no-js menu-top ', 'menu-posts', 'div' );82 $menu[5] = array( __('Posts'), 'edit_posts', 'edit.php', '', 'open-if-no-js menu-top menu-icon-posts', 'menu-posts', 'div' ); 83 83 $submenu['edit.php'][5] = array( __('Edit'), 'edit_posts', 'edit.php' ); 84 84 /* translators: add new post */ … … 94 94 unset($tax); 95 95 96 $menu[10] = array( __('Media'), 'upload_files', 'upload.php', '', 'menu-top ', 'menu-media', 'div' );96 $menu[10] = array( __('Media'), 'upload_files', 'upload.php', '', 'menu-top menu-icon-media', 'menu-media', 'div' ); 97 97 $submenu['upload.php'][5] = array( __('Library'), 'upload_files', 'upload.php'); 98 98 /* translators: add new file */ 99 99 $submenu['upload.php'][10] = array( _x('Add New', 'file'), 'upload_files', 'media-new.php'); 100 100 101 $menu[15] = array( __('Links'), 'manage_links', 'link-manager.php', '', 'menu-top ', 'menu-links', 'div' );101 $menu[15] = array( __('Links'), 'manage_links', 'link-manager.php', '', 'menu-top menu-icon-links', 'menu-links', 'div' ); 102 102 $submenu['link-manager.php'][5] = array( __('Edit'), 'manage_links', 'link-manager.php' ); 103 103 /* translators: add new links */ … … 105 105 $submenu['link-manager.php'][15] = array( __('Link Categories'), 'manage_categories', 'edit-link-categories.php' ); 106 106 107 $menu[20] = array( __('Pages'), 'edit_pages', 'edit.php?post_type=page', '', 'menu-top ', 'menu-pages', 'div' );107 $menu[20] = array( __('Pages'), 'edit_pages', 'edit.php?post_type=page', '', 'menu-top menu-icon-pages', 'menu-pages', 'div' ); 108 108 $submenu['edit.php?post_type=page'][5] = array( __('Edit'), 'edit_pages', 'edit.php?post_type=page' ); 109 109 /* translators: add new page */ 110 110 $submenu['edit.php?post_type=page'][10] = array( _x('Add New', 'page'), 'edit_pages', 'post-new.php?post_type=page' ); 111 111 112 $menu[25] = array( sprintf( __('Comments %s'), "<span id='awaiting-mod' class='count-$awaiting_mod'><span class='pending-count'>" . number_format_i18n($awaiting_mod) . "</span></span>" ), 'edit_posts', 'edit-comments.php', '', 'menu-top ', 'menu-comments', 'div' );112 $menu[25] = array( sprintf( __('Comments %s'), "<span id='awaiting-mod' class='count-$awaiting_mod'><span class='pending-count'>" . number_format_i18n($awaiting_mod) . "</span></span>" ), 'edit_posts', 'edit-comments.php', '', 'menu-top menu-icon-comments', 'menu-comments', 'div' ); 113 113 114 114 $_wp_last_object_menu = 25; // The index of the last top-level menu in the object menu group … … 117 117 $_wp_last_object_menu++; 118 118 $ptype_obj = get_post_type_object($ptype); 119 $menu[$_wp_last_object_menu] = array(esc_attr($ptype_obj->label), $ptype_obj->edit_type_cap, "edit.php?post_type=$ptype", '', 'menu-top', 'menu-posts', 'div'); 119 120 $menu[$_wp_last_object_menu] = array(esc_attr($ptype_obj->label), $ptype_obj->edit_type_cap, "edit.php?post_type=$ptype", '', 'menu-top menu-icon-posts', 'menu-' . sanitize_html_class($ptype), 'div'); 120 121 $submenu["edit.php?post_type=$ptype"][5] = array( __('Edit'), 'edit_posts', "edit.php?post_type=$ptype"); 121 122 /* translators: add new custom post type */ … … 134 135 $menu[59] = array( '', 'read', 'separator2', '', 'wp-menu-separator' ); 135 136 136 $menu[60] = array( __('Appearance'), 'switch_themes', 'themes.php', '', 'menu-top ', 'menu-appearance', 'div' );137 $menu[60] = array( __('Appearance'), 'switch_themes', 'themes.php', '', 'menu-top menu-icon-appearance', 'menu-appearance', 'div' ); 137 138 $submenu['themes.php'][5] = array(__('Themes'), 'switch_themes', 'themes.php'); 138 139 $submenu['themes.php'][10] = array(__('Menus'), 'switch_themes', 'nav-menus.php'); … … 152 153 $menu_perms = get_site_option('menu_items', array()); 153 154 if ( is_super_admin() || ( is_multisite() && isset($menu_perms['plugins']) && $menu_perms['plugins'] ) ) { 154 $menu[65] = array( sprintf( __('Plugins %s'), "<span class='update-plugins count-$update_count'><span class='plugin-count'>" . number_format_i18n($update_count) . "</span></span>" ), 'activate_plugins', 'plugins.php', '', 'menu-top ', 'menu-plugins', 'div' );155 $menu[65] = array( sprintf( __('Plugins %s'), "<span class='update-plugins count-$update_count'><span class='plugin-count'>" . number_format_i18n($update_count) . "</span></span>" ), 'activate_plugins', 'plugins.php', '', 'menu-top menu-icon-plugins', 'menu-plugins', 'div' ); 155 156 $submenu['plugins.php'][5] = array( __('Installed'), 'activate_plugins', 'plugins.php' ); 156 157 /* translators: add new plugin */ … … 161 162 162 163 if ( current_user_can('edit_users') ) 163 $menu[70] = array( __('Users'), 'edit_users', 'users.php', '', 'menu-top ', 'menu-users', 'div' );164 $menu[70] = array( __('Users'), 'edit_users', 'users.php', '', 'menu-top menu-icon-users', 'menu-users', 'div' ); 164 165 else 165 $menu[70] = array( __('Profile'), 'read', 'profile.php', '', 'menu-top ', 'menu-users', 'div' );166 $menu[70] = array( __('Profile'), 'read', 'profile.php', '', 'menu-top menu-icon-users', 'menu-users', 'div' ); 166 167 167 168 if ( current_user_can('edit_users') ) { … … 176 177 } 177 178 178 $menu[75] = array( __('Tools'), 'read', 'tools.php', '', 'menu-top ', 'menu-tools', 'div' );179 $menu[75] = array( __('Tools'), 'read', 'tools.php', '', 'menu-top menu-icon-tools', 'menu-tools', 'div' ); 179 180 $submenu['tools.php'][5] = array( __('Tools'), 'read', 'tools.php' ); 180 181 $submenu['tools.php'][10] = array( __('Import'), 'import', 'import.php' ); … … 185 186 $submenu['tools.php'][50] = array(__('Network'), 'manage_options', 'network.php'); 186 187 187 $menu[80] = array( __('Settings'), 'manage_options', 'options-general.php', '', 'menu-top ', 'menu-settings', 'div' );188 $menu[80] = array( __('Settings'), 'manage_options', 'options-general.php', '', 'menu-top menu-icon-settings', 'menu-settings', 'div' ); 188 189 $submenu['options-general.php'][10] = array(_x('General', 'settings screen'), 'manage_options', 'options-general.php'); 189 190 $submenu['options-general.php'][15] = array(__('Writing'), 'manage_options', 'options-writing.php');
Note: See TracChangeset
for help on using the changeset viewer.