Sie sind auf Seite 1von 3

Advanced Drop Down Menus for WordPress Admin Version 2.5.

2 18th March 2008 **************************************************** NOTE: THIS VERSION WILL ONLY WORK WITH WORDPRESS 2.5 **************************************************** _______________________________________________________________ WHAT DOES THIS PLUGIN DO?: The standard menus that come with WordPress require 2 clicks and page loads to get where you want to go (for anything other than the top item). At the same time, WP 2.5 has spread the menus all over the place. This plugin replaces the standard admin menus with proper drop down menus and brings them back all in one place (with the exception of the dashboard). ________________________________________________________________ NOTE: This plugin requires Javascript to be enabled. ________________________________________________________________ TARGET VERSION This version is intended for use in WordPress version 2.5 ONLY. Earlier versions are also available. ________________________________________________________________ INSTALLATION Unzip and copy the plugin folder into your plugins directory (under wp-content). Go to your plugins management page and activate the plugin. ________________________________________________________________ BROWSERS

I have done as much testing as I can! Works for me using (Mac) FireFox, Safari, OmniWeb, Netscape and Opera - and (Windows) FireFox, Opera and Internet Explorer 6 and 7. No guarantees on other browsers. ________________________________________________________________ ACKNOWLEDGEMENT Icons come courtesy of Mark James (http://www.famfamfam.com/lab/icons/silk/) from his 'silk' collection. _________________________________________________________________ USING YOUR OWN ICONS
There are two ways of changing the standard icon set and also possible to have special icons for your plugins. Plugin authors could also supply an icon with their package. Please note that ALL icons must be 16 x 16 pixels. Supplied icons (with 1 exception) are all .png image files. Swap standard icons for your own The easiest way is to simply replace the icons in the plugins images folder. These are all named after their corresponding menu name. Use the built-in filter This was suggested by a user whose name, I am ashamed to say, I have lost. The following code example shows how this can be achieved: add_filter('admin_menus_add_icons', 'add_my_own_icons'); function add_my_own_icons($icon, $menu_item) { if ( $menu_item == 'Name of my Menu Item' ) { return 'my_icon.png'; } else { return $icon; }

$icon will contain the name of the default icon $menu_item will contain the literal text of the menu item Using special icons for third party plugins As standard, third party plugins are all given the same plugin icon for their menu entries. You can change this by adding an icon file to the plugins home folder. The rule here is that the name of the icon must be identical to the name of the php file that the menu calls - and must be a .png file. You can easily find this out by hovering the mouse over the plugin entry in the menu, and looking in the browsers status bar. In this way, plugin authors could easily supply an icon with the plugin that would work with these menus.

________________________________________________________________ PROBLEMS
If you experience problems not covered here then please visit my support forum where it may already have been answered. Please do not request support in the comments section of the plugin page.

Andy Staines 17th Match 2008 http://www.stuff.yellowswordfish.com

Das könnte Ihnen auch gefallen