protected function getThemeDir() { $path = $this->getValue(); if (empty($path)) { return ''; } $dir_arr = explode(DIR_SEP, $path); if (2 < count($dir_arr)) { return $dir_arr[0] . DIR_SEP . $dir_arr[1]; } return $path; }