pub / rememori

Simple file-based bookmarking and notes application
git clone https://src.jayvii.de/pub/rememori.git
Home | Log | Files | Exports | Refs | README | RSS

commit 71f387512f0d1b15b7e5baf6f2f57f7afce5a29d
parent b68930018dc494edfc2a9d9f383c5a9ecb608106
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date:   Sun, 27 Oct 2024 13:26:32 +0100

feat: show header also on Login with URL to sourcecode

Diffstat:
Mconfig/i18n.php | 2++
Mindex.php | 19+++++++++++++++----
2 files changed, 17 insertions(+), 4 deletions(-)

diff --git a/config/i18n.php b/config/i18n.php @@ -6,6 +6,7 @@ $acceptLang = ["en", "de"]; $lang = in_array($lang, $acceptLang) ? $lang : "en"; if ($lang == "en") { + $GLOBALS["i18n_development"] = "Sourcecode"; $GLOBALS["i18n_note"] = "Note"; $GLOBALS["i18n_category"] = "Category"; $GLOBALS["i18n_filename"] = "File name"; @@ -31,6 +32,7 @@ if ($lang == "en") { $GLOBALS["i18n_bookmarklet_prompt"] = "Under which category do you want to remember this site?"; } if ($lang == "de") { + $GLOBALS["i18n_development"] = "Quellcode"; $GLOBALS["i18n_note"] = "Notiz"; $GLOBALS["i18n_category"] = "Kategorie"; $GLOBALS["i18n_categories"] = "Kategorien"; diff --git a/index.php b/index.php @@ -132,23 +132,34 @@ <header> <!-- Buttons --> <?php top_navigation($user, $token, $category); ?> - <!-- Headline --> <h1>Rememori</h1> - <!-- Search bar --> <?php search_bar($query); ?> - </header> <?php - } // if-statement + } else { ?> + <header> + <!-- Buttons --> + <nav> + <a href="https://src.jayvii.de/pub/rememori/" target="_blank"> + <?php echo $GLOBALS["i18n_development"]; ?> + </a> + </nav> + + <!-- Headline --> + <h1>Rememori</h1> + </header> + <?php + } // if-statement + /* Actions Block 2: Actions that print */ /* Login action */