* @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');
{
return Farm::extractPDFArea($file, $page, $rect, $to, $options, $cache);
}
+
+ public function addSearchWord($to, $page, $array)
+ {
+
+ }
}
['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],
* @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);
}
--- /dev/null
+<?php
+
+namespace App\SubForms\Link;
+
+class SearchWord extends Meta
+{
+
+ protected $_extra = false;
+
+ public function addDestinationField()
+ {
+ $this->addField('to', \Cubist\Backpack\Magic\Fields\Text::class, __('Mots à ajouter au moteur de recherche'));
+ }
+}