From 1099d8fcad1844599a365fc03506ca69d156609f Mon Sep 17 00:00:00 2001 From: nodiscc Date: Thu, 23 Oct 2014 17:47:30 +0200 Subject: [PATCH] Make ATOM toolbar button optional * ATOM button display is now configurable using the SHOW_ATOM variable in index.php or data/options.php (defaults to false) * Fixes https://github.com/shaarli/Shaarli/issues/24 --- index.php | 1 + tpl/page.header.html | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index 6fae2f8b..c91ae23b 100644 --- a/index.php +++ b/index.php @@ -21,6 +21,7 @@ $GLOBALS['config']['BAN_AFTER'] = 4; // Ban IP after this many failures. $GLOBALS['config']['BAN_DURATION'] = 1800; // Ban duration for IP address after login failures (in seconds) (1800 sec. = 30 minutes) $GLOBALS['config']['OPEN_SHAARLI'] = false; // If true, anyone can add/edit/delete links without having to login $GLOBALS['config']['HIDE_TIMESTAMPS'] = false; // If true, the moment when links were saved are not shown to users that are not logged in. +$GLOBALS['config']['SHOW_ATOM'] = false; // If true, an extra "ATOM feed" button will be displayed in the toolbar $GLOBALS['config']['ENABLE_THUMBNAILS'] = true; // Enable thumbnails in links. $GLOBALS['config']['CACHEDIR'] = 'cache'; // Cache directory for thumbnails for SLOW services (like flickr) $GLOBALS['config']['PAGECACHE'] = 'pagecache'; // Page cache directory. diff --git a/tpl/page.header.html b/tpl/page.header.html index 37a18f70..654a551d 100644 --- a/tpl/page.header.html +++ b/tpl/page.header.html @@ -16,7 +16,9 @@ Login {/if} RSS Feed - ATOM Feed + {if="$GLOBALS['config']['SHOW_ATOM']"} + ATOM Feed + {/if} Tag cloud Picture wall Daily -- 2.41.0