|
|
@@ -9,21 +9,80 @@
|
|
|
|
|
|
class BxBaseConfig extends BxDol implements iBxDolSingleton {
|
|
|
|
|
|
- var $iTagsMinFontSize = 10; // minimal font size of tag
|
|
|
- var $iTagsMaxFontSize = 30; // maximal font size of tag
|
|
|
+ protected $_aConfig = array (
|
|
|
+ 'iTagsMinFontSize' => 10, // minimal font size of tag
|
|
|
+ 'iTagsMaxFontSize' => 30, // maximal font size of tag
|
|
|
+ 'bAllowUnicodeInPreg' => false, // allow unicode in regular expressions
|
|
|
+ 'aLessConfig' => array (
|
|
|
+ 'bx-margin' => '20px',
|
|
|
+ 'bx-margin-sec' => '10px',
|
|
|
+ 'bx-margin-thd' => '5px',
|
|
|
|
|
|
- var $bAllowUnicodeInPreg = false; // allow unicode in regular expressions
|
|
|
+ 'bx-padding' => '20px',
|
|
|
+ 'bx-padding-sec' => '10px',
|
|
|
+ 'bx-padding-thd' => '5px',
|
|
|
|
|
|
- function BxBaseConfig() {
|
|
|
- parent::BxDol();
|
|
|
+ 'bx-font-family' => '"Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif',
|
|
|
+
|
|
|
+ 'bx-size-avatar' => '96px',
|
|
|
+ 'bx-size-thumb' => '48px',
|
|
|
+ 'bx-size-icon' => '32px',
|
|
|
+
|
|
|
+ 'bx-color-page' => '#fff',
|
|
|
+ 'bx-color-block' => '#fff',
|
|
|
+ 'bx-color-box' => '#fff',
|
|
|
+ 'bx-color-sec' => '#f2f2f2',
|
|
|
+ 'bx-color-hl' => 'rgba(196, 248, 156, 0.2)',
|
|
|
+ 'bx-color-active' => 'rgba(196, 248, 156, 0.4)',
|
|
|
+
|
|
|
+ 'bx-border-width' => '1px',
|
|
|
+ 'bx-border-type' => 'solid',
|
|
|
+ 'bx-border-color' => '#d0d0d0',
|
|
|
+
|
|
|
+ 'bx-font-size-default' => '16px',
|
|
|
+ 'bx-font-size-small' => '12px',
|
|
|
+ 'bx-font-size-middle' => '14px',
|
|
|
+ 'bx-font-size-large' => '18px',
|
|
|
+ 'bx-font-size-h1' => '24px',
|
|
|
+ 'bx-font-size-h2' => '20px',
|
|
|
+ 'bx-font-size-h3' => '16px',
|
|
|
+
|
|
|
+ 'bx-font-color-default' => '#333',
|
|
|
+ 'bx-font-color-grayed' => '#999',
|
|
|
+ 'bx-font-color-contrasted' => '#fff',
|
|
|
+
|
|
|
+ 'bx-round-corners-radius' => '3px',
|
|
|
+ ),
|
|
|
+ );
|
|
|
+
|
|
|
+ function __construct()
|
|
|
+ {
|
|
|
+ parent::__construct();
|
|
|
}
|
|
|
|
|
|
- public static function getInstance() {
|
|
|
+ public static function getInstance()
|
|
|
+ {
|
|
|
if(!isset($GLOBALS['bxDolClasses'][__CLASS__]))
|
|
|
$GLOBALS['bxDolClasses'][__CLASS__] = new BxTemplConfig();
|
|
|
|
|
|
return $GLOBALS['bxDolClasses'][__CLASS__];
|
|
|
}
|
|
|
+
|
|
|
+ public function __get($sName)
|
|
|
+ {
|
|
|
+ if (array_key_exists($sName, $this->_aConfig))
|
|
|
+ return $this->_aConfig[$sName];
|
|
|
+
|
|
|
+ trigger_error('Undefined property "' . $aName . '" in ' . get_class($this), E_USER_ERROR);
|
|
|
+
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function __isset($sName)
|
|
|
+ {
|
|
|
+ return isset($this->_aConfig[$sName]);
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
/** @} */
|