• Previous message: [greg-dev] Nightly Builds
  • Next message: [greg-dev] i18n and form-submit-actions
  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    [greg-dev] cls/wrappers/nav.php

    Hi,
    
    yesterday I wrote about the nav.php template in the theme folder which 
    is not called.
    
     >>in the index.php there is a function call rss_nav_items(), which 
    calls >>the wrapper function rss_nav_items(), which creates a new 
    instance of >>Navigator and renders the items. So the nav.php template 
    will be >>needless. It's never called.
    
    I wrote a function and a bugfix (if it's called as a bug ,-) )
    maybe it is usefull - hope I fullfilled the coding-styles.
    I orientated on the other rss_nav... functions, which are accessing the 
    $GLOBALS['rss']->nav object.
    
    php-code-begin
    ---------------
    
    function rss_nav()
    {
         $nav = new Navigation();
         $nav -> render();
    }
    
    
    function rss_nav_items()
    {
         foreach ($GLOBALS['rss']->nav->items as $item) {
             $item -> render();
         }
    }
    
    php-code-end
    ------------
    
    Maybe you could think about applying it to gregarius.
    
    Best regards,
    Marcus.
    
    -- 
    Marcus Kimpenhaus
    
    Polsumer Str. 56
    45896 Gelsenkirchen
    
    +49 (209) 9256075
    marcus at kimpenhaus.de
    
    Posted by Marcus Kimpenhaus [reply] at Thu Sep 15 18:53:21 CEST 2005