causefx 8 роки тому
батько
коміт
d90ba38511
12 змінених файлів з 88 додано та 36 видалено
  1. 1 0
      config/configDefaults.php
  2. 7 0
      css/style.css
  3. 54 1
      functions.php
  4. 1 17
      homepage.php
  5. 1 1
      index.php
  6. 2 1
      lang/en.ini
  7. 2 1
      lang/es.ini
  8. 2 1
      lang/fr.ini
  9. 2 1
      lang/it.ini
  10. 2 1
      lang/nl.ini
  11. 2 1
      lang/pl.ini
  12. 12 11
      settings.php

+ 1 - 0
config/configDefaults.php

@@ -78,4 +78,5 @@ return array(
  "homepageNoticeMessage" => "",
  "homepageNoticeType" => "",
  "homepageNoticeAuth" => "false",
+ "homepageNoticeLayout" => "",
 );

+ 7 - 0
css/style.css

@@ -912,6 +912,9 @@ button::-moz-focus-inner {
 html, body {
   height: 100%;
 }
+::-webkit-scrollbar { 
+   display: none;
+}
 
 body {
   font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
@@ -922,6 +925,10 @@ body {
   position: relative;
   background: #F1F4F5;
   overflow-x: hidden;
+  overflow-x:hidden; 
+  /*MS Edge */
+  -ms-overflow-style: -ms-autohiding-scrollbar;
+  -ms-overflow-style: none; 
 }
 
 .main-wrapper {

+ 54 - 1
functions.php

@@ -2,7 +2,7 @@
 
 // ===================================
 // Define Version
- define('INSTALLEDVERSION', '1.375');
+ define('INSTALLEDVERSION', '1.38');
 // ===================================
 
 // Debugging output functions
@@ -2783,5 +2783,58 @@ function sendResult($result, $icon = "floppy-o", $message = false, $success = "W
 	return $msg;
 }
 
+function buildHomepageNotice($layout, $type, $title, $message){
+    switch ($layout) {
+		      case 'elegant':
+            return '
+            <div id="homepageNotice" class="row">
+                <div class="col-lg-12">
+                    <div class="content-box big-box box-shadow panel-box panel-'.$type.'">
+                        <div class="content-title i-block">
+                            <h4 class="zero-m"><strong>'.$title.'</strong></h4>
+                            <div class="content-tools i-block pull-right">
+                                <a class="close-btn">
+                                    <i class="fa fa-times"></i>
+                                </a>
+                            </div>
+                        </div>
+                        <p>'.$message.'</p>
+                    </div>
+                </div>
+            </div>
+            ';
+            break;
+        case 'basic':
+            return '
+            <div id="homepageNotice" class="row">
+                <div class="col-lg-12">
+                    <div class="panel panel-'.$type.'">
+                        <div class="panel-heading">
+                            <h3 class="panel-title">'.$title.'</h3>
+                        </div>
+                        <div class="panel-body">
+                            '.$message.'
+                        </div>
+                    </div>
+                </div>
+            </div>
+            ';
+            break;
+        case 'jumbotron';
+            return '
+            <div id="homepageNotice" class="row">
+                <div class="col-lg-12">
+                    <div class="jumbotron">
+                        <div class="container">
+                            <h1>'.$title.'</h1>
+                            <p>'.$message.'</p>
+                        </div>
+                    </div>
+                </div>
+            </div>
+            ';
+    }
+}
+
 // Always run this
 dependCheck();

+ 1 - 17
homepage.php

@@ -257,23 +257,7 @@ endif; ?>
 <!-- <button id="numBnt">Numerical</button> -->
                 <br/>
  
-                <?php if (qualifyUser(HOMEPAGENOTICEAUTH) && HOMEPAGENOTICETITLE && HOMEPAGENOTICETYPE && HOMEPAGENOTICEMESSAGE) { ?>
-                <div class="row">
-                    <div class="col-lg-12">
-                        <div class="content-box big-box box-shadow panel-box panel-<?php echo HOMEPAGENOTICETYPE; ?>">
-                            <div class="content-title i-block">
-                                <h4 class="zero-m"><strong><?php echo HOMEPAGENOTICETITLE; ?></strong></h4>
-                                <div class="content-tools i-block pull-right">
-                                    <a class="close-btn">
-                                        <i class="fa fa-times"></i>
-                                    </a>
-                                </div>
-                            </div>
-                            <p><?php echo HOMEPAGENOTICEMESSAGE; ?></p>
-                        </div>
-                    </div>
-                </div>
-                <?php } ?>
+                <?php if (qualifyUser(HOMEPAGENOTICEAUTH) && HOMEPAGENOTICETITLE && HOMEPAGENOTICETYPE && HOMEPAGENOTICEMESSAGE && HOMEPAGENOTICELAYOUT) { echo buildHomepageNotice(HOMEPAGENOTICELAYOUT, HOMEPAGENOTICETYPE, HOMEPAGENOTICETITLE, HOMEPAGENOTICEMESSAGE); } ?>
                 
                 <?php if (qualifyUser(HOMEPAGECUSTOMHTML1AUTH) && HOMEPAGECUSTOMHTML1) { echo "<div>" . HOMEPAGECUSTOMHTML1 . "</div>"; } ?>
 

+ 1 - 1
index.php

@@ -1452,7 +1452,7 @@ endif; ?>
 
                     $("#content div[class^='iframe active']").attr("class", "iframe hidden");
 
-                    $( '<div class="iframe active" data-content-url="'+thisid+'"><iframe scrolling="auto" sandbox="allow-forms allow-same-origin allow-pointer-lock allow-scripts allow-popups allow-top-navigation" allowfullscreen="true" webkitallowfullscreen="true" frameborder="0" style="width:100%; height:100%; position: absolute;" src="'+thisid+'"></iframe></div>' ).appendTo( "#content" );
+                    $( '<div class="iframe active" data-content-url="'+thisid+'"><iframe scrolling="auto" sandbox="allow-forms allow-same-origin allow-pointer-lock allow-scripts allow-popups allow-modals allow-top-navigation" allowfullscreen="true" webkitallowfullscreen="true" frameborder="0" style="width:100%; height:100%; position: absolute;" src="'+thisid+'"></iframe></div>' ).appendTo( "#content" );
                     document.title = thistitle;
                    // window.location.href = '#' + thisname;
 

+ 2 - 1
lang/en.ini

@@ -255,4 +255,5 @@ SPEED_TEST = "Speed Test"
 NOTICE_COLOR = "Notice Color"
 NOTICE_TITLE = "Notice Title"
 NOTICE_MESSAGE = "Notice Message"
-SHOW_NAMES = "Show Names'
+SHOW_NAMES = "Show Names"
+NOTICE_LAYOUT = "Notice Layout"

+ 2 - 1
lang/es.ini

@@ -255,4 +255,5 @@ SPEED_TEST = "Speed Test"
 NOTICE_COLOR = "Notice Color"
 NOTICE_TITLE = "Notice Title"
 NOTICE_MESSAGE = "Notice Message"
-SHOW_NAMES = "Show Names'
+SHOW_NAMES = "Show Names"
+NOTICE_LAYOUT = "Notice Layout"

+ 2 - 1
lang/fr.ini

@@ -255,4 +255,5 @@ SPEED_TEST = "Speed Test"
 NOTICE_COLOR = "Notice Color"
 NOTICE_TITLE = "Notice Title"
 NOTICE_MESSAGE = "Notice Message"
-SHOW_NAMES = "Show Names'
+SHOW_NAMES = "Show Names"
+NOTICE_LAYOUT = "Notice Layout"

+ 2 - 1
lang/it.ini

@@ -255,4 +255,5 @@ SPEED_TEST = "Speed Test"
 NOTICE_COLOR = "Notice Color"
 NOTICE_TITLE = "Notice Title"
 NOTICE_MESSAGE = "Notice Message"
-SHOW_NAMES = "Show Names'
+SHOW_NAMES = "Show Names"
+NOTICE_LAYOUT = "Notice Layout"

+ 2 - 1
lang/nl.ini

@@ -255,4 +255,5 @@ SPEED_TEST = "Speed Test"
 NOTICE_COLOR = "Notice Color"
 NOTICE_TITLE = "Notice Title"
 NOTICE_MESSAGE = "Notice Message"
-SHOW_NAMES = "Show Names'
+SHOW_NAMES = "Show Names"
+NOTICE_LAYOUT = "Notice Layout"

+ 2 - 1
lang/pl.ini

@@ -255,4 +255,5 @@ SPEED_TEST = "Speed Test"
 NOTICE_COLOR = "Notice Color"
 NOTICE_TITLE = "Notice Title"
 NOTICE_MESSAGE = "Notice Message"
-SHOW_NAMES = "Show Names'
+SHOW_NAMES = "Show Names"
+NOTICE_LAYOUT = "Notice Layout"

Різницю між файлами не показано, бо вона завелика
+ 12 - 11
settings.php


Деякі файли не було показано, через те що забагато файлів було змінено