protected function loadThemeByPath($themePath)
{
$themePath .= $this->themeConfigFileName;
foreach ($this->findAllThemesConfigPaths() as $id => $rpath) {
if ($themePath == $rpath) {
$path = $this->toFullPath($rpath);
if (file_exists($path)) {
$xml = $this->loadXML($path);
if ($xml != NULL) {
$theme = $this->loadTheme($xml, $id, $rpath);
if ($theme != NULL) {
return $theme;
}
}
}
return null;
}
}
return null;
}