BxDecorousModule.php 839 B

12345678910111213141516171819202122232425262728293031
  1. <?php defined('BX_DOL') or die('hack attempt');
  2. /**
  3. * Copyright (c) UNA, Inc - https://una.io
  4. * MIT License - https://opensource.org/licenses/MIT
  5. *
  6. * @defgroup Decorous Decorous template
  7. * @ingroup UnaModules
  8. *
  9. * @{
  10. */
  11. bx_import ('BxBaseModTemplateModule');
  12. class BxDecorousModule extends BxBaseModTemplateModule
  13. {
  14. function __construct(&$aModule)
  15. {
  16. parent::__construct($aModule);
  17. }
  18. function serviceIncludeCssJs()
  19. {
  20. if(BxDolTemplate::getInstance()->getCode() != $this->_oConfig->getUri())
  21. return '';
  22. $sCss = trim(getParam($this->_oConfig->getName() . '_styles_custom'));
  23. return (!empty($sCss) ? $this->_oTemplate->_wrapInTagCssCode($sCss) : '') . $this->_oTemplate->_wrapInTagJs(BX_DOL_URL_MODULES . 'boonex/decorous/template/js/custom.js');
  24. }
  25. }
  26. /** @} */