aboutsummaryrefslogtreecommitdiff
path: root/Neutron-trunk/cms-special/admin-v2/$panes/language.php
diff options
context:
space:
mode:
authorGitea <gitea@fake.local>2021-11-10 17:53:13 +0100
committerGitea <gitea@fake.local>2021-11-10 17:53:13 +0100
commit7b4af63a90a726b98a59b83e53f040a7a566a11d (patch)
treeb85747947816fe4375e85ab6b822ffabec548c7b /Neutron-trunk/cms-special/admin-v2/$panes/language.php
parent80f78c2925530e945503ab603e79d1acc53075f4 (diff)
downloadelectrode-7b4af63a90a726b98a59b83e53f040a7a566a11d.tar.gz
electrode-7b4af63a90a726b98a59b83e53f040a7a566a11d.tar.bz2
electrode-7b4af63a90a726b98a59b83e53f040a7a566a11d.zip
Update
Diffstat (limited to 'Neutron-trunk/cms-special/admin-v2/$panes/language.php')
-rw-r--r--Neutron-trunk/cms-special/admin-v2/$panes/language.php68
1 files changed, 68 insertions, 0 deletions
diff --git a/Neutron-trunk/cms-special/admin-v2/$panes/language.php b/Neutron-trunk/cms-special/admin-v2/$panes/language.php
new file mode 100644
index 0000000..878bfc2
--- /dev/null
+++ b/Neutron-trunk/cms-special/admin-v2/$panes/language.php
@@ -0,0 +1,68 @@
+<?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>
+
+<head>
+ <title>base</title>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <link rel="stylesheet" href="<?= $GLOBALS["SYSTEM_ROOT"] ?>/resources/css/admin_v2/main.css">
+ <link rel="stylesheet" href="<?= $GLOBALS["SYSTEM_ROOT"] ?>/resources/css/admin_v2/inner.css">
+ <?php if (strpos($_SERVER['HTTP_USER_AGENT'], "Chrome/")): ?>
+ <link rel="stylesheet" href="<?= $GLOBALS["SYSTEM_ROOT"] ?>/resources/css/admin_v2/chromium.css">
+ <style>:root { --mpcms-banner: url(<?php
+
+ if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/resources/upload/banner.jpg")) {
+ echo('"' . $GLOBALS["SYSTEM_ROOT"] . '/resources/upload/banner.jpg"');
+ } else {
+ echo('"' . $GLOBALS["SYSTEM_ROOT"] . '/resources/image/default.jpg"');
+ }
+
+ ?>); }</style>
+ <?php endif; ?>
+ <style>:root { --mpcms-banner: url(<?php
+
+ if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/resources/upload/banner.jpg")) {
+ echo('"' . $GLOBALS["SYSTEM_ROOT"] . '/resources/upload/banner.jpg"');
+ } else {
+ echo('"' . $GLOBALS["SYSTEM_ROOT"] . '/resources/image/default.jpg"');
+ }
+
+ ?>); }</style>
+</head>
+
+<body>
+<div id="inner-items">
+ <?php foreach (scandir($_SERVER['DOCUMENT_ROOT'] . "/resources/i18n") as $locale): if (trim($locale) !== "." && trim($locale) !== ".."): ?>
+ <div class="inner-item" data-item-href="<?= $GLOBALS["SYSTEM_ROOT"] ?>/cms-special/admin-v2/language/?_=<?= $locale ?>">
+ <div class="inner-item-image-outer">
+ <img alt="" class="inner-item-image" src="<?= $GLOBALS["SYSTEM_ROOT"] ?>/resources/image/admin2/locale.png">
+ </div>
+ <div class="inner-item-text">
+ <div>
+ <span class="inner-item-title"><?= json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/resources/i18n/" . $locale . "/\$metadata.json"), true)["localized_name"]; ?></span><br>
+ <span class="inner-item-description"><?= json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/resources/i18n/" . $locale . "/\$metadata.json"), true)["name"]; ?></span>
+ </div>
+ </div>
+ <div class="inner-item-enter-outer">
+ <?php global $langsel; if ($locale === $langsel): ?>
+ <img alt="" class="inner-item-enter" src="<?= $GLOBALS["SYSTEM_ROOT"] ?>/resources/image/admin2/selected.png">
+ <?php endif; ?>
+ </div>
+ </div>
+ <?php endif; endforeach; ?>
+</div>
+</body>
+
+<script src="<?= $GLOBALS["SYSTEM_ROOT"] ?>/resources/js/jquery.js"></script>
+<script src="<?= $GLOBALS["SYSTEM_ROOT"] ?>/resources/js/admin_v2.js"></script>
+
+</html> \ No newline at end of file