From: Vincent Vanwaelscappel Date: Tue, 4 Mar 2025 16:42:18 +0000 (+0100) Subject: wait #7347 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=c21443ce1d54e100e7239170796e2bcb4a4a6c37;p=fluidbook-toolbox.git wait #7347 --- diff --git a/app/Fluidbook/Link/LinksData.php b/app/Fluidbook/Link/LinksData.php index dd439c752..a542bd139 100644 --- a/app/Fluidbook/Link/LinksData.php +++ b/app/Fluidbook/Link/LinksData.php @@ -56,6 +56,7 @@ class LinksData 'zindex' => __('Profondeur'), 'pdfjs' => __('Mode PDFJS'), 'polygon' => __('Tracé du polygone'), + 'background_color' => __('Couleur de fond'), ); $comments = array(); @@ -703,7 +704,9 @@ class LinksData 'tooltip' => '', 'numerotation' => 'physical', "inline" => 'inline', - 'pdfjs' => 'normal']; + 'pdfjs' => 'normal', + 'background_color' => '', + ]; $k = 0; foreach ($cols as $col => $default) { @@ -741,8 +744,8 @@ class LinksData } fclose($fp); } - // throw new \Exception(":/ " . count($links) . ' // ' . json_encode($book->getComposition())); - self::saveLinksInFile($book_id, backpack_user() ? backpack_user()->id : 0, 'Links imported from PDF (Documents ' . implode(', ', $docs).')', $links); + // throw new \Exception(":/ " . count($links) . ' // ' . json_encode($book->getComposition())); + self::saveLinksInFile($book_id, backpack_user() ? backpack_user()->id : 0, 'Links imported from PDF (Documents ' . implode(', ', $docs) . ')', $links); return true; } diff --git a/app/SubForms/Link/Object3D.php b/app/SubForms/Link/Object3D.php index a85f0ca6b..9767aa8c8 100644 --- a/app/SubForms/Link/Object3D.php +++ b/app/SubForms/Link/Object3D.php @@ -15,5 +15,6 @@ class Object3D extends Base public function addDestinationField() { $this->addField('to', FilesOrURL::class, __('Fichier 3D'), $this->getFilesOrURLEntry() + ['accept' => self::$_accept3D]); + $this->addField('background_color', \Cubist\Backpack\Magic\Fields\Color::class, __('Couleur de fond'), ['default' => '#ffffff']); } }