BxTemplConfig.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. $this->_aConfig['aLessConfig'] = array_merge($this->_aConfig['aLessConfig'], array(
  16. 'bx-color-page' => '#b9e2f6',
  17. 'bx-color-sec' => '#fff',
  18. 'bx-color-hl' => 'rgba(202, 242, 252, 0.2)',
  19. 'bx-color-active' => 'rgba(202, 242, 252, 0.4)',
  20. ));
  21. bx_import('BxDolTemplate');
  22. $sCode = BxDolTemplate::getInstance()->getCode();
  23. $sStaticImages = BX_DOL_URL_ROOT . 'templates/tmpl_' . $sCode . '/images/';
  24. bx_import('BxDolConfig');
  25. $oSysConfig = BxDolConfig::getInstance();
  26. $oSysConfig->set('url_static', 'images', $sStaticImages);
  27. $oSysConfig->set('url_static', 'icons', $sStaticImages . 'icons/');
  28. $oSysConfig->set('path_static', 'css', BX_DIRECTORY_PATH_ROOT . 'templates/tmpl_' . $sCode . '/css/');
  29. }
  30. }
  31. /** @} */