aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornodiscc <nodiscc@gmail.com>2014-10-23 17:47:30 +0200
committernodiscc <nodiscc@gmail.com>2014-10-23 17:47:30 +0200
commit1099d8fcad1844599a365fc03506ca69d156609f (patch)
tree534e2e70620408d2b49a61e808f90198303e2f70
parent57dbbe51a613b31f84071a22897857b81cd9e2ec (diff)
downloadShaarli-1099d8fcad1844599a365fc03506ca69d156609f.tar.gz
Shaarli-1099d8fcad1844599a365fc03506ca69d156609f.tar.zst
Shaarli-1099d8fcad1844599a365fc03506ca69d156609f.zip
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
-rw-r--r--index.php1
-rw-r--r--tpl/page.header.html4
2 files changed, 4 insertions, 1 deletions
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.
21$GLOBALS['config']['BAN_DURATION'] = 1800; // Ban duration for IP address after login failures (in seconds) (1800 sec. = 30 minutes) 21$GLOBALS['config']['BAN_DURATION'] = 1800; // Ban duration for IP address after login failures (in seconds) (1800 sec. = 30 minutes)
22$GLOBALS['config']['OPEN_SHAARLI'] = false; // If true, anyone can add/edit/delete links without having to login 22$GLOBALS['config']['OPEN_SHAARLI'] = false; // If true, anyone can add/edit/delete links without having to login
23$GLOBALS['config']['HIDE_TIMESTAMPS'] = false; // If true, the moment when links were saved are not shown to users that are not logged in. 23$GLOBALS['config']['HIDE_TIMESTAMPS'] = false; // If true, the moment when links were saved are not shown to users that are not logged in.
24$GLOBALS['config']['SHOW_ATOM'] = false; // If true, an extra "ATOM feed" button will be displayed in the toolbar
24$GLOBALS['config']['ENABLE_THUMBNAILS'] = true; // Enable thumbnails in links. 25$GLOBALS['config']['ENABLE_THUMBNAILS'] = true; // Enable thumbnails in links.
25$GLOBALS['config']['CACHEDIR'] = 'cache'; // Cache directory for thumbnails for SLOW services (like flickr) 26$GLOBALS['config']['CACHEDIR'] = 'cache'; // Cache directory for thumbnails for SLOW services (like flickr)
26$GLOBALS['config']['PAGECACHE'] = 'pagecache'; // Page cache directory. 27$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 @@
16 <a href="?do=login">Login</a> 16 <a href="?do=login">Login</a>
17 {/if} 17 {/if}
18 <a href="{$feedurl}?do=rss{$searchcrits}" class="nomobile">RSS Feed</a> 18 <a href="{$feedurl}?do=rss{$searchcrits}" class="nomobile">RSS Feed</a>
19 <a href="{$feedurl}?do=atom{$searchcrits}" style="padding-left:10px;" class="nomobile">ATOM Feed</a> 19 {if="$GLOBALS['config']['SHOW_ATOM']"}
20 <a href="{$feedurl}?do=atom{$searchcrits}" style="padding-left:10px;" class="nomobile">ATOM Feed</a>
21 {/if}
20 <a href="?do=tagcloud">Tag cloud</a> 22 <a href="?do=tagcloud">Tag cloud</a>
21 <a href="?do=picwall{$searchcrits}">Picture wall</a> 23 <a href="?do=picwall{$searchcrits}">Picture wall</a>
22 <a href="?do=daily">Daily</a> 24 <a href="?do=daily">Daily</a>