From a120fb2977331e0f7d7ffe05861ba179fdae8764 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Mon, 13 Aug 2018 10:42:27 +0200 Subject: Add OpenGraph meta tags on permalink page Includes: - og:title - og:type -> article - og:image -> if there is a thumbnail - og:url -> permalink - og:description -> first 300 chars of raw description - article:published_time - article:modified_time - article:tag -> one OG meta tag for each shaare tag Fixes #258 --- tpl/default/includes.html | 20 ++++++++++++++++++++ tpl/vintage/includes.html | 20 ++++++++++++++++++++ 2 files changed, 40 insertions(+) (limited to 'tpl') diff --git a/tpl/default/includes.html b/tpl/default/includes.html index 5ccacaaf..0427e224 100644 --- a/tpl/default/includes.html +++ b/tpl/default/includes.html @@ -15,3 +15,23 @@ {/if} +{if="! empty($links) && count($links) === 1"} + {$link=reset($links)} + + + + {$ogDescription=isset($link.description_src) ? $link.description_src : $link.description} + + {if="$link.thumbnail"} + + {/if} + {if="!$hide_timestamps || $is_logged_in"} + + {if="$link.updated"} + + {/if} + {/if} + {loop="link.taglist"} + + {/loop} +{/if} diff --git a/tpl/vintage/includes.html b/tpl/vintage/includes.html index 410b466b..df093495 100644 --- a/tpl/vintage/includes.html +++ b/tpl/vintage/includes.html @@ -12,3 +12,23 @@ {/loop} {if="is_file('data/user.css')"}{/if} +{if="! empty($links) && count($links) === 1"} + {$link=reset($links)} + + + + {$ogDescription=isset($link.description_src) ? $link.description_src : $link.description} + + {if="$link.thumbnail"} + + {/if} + {if="!$hide_timestamps || $is_logged_in"} + + {if="$link.updated"} + + {/if} + {/if} + {loop="link.taglist"} + + {/loop} +{/if} -- cgit v1.2.3 From fc574e64544db2f7b56443a827e17d58c7561804 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Mon, 13 Aug 2018 13:13:26 +0200 Subject: Add a button to toggle all checkboxes of displayed links Related to #1160 --- tpl/default/linklist.html | 2 +- tpl/default/linklist.paging.html | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'tpl') diff --git a/tpl/default/linklist.html b/tpl/default/linklist.html index 8ea2ce66..97730c29 100644 --- a/tpl/default/linklist.html +++ b/tpl/default/linklist.html @@ -190,7 +190,7 @@ {if="$is_logged_in"} diff --git a/tpl/default/picwall.html b/tpl/default/picwall.html index 9a0b10dc..4c325487 100644 --- a/tpl/default/picwall.html +++ b/tpl/default/picwall.html @@ -37,7 +37,7 @@
{ignore}RainTPL hack: put the 2 src on two different line to avoid path replace bug{/ignore} thumbnail {$value.title} {loop="$value.picwall_plugin"} diff --git a/tpl/vintage/daily.html b/tpl/vintage/daily.html index 00148a58..71d84475 100644 --- a/tpl/vintage/daily.html +++ b/tpl/vintage/daily.html @@ -71,7 +71,7 @@ {if="$thumbnails_enabled && !empty($link.thumbnail)"}
thumbnail
{/if} diff --git a/tpl/vintage/linklist.html b/tpl/vintage/linklist.html index 3f202849..dcb14e90 100644 --- a/tpl/vintage/linklist.html +++ b/tpl/vintage/linklist.html @@ -85,7 +85,7 @@ {ignore}RainTPL hack: put the 2 src on two different line to avoid path replace bug{/ignore} thumbnail
diff --git a/tpl/vintage/picwall.html b/tpl/vintage/picwall.html index 5f1d266e..b3a16791 100644 --- a/tpl/vintage/picwall.html +++ b/tpl/vintage/picwall.html @@ -17,7 +17,7 @@
{ignore}RainTPL hack: put the 2 src on two different line to avoid path replace bug{/ignore} thumbnail {$value.title} {loop="$value.picwall_plugin"} -- cgit v1.2.3 From 4154c25b5f2f8044a37d7f84e04173bb54f2375b Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Tue, 22 May 2018 22:44:38 +0200 Subject: Add a button to set links as sticky Meaning that they always appear on top of all links Fixes #186 --- tpl/default/linklist.html | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tpl') diff --git a/tpl/default/linklist.html b/tpl/default/linklist.html index 8ea2ce66..aaa9bc74 100644 --- a/tpl/default/linklist.html +++ b/tpl/default/linklist.html @@ -201,6 +201,12 @@ + + + + +
{/if} -- cgit v1.2.3 From d9bf5b31ff9e2d007ddfb7f7756184f0ca9676c8 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sat, 6 Oct 2018 13:09:11 +0200 Subject: Sticky feature - Add translation and display for logged out users --- tpl/default/linklist.html | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'tpl') diff --git a/tpl/default/linklist.html b/tpl/default/linklist.html index aaa9bc74..c04f4786 100644 --- a/tpl/default/linklist.html +++ b/tpl/default/linklist.html @@ -125,6 +125,8 @@ {$strPermalink=t('Permalink')} {$strPermalinkLc=t('permalink')} {$strAddTag=t('Add tag')} + {$strToggleSticky=t('Toggle sticky')} + {$strSticky=t('Sticky')} {ignore}End of translations{/ignore} {loop="links"}
@@ -203,11 +205,21 @@
+ title="{$strToggleSticky}" class="pin-link {if="$value.sticky"}pinned-link{/if} pure-u-0 pure-u-lg-visible"> + {else} + {if="$value.sticky"} + + {/if} {/if} {if="!$hide_timestamps || $is_logged_in"} -- cgit v1.2.3 From db06c261f65199e03245ae704a56e1057f2f7c96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luce=20Carevi=C4=87?= Date: Fri, 30 Nov 2018 20:36:10 +0100 Subject: fix translation string --- tpl/default/page.header.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tpl') diff --git a/tpl/default/page.header.html b/tpl/default/page.header.html index 3b43a611..4f6dd4d8 100644 --- a/tpl/default/page.header.html +++ b/tpl/default/page.header.html @@ -118,7 +118,7 @@ -- cgit v1.2.3 From 0c42c5e3597215949a8c374802f8f25be485f267 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luce=20Carevi=C4=87?= Date: Fri, 30 Nov 2018 20:39:13 +0100 Subject: add label to form - accessibility issue Don't use placeholder instead of label for form input. --- tpl/default/addlink.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tpl') diff --git a/tpl/default/addlink.html b/tpl/default/addlink.html index 2f956e06..55864a02 100644 --- a/tpl/default/addlink.html +++ b/tpl/default/addlink.html @@ -11,7 +11,8 @@

{"Shaare a new link"|t}

- + +
-- cgit v1.2.3