Changeset 3149

Show
Ignore:
Timestamp:
06/07/07 09:00:28 (1 month ago)
Author:
demian
Message:

Added ability to set theme on a per-module basis

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/0.6-bugfix/CHANGELOG.txt

    r3141 r3149  
    1111 
    1212IMPROVEMENTS 
     1307-06-07    Added ability to set theme on a per-module basis (Thomas Goetz) 
    131404-06-07    Improved dynamic navigation, see http://trac.seagullproject.org/ticket/1470 
    1415            (Dmitri Lakachauskis) 
  • branches/0.6-bugfix/lib/SGL/Task/Process.php

    r3065 r3149  
    710710            $output->isMember = true; 
    711711        } 
     712        // check if theme is affected by the current manager 
     713        $mgrName = SGL_Inflector::caseFix(get_class($output->manager)); 
     714        if (isset($this->conf[$mgrName]['theme'])) { 
     715            $output->theme = $this->conf[$mgrName]['theme']; 
     716        } 
    712717        $output->currUrl          = $_SERVER['PHP_SELF']; 
    713718        $output->currLang         = SGL::getCurrentLang();