Changeset 42 for trunk/lib/Nav.inc.php
- Timestamp:
- Dec 18, 2005 12:16:03 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Nav.inc.php
r41 r42 3 3 * The Nav:: class provides a system for working with navigation elements. 4 4 * Currently it supports storing page titles and URLs for printing breadcrumbs 5 * and titles, as well as setting page features such as hiding the page title on 5 * and titles, as well as setting page features such as hiding the page title on 6 6 * some pages but not others. 7 7 * … … 60 60 ); 61 61 } 62 62 63 63 /** 64 64 * Set the features of the current page. Future versions of this class … … 73 73 { 74 74 $page_id = $this->_calculatePageID($page_id); 75 75 76 76 if (isset($features) && is_array($features) && isset($this->pages[sizeof($this->pages)-1]['features']) && is_array($this->pages[sizeof($this->pages)-1]['features'])) { 77 77 // Set features for specified page. … … 96 96 * OUTPUT 97 97 *****************************************************************************/ 98 98 99 99 /** 100 100 * Get the value of a feature for specified page_id or current page if page_id not specified (future use). … … 108 108 { 109 109 $page_id = $this->_calculatePageID($page_id); 110 110 111 111 if (isset($this->pages[$page_id]['features'][$feature])) { 112 112 switch ($feature) { … … 123 123 } 124 124 125 125 126 126 /** 127 127 * Returns the title of current page. … … 134 134 { 135 135 $page_id = $this->_calculatePageID($page_id); 136 136 137 137 if ($this->getFeature('title', $page_id)) { 138 138 return oTxt($this->pages[$page_id]['title'], true); … … 163 163 { 164 164 $page_id = $this->_calculatePageID($page_id); 165 165 166 166 if ($this->getFeature('path', $page_id)) { 167 167 $path = ''; … … 202 202 { 203 203 $page_id = $this->_calculatePageID($page_id); 204 204 205 205 if ($this->getFeature('breadcrumbs')) { 206 206 $breadcrumbs = ''; … … 232 232 $pathmark = $this->path_delimiter; 233 233 $crumb_count--; 234 234 235 235 if ($curr_id === $page_id) { 236 236 // Reached requested page. … … 253 253 echo $this->getBreadcrumbs($page_id); 254 254 } 255 255 256 256 /** 257 257 * Returns a string if the queried page is the current page. One use is to print … … 272 272 } 273 273 } 274 274 275 275 /** 276 276 * Returns the ID of the current page, or the adjusted ID for a given page ID. … … 289 289 } 290 290 } 291 292 } 291 292 } 293 293 // End of class. 294 294
Note: See TracChangeset
for help on using the changeset viewer.