BxBaseStudioConfig.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 DolphinView Dolphin Studio Representation classes
  7. * @ingroup DolphinStudio
  8. * @{
  9. */
  10. bx_import('BxTemplConfig');
  11. class BxBaseStudioConfig extends BxTemplConfig
  12. {
  13. function __construct()
  14. {
  15. parent::__construct();
  16. $this->_aConfig['aLessConfig'] = array_merge($this->_aConfig['aLessConfig'], array(
  17. 'bx-margin' => '30px',
  18. 'bx-margin-sec' => '20px',
  19. 'bx-margin-thd' => '10px',
  20. 'bx-padding' => '30px',
  21. 'bx-padding-sec' => '20px',
  22. 'bx-padding-thd' => '10px',
  23. 'bx-color-page' => '#ffffff',
  24. 'bx-border-color-layout' => '#cccccc',
  25. 'bx-size-widget' => '128px',
  26. 'bx-round-corners-radius-widget' => '32px',
  27. ));
  28. }
  29. public static function getInstance()
  30. {
  31. if(!isset($GLOBALS['bxDolClasses'][__CLASS__]))
  32. $GLOBALS['bxDolClasses'][__CLASS__] = new BxTemplStudioConfig();
  33. return $GLOBALS['bxDolClasses'][__CLASS__];
  34. }
  35. }
  36. /** @} */