summaryrefslogtreecommitdiff
path: root/includes/pane.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/pane.inc')
-rw-r--r--includes/pane.inc27
1 files changed, 2 insertions, 25 deletions
diff --git a/includes/pane.inc b/includes/pane.inc
index 0a546a5..058c911 100644
--- a/includes/pane.inc
+++ b/includes/pane.inc
@@ -1,6 +1,5 @@
-<?php global $isLoggedIn; global $isLowerLoggedIn; global $pages; global $navigation; $byColor = getMembersByColor($_SERVER['HTTP_HOST'] === "fr.equestria.horse"); global $lang; global $pages; ?>
+<?php global $isLoggedIn; global $isLowerLoggedIn; global $pages; global $navigation; $byColor = getMembersByColor(); global $lang; global $pages; ?>
-<?php if ($_SERVER['HTTP_HOST'] === "fr.equestria.horse"): ?>
<div id="pane-header-background" style="background-image: linear-gradient(90deg, <?php
$index = 0;
@@ -17,28 +16,7 @@ foreach ($list as $color) {
?>)">
<a href="/" id="pane-header" class="login-link-clickable" style="color: white; text-decoration: none; padding: 20px; display: block; text-align: center; border-bottom: 1px solid rgba(255, 255, 255, .25);">
- <img src="/assets/logo/newlogo2.png" alt="" style="width:32px;vertical-align: middle;margin-right:5px;">
- <span style="vertical-align: middle; font-weight: bold;">Cold Haze</span>
- </a>
-</div>
-<?php else: ?>
-<div id="pane-header-background" style="background-image: linear-gradient(90deg, <?php
-
-$index = 0;
-$list = array_map(function ($i) { return $i["color"]; }, $byColor);
-$length = count($list);
-
-foreach ($list as $color) {
- $perc = ($index / $length) * 100;
- echo("#${color}33 $perc%");
-
- $index++;
- if ($index < $length) echo(", ");
-}
-
-?>)">
- <a href="/" id="pane-header" class="login-link-clickable" style="color: white; text-decoration: none; padding: 20px; display: block; text-align: center; border-bottom: 1px solid rgba(255, 255, 255, .25);">
- <img src="/assets/logo/newlogo.png" alt="" style="width:32px;vertical-align: middle;margin-right:5px;">
+ <img src="/assets/logo/newlogo<?= $isLoggedIn || $isLowerLoggedIn ? "3" : "" ?>.png" alt="" style="width:32px;vertical-align: middle;margin-right:5px;">
<span style="vertical-align: middle; font-weight: bold;">Cold Haze</span>
</a>
</div>
@@ -54,7 +32,6 @@ foreach ($list as $color) {
<span style="vertical-align: middle;"><?= $lang["navigation"]["login"] ?></span>
</a>
<?php endif; ?>
-<?php endif; ?>
<?php foreach ($navigation as $id => $item): if (!$item["admin"] || $isLoggedIn || $isLowerLoggedIn): ?>