/** * Do a few checks to get the theme path for a given asset url. * * @param string $url * @return string */ protected function assetUrl($url) { if ($this->url->isValidUrl($url)) { return $url; } $theme = StylistFacade::current(); if ($theme) { $themePath = $theme->getAssetPath(); $url = "themes/{$themePath}/{$url}"; } return $url; }
public function init() { $this->builder = new ThemeHtmlBuilder($this->app['html'], $this->app['url']); StylistFacade::registerPath(__DIR__ . '/../Stubs/Themes/Parent'); StylistFacade::activate('Parent theme'); }