Exemple #1
0
 /**
  * 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');
 }
Exemple #2
0
 /**
  * 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()));
     }
 }
 /**
  * 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.');
 }