From b74b96bfbd0b778ac50fd17f5e107c51435b1678 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sun, 29 May 2016 12:32:14 +0200 Subject: Adds ConfigJson which handle the configuration in JSON format. Also use the Updater to make the transition --- tpl/linklist.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tpl/linklist.html') diff --git a/tpl/linklist.html b/tpl/linklist.html index c0d42006..2316f145 100644 --- a/tpl/linklist.html +++ b/tpl/linklist.html @@ -88,7 +88,7 @@
{if="$value.description"}
{$value.description}
{/if} - {if="!$GLOBALS['config']['HIDE_TIMESTAMPS'] || isLoggedIn()"} + {if="!$hide_timestamps || isLoggedIn()"} {function="strftime('%c', $value.timestamp)"} - permalink - {else} permalink - -- cgit v1.2.3 From 9646b7da22c4c6f3419bfe51431720dd622374d8 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Wed, 3 Aug 2016 09:44:04 +0200 Subject: Save the update date in LinkDB and pass it to linklist templates It can be used as a timestamp by templates under the key 'updated_timestamp'. --- tpl/linklist.html | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'tpl/linklist.html') diff --git a/tpl/linklist.html b/tpl/linklist.html index 2316f145..9979f12a 100644 --- a/tpl/linklist.html +++ b/tpl/linklist.html @@ -89,7 +89,16 @@
{if="$value.description"}
{$value.description}
{/if} {if="!$hide_timestamps || isLoggedIn()"} - {function="strftime('%c', $value.timestamp)"} - permalink - + {$updated=$value.updated_timestamp ? 'Edited: '. strftime('%c', $value.updated_timestamp) : 'Permalink'} + + + + {function="strftime('%c', $value.timestamp)"} + {if="$value.updated_timestamp"}*{/if} + + - permalink + - + {else} permalink - {/if} -- cgit v1.2.3 From dec5fe9c6973054a1301982f910de86a19502b55 Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Sun, 16 Oct 2016 17:41:08 +0200 Subject: Cleanup: explicitely loop over PHP variables in templates Relates to https://github.com/shaarli/Shaarli/issues/613 Before: {loop="someVariable"} After: {loop="$someVariable"} Signed-off-by: VirtualTam --- tpl/linklist.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tpl/linklist.html') diff --git a/tpl/linklist.html b/tpl/linklist.html index 9979f12a..ddfd729a 100644 --- a/tpl/linklist.html +++ b/tpl/linklist.html @@ -63,7 +63,7 @@ {/if}
    - {loop="links"} + {loop="$links"}
    {$value.url|thumbnail}
    @@ -110,7 +110,7 @@ {$value.url}
    {if="$value.tags"}
    - {loop="value.taglist"}{$value} {/loop} + {loop="$value.taglist"}{$value} {/loop}
    {/if} -- cgit v1.2.3 From ba0fd80732acbff0fcda57a0b31e4edfaa337001 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Thu, 1 Dec 2016 11:38:21 +0100 Subject: Improve theme dependent plugin placeholders: - buttons_toolbar: now expect links represented by an array instead of HTML content - fields_toolbar: now expect a form represented by an array instead of HTML content - action_plugin: now expect links represented by an array instead of HTML content Default templates updated accordingly mprove theme dependent plugin placeholders: --- tpl/linklist.html | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'tpl/linklist.html') diff --git a/tpl/linklist.html b/tpl/linklist.html index ddfd729a..3fe86deb 100644 --- a/tpl/linklist.html +++ b/tpl/linklist.html @@ -28,7 +28,17 @@ {loop="$plugins_header.fields_toolbar"} - {$value} +
    + {loop="$value.inputs"} + + {/loop} +
    {/loop} -- cgit v1.2.3 From 01878a75b93b9966f7366ea2937c118bbc3e459e Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Mon, 28 Nov 2016 16:16:44 +0100 Subject: Apply the new ID system accros the whole codebase --- tpl/linklist.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tpl/linklist.html') diff --git a/tpl/linklist.html b/tpl/linklist.html index ddfd729a..de9586c6 100644 --- a/tpl/linklist.html +++ b/tpl/linklist.html @@ -71,11 +71,11 @@ {if="isLoggedIn()"}