BxTemplConfig.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 TridentCore Trident 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-font-family' => '"Source Sans Pro", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif',
  17. 'bx-color-page' => '#b9e2f6',
  18. 'bx-color-block' => '#fff',
  19. 'bx-color-box' => '#daf8ff',
  20. 'bx-color-sec' => '#fff',
  21. 'bx-color-hl' => 'rgba(202, 242, 252, 0.2)',
  22. 'bx-color-active' => 'rgba(202, 242, 252, 0.4)',
  23. 'bx-border-color' => '#00a0ce',
  24. ));
  25. if(class_exists('BxDolDb') && BxDolDb::getInstance())
  26. $this->_aConfig['aLessConfig']['bx-page-width'] = getParam('bx_ocean_page_width') . 'px';
  27. bx_import('BxDolTemplate');
  28. $sCode = BxDolTemplate::getInstance()->getCode();
  29. $sStaticImages = BX_DOL_URL_ROOT . 'templates/tmpl_' . $sCode . '/images/';
  30. bx_import('BxDolConfig');
  31. $oSysConfig = BxDolConfig::getInstance();
  32. $oSysConfig->set('url_static', 'images', $sStaticImages);
  33. $oSysConfig->set('url_static', 'icons', $sStaticImages . 'icons/');
  34. $oSysConfig->set('path_static', 'css', BX_DIRECTORY_PATH_ROOT . 'templates/tmpl_' . $sCode . '/css/');
  35. }
  36. }
  37. /** @} */