Пример #1
0
 public function getStylesheets()
 {
     $res = $this->getResourcesByExt(".css");
     $output = Cache::Pub($this->tag . ".css");
     if (!MINIFY_JSCSS) {
         $output->delete();
         return array_map(array($this, "web"), $res);
     }
     if ($output->check()) {
         $out = $output->openWrite();
         foreach ($res as $item) {
             fwrite($out, $this->minifyStylesheet($item) . "\n");
         }
         fclose($out);
     }
     return array($this->web($output->getFilename()));
 }