From: nodiscc Date: Thu, 23 Oct 2014 15:47:30 +0000 (+0200) Subject: Make ATOM toolbar button optional X-Git-Tag: v0.0.43beta~35^2 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=1099d8fcad1844599a365fc03506ca69d156609f;p=github%2Fshaarli%2FShaarli.git 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 --- 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