protected function integrateAllCss() { $this->setCssFileName(); foreach ($this->csss as $key => $csss) { $set_css[$key][] = array('href' => Url::normalizeUrl($this->config['URIBasePath'] . $this->config['PublicCacheDir'] . $this->config['cacheId'] . $this->config['CssMinifiedFilePath'] . $this->filename[$key]), 'type' => 'text/css', 'rel' => 'stylesheet', 'media' => $key); $this->filename[$key] = $this->config['BasePath'] . $this->config['PublicCacheDir'] . '/' . $this->config['cacheId'] . $this->config['CssMinifiedFilePath'] . $this->filename[$key]; $this->makeFilePath($this->filename[$key], $key); if (!file_exists($this->completeFilePath[$key])) { foreach ($csss as $item) { if ($item['data-type'] == 'inline') { $referer = filter_input(INPUT_SERVER, 'REQUEST_URI'); } else { $referer = $item['href']; } $this->content[$key] .= $this->fixUrl($this->get_data($item['href']), Url::normalizeUrl($referer)) . PHP_EOL; } $this->writeCssFile($key); } } $this->htmlHeaders->setCss($set_css); }