From: Vincent Vanwaelscappel Date: Thu, 22 Jul 2021 15:55:07 +0000 (+0200) Subject: wait #4612 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=616f9a4be065bdc98444d53023d4f363999a42fe;p=fluidbook-toolbox.git wait #4612 @0.5 --- 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 ''; + } }