Explorar el Código

Added Margin enable option

causefx hace 10 años
padre
commit
c444381795
Se han modificado 5 ficheros con 27 adiciones y 5 borrados
  1. 0 0
      css/tabs.min.css
  2. 1 0
      example.ini.php
  3. 24 5
      index.php
  4. 0 0
      js/tabs.min.js
  5. 2 0
      settings.php

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 0 - 0
css/tabs.min.css


+ 1 - 0
example.ini.php

@@ -3,6 +3,7 @@
 title = "iCauseFX"
 password = "$2y$10$97IH4rsp6fb.p5KIFfjVH.xZuFtghq5h.cKV4VuKQPhZCQdmJzeMS"
 useicons = "true"
+usemargins = "true"
 tabcoloractive = "#ffffff"
 fontcoloractive = "#F44343"
 tabshadowactive = "#808080"

+ 24 - 5
index.php

@@ -17,6 +17,12 @@ foreach ($config as $keyname => $section) {
             $refreshicons = "<span><i class=\"fa fa-refresh\"></i></span>";
         }
     
+        if(!empty($section["usemargins"]) && ($section["usemargins"]=="true")){ 
+            
+            $margins = "active";
+
+        }
+    
         if($icons == "active"){
                 
             $px = "80px";
@@ -29,6 +35,18 @@ foreach ($config as $keyname => $section) {
                 
         }
     
+        if($margins == "active"){
+                
+            $marginpx = "10px";
+            $marginborderpx = "1px";
+                
+        }else{
+                
+            $marginpx = "0px";
+            $marginborderpx = "0px";
+                
+        }
+    
         //Guest
         if($_COOKIE["logged"] !== $cookiepass && !empty($section["enabled"]) && ($section["enabled"]=="true") && !empty($section["guest"]) && ($section["guest"]=="true") ) {
             if($icons == "active"){ $listicons = "<span><i class=\"fa ". $section["icon"] ."\"></i></span>"; }
@@ -116,7 +134,7 @@ if(!file_exists('settings.ini.php')){
 
         <span>&nbsp;</span>
 
-        <div id="page">
+        <div id="page" style="margin: <?=$marginpx;?>">
 
             <!--Tabs Start-->
             <div id="tabbed-nav">
@@ -129,12 +147,13 @@ if(!file_exists('settings.ini.php')){
                 </ul>
 
                 <!-- Content container -->
-                <style> .z-container { position: fixed; top: 50px; right: 0px; bottom: 0px; left: 0px; margin: 10px; } </style>
+                <style> .z-container { position: fixed; top: 50px; right: 0px; bottom: 0px; left: 0px; margin: <?=$marginpx;?>; } </style>
+                <style> .z-tabs .z-container{ margin: <?=$marginpx;?>; border-width: <?=$marginborderpx;?>; } </style>
                 <style> .z-tabs.mobile.top > .z-container {margin-top: <?=$pxmobile;?>;} </style>
                 <style> .z-video{overflow-x: hidden;overflow-y: auto;}</style>
-                <style> .z-content-inner{overflow-x: hidden;overflow-y: auto;;}</style>
-                <style> .z-nopadding.z-content{overflow-x: hidden;overflow-y: auto;}</style>
-                <div style="top: <?=$px;?>; overflow: overlay;">              
+                <!--<style> .z-content-inner{overflow: overlay;}</style>
+                <style> .z-nopadding.z-content{overflow-x: hidden;overflow-y: auto;}</style>-->
+                <div style="top: <?=$px;?>">              
 
                     <?=$loadedurls;?>
                     <?=$lasttaburl;?>

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 0 - 0
js/tabs.min.js


+ 2 - 0
settings.php

@@ -194,6 +194,8 @@ if(array_key_exists('category-0', $_POST) == true){
                     echo "<input style=\"margin-bottom: 0px\" type=\"password\" name=\"password-0\" class=\"form-control\" placeholder=\"Leave Blank if no change\" value=\"\"></div> ";
                     if($section['useicons'] == "true"){echo "<input type=\"checkbox\" name=\"useicons-0\" id=\"useicons-0\" class=\"css-checkbox\" checked> ";}else {echo "<input type=\"checkbox\" name=\"useicons-0\" id=\"useicons-0\" class=\"css-checkbox\"> ";}
                     echo "<label for=\"useicons-0\" class=\"css-label\">Icons</label>  ";
+                    if($section['usemargins'] == "true"){echo "<input type=\"checkbox\" name=\"usemargins-0\" id=\"usemargins-0\" class=\"css-checkbox\" checked> ";}else {echo "<input type=\"checkbox\" name=\"usemargins-0\" id=\"usemargins-0\" class=\"css-checkbox\"> ";}
+                    echo "<label for=\"usemargins-0\" class=\"css-label\">Margins</label>  ";
                     echo "<a href=\"?action=logout\" class=\"btn btn-warning\" style=\"float: right;\" role=\"button\">Logout</a>";
                     echo "</div>";
                     echo "<div class=\"form-group clearfix well well-sm\" style=\"padding-bottom: 0px;p adding-top: 10px; margin-bottom: 5px;\">";

Algunos archivos no se mostraron porque demasiados archivos cambiaron en este cambio