Example #1
0
 protected function getThemeData($dirName)
 {
     if (!($theme = CmsTheme::load($dirName))) {
         throw new Exception(Lang::get('Unable to find theme with name :name', $dirName));
     }
     $model = ThemeData::forTheme($theme);
     return $model;
 }
Example #2
0
 /**
  * Determine if an attribute exists on the object.
  * @param  string  $key
  * @return void
  */
 public function __isset($key)
 {
     if ($this->hasCustomData()) {
         $theme = ThemeData::forTheme($this);
         return isset($theme->{$key});
     }
     return false;
 }
Example #3
0
 protected function getThemeData($dirName)
 {
     $theme = $this->findThemeObject($dirName);
     $model = ThemeData::forTheme($theme);
     return $model;
 }
Example #4
0
 /**
  * Returns data specific to this theme
  * @return Cms\Models\ThemeData
  */
 public function getCustomData()
 {
     return ThemeData::forTheme($this);
 }