public function config($key, $defaultValue = null)
{
//root theme not have configs
if (array_key_exists($this->name, $confs = \Config::get("themes.themes"))) {
if (array_key_exists($key, $conf = $confs[$this->name])) {
return $conf[$key];
}
}
if ($this->getParent()) {
return $this->getParent()->config($key, $defaultValue);
}
return $defaultValue;
}