Changeset 42 for trunk/lib/Nav.inc.php


Ignore:
Timestamp:
Dec 18, 2005 12:16:03 AM (18 years ago)
Author:
scdev
Message:

detabbed all files ;P

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Nav.inc.php

    r41 r42  
    33 * The Nav:: class provides a system for working with navigation elements.
    44 * 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
    66 * some pages but not others.
    77 *
     
    6060        );
    6161    }
    62    
     62
    6363    /**
    6464     * Set the features of the current page. Future versions of this class
     
    7373    {
    7474        $page_id = $this->_calculatePageID($page_id);
    75        
     75
    7676        if (isset($features) && is_array($features) && isset($this->pages[sizeof($this->pages)-1]['features']) && is_array($this->pages[sizeof($this->pages)-1]['features'])) {
    7777            // Set features for specified page.
     
    9696 * OUTPUT
    9797 *****************************************************************************/
    98  
     98
    9999    /**
    100100     * Get the value of a feature for specified page_id or current page if page_id not specified (future use).
     
    108108    {
    109109        $page_id = $this->_calculatePageID($page_id);
    110        
     110
    111111        if (isset($this->pages[$page_id]['features'][$feature])) {
    112112            switch ($feature) {
     
    123123    }
    124124
    125        
     125
    126126    /**
    127127     * Returns the title of current page.
     
    134134    {
    135135        $page_id = $this->_calculatePageID($page_id);
    136        
     136
    137137        if ($this->getFeature('title', $page_id)) {
    138138            return oTxt($this->pages[$page_id]['title'], true);
     
    163163    {
    164164        $page_id = $this->_calculatePageID($page_id);
    165        
     165
    166166        if ($this->getFeature('path', $page_id)) {
    167167            $path = '';
     
    202202    {
    203203        $page_id = $this->_calculatePageID($page_id);
    204        
     204
    205205        if ($this->getFeature('breadcrumbs')) {
    206206            $breadcrumbs = '';
     
    232232                $pathmark = $this->path_delimiter;
    233233                $crumb_count--;
    234                
     234
    235235                if ($curr_id === $page_id) {
    236236                    // Reached requested page.
     
    253253        echo $this->getBreadcrumbs($page_id);
    254254    }
    255    
     255
    256256    /**
    257257     * Returns a string if the queried page is the current page. One use is to print
     
    272272        }
    273273    }
    274    
     274
    275275    /**
    276276     * Returns the ID of the current page, or the adjusted ID for a given page ID.
     
    289289        }
    290290    }
    291    
    292 } 
     291
     292}
    293293// End of class.
    294294
Note: See TracChangeset for help on using the changeset viewer.