From d2f517638c337b5529684ab09966f74c304f0f99 Mon Sep 17 00:00:00 2001 From: nodiscc Date: Sat, 8 Nov 2014 18:19:52 +0100 Subject: make archive.org integration optional (ARCHIVE_ORG option, defaults to false) --- index.php | 1 + tpl/linklist.html | 2 ++ 2 files changed, 3 insertions(+) diff --git a/index.php b/index.php index 06e5b784..1d523a33 100644 --- a/index.php +++ b/index.php @@ -32,6 +32,7 @@ $GLOBALS['config']['RAINTPL_TPL'] = 'tpl/' ; // Raintpl template directory (keep $GLOBALS['config']['UPDATECHECK_FILENAME'] = $GLOBALS['config']['DATADIR'].'/lastupdatecheck.txt'; // For updates check of Shaarli. $GLOBALS['config']['UPDATECHECK_INTERVAL'] = 86400 ; // Updates check frequency for Shaarli. 86400 seconds=24 hours // Note: You must have publisher.php in the same directory as Shaarli index.php +$GLOBALS['config']['ARCHIVE_ORG'] = false; // For each link, add a link to an archived version on archive.org // ----------------------------------------------------------------------------------------------- // You should not touch below (or at your own risks!) // Optional config file. diff --git a/tpl/linklist.html b/tpl/linklist.html index b7cf096f..770819fc 100644 --- a/tpl/linklist.html +++ b/tpl/linklist.html @@ -48,7 +48,9 @@ {else} permalink - {/if} + {if="$GLOBALS['config']['ARCHIVE_ORG']"} archive - + {/if}
- {$value.url|htmlspecialchars}
-- cgit v1.2.3