started on new themes list

This commit is contained in:
Andy Miller
2014-10-03 15:40:58 -06:00
parent af4eb844d4
commit 1f3cde124e
9 changed files with 140 additions and 74 deletions

View File

@@ -281,24 +281,6 @@ class Admin
return array_shift($path) . ($path ? '[' . implode('][', $path) . ']' : '');
}
/**
* Get all themes.
*
* @return array
*/
public function themes()
{
if (!$this->localPackages) {
$this->localPackages = new LocalPackages();
}
return $this->localPackages['themes']->toArray();
/** @var Themes $themes */
/*$themes = $this->grav['themes'];
return $themes->all();*/
}
/**
* Get all routes.
*
@@ -323,10 +305,22 @@ class Admin
}
return $this->localPackages['plugins'];
}
/** @var Plugins $plugins */
/*$plugins = $this->grav['plugins'];
return $plugins->all();*/
/**
* Get all themes.
*
* @return array
*/
public function themes()
{
if (!$this->localPackages) {
$this->localPackages = new LocalPackages();
}
return $this->localPackages['themes'];
}
/**