| 1 |
Sprite Graphic Menu
|
| 2 |
----------------------
|
| 3 |
Author - Ariel Barreiro (hanoii) http://drupal.org/user/23157
|
| 4 |
abarrei@gmail.com
|
| 5 |
|
| 6 |
Overview:
|
| 7 |
--------
|
| 8 |
It let you upload a sprite image for a menu item and, with the use of CSS,
|
| 9 |
configure different sprites of the image for different states of the link
|
| 10 |
(normal, visited, hover and active).
|
| 11 |
|
| 12 |
IMPORTANT NOTE
|
| 13 |
|
| 14 |
This module overrides two phptemplate functions (phptemplate_menu_item_link()
|
| 15 |
and phptemplate_links()). If you are planning on installing this module on a theme
|
| 16 |
that overides those functions as well, you'll need to rename them to
|
| 17 |
phptemplate_spritemenu_menu_item_link() and phptemplate_spritemenu_links(). If
|
| 18 |
you do this, you will also need to modify your theme code so they include proper
|
| 19 |
IDs on the links for the CSS of this module to work properly.
|
| 20 |
|
| 21 |
Please refer to the code and look for theme_spritemenu_menu_item_link() and
|
| 22 |
theme_spritemenu_links() for ideas on how to do it.
|
| 23 |
|
| 24 |
You will receive an install error if the module finds these funtion on your theme
|
| 25 |
and it won't let you install the module until you rename them.
|
| 26 |
|
| 27 |
If at any moment, you decide to disable this module, rename back your overides
|
| 28 |
to the proper names.
|
| 29 |
|
| 30 |
Sponsored by:
|
| 31 |
Infomagnet (http://www.infomagnet.com)
|
| 32 |
|
| 33 |
Installation:
|
| 34 |
------------
|
| 35 |
|
| 36 |
1. Copy the spritemenu directory to the Drupal sites/<...>/modules/ directory.
|
| 37 |
|
| 38 |
2. Go to "Administer" -> "Modules" and enable the module.
|
| 39 |
|
| 40 |
3. Go to "Administer" -> "Menus" and edit any of the menus.
|
| 41 |
|
| 42 |
4. You will see a "Sprite Graphic Menu" collapsed underneath the normal menu
|
| 43 |
form. You can upload the sprite image and configure the sprite coordinates of the
|
| 44 |
different states from there.
|
| 45 |
|
| 46 |
Last updated:
|
| 47 |
------------
|
| 48 |
$Id$
|