From 13d681634a46be8962959499f47f87e85f8fe6d9 Mon Sep 17 00:00:00 2001 From: Diego Najar Date: Mon, 22 Jan 2018 22:07:04 +0100 Subject: [PATCH] Implement #616 --- bl-kernel/page.class.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/bl-kernel/page.class.php b/bl-kernel/page.class.php index 825a8f6d..481154b9 100644 --- a/bl-kernel/page.class.php +++ b/bl-kernel/page.class.php @@ -328,6 +328,16 @@ class Page { return $fileName; } + // Returns the absolute URL of the thumbnail of the cover image, FALSE if the page doen't have cover image + public function thumbCoverImage() + { + $coverImageFilename = $this->coverImage(false); + if ($coverImageFilename==false) { + return false; + } + return DOMAIN_UPLOADS_THUMBNAILS.$coverImageFilename; + } + // Returns TRUE if the content has the text splited public function readMore() {