themes.php 390 B

12345678910111213141516171819202122
  1. <?php
  2. namespace Grav\Plugin\Admin;
  3. /**
  4. * Admin theme object
  5. *
  6. * @author RocketTheme
  7. * @license MIT
  8. */
  9. class Themes extends \Grav\Common\Themes
  10. {
  11. public function init()
  12. {
  13. /** @var Themes $themes */
  14. $themes = $this->grav['themes'];
  15. $themes->configure();
  16. $themes->initTheme();
  17. $this->grav->fireEvent('onAdminThemeInitialized');
  18. }
  19. }