public function url($url)
{
if (Config::get('themes.enabled', true)) {
// Check for valid {xxx} keys and replace them with the Theme's configuration value (in themes.php)
preg_match_all('/\\{(.*?)\\}/', $url, $matches);
foreach ($matches[1] as $param) {
if (($value = $this->config($param)) !== null) {
$url = str_replace('{' . $param . '}', $value, $url);
}
}
return $this->activeTheme->url($url);
}
return $url;
}