Browse Source

Remove pre-release note from bottom of page

Kristan Kenney 5 years ago
parent
commit
68c740a05c
1 changed files with 1 additions and 19 deletions
  1. 1 19
      web/templates/footer.html

+ 1 - 19
web/templates/footer.html

@@ -1,23 +1,5 @@
   </div>
   </div>
-  <!--
-  <? if (($_SESSION['RELEASE_BRANCH'] !== "release") && ($_SESSION['RELEASE_BRANCH'] !== "beta")) { ?>
-    <div class="footer-banner alpha" id="banner">
-      <div>
-        <b>Pre-release development build for testing purposes only.</b> Please report bugs or issues to our development team on <a href="https://github.com/hestiacp/hestiacp/"><i class="fab fa-github icon-large icon-pad-right"></i>GitHub</a>.<br> Hestia Control Panel <b>v<?php echo $_SESSION['VERSION']; ?></b> (code branch <b><?php echo $_SESSION['RELEASE_BRANCH']; ?></b>)
-      </div>
-      <div style="margin-top: 4px;"><a href="javascript:elementHideShow('banner');">Hide</a></div>
-    </div>
-  <?}?>
-  <? if ($_SESSION['RELEASE_BRANCH'] === "beta") { ?>
-    <div class="footer-banner beta" id="banner">
-      <div>
-        <b>Thank you for testing <?=_('Hestia Control Panel')?> v<?=$_SESSION['VERSION']?>!</b><br> Please report any issues that you encounter to our development team on <a href="https://github.com/hestiacp/hestiacp/"><i class="fab fa-github icon-large icon-pad-right"></i>GitHub</a>.
-      </div>
-      <div style="margin-top: 4px;"><a href="javascript:elementHideShow('banner');">Hide</a></div>
-    </div>
-  <?}?>
-  -->
-  <? if ($_SESSION['user'] === 'admin') {?>
+  <? if ($_SESSION['userContext'] === 'admin') && ($_SESSION['POLICY_SYSTEM_HIDE_SERVICES'] !== 'yes') {?>
     <? if ($_SESSION['UPDATE_AVAILABLE'] === "yes") { ?>
     <? if ($_SESSION['UPDATE_AVAILABLE'] === "yes") { ?>
       <div class="footer-banner updates" id="banner">
       <div class="footer-banner updates" id="banner">
         <div>
         <div>