From b9140103ec94a90a2e90838d5db19620576cf09b Mon Sep 17 00:00:00 2001 From: Terranom674 Date: Fri, 4 Sep 2026 22:04:38 +0200 Subject: [PATCH] Add legal links to Piwigo footer --- main.inc.php | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/main.inc.php b/main.inc.php index 8d9c5c2..e0815aa 100644 --- a/main.inc.php +++ b/main.inc.php @@ -1,7 +1,7 @@ 1}', '{if $NB_ALBUMS > 0}', $source); } +function bratonien_tools_add_legal_footer_links() +{ + global $template; + + if (defined('IN_ADMIN')) + { + return; + } + + $template->append( + 'footer_elements', + ' - Impressum' + .' - Datenschutzerklärung' + ); +} + function bratonien_tools_admin_menu($menu) { $menu[] = array(