コード例 #1
0
ファイル: ThemeOptions.php プロジェクト: SocietyCMS/Setting
 /**
  * Get the options defined in the themes json file.
  *
  * @return mixed
  */
 public function getOptions()
 {
     if ($this->options) {
         return $this->options;
     }
     return $this->options = (new \FloatingPoint\Stylist\Theme\Json($this->theme->getPath()))->getJsonAttribute('options');
 }
コード例 #2
0
ファイル: Stylist.php プロジェクト: gmonte/midig-cms
 /**
  * Activates the view finder paths for a theme and its parents.
  *
  * @param Theme $theme
  */
 protected function activateFinderPaths(Theme $theme)
 {
     $this->view->addLocation($theme->getPath() . '/views/');
     if ($theme->hasParent()) {
         $this->activateFinderPaths($this->get($theme->getParent()));
     }
 }
コード例 #3
0
 /**
  * Publish a single theme's assets.
  *
  * @param Theme $theme
  */
 protected function publishSingle(Theme $theme)
 {
     $themePath = public_path('themes/' . $theme->getAssetPath());
     $this->laravel['files']->copyDirectory($theme->getPath() . '/assets/', $themePath);
     $this->info($theme->getName() . ' assets published.');
 }