[PATCH] livedoc navigation
| From: | Curt Zirzow | Date: | Wed, 15 Sep 2004 03:29:50 +0000 |
| Subject: | [PATCH] livedoc navigation | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969364120@lists.php.net to get a copy of this message | ||
Wez, Iliaa and doc group:
I've done some major work on the navigation generation, the changes
I made were made with the idea that this code is being used on
other systems and shouldn't break anything.
http://zirzow.dyndns.org/patches/livedocs/navigation.patch
(indentation made properly this time :)
The patch is relatively complicated but it comes down to the idea of
allowing the theme/*/html_format.php to define how the menu is
displayed and generated. The bullet list of changes:
* create new constansts, that are defined in the html_format.php:
NAV_TRUNCATE - 0 for no truncation, otherwise truncates at
number specified. (defaults to 25)
NAV_SPACE - the character to use for spaces between navigation
words. (default )
NAV_START - html to be used before navigation should be started.
NAV_END - html used after navigation
NAV_CHILDREN_EMBEDED - where to place children navigation items.
if true, under the currently selected item, otherwise at the end
of the list. (defaults to false)
* new optionional nav_item() function. used to wrap special
html around a navigation element.
* special css classes on navigation items that get folded.
(header up home)
* special css class on the last child,if CHILDREN_EMBEDED is true.
I'm up for any re-coding, to allow things like this to happen, it is
expecially needed to display the new tableless layout I'm working
on for the php.net theme:
http://livedocs.zirzow.dyndns.org/en/manual.html
Curt
--
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about. No, sir. Our model is the trapezoid!