From fa28156ba376478c1a6d9ee395916262b03a42f3 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Wed, 29 Nov 2023 08:50:00 +0100 Subject: [PATCH] wip #6533 @0.25 --- app/Console/Kernel.php | 2 +- app/SubForms/Link/Base.php | 3 ++- app/SubForms/Link/SlideshowInline.php | 17 +++++++++++++++++ 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 app/SubForms/Link/SlideshowInline.php diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index dc0ab7c2c..a81f5dc70 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -46,7 +46,7 @@ class Kernel extends \Cubist\Backpack\Console\Kernel $schedule->command('fluidbook:farm:ping')->everyMinute(); $schedule->command('fluidbook:loadbalancer:ping --force')->everyMinute(); - $schedule->command('cubist:magic:precache')->everyFiveMinutes(); + $schedule->command('cubist:magic:precache')->everyThirtyMinutes(); $schedule->command('toolbox:precache')->everyThirtyMinutes(); } diff --git a/app/SubForms/Link/Base.php b/app/SubForms/Link/Base.php index f24eae5f9..3607aaec8 100644 --- a/app/SubForms/Link/Base.php +++ b/app/SubForms/Link/Base.php @@ -94,7 +94,8 @@ class Base extends Form ['type' => \Fluidbook\Tools\Links\Link::EVENT_OVERLAY, 'label' => __('Capter les évenements'), 'color' => '#ffcc00', 'class' => EventOverlay::class], ['type' => \Fluidbook\Tools\Links\Link::ARTICLE, 'label' => __('Article (définition)'), 'color' => '#ACC152', 'class' => Article::class], ['type' => \Fluidbook\Tools\Links\Link::LIKE, 'label' => __('Like'), 'color' => '#4267B2', 'class' => Like::class], - ['type' => \Fluidbook\Tools\Links\Link::SLIDESHOW, 'label' => __('Diaporama'), 'color' => '#07b57a', 'class' => Slideshow::class], + ['type' => \Fluidbook\Tools\Links\Link::SLIDESHOW, 'label' => __('Diaporama') . ' (' . __('popup') . ')', 'color' => '#07b57a', 'class' => Slideshow::class], + ['type' => \Fluidbook\Tools\Links\Link::SLIDESHOW_INLINE, 'label' => __('Diaporama') . ' (' . __('intégré') . ')', 'color' => '#C8A7DF', 'class' => SlideshowInline::class], ['type' => \Fluidbook\Tools\Links\Link::IFRAME, 'label' => __('iFrame'), 'color' => '#fcae25', 'class' => IFrame::class], ['type' => \Fluidbook\Tools\Links\Link::SHOWLINK, 'label' => __('Afficher un lien'), 'color' => '#125C70', 'class' => ShowLink::class], ['type' => \Fluidbook\Tools\Links\Link::ZOOMHD, 'label' => __('Zoom HD'), 'color' => '#E80C95', 'class' => ZoomHD::class], diff --git a/app/SubForms/Link/SlideshowInline.php b/app/SubForms/Link/SlideshowInline.php new file mode 100644 index 000000000..1c7ee9394 --- /dev/null +++ b/app/SubForms/Link/SlideshowInline.php @@ -0,0 +1,17 @@ +addField('to', FilesOrURL::class, __('Images'), $this->getFilesOrURLEntry() + ['accept' => self::$_acceptSlideshow]); + } +} -- 2.39.5