From: Vincent Vanwaelscappel Date: Wed, 28 Jan 2026 16:42:52 +0000 (+0100) Subject: wip #7950 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=4650f8df7e755cc6a5e8d1e82f29ffcb623b6177;p=fluidbook-toolbox.git wip #7950 @0.5 --- diff --git a/app/Fluidbook/Compiler/Compiler.php b/app/Fluidbook/Compiler/Compiler.php index 53f40badb..48bf0101d 100644 --- a/app/Fluidbook/Compiler/Compiler.php +++ b/app/Fluidbook/Compiler/Compiler.php @@ -313,7 +313,7 @@ class Compiler extends Base implements CompilerInterface, IVirtualDirectoryError * @throws \Exception */ - function __construct(FluidbookPublication $book, $variant = 'online', $phonegap = false, $phonegapVersion = 'latest', $dir = null, $standalone = false, $appcache = false, $home = false, FluidbookTheme $theme=null, $hybrid = false, Command $command=null) + function __construct(FluidbookPublication $book, $variant = 'online', $phonegap = false, $phonegapVersion = 'latest', $dir = null, $standalone = false, $appcache = false, $home = false, FluidbookTheme $theme = null, $hybrid = false, Command $command = null) { ExcelToArray::setCache($book->protected_path('fluidbookpublication/cache/exceltoarray')); YoutubeDL::setCookiesFile(resource_path('yt-dlp/cookies.txt'), 'firefox'); @@ -2752,6 +2752,11 @@ class Compiler extends Base implements CompilerInterface, IVirtualDirectoryError { return Farm::extractPDFArea($file, $page, $rect, $to, $options, $cache); } + + public function addSearchWord($to, $page, $array) + { + + } } diff --git a/app/SubForms/Link/Base.php b/app/SubForms/Link/Base.php index 4b0e8977f..9ba371ad9 100644 --- a/app/SubForms/Link/Base.php +++ b/app/SubForms/Link/Base.php @@ -124,6 +124,7 @@ class Base extends Form ['type' => \Fluidbook\Tools\Links\Link::FLUIDBOOK_TOOLBOX_ELEARNING_CONTENT, 'label' => __('Contenu e-learning'), 'color' => '#370f20', 'class' => ElearningContent::class], ['type' => \Fluidbook\Tools\Links\Link::OBJECT3D, 'label' => __('Objet 3D'), 'color' => '#00ffff', 'class' => Object3D::class], ['type' => \Fluidbook\Tools\Links\Link::LAYER_MASK, 'label' => __('Masque'), 'color' => '#e34f7b', 'class' => LayerMask::class], + ['type' => \Fluidbook\Tools\Links\Link::SEARCH_WORD, 'label' => __('Mots à ajouter au moteur de recherche'), 'color' => '#726b45', 'class' => SearchWord::class], //['type' => \Fluidbook\Tools\Links\Link::HTML5MULTIMEDIA, 'label' => __('Lien Multimédia (HTML)'), 'color' => '#34A853', 'disabled' => true, 'class' => Web::class], //['type' => \Fluidbook\Tools\Links\Link::BOOKMARK_CORNER, 'label' => __('Lien marque-page sur coin de page'), 'color' => '#000000', 'disabled' => true, 'class' => Web::class], //['type' => \Fluidbook\Tools\Links\Link::PAGE_CORNER, 'label' => __('Coin de page'), 'color' => '#f19043', 'disabled' => true, 'class' => Web::class], @@ -355,7 +356,7 @@ class Base extends Form * @return string */ - public function render(?callable $callback=null) + public function render(?callable $callback = null) { return view('fluidbook_publication.link_editor_form', ['form' => $this, 'crud' => $this->crud])->render($callback); } diff --git a/app/SubForms/Link/Meta.php b/app/SubForms/Link/Meta.php index 949b9b723..273fa41b0 100644 --- a/app/SubForms/Link/Meta.php +++ b/app/SubForms/Link/Meta.php @@ -11,4 +11,5 @@ class Meta extends Base protected $_stats = false; protected $_uid = false; protected $_visibility = false; + protected $_accessibility = false; } diff --git a/app/SubForms/Link/SearchWord.php b/app/SubForms/Link/SearchWord.php new file mode 100644 index 000000000..5f1b67de9 --- /dev/null +++ b/app/SubForms/Link/SearchWord.php @@ -0,0 +1,14 @@ +addField('to', \Cubist\Backpack\Magic\Fields\Text::class, __('Mots à ajouter au moteur de recherche')); + } +}