From 1b93137e16694f52952c930848e1a7928e8a00a6 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Wed, 9 Nov 2016 18:57:02 +0100 Subject: Use web-thumbnailer to retrieve thumbnails * requires PHP 5.6 * use blazy on linklist since a lot more thumbs are retrieved * thumbnails can be disabled * thumbs size is now 120x120 * thumbs are now cropped to fit the expected size Fixes #345 #425 #487 #543 #588 #590 --- tpl/vintage/configure.html | 12 ++++++++++++ tpl/vintage/linklist.html | 11 ++++++++++- tpl/vintage/picwall.html | 6 +++++- 3 files changed, 27 insertions(+), 2 deletions(-) (limited to 'tpl') diff --git a/tpl/vintage/configure.html b/tpl/vintage/configure.html index 479284eb..e47c71ad 100644 --- a/tpl/vintage/configure.html +++ b/tpl/vintage/configure.html @@ -128,6 +128,18 @@ + + Enable thumbnails + + + + + diff --git a/tpl/vintage/linklist.html b/tpl/vintage/linklist.html index 1ca51be3..9bdafa8c 100644 --- a/tpl/vintage/linklist.html +++ b/tpl/vintage/linklist.html @@ -80,7 +80,16 @@ {loop="$links"} -
{$value.url|thumbnail}
+ {if="$thumbnails_enabled && !empty($value.thumbnail)"} + + {/if} {/if} +{if="!empty($global_warnings) && $is_logged_in"} +
+
+
+ {loop="global_warnings"} +

{$value}

+ {/loop} +
+
+ +
+
+{/if} +
diff --git a/tpl/default/thumbnails.html b/tpl/default/thumbnails.html new file mode 100644 index 00000000..a8cf904e --- /dev/null +++ b/tpl/default/thumbnails.html @@ -0,0 +1,48 @@ + + + + {include="includes"} + + +{include="page.header"} + +
+
+
+

{'Thumbnails update'|t}

+ +
+
+
+
+
+
+ +
+
+
+ + +
+
+
+
+
+ +
+
+
+
+ 0 / {$ids|count} +
+
+
+ + +
+
+ +{include="page.footer"} + + + diff --git a/tpl/vintage/configure.html b/tpl/vintage/configure.html index e47c71ad..fc3a563b 100644 --- a/tpl/vintage/configure.html +++ b/tpl/vintage/configure.html @@ -132,11 +132,13 @@ Enable thumbnails + {if="$thumbnails_enabled"}checked{/if} {if="!$gd_enabled"}disabled{/if}> diff --git a/tpl/vintage/thumbnails.html b/tpl/vintage/thumbnails.html new file mode 100644 index 00000000..79aebf8d --- /dev/null +++ b/tpl/vintage/thumbnails.html @@ -0,0 +1,28 @@ + + +{include="includes"} + + + +
+
+ + + +
+
+
+ +
+ 0 / {$ids|count} +
+
+ + + +{include="page.footer"} + + + -- cgit v1.2.3 From fcba541e2f12c85ac56c6915ba1319fbdd3e6962 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sun, 1 Jul 2018 11:44:35 +0200 Subject: Bump WT version --- tpl/default/picwall.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tpl') diff --git a/tpl/default/picwall.html b/tpl/default/picwall.html index 1ea9c20a..1b8bf3b9 100644 --- a/tpl/default/picwall.html +++ b/tpl/default/picwall.html @@ -24,9 +24,9 @@ {/loop} -
+
{loop="$linksToDisplay"} -
+
{ignore}RainTPL hack: put the 2 src on two different line to avoid path replace bug{/ignore} Date: Thu, 5 Jul 2018 20:29:55 +0200 Subject: Thumbnails: add a common mode to only retrieve thumbs from popular media websites --- tpl/default/configure.html | 13 +++++++++++-- tpl/vintage/configure.html | 13 +++++++++++-- 2 files changed, 22 insertions(+), 4 deletions(-) (limited to 'tpl') diff --git a/tpl/default/configure.html b/tpl/default/configure.html index dca9503b..9711d151 100644 --- a/tpl/default/configure.html +++ b/tpl/default/configure.html @@ -259,8 +259,17 @@
- +
diff --git a/tpl/vintage/configure.html b/tpl/vintage/configure.html index fc3a563b..9466c235 100644 --- a/tpl/vintage/configure.html +++ b/tpl/vintage/configure.html @@ -131,8 +131,17 @@ Enable thumbnails - + diff --git a/tpl/default/linklist.html b/tpl/default/linklist.html index bf88e161..8ea2ce66 100644 --- a/tpl/default/linklist.html +++ b/tpl/default/linklist.html @@ -132,7 +132,7 @@