Beispiel #1
0
 private static function _findCssFile($sTemplate)
 {
     if ($aDirs = M::TEMPLATE_CSS()) {
         foreach ($aDirs as $sDir) {
             $sPath = M::PROJECT_ROOT() . '/' . $sDir . '/tpl.' . $sTemplate . '.css';
             if (file_exists($sPath)) {
                 self::$_aCss[$sTemplate] = $sPath;
                 return;
             }
         }
     }
 }