home.class.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. /**
  3. * FormIt
  4. *
  5. * Copyright 2019 by Sterc <modx@sterc.nl>
  6. */
  7. require_once dirname(__DIR__) . '/index.class.php';
  8. class FormItHomeManagerController extends FormItBaseManagerController
  9. {
  10. /**
  11. * @access public.
  12. */
  13. public function loadCustomCssJs()
  14. {
  15. $this->addJavascript($this->modx->formit->config['js_url'] . 'mgr/widgets/home.panel.js');
  16. $this->addJavascript($this->modx->formit->config['js_url'] . 'mgr/widgets/forms.grid.js');
  17. $this->addJavascript($this->modx->formit->config['js_url'] . 'mgr/widgets/encryption.grid.js');
  18. $this->addLastJavascript($this->modx->formit->config['js_url'] . 'mgr/sections/home.js');
  19. }
  20. /**
  21. * @access public.
  22. * @return String.
  23. */
  24. public function getPageTitle()
  25. {
  26. return $this->modx->lexicon('formit');
  27. }
  28. /**
  29. * @access public.
  30. * @return String.
  31. */
  32. public function getTemplateFile()
  33. {
  34. return $this->modx->formit->config['templates_path'] . 'home.tpl';
  35. }
  36. }