public createCssLoader ( string $name ) : WebLoader\Nette\CssLoader | ||
$name | string | |
Résultat | WebLoader\Nette\CssLoader |
public function startup() { parent::startup(); $this->cssLoader = $this->webLoader->createCssLoader('default'); $this->jsLoader = $this->webLoader->createJavaScriptLoader('default'); // css file $cssCompiler = $this->cssLoader->getCompiler(); $this->cssLoaderFile = $cssCompiler->getOutputNamingConvention()->getFilename($cssCompiler->getFileCollection()->getFiles(), $cssCompiler) . '?' . $cssCompiler->getLastModified(); // js file $jsCompiler = $this->jsLoader->getCompiler(); $this->jsLoaderFile = $jsCompiler->getOutputNamingConvention()->getFilename($jsCompiler->getFileCollection()->getFiles(), $jsCompiler) . '?' . $jsCompiler->getLastModified(); }
/** * @param string $name * @return CssLoader */ public function createCssLoader(string $name = self::DEFAULT_CSS_SECTION) : CssLoader { return $this->loaderFactory->createCssLoader($name); }
/** * @param LoaderFactory $f abstraktní továrna WebLoader * @return CssLoader */ protected function createComponentCss(LoaderFactory $f) { return $f->createCssLoader('front'); }
protected function createComponentCss() { return $this->webLoader->createCssLoader('default')->setMedia('screen,projection,tv,print'); }
protected function createComponentCss() { return $this->webLoader->createCssLoader('frontend'); }
/** * @param string $module * @return string */ public function renderCss($module = 'default') { $control = $this->factory->createCssLoader($module); return $control->render(); }
/** @return CssLoader */ protected function createComponentCss() { return $this->webLoader->createCssLoader('default'); }