Przeglądaj źródła

#93 - Related fixes and improvements.

AntonLV 12 lat temu
rodzic
commit
5945b2a38d

+ 4 - 2
inc/classes/BxDolDb.php

@@ -451,10 +451,12 @@ class BxDolDb extends BxDol implements iBxDolSingleton
     function setParam($sKey, $mixedValue)
     {
         $sQuery = $this->prepare("UPDATE `sys_options` SET `value` = ? WHERE `name` = ? LIMIT 1", $mixedValue, $sKey);
-        $this->query($sQuery);
+        $bResult = (int)$this->query($sQuery) > 0;
 
         // renew params cache
-        $this->cacheParams(true);
+        $bResult &= $this->cacheParams(true);
+
+        return $bResult;
     }
 
     function listTables()

+ 1 - 0
modules/boonex/uni/install/langs/en.xml

@@ -3,4 +3,5 @@
 	<string name="_bx_uni_wgt_cpt"><![CDATA[UNI]]></string>
 	<string name="_bx_uni_stg_cpt_type"><![CDATA[UNI]]></string>
 	<string name="_bx_uni_stg_cpt_category_system"><![CDATA[General]]></string>
+	<string name="_bx_uni_stg_cpt_option_switcher_name"><![CDATA[Name In Template Switcher]]></string>
 </resources>

+ 1 - 1
modules/boonex/uni/install/sql/install.sql

@@ -10,7 +10,7 @@ INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `order`) VALU
 SET @iCategoryId = LAST_INSERT_ID();
 
 INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
-(@iCategoryId, CONCAT(@sName, '_switcher_title'), 'Name In Template Switcher', 'UNI', 'digit', '', '', '', 1);
+(@iCategoryId, CONCAT(@sName, '_switcher_title'), '_bx_uni_stg_cpt_option_switcher_name', 'UNI', 'digit', '', '', '', 1);
 
 
 -- STUDIO PAGE & WIDGET

+ 1 - 3
template/_sub_footer.html

@@ -17,7 +17,7 @@
 
 <div class="bx-page-wrapper bx-def-padding-sec-left bx-def-padding-sec-right bx-def-page-width">
 
-    <div id="bx-footer" class="bx-def-padding-sec-left bx-def-padding-sec-right">
+    <div id="bx-footer" class="bx-def-padding-sec-left bx-def-padding-sec-right bx-clearfix">
 
         <bx_injection:injection_footer_before />
 
@@ -29,8 +29,6 @@
 
         <bx_injection:injection_footer_after />
 
-        <div class="bx-clear"></div>
-
     </div>
 
 </div>

+ 1 - 1
template/_sub_header.html

@@ -70,7 +70,7 @@
 __informer__
 
 
-<div class="bx-page-wrapper bx-def-padding-sec-left bx-def-padding-sec-right bx-def-page-width">
+<div id="bx-content-wrapper" class="bx-page-wrapper bx-def-padding-sec-left bx-def-padding-sec-right bx-def-page-width">
 
     <div id="bx-content-container" class="bx-def-padding-sec-left bx-def-padding-sec-right">
 

+ 4 - 2
template/css/general.css

@@ -91,9 +91,11 @@
 /* --------------- footer */
 
 #bx-footer {
-    margin-bottom:60px;
+    padding-bottom:60px;
+}
+#bx-menu-bottom {
+	float: left;
 }
-
 #bx-footer-copyright {
     float:right;
 }

+ 0 - 7
template/css/menu.css

@@ -1,10 +1,3 @@
-
-/* --------------- menu footer */
-
-#bx-menu-footer {
-    float:left;
-}
-
 /* --------------- horizontal menu */
 
 ul.bx-menu-hor {