From 616f9a4be065bdc98444d53023d4f363999a42fe Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 22 Jul 2021 17:55:07 +0200 Subject: [PATCH] wait #4612 @0.5 --- app/Models/FluidbookTheme.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/Models/FluidbookTheme.php b/app/Models/FluidbookTheme.php index f31ef5b01..b436996a5 100644 --- a/app/Models/FluidbookTheme.php +++ b/app/Models/FluidbookTheme.php @@ -44,6 +44,8 @@ class FluidbookTheme extends CubistMagicAbstractModel $this->addField('name', 'Text', __('Nom'), ['column' => true]); + $this->addField('preview', 'NoValue', __('Preview'), ['column' => true, 'column_type' => 'model_function', 'column_function_name' => 'getPreviewImage', 'column_limit' => -1]); + $this->setSettingsFields(); } @@ -55,6 +57,7 @@ class FluidbookTheme extends CubistMagicAbstractModel public function setSettingsFields() { + $this->addField([ 'name' => 'section_fonts', 'type' => 'FormSection', @@ -749,4 +752,9 @@ class FluidbookTheme extends CubistMagicAbstractModel $str = str_replace("s:8:\"\0*\0datas\"", 's:5:"datas"', $str); return unserialize($str); } + + public function getPreviewImage() + { + return ''; + } } -- 2.39.5