original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: 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
docstring_tokens: 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 .