From 1442afe3cf928815916d73e2b7ff8f176b3a0af1 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Tue, 2 Aug 2016 11:03:55 +0200 Subject: Plugin parameter description: Update the templates to display them --- tpl/pluginsadmin.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tpl') diff --git a/tpl/pluginsadmin.html b/tpl/pluginsadmin.html index 5ddcf061..966360ea 100644 --- a/tpl/pluginsadmin.html +++ b/tpl/pluginsadmin.html @@ -104,11 +104,12 @@
- +
{/loop} -- 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') 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 c6d876bb2afe7e9ec1a64c74e766360e2fa441e0 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Wed, 3 Aug 2016 09:45:28 +0200 Subject: Set updated date for items in feeds RSS doesn't support updated date for items, so we use the ATOM extension. Updated dates also bump the global update --- tpl/feed.atom.html | 3 ++- tpl/feed.rss.html | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'tpl') diff --git a/tpl/feed.atom.html b/tpl/feed.atom.html index 2ebb162a..1932f507 100644 --- a/tpl/feed.atom.html +++ b/tpl/feed.atom.html @@ -27,7 +27,8 @@ {/if} {$value.guid} {if="$show_dates"} - {$value.iso_date} + {$value.pub_iso_date} + {$value.up_iso_date} {/if} diff --git a/tpl/feed.rss.html b/tpl/feed.rss.html index 26de7f19..4bfe4196 100644 --- a/tpl/feed.rss.html +++ b/tpl/feed.rss.html @@ -22,7 +22,8 @@ {$value.url} {/if} {if="$show_dates"} - {$value.iso_date} + {$value.pub_iso_date} + {$value.up_iso_date} {/if} {loop="$value.taglist"} -- cgit v1.2.3 From a973afeac7b7399d35b881920f0afc1947765ccd Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Thu, 28 Jul 2016 22:54:33 +0200 Subject: Refactor bookmark import using a generic Netscape parser Relates to #607 Relates to #608 Relates to #493 (abandoned) Additions: - use Composer's autoload to load 3rd-party dependencies under vendor/ Modifications: - [import] replace the current parser with a generic, stable parser - move code to application/NetscapeBookmarkUtils - improve status report after parsing - [router] use the same endpoint for both bookmark upload and import dialog - [template] update bookmark import options - allow adding tags to all imported links - allow selecting the visibility (privacy) of imported links - [tests] ensure bookmarks are properly parsed and imported in the LinkDB - reuse reference input from the parser's test data See: - https://github.com/shaarli/netscape-bookmark-parser - https://getcomposer.org/doc/01-basic-usage.md#autoloading Signed-off-by: VirtualTam --- tpl/import.html | 38 +++++++++++++++++++++++++------------- 1 file changed, 25 insertions(+), 13 deletions(-) (limited to 'tpl') diff --git a/tpl/import.html b/tpl/import.html index 6c4f9421..071e1160 100644 --- a/tpl/import.html +++ b/tpl/import.html @@ -3,19 +3,31 @@ {include="includes"} {include="page.footer"} - \ No newline at end of file + -- cgit v1.2.3 From e3de09b4c836547f094e528b61625e2780f40cc1 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Fri, 14 Oct 2016 12:48:01 +0200 Subject: Bugfix: display plugin parameter description only if it exists --- tpl/pluginsadmin.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tpl') diff --git a/tpl/pluginsadmin.html b/tpl/pluginsadmin.html index 966360ea..672f4993 100644 --- a/tpl/pluginsadmin.html +++ b/tpl/pluginsadmin.html @@ -105,7 +105,9 @@
-- 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/daily.html | 6 +++--- tpl/dailyrss.html | 2 +- tpl/export.bookmarks.html | 2 +- tpl/feed.atom.html | 2 +- tpl/feed.rss.html | 2 +- tpl/linklist.html | 4 ++-- tpl/page.header.html | 2 +- tpl/picwall.html | 2 +- tpl/tagcloud.html | 2 +- 9 files changed, 12 insertions(+), 12 deletions(-) (limited to 'tpl') diff --git a/tpl/daily.html b/tpl/daily.html index dde1f376..b82ad483 100644 --- a/tpl/daily.html +++ b/tpl/daily.html @@ -42,10 +42,10 @@
{if="$linksToDisplay"} - {loop="cols"} + {loop="$cols"} {if="isset($value[0])"}
- {loop="value"} + {loop="$value"} {$link=$value}
{/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} diff --git a/tpl/page.header.html b/tpl/page.header.html index 0012c689..eac2ed4a 100644 --- a/tpl/page.header.html +++ b/tpl/page.header.html @@ -43,7 +43,7 @@ {if="!empty($plugin_errors) && isLoggedIn()"}
      - {loop="plugin_errors"} + {loop="$plugin_errors"}
    • {$value}
    • {/loop}
    diff --git a/tpl/picwall.html b/tpl/picwall.html index 230c948b..4e227e37 100644 --- a/tpl/picwall.html +++ b/tpl/picwall.html @@ -14,7 +14,7 @@
    - {loop="linksToDisplay"} + {loop="$linksToDisplay"}
    {$value.thumbnail}{$value.title} {loop="$value.picwall_plugin"} diff --git a/tpl/tagcloud.html b/tpl/tagcloud.html index e449f293..05e45273 100644 --- a/tpl/tagcloud.html +++ b/tpl/tagcloud.html @@ -11,7 +11,7 @@
    - {loop="tags"} + {loop="$tags"} {$value.count}{$key} {loop="$value.tag_plugin"} -- cgit v1.2.3 From 1ef05d3601e942eba74bd66554d629be2fa05efe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20K=C3=A4stner?= Date: Wed, 16 Nov 2016 14:57:44 +0100 Subject: Add meta tag to block sending the referrer Add a meta tag that tells the browser not to send the referrer header to external sites. --- tpl/includes.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tpl') diff --git a/tpl/includes.html b/tpl/includes.html index f94ce1be..7b2997ce 100644 --- a/tpl/includes.html +++ b/tpl/includes.html @@ -2,6 +2,7 @@ + @@ -11,4 +12,4 @@ {loop="$plugins_includes.css_files"} {/loop} - \ No newline at end of file + -- cgit v1.2.3 From caa382dd55c285306a3f48bb54678cf787d842e1 Mon Sep 17 00:00:00 2001 From: Teromene Date: Tue, 29 Nov 2016 11:06:31 +0000 Subject: Disable Firefox Social in the tools section if the page is not loaded using HTTPS, as Firefox will deny the request. --- tpl/tools.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tpl') diff --git a/tpl/tools.html b/tpl/tools.html index 8e285f44..e06d239d 100644 --- a/tpl/tools.html +++ b/tpl/tools.html @@ -50,12 +50,15 @@     Then click "✚Add Note" button anytime to start composing a private Note (text post) to your Shaarli.

    + + {if="$sslenabled"} ✚Add to Firefox social ⇐ Click on this button to add Shaarli to the "Share this page" button in Firefox.

    + {/if} {loop="$tools_plugin"} {$value} @@ -64,6 +67,7 @@