diff options
Diffstat (limited to 'Neutron-trunk/cms-special/admin-v2/index.php')
-rw-r--r--[-rwxr-xr-x] | Neutron-trunk/cms-special/admin-v2/index.php | 60 |
1 files changed, 41 insertions, 19 deletions
diff --git a/Neutron-trunk/cms-special/admin-v2/index.php b/Neutron-trunk/cms-special/admin-v2/index.php index 55e029a..a7c6c9a 100755..100644 --- a/Neutron-trunk/cms-special/admin-v2/index.php +++ b/Neutron-trunk/cms-special/admin-v2/index.php @@ -1,4 +1,12 @@ -<?php require_once "../../resources/private/relative.php"; getRelativeDetails("cms-special"); ?> +<?php + +require_once "../../resources/private/relative.php"; getRelativeDetails("cms-special"); +require_once $_SERVER['DOCUMENT_ROOT'] . "/api/lang/processor.php"; +require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin-v2/\$resources/session.php"; + +global $lang; + +?> <!DOCTYPE html> <html> @@ -30,7 +38,7 @@ <div class="bg"></div> <main> <aside> - <div id="nav-header"> + <a href="<?= $GLOBALS["SYSTEM_ROOT"] ?>/" id="nav-header"> <img src="<?= $GLOBALS["SYSTEM_ROOT"] ?>/resources/upload/siteicon.png" id="nav-header-icon"> <div id="nav-header-names-outer"> <div id="nav-header-names"> @@ -38,78 +46,80 @@ <?php if (file_exists($GLOBALS['ORIGINAL_DOCUMENT_ROOT'] . "/NeutronCloud")): - echo("Neutron Cloud X" . trim(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/Tier"))); + echo("Cloud X" . trim(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/Tier"))); else: - echo("Neutron On-premises"); + echo($lang["admin-v2"]["on-premises"]); endif; ?> </div> </div> - </div> + </a> <div id="nav-items"> <div class="nav-item selected" data-pane="system"> <img class="nav-item-icon" src="<?= $GLOBALS["SYSTEM_ROOT"] ?>/resources/image/admin2/system.png" alt=""> - <span class="nav-item-name">System</span> + <span class="nav-item-name"><?= $lang["admin-v2"]["drawer"][0] ?></span> </div> <div class="nav-item" data-pane="content"> <img class="nav-item-icon" src="<?= $GLOBALS["SYSTEM_ROOT"] ?>/resources/image/admin2/content.png" alt=""> - <span class="nav-item-name">Content</span> + <span class="nav-item-name"><?= $lang["admin-v2"]["drawer"][1] ?></span> </div> <div class="nav-item" data-pane="personalization"> <img class="nav-item-icon" src="<?= $GLOBALS["SYSTEM_ROOT"] ?>/resources/image/admin2/personalization.png" alt=""> - <span class="nav-item-name">Personalization</span> + <span class="nav-item-name"><?= $lang["admin-v2"]["drawer"][2] ?></span> </div> <div class="nav-item" data-pane="features"> <img class="nav-item-icon" src="<?= $GLOBALS["SYSTEM_ROOT"] ?>/resources/image/admin2/features.png" alt=""> - <span class="nav-item-name">Features</span> + <span class="nav-item-name"><?= $lang["admin-v2"]["drawer"][3] ?></span> </div> <div class="nav-item" data-pane="accounts"> <img class="nav-item-icon" src="<?= $GLOBALS["SYSTEM_ROOT"] ?>/resources/image/admin2/accounts.png" alt=""> - <span class="nav-item-name">Accounts</span> + <span class="nav-item-name"><?= $lang["admin-v2"]["drawer"][4] ?></span> </div> <div class="nav-item" data-pane="language"> <img class="nav-item-icon" src="<?= $GLOBALS["SYSTEM_ROOT"] ?>/resources/image/admin2/language.png" alt=""> - <span class="nav-item-name">Region & language</span> + <span class="nav-item-name"><?= $lang["admin-v2"]["drawer"][5] ?></span> </div> <div class="nav-item" data-pane="security"> <img class="nav-item-icon" src="<?= $GLOBALS["SYSTEM_ROOT"] ?>/resources/image/admin2/security.png" alt=""> - <span class="nav-item-name">Data & security</span> + <span class="nav-item-name"><?= $lang["admin-v2"]["drawer"][6] ?></span> </div> <div class="nav-item" data-pane="maintenance"> <img class="nav-item-icon" src="<?= $GLOBALS["SYSTEM_ROOT"] ?>/resources/image/admin2/maintenance.png" alt=""> - <span class="nav-item-name">Advanced options</span> + <span class="nav-item-name"><?= $lang["admin-v2"]["drawer"][7] ?></span> </div> + <?php if (false): ?> <div class="nav-item" data-pane="cloud"> <img class="nav-item-icon" src="<?= $GLOBALS["SYSTEM_ROOT"] ?>/resources/image/admin2/cloud.png" alt=""> - <span class="nav-item-name">Neutron Cloud</span> + <span class="nav-item-name"><?= $lang["admin-v2"]["drawer"][8] ?></span> </div> + <?php endif; ?> + <?php if (false): ?> <div class="nav-item" data-pane="electrode"> <img class="nav-item-icon" src="<?= $GLOBALS["SYSTEM_ROOT"] ?>/resources/image/admin2/electrode.png" alt=""> - <span class="nav-item-name">Electrode Server</span> + <span class="nav-item-name"><?= $lang["admin-v2"]["drawer"][9] ?></span> </div> + <?php endif; ?> <script> Array.from(document.getElementsByClassName("nav-item")).forEach((item) => { item.onclick = () => { - if (item.classList.contains("selected")) { return; } - Array.from(document.getElementsByClassName("nav-item")).forEach((i) => { i.classList.remove("selected"); }) item.classList.add("selected") document.getElementById("main-iframe").src = "<?= $GLOBALS["SYSTEM_ROOT"] ?>/cms-special/admin-v2/$panes/" + item.getAttribute("data-pane") + ".php"; - document.getElementById("main-title").innerText = item.children[1].innerText; + document.getElementById("main-title-inner").innerText = item.children[1].innerText; } }) </script> @@ -117,9 +127,21 @@ </aside> <article id="main-content"> - <span id="main-title">System</span> + <div id="main-title" style="margin-top: 2px;"><span id="main-title-inner"><?= $lang["admin-v2"]["drawer"][0] ?></span> <span class="main-title-home-outer" onclick='$(".selected").click()'><img class="main-title-home" src="<?= $GLOBALS["SYSTEM_ROOT"] ?>/resources/image/admin2/home.png" alt=""></span></div> <iframe id="main-iframe" src="<?= $GLOBALS["SYSTEM_ROOT"] ?>/cms-special/admin-v2/$panes/system.php"></iframe> </article> + + <script> + document.getElementById("main-iframe").onload = () => { + if (document.getElementById("main-iframe").contentDocument.title !== "base") { + document.getElementById("main-title").style.marginTop = "0"; + $(".main-title-home-outer").fadeIn(200); + } else { + document.getElementById("main-title").style.marginTop = "2px"; + $(".main-title-home-outer").fadeOut(200); + } + } + </script> </main> </body> |