BxBaseStudioConfig.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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-border-color-layout' => '#cccccc',
  24. 'bx-size-widget' => '128px',
  25. 'bx-round-corners-radius-widget' => '32px',
  26. ));
  27. }
  28. public static function getInstance()
  29. {
  30. if(!isset($GLOBALS['bxDolClasses'][__CLASS__]))
  31. $GLOBALS['bxDolClasses'][__CLASS__] = new BxTemplStudioConfig();
  32. return $GLOBALS['bxDolClasses'][__CLASS__];
  33. }
  34. }
  35. /** @} */