php.net |  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: curt@php.net Assigned: ilia (profile)
Status: Closed Package: Livedocs problem
PHP Version: Irrelevant OS: *
Private report: No CVE-ID: None
 [2004-09-23 04:05 UTC] curt@php.net
Description:
------------
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:

http://www.powertrip.co.za/livedocs/viewpatch.php?patch=12

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.



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-02-09 21:03 UTC] iliaa@php.net
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
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sat Apr 04 03:01:24 2020 UTC