mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-01 19:06:16 +01:00
* Separated Admin Controller into a generic and extendable Base controller. Added Autoload for properly loading classes * Implemented custom class loader to force lowercase * Removed composer autoloader for classes * Updates * Ability to pass custom upload URL for files * Added new onAdminCanSave event for 3rd party plugins * Moved files upload GC in onOutputGenerated event * Cleanup * Moved autoloader so it is always registering * Fixed onOutputGenerated event location * Moved `taskRemoveFileFromBlueprint`, `taskRemoveMedia `, `canEditMedia` methods to admin base controller * Allow to globally define `blueprint_type` and `file_url_remove` for the file field * Moved `isMultilang()` into base controller * Properly generate thumbnails in proportions for file fields * Simplified execute restrictions with blacklist
21 lines
359 B
PHP
21 lines
359 B
PHP
<?php
|
|
namespace Grav\Plugin\Admin;
|
|
|
|
/**
|
|
* Admin theme object
|
|
*
|
|
* @author RocketTheme
|
|
* @license MIT
|
|
*/
|
|
class Themes extends \Grav\Common\Themes
|
|
{
|
|
public function init()
|
|
{
|
|
/** @var Themes $themes */
|
|
$themes = $this->grav['themes'];
|
|
$themes->configure();
|
|
|
|
$this->grav->fireEvent('onAdminThemeInitialized');
|
|
}
|
|
}
|