/** * frontend_css_load * * returns a url to the compressed css * passed in the file parameter * * smarty parameters: * string file * * example: {cache_css file="path/to/file"} * * @param array $params * @access public * @return url or bool */ function frontend_css_load($params) { if (!$params['file']) { return; } $name = 'FURASTA_FRONTEND_CSS_' . $params['file']; return cache_css($name, $params['file']); }
/** * cssUrls * * Returns a unique URL to load which * will contain all of the CSS added * during runtime. * * @access public * @return string */ public function cssUrls() { $files = $this->cssFiles; $sources = $this->cssSources; $scripts = $files + $sources; $urls = array(); foreach ($scripts as $name => $file) { array_push($urls, cache_css($name, $file)); } return $urls; }