aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/PageBuilder.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2016-11-09 18:57:02 +0100
committerArthurHoaro <arthur@hoa.ro>2018-07-05 20:31:35 +0200
commit1b93137e16694f52952c930848e1a7928e8a00a6 (patch)
tree3d2c69d1c3bd1a85e1e46b04c55fc3978b5ebde8 /application/PageBuilder.php
parentedb4a4d9c9fbc01d67ee8d095fe26648714e2285 (diff)
downloadShaarli-1b93137e16694f52952c930848e1a7928e8a00a6.tar.gz
Shaarli-1b93137e16694f52952c930848e1a7928e8a00a6.tar.zst
Shaarli-1b93137e16694f52952c930848e1a7928e8a00a6.zip
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
Diffstat (limited to 'application/PageBuilder.php')
-rw-r--r--application/PageBuilder.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/application/PageBuilder.php b/application/PageBuilder.php
index a4483870..3dba7677 100644
--- a/application/PageBuilder.php
+++ b/application/PageBuilder.php
@@ -105,6 +105,11 @@ class PageBuilder
105 if ($this->linkDB !== null) { 105 if ($this->linkDB !== null) {
106 $this->tpl->assign('tags', $this->linkDB->linksCountPerTag()); 106 $this->tpl->assign('tags', $this->linkDB->linksCountPerTag());
107 } 107 }
108
109 $this->tpl->assign('thumbnails_enabled', $this->conf->get('thumbnails.enabled'));
110 $this->tpl->assign('thumbnails_width', $this->conf->get('thumbnails.width'));
111 $this->tpl->assign('thumbnails_height', $this->conf->get('thumbnails.height'));
112
108 // To be removed with a proper theme configuration. 113 // To be removed with a proper theme configuration.
109 $this->tpl->assign('conf', $this->conf); 114 $this->tpl->assign('conf', $this->conf);
110 } 115 }