/[drupal]/contributions/modules/spritemenu/README.txt
ViewVC logotype

Contents of /contributions/modules/spritemenu/README.txt

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Thu Dec 25 21:18:38 2008 UTC (11 months ago) by hanoii
Branch: MAIN
CVS Tags: DRUPAL-6--1-0, DRUPAL-6--1-1, DRUPAL-5--1-1, DRUPAL-5--1-0, HEAD
Branch point for: DRUPAL-5, DRUPAL-6--1
File MIME type: text/plain
Initial commit. This module let you upload a sprite image for a menu item and, with the use of CSS, configure different sprites of the image for different states of the link (normal, visited, hover and active).
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$

  ViewVC Help
Powered by ViewVC 1.1.2