From df1c665e6216f34e343b60f67d625518c2da71bb Mon Sep 17 00:00:00 2001 From: plegall Date: Sun, 2 Apr 2017 17:36:00 +0200 Subject: [PATCH] fixes #309, ability to show album descriptions on all pages (not just the first page) --- include/config_default.inc.php | 4 ++++ index.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/include/config_default.inc.php b/include/config_default.inc.php index edf2e1276..a56e9fee7 100644 --- a/include/config_default.inc.php +++ b/include/config_default.inc.php @@ -286,6 +286,10 @@ $conf['update_notify_check_period'] = 24*60*60; // we send it again? 0 to disable. $conf['update_notify_reminder_period'] = 7*24*60*60; +// should the album description be displayed on all pages (value=true) or +// only the first page (value=false) +$conf['album_description_on_all_pages'] = false; + // +-----------------------------------------------------------------------+ // | email | // +-----------------------------------------------------------------------+ diff --git a/index.php b/index.php index cd5f40028..51cce11e6 100644 --- a/index.php +++ b/index.php @@ -297,7 +297,7 @@ if ( empty($page['is_external']) ) } // category comment - if ($page['start']==0 and !isset($page['chronology_field']) and !empty($page['comment']) ) + if (($page['start']==0 or $conf['album_description_on_all_pages']) and !isset($page['chronology_field']) and !empty($page['comment']) ) { $template->assign('CONTENT_DESCRIPTION', $page['comment'] ); }