This patch
- defines three themeable sitemenu elements: box, page, and outline
- adds an optional setting for a page footer below the outlines to match the "description" above the outline
- removes the optional node counts from the links for better visual semantics: they are displayed, but outside the links
- renames non-hook/non-theme functions with a leading underscore for better naming consistency
- restructures function order to gather functions in three groups: custom, hooks, and themeing
- adds inline documentation for all functions
- includes the patch for http://drupal.org/node/59522
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | sitemenu_3.module | 12.66 KB | fgm |
| #2 | sitemenu.module_1.patch | 16.58 KB | fgm |
| #1 | sitemenu.module_0.patch | 16.09 KB | fgm |
Comments
Comment #1
fgmForgot to attach the path...
Comment #2
fgmImproved patch
Comment #3
Thomas Sewell commentedI was unable to apply this patch to sitemenu.module,v 1.16 2006/04/24 01:16:51
Perhaps there is something I'm missing here in order to be able to test the patch for you?
Comment #4
fgmDunno: I just tested on a plain CVS update of 1.16 and it applies:
Anyway, here is the patched version of the module.
Comment #5
Thomas Sewell commentedThanks. Tested it and the new setting to link to taxonomy pages works fine for me.
I suspect the patching problem was latest CVS vs. 4.7 tagged versions having the same version numbers/dates.
Comment #6
kbahey commentedCommitted to 4.7 and HEAD.
Thanks.
Comment #7
(not verified) commentedComment #8
gregglesOn a site that I have the I use
print _sitemenu_print_boxes(_sitemenu_overview());to output the sitemap into a page. I believe that the _ should be reserved for prefixing private functions.Is the implication that these functions shouldn't be used? If so - how do you recommend I rewrite that page?
Comment #9
kbahey commentedWell, this module was originally not meant to be callable, but since you are already doing this, how about I change
_sitemenu_overview() and _sitemenu_print_boxes() to sitemenu_overview() and sitemenu_print_boxes()?
That is all it takes. Please open a new issue, and I will fix it.