mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-01 19:06:16 +01:00
started on new themes list
This commit is contained in:
@@ -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'];
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user