Przeglądaj źródła

#93 - Ocean: Page width setting in template.

AntonLV 11 lat temu
rodzic
commit
ae9378ee73

+ 1 - 13
modules/boonex/ocean/data/template/system/scripts/BxTemplConfig.php

@@ -28,19 +28,7 @@ class BxTemplConfig extends BxBaseConfig
         	'bx-border-color' => '#00a0ce',
         ));
 
-        if(class_exists('BxDolDb') && BxDolDb::getInstance())
-			$this->_aConfig['aLessConfig']['bx-page-width'] = getParam('bx_ocean_page_width') . 'px';
-
-        bx_import('BxDolTemplate');
-        $sCode = BxDolTemplate::getInstance()->getCode();
-        $sStaticImages = BX_DOL_URL_ROOT . 'templates/tmpl_' . $sCode . '/images/';
-
-        bx_import('BxDolConfig');
-        $oSysConfig = BxDolConfig::getInstance();
-        $oSysConfig->set('url_static', 'images', $sStaticImages);
-        $oSysConfig->set('url_static', 'icons', $sStaticImages . 'icons/');
-
-        $oSysConfig->set('path_static', 'css', BX_DIRECTORY_PATH_ROOT . 'templates/tmpl_' . $sCode . '/css/');
+        $this->setPageWidth('bx_ocean_page_width');
     }
 }