legendary archive logo can be configured
This commit is contained in:
parent
a9f2c9f8b9
commit
0ca39da032
@ -95,7 +95,10 @@ $config_data = json_decode($raw_json_config, false);
|
|||||||
<div class="header">
|
<div class="header">
|
||||||
<img src="<?php print($config_data->logo->image_path ?? "OWE_Logo.png"); ?>" style="width: 10%; float: left;">
|
<img src="<?php print($config_data->logo->image_path ?? "OWE_Logo.png"); ?>" style="width: 10%; float: left;">
|
||||||
<h3 style="padding: 30px;"><?php print($config_data->headline ?? "One Word Each Seite"); ?></h3>
|
<h3 style="padding: 30px;"><?php print($config_data->headline ?? "One Word Each Seite"); ?></h3>
|
||||||
<button onclick="toggleArchives();" id="sidebar_button"><i class="fas fa-bars"></i></button>
|
<button onclick="toggleArchives();" id="sidebar_button">
|
||||||
|
<?php
|
||||||
|
print(isset($config_data->archive) ? ("<img id='archive_image' src='".$config_data->archive->logo_path_closed."' width='64'>") : "<i class='fas fa-bars'></i>");
|
||||||
|
?></button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="content">
|
<div class="content">
|
||||||
|
|||||||
6
owe.js
6
owe.js
@ -85,9 +85,15 @@ function toggleArchives() {
|
|||||||
|
|
||||||
if (archives.style.display == "none") {
|
if (archives.style.display == "none") {
|
||||||
archives.style.display = "flex";
|
archives.style.display = "flex";
|
||||||
|
if (config_data.archive) {
|
||||||
|
document.getElementById("archive_image").src = config_data.archive.logo_path_open
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
archives.style.display = "none";
|
archives.style.display = "none";
|
||||||
|
if (config_data.archive) {
|
||||||
|
document.getElementById("archive_image").src = config_data.archive.logo_path_closed
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function resetUnread() {
|
function resetUnread() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user