diff --git a/include/lang.inc.php b/include/lang.inc.php index 647008f17..cdcc10685 100644 --- a/include/lang.inc.php +++ b/include/lang.inc.php @@ -14,23 +14,20 @@ $charset = serendipity_getCharset(); // The following variable can be set in serendipity_config_local.inc.php to force your templates being able to use language override includes - if (isset($serendipity['useTemplateLanguage']) && $serendipity['useTemplateLanguage'] === true) { + // An un-promoted private variable set, to first serve template based serendipity lang constants that have higher priority. + // We do not allow this for backend constants and both, the fallback "default" and the standard theme (currently "pure") ! + if (isset($serendipity['useTemplateLanguage']) && $serendipity['useTemplateLanguage'] === true && !empty($serendipity['template']) + && !defined('IN_serendipity_admin') && !in_array($serendipity['template'], ['default', 'default-php', $serendipity['defaultTemplate']])) { if (defined('S9Y_DATA_PATH')) { @include_once (S9Y_DATA_PATH . 'templates/' . $serendipity['template'] . '/' . $charset . 'lang_' . $serendipity['lang'] . '.inc.php'); @include_once (S9Y_DATA_PATH . 'templates/' . $serendipity['template'] . '/lang_en.inc.php'); - - @include_once (S9Y_DATA_PATH . 'templates/' . $serendipity['template_backend'] . '/' . $charset . 'lang_' . $serendipity['lang'] . '.inc.php'); - @include_once (S9Y_DATA_PATH . 'templates/' . $serendipity['template_backend'] . '/lang_en.inc.php'); } else { @include_once (S9Y_INCLUDE_PATH . 'templates/' . $serendipity['template'] . '/' . $charset . 'lang_' . $serendipity['lang'] . '.inc.php'); @include_once (S9Y_INCLUDE_PATH . 'templates/' . $serendipity['template'] . '/lang_en.inc.php'); - - @include_once (S9Y_INCLUDE_PATH . 'templates/' . $serendipity['template_backend'] . '/' . $charset . 'lang_' . $serendipity['lang'] . '.inc.php'); - @include_once (S9Y_INCLUDE_PATH . 'templates/' . $serendipity['template_backend'] . '/lang_en.inc.php'); } } - // Try and include preferred language from the configurated setting + // Try and include preferred language from the configured setting if (@include(S9Y_INCLUDE_PATH . 'lang/' . $charset . 'serendipity_lang_'. $serendipity['lang'] .'.inc.php') ) { // Only here can we truly say the language is loaded @@ -42,9 +39,9 @@ // If no config file is loaded, language includes are not available. // Now include one. Try to auto-guess the language by looking up the HTTP_ACCEPT_LANGUAGE. serendipity_detectLang(true); - } //endif + } - // Do fallback to english + // Do fall back to english if (IS_installed === false || (defined('IS_up2date') && IS_up2date === false)) { @include_once(S9Y_INCLUDE_PATH . 'lang/' . $charset . 'serendipity_lang_en.inc.php'); } diff --git a/templates/b46/UTF-8/lang_de.inc.php b/templates/b46/UTF-8/lang_de.inc.php index 42a87d361..a0b7ba41c 100644 --- a/templates/b46/UTF-8/lang_de.inc.php +++ b/templates/b46/UTF-8/lang_de.inc.php @@ -35,6 +35,6 @@
Et voilà ! Ihr herausgehobener "featured article" wird nun auf den Blog-Artikel als ganzer Artikel verweisen. Ansonsten ist er nur über den Archives-/Kategorielink im Blog erreichbar. Wird dieser Artikel irgendwann für einen anderen/neuen als normaler Artikel zurückgestuft, so ändern Sie im Artikel selbst die Kategorie und nehmen die beiden Häcken in den Erweiterte Eigenschaften von Artikeln (wie oben beschrieben) wieder heraus. Sie sehen also mit dieser Theme Option eine andere Art des Umganges mit quasi "Dauerhaften Artikeln", die ansonsten natürlich zum Serendipity Standardrepertoire in den "Erweiterten Artikeleigenschaften" gehören.
+Et voilà ! Ihr besonders beworbener, "featured"-Artikel wird nun auf den Eintrag als ganzen Artikel verweisen. Ansonsten ist er nur über den Archives-/Kategorielink im Blog erreichbar. Wird dieser Artikel irgendwann für einen anderen/neuen als normaler Artikel zurückgestuft, so ändern Sie im Artikel selbst die Kategorie und nehmen die beiden Häkchen in den "Erweiterten Eigenschaften für Einträge" (wie oben beschrieben) wieder heraus. Wie Sie sehen, können Sie mit dieser Theme-Option eine andere Art des Umganges mit "Dauerhaften Einträgen" ermöglichen, die ansonsten natürlich zum Serendipity Standardrepertoire von Serendipity in den "Erweiterten Artikeleigenschaften" gehören.
'); diff --git a/templates/b46/info.txt b/templates/b46/info.txt index 70c5501f2..3f00fe29f 100644 --- a/templates/b46/info.txt +++ b/templates/b46/info.txt @@ -1,6 +1,6 @@ Name: B46 [Black Edition] Author: Ian Styx -Date: 2024-02-28 +Date: 2024-04-22 Require Serendipity: 3.5 Backend: No Responsive: Yes diff --git a/templates/b46/lang_de.inc.php b/templates/b46/lang_de.inc.php index 7029490a1..2a248ad72 100644 --- a/templates/b46/lang_de.inc.php +++ b/templates/b46/lang_de.inc.php @@ -35,6 +35,6 @@Et voila ! Ihr herausgehobener "featured article" wird nun auf den Blog-Artikel als ganzer Artikel verweisen. Ansonsten ist er nur über den Archives-/Kategorielink im Blog erreichbar. Wird dieser Artikel irgendwann für einen anderen/neuen als normaler Artikel zurückgestuft, so ändern Sie im Artikel selbst die Kategorie und nehmen die beiden Häcken in den Erweiterte Eigenschaften von Artikeln (wie oben beschrieben) wieder heraus. Sie sehen also mit dieser Theme Option eine andere Art des Umganges mit quasi "Dauerhaften Artikeln", die ansonsten natürlich zum Serendipity Standardrepertoire in den "Erweiterten Artikeleigenschaften" gehören.
+Et voilà ! Ihr besonders beworbener, "featured"-Artikel wird nun auf den Eintrag als ganzen Artikel verweisen. Ansonsten ist er nur über den Archives-/Kategorielink im Blog erreichbar. Wird dieser Artikel irgendwann für einen anderen/neuen als normaler Artikel zurückgestuft, so ändern Sie im Artikel selbst die Kategorie und nehmen die beiden Häkchen in den "Erweiterten Eigenschaften für Einträge" (wie oben beschrieben) wieder heraus. Wie Sie sehen, können Sie mit dieser Theme-Option eine andere Art des Umganges mit "Dauerhaften Einträgen" ermöglichen, die ansonsten natürlich zum Serendipity Standardrepertoire von Serendipity in den "Erweiterten Artikeleigenschaften" gehören.
'); diff --git a/templates/b46/lang_en.inc.php b/templates/b46/lang_en.inc.php index 6177595be..ae7ce45f7 100644 --- a/templates/b46/lang_en.inc.php +++ b/templates/b46/lang_en.inc.php @@ -38,6 +38,6 @@Et voila ! Your promoted "featured article" will now link to the featured article as a single full article. Otherwise, it will only be link-accessible via the archives/category link in the blog. If at some point this article is back demoted for another/new one as a normal article, you have to only change the category in the article itself and uncheck the two ckeckboxes in the "Extended properties for entries" (as described above). As you can see, you now are able to enable a different way of dealing with "sticky articles" with this theme option, which are otherwise of course part of Serendipity\'s standard repertoire in the "Advanced article properties".
+Et voila ! Your promoted "featured article" will now link to the featured article as a single full article. Otherwise, it will only be link-accessible via the archives/category link in the blog. If at some point this article is back demoted for another/new one as a normal article, you have to only change the category in the article itself and uncheck the two checkboxes in the "Extended properties for entries" (as described above). As you can see, you now are able to enable a different way of dealing with "sticky articles" with this theme option, which are otherwise of course part of Serendipity\'s standard repertoire in the "Advanced article properties".
'); diff --git a/templates/default/admin/style.css b/templates/default/admin/style.css index 26dfb83f4..749ca0fb4 100644 --- a/templates/default/admin/style.css +++ b/templates/default/admin/style.css @@ -4181,6 +4181,9 @@ img.mfp-img { #serendipity_comments_list .pingback.actions { margin-top: 1.5em; } + #media_pane_sort .hideSubDirLabel { + white-space: pre; + } .js .media_controls video { max-width: 24em; } @@ -5273,10 +5276,6 @@ img.mfp-img { width: 100%; } - #media_pane_sort .hideSubDirLabel { - white-space: pre; - } - .actions li, .actions_extra { margin: 0 .3em .5em 0; diff --git a/templates/styx/admin/style.css b/templates/styx/admin/style.css index 95cf9eaa4..a6f0bce1b 100644 --- a/templates/styx/admin/style.css +++ b/templates/styx/admin/style.css @@ -4489,6 +4489,9 @@ img.mfp-img { #serendipity_comments_list .pingback.actions { margin-top: 1.5em; } + #media_pane_sort .hideSubDirLabel { + white-space: pre; + } .js .media_controls video { max-width: 24em; } @@ -5681,10 +5684,6 @@ img.mfp-img { width: 100%; } - #media_pane_sort .hideSubDirLabel { - white-space: pre; - } - .actions li, .actions_extra { margin: 0 .3em .5em 0;