|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30204 hardcoded html in navigation needs to be removed.
Submitted: 2004-09-23 04:05 UTC Modified: 2005-02-09 21:03 UTC
From: Assigned: ilia (profile)
Status: Closed Package: Livedocs problem
PHP Version: Irrelevant OS: *
Private report: No CVE-ID: None
 [2004-09-23 04:05 UTC]
In order to generate a menu similar to php's, the generation of the menu needs to by flexible, Here is a patch that will allow this:

Summary 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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-02-09 21:03 UTC]
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Mar 04 12:01:27 2024 UTC