public function themeUrl($url = null)
    {
        $themeDir = $this->getTheme()->getDirName();

        if (is_array($url)) {
            $_url = Url::to(CombineAssets::combine($url, themes_path().'/'.$themeDir));
        }
        else {
            $_url = Config::get('cms.themesPath', '/themes').'/'.$themeDir;
            if ($url !== null) {
                $_url .= '/'.$url;
            }
            $_url = Url::asset($_url);
        }

        return $_url;
    }
public function themeUrl($url = null)
    {
        $themeDir = $this->getTheme()->getDirName();

        if (is_array($url)) {
            $_url = Url::to(CombineAssets::combine($url, themes_path().'/'.$themeDir));
        }
        else {
            $_url = Config::get('cms.themesPath', '/themes').'/'.$themeDir;
            if ($url !== null) {
                $_url .= '/'.$url;
            }
            $_url = Url::asset($_url);
        }

        return $_url;
    }
public function themeUrl ( $ url = null ) { $ themeDir = $ this -> getTheme ( ) -> getDirName ( ) ; if ( is_array ( $ url ) ) { $ _url = Url :: to ( CombineAssets :: combine ( $ url , themes_path ( ) . '/' . $ themeDir ) ) ; } else { $ _url = Config :: get ( 'cms.themesPath' , '/themes' ) . '/' . $ themeDir ; if ( $ url !== null ) { $ _url .= '/' . $ url ; } $ _url = Url :: asset ( $ _url ) ; } return $ _url ; }
Converts supplied URL to a theme URL relative to the website root. If the URL provided is an
array then the files will be combined.
@param mixed $url Specifies the theme-relative URL. If null, the theme path is returned.
@return string
Converts supplied URL to a theme URL relative to the website root . If the URL provided is an array then the files will be combined .