BxTemplConfig.php 905 B

12345678910111213141516171819202122232425262728293031
  1. <?php defined('BX_DOL') or die('hack attempt');
  2. /**
  3. * Copyright (c) BoonEx Pty Limited - http://www.boonex.com/
  4. * CC-BY License - http://creativecommons.org/licenses/by/3.0/
  5. *
  6. * @defgroup DolphinCore Dolphin Core
  7. * @{
  8. */
  9. bx_import('BxBaseConfig');
  10. class BxTemplConfig extends BxBaseConfig
  11. {
  12. function __construct()
  13. {
  14. parent::__construct();
  15. bx_import('BxDolTemplate');
  16. $sCode = BxDolTemplate::getInstance()->getCode();
  17. $sStaticImages = BX_DOL_URL_ROOT . 'templates/tmpl_' . $sCode . '/images/';
  18. bx_import('BxDolConfig');
  19. $oSysConfig = BxDolConfig::getInstance();
  20. $oSysConfig->set('url_static', 'images', $sStaticImages);
  21. $oSysConfig->set('url_static', 'icons', $sStaticImages . 'icons/');
  22. $oSysConfig->set('path_static', 'css', BX_DIRECTORY_PATH_ROOT . 'templates/tmpl_' . $sCode . '/css/');
  23. }
  24. }
  25. /** @} */