From c04374928a0d54052a38a0f3fb217833562dd31d Mon Sep 17 00:00:00 2001 From: HWFord <54360213+HWFord@users.noreply.github.com> Date: Mon, 17 Nov 2025 10:00:53 +0100 Subject: [PATCH] issue #2439 update popin Add translations remove last major update conf when in piwigo Upgrade don't send popin template if not needed --- admin.php | 3 ++- admin/themes/default/template/footer.tpl | 8 +++++--- include/common.inc.php | 1 + language/en_UK/whats_new_16.lang.php | 11 +++++++++++ language/fr_FR/whats_new_16.lang.php | 11 +++++++++++ upgrade.php | 3 +++ 6 files changed, 33 insertions(+), 4 deletions(-) create mode 100644 language/en_UK/whats_new_16.lang.php create mode 100644 language/fr_FR/whats_new_16.lang.php diff --git a/admin.php b/admin.php index 2f04c3cc8..afa343086 100644 --- a/admin.php +++ b/admin.php @@ -382,6 +382,7 @@ $whats_new_imgs = array( // '4' =>'https://ressources.piwigo.com/uploads/c/v/7/cv7jpz6hf8//2024/11/07/20241107171642-1109101f.png', ); +//If last major update conf is less than a month old then display bell for whats new popin $display_bell = false; if (strtotime($conf['last_major_update']) > strtotime('1 month ago')) { @@ -394,7 +395,7 @@ $template->assign( 'WHATS_NEW_MAJOR_VERSION' => $whats_new_major_version, 'RELEASE_NOTE_URL' => $release_note_url, 'WHATS_NEW_IMGS' => $whats_new_imgs, - 'DISPLAY_BELL' => false, // $display_bell, + 'DISPLAY_BELL' => $display_bell, ) ); diff --git a/admin/themes/default/template/footer.tpl b/admin/themes/default/template/footer.tpl index 1c244f372..6ca6461b0 100644 --- a/admin/themes/default/template/footer.tpl +++ b/admin/themes/default/template/footer.tpl @@ -37,6 +37,7 @@ {* *} {* *} +{if (isset($SHOW_WHATS_NEW) and $SHOW_WHATS_NEW) or (isset($DISPLAY_BELL) and $DISPLAY_BELL)}
@@ -44,17 +45,17 @@
-

Brand new login & preferences with Standard pages !

+

{'Brand new login & preferences with Standard pages !'|translate}

-

Two factor authentication is here

+

{'Two factor authentication is here'|translate}

-

UI redesigns that make a difference

+

{'UI redesigns that make a difference'|translate}

{*
@@ -69,6 +70,7 @@
+{/if}