From: Vincent Vanwaelscappel Date: Mon, 19 Sep 2022 07:24:10 +0000 (+0200) Subject: wip #5466 @0.75 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=027f0d6d01c9db48718f80b9491cc51476bfd530;p=fluidbook-toolbox.git wip #5466 @0.75 --- diff --git a/app/Fields/FluidbookLinkEditor/Action.php b/app/Fields/FluidbookLinkEditor/Action.php new file mode 100644 index 000000000..100dbed0c --- /dev/null +++ b/app/Fields/FluidbookLinkEditor/Action.php @@ -0,0 +1,34 @@ +__("Basculer entre la publication et l'index"), + 'chapters'=>__('Afficher le sommaire'), + 'print'=>__('Imprimer'), + 'share'=>__('Partager par e-mail'), + 'bookmarks'=>__('Ajouter un marque-page'), + 'pdf'=>__('Télécharger le PDF'), + 'notes'=>__('Notes'), + 'fullscreen'=>__('Basculer entre le mode plein écran et le mode normal'), + 'sound'=>__('Activer / Couper le son'), + //'2dmode'=>__('Basculer du mode 2D au mode 3D'), + 'archives'=>__('Afficher les archives'), + 'basket'=>__('Ouvrir le panier'), + 'form'=>__('Ouvrir le formulaire'), + 'facebook'=>__('Partager sur Facebook'), + 'twitter'=>__('Partager sur Twitter'), + //'googleplus'=>__('Partager sur Google+'), + 'linkedin'=>__('Partager sur LinkedIn'), + //'viadeo'=>__('Partager sur Viadeo'), + 'whatsapp'=>__('Partager sur Whatsapp'), + 'pinterest'=>__('Partager sur Pinterest'), + ]; +} +} diff --git a/app/Fields/FluidbookLinkEditor/Depth.php b/app/Fields/FluidbookLinkEditor/Depth.php new file mode 100644 index 000000000..852224060 --- /dev/null +++ b/app/Fields/FluidbookLinkEditor/Depth.php @@ -0,0 +1,25 @@ + __('Par défaut'), + 0 => '0 - ' . __('Sous le fond des pages (invisible)'), + 10 => '1 - ' . __('Sous le texte'), + 20 => '2 - ' . __('Sous le texte'), + 30 => '3 - ' . __('Sur la couche de texte'), + 40 => '4 - ' . __('Sur la couche de texte'), + 50 => '5 - ' . __('Couche multimedia interactive'), + 60 => '6 - ' . __('Couche interactive'), + 70 => '7 - ' . __('Couche interactive'), + 80 => '8 - ' . __('Couche interactive'), + //90=>'9 - '.__('Au dessus de l\'ombre de la page'), + ]; + } +} diff --git a/app/Fields/FluidbookLinkEditor/Layer.php b/app/Fields/FluidbookLinkEditor/Layer.php new file mode 100644 index 000000000..4694af7b8 --- /dev/null +++ b/app/Fields/FluidbookLinkEditor/Layer.php @@ -0,0 +1,17 @@ +__('Texte et image'), + 'text'=>__('Texte'), + 'image'=>__('Image'), + ]; +} +} diff --git a/app/Fields/FluidbookLinkEditor/LinkType.php b/app/Fields/FluidbookLinkEditor/LinkType.php new file mode 100644 index 000000000..146c22d65 --- /dev/null +++ b/app/Fields/FluidbookLinkEditor/LinkType.php @@ -0,0 +1,20 @@ +' . $type['label'] . ''; + } + return $res; + } +} diff --git a/app/Fields/FluidbookLinkEditor/MultimediaIntegration.php b/app/Fields/FluidbookLinkEditor/MultimediaIntegration.php new file mode 100644 index 000000000..3eabd6dab --- /dev/null +++ b/app/Fields/FluidbookLinkEditor/MultimediaIntegration.php @@ -0,0 +1,17 @@ + __('Ouverture en popup'), + 'inline' => __('Au dessus des contenus'), + 'background_texts' => __('En fond (sous les textes)'), + ]; + } +} diff --git a/app/Fields/FluidbookLinkEditor/NumberingType.php b/app/Fields/FluidbookLinkEditor/NumberingType.php new file mode 100644 index 000000000..7204af393 --- /dev/null +++ b/app/Fields/FluidbookLinkEditor/NumberingType.php @@ -0,0 +1,16 @@ + __('Virtuelle'), + 'physical' => __('Physique') + ]; + } +} diff --git a/app/Fields/FluidbookLinkEditor/RolloverAnimation.php b/app/Fields/FluidbookLinkEditor/RolloverAnimation.php new file mode 100644 index 000000000..903dba661 --- /dev/null +++ b/app/Fields/FluidbookLinkEditor/RolloverAnimation.php @@ -0,0 +1,18 @@ + __('Aucune'), + 'upanddown' => __('Up and down'), + 'fadein' => __('Fade In'), + 'fadeout' => __('Fade Out'), + ]; + } +} diff --git a/app/Fields/FluidbookLinkEditor/ShowLinkCloseMode.php b/app/Fields/FluidbookLinkEditor/ShowLinkCloseMode.php new file mode 100644 index 000000000..a54512f01 --- /dev/null +++ b/app/Fields/FluidbookLinkEditor/ShowLinkCloseMode.php @@ -0,0 +1,18 @@ + __('Aucune'), + 'topright' => __('En haut à droite'), + 'topleft' => __('En haut à gauche'), + 'whole' => __('Toute la zone'), + ]; +} +} diff --git a/app/Fields/FluidbookLinkEditor/ShowLinkMode.php b/app/Fields/FluidbookLinkEditor/ShowLinkMode.php new file mode 100644 index 000000000..ab7e86271 --- /dev/null +++ b/app/Fields/FluidbookLinkEditor/ShowLinkMode.php @@ -0,0 +1,24 @@ + __('Afficher'), + 'showonhover' => __('Afficher au rollover'), + 'hide' => __('Masquer'), + 'toggle' => __('Basculer (Afficher si masqué, masquer si affiché)'), + 'exclusiveshow' => __('Afficher et masquer tous les autres'), + 'shownext' => __('Afficher le lien suivant dans la série'), + 'shownextcycle' => __('Afficher le lien suivant dans la série') . ' (' . __('cycle') . ')', + 'showprev' => __('Afficher le lien précédent dans la série'), + 'showprevcycle' => __('Afficher le lien précédent dans la série') . ' (' . __('cycle') . ')', + 'pickrandom' => __('Afficher un lien au hasard dans la série'), + ]; + } +} diff --git a/app/Fields/FluidbookLinkEditor/Target.php b/app/Fields/FluidbookLinkEditor/Target.php new file mode 100644 index 000000000..0e82f1595 --- /dev/null +++ b/app/Fields/FluidbookLinkEditor/Target.php @@ -0,0 +1,20 @@ + __('un nouvel onglet'), + '_new' => __('une nouvelle fenêtre'), + '_unique' => __('une nouvelle fenêtre') . ' (' . __('unique') . ')', + '_self' => __('l\'onglet courant'), + '_popupiframe' => __('une popup iframe'), + '_download' => __('forcer le téléchargement'), + ]; + } +} diff --git a/app/Fields/FluidbookLinkEditor/TriggerLinkEvent.php b/app/Fields/FluidbookLinkEditor/TriggerLinkEvent.php new file mode 100644 index 000000000..9b2e1c2b7 --- /dev/null +++ b/app/Fields/FluidbookLinkEditor/TriggerLinkEvent.php @@ -0,0 +1,17 @@ + __("A l'arrivée sur la page"), + 'click' => __('Au clic sur ce lien'), + 'stoponclick' => __('Arrêter au clic'), + ]; + } +} diff --git a/app/Fields/FluidbookLinkEditor/WebvideoService.php b/app/Fields/FluidbookLinkEditor/WebvideoService.php new file mode 100644 index 000000000..2cdf04a60 --- /dev/null +++ b/app/Fields/FluidbookLinkEditor/WebvideoService.php @@ -0,0 +1,18 @@ + 'Youtube', + 'dailymotion' => 'Dailymotion', + 'vimeo' => 'Vimeo', + 'brightcove' => 'Vimeo', + ]; +} +} diff --git a/app/SubForms/Link/Base.php b/app/SubForms/Link/Base.php new file mode 100644 index 000000000..de15d108e --- /dev/null +++ b/app/SubForms/Link/Base.php @@ -0,0 +1,104 @@ + self::GENERAL_INFOS, 'label' => __('Lien web « plus d\'infos »'), 'color' => '#ff0000'], + ['type' => self::GENERAL, 'label' => __('Lien web'), 'color' => '#3399cc'], + ['type' => self::EMAIL, 'label' => __('Adresse e-mail'), 'color' => '#6c6360'], + ['type' => self::VIDEO, 'label' => __('Vidéo'), 'color' => '#33ff00'], + ['type' => self::INTERNAL, 'label' => __('Lien vers une page'), 'color' => '#c7b405'], + ['type' => self::MULTIMEDIA, 'label' => __('Multimédia'), 'color' => '#ff00ff'], + ['type' => self::CUSTOM, 'label' => __('Lien personnalisé'), 'color' => '#14511a'], + ['type' => self::PAGE_CORNER, 'label' => __('Coin de page'), 'color' => '#f19043', 'disabled' => true], + ['type' => self::OBJECT3D, 'label' => __('Objet 3D'), 'color' => '#00ffff', 'disabled' => true], + ['type' => self::WEBVIDEO, 'label' => __('Vidéo web'), 'color' => '#ffff00'], + ['type' => self::ACTION, 'label' => __('Action'), 'color' => '#880000'], + ['type' => self::CART, 'label' => __('Panier'), 'color' => '#F2A4B7'], + ['type' => self::ZOOM, 'label' => __('Zone de zoom'), 'color' => '#322280'], + ['type' => self::COLOR, 'label' => __('Couleurs'), 'color' => '#8C5E24'], + ['type' => self::IMAGE, 'label' => __('Image'), 'color' => '#BE418D'], + ['type' => self::FILE, 'label' => __('Fichier'), 'color' => '#F19043'], + ['type' => self::AUDIO, 'label' => __('Audio'), 'color' => '#0065AE'], + ['type' => self::TOOLTIP, 'label' => __('Texte / Infobulle'), 'color' => '#000000'], + ['type' => self::CALL, 'label' => __('Appel'), 'color' => '#333333'], + ['type' => self::BOOKMARKGROUP, 'label' => __('Groupe de marque-pages'), 'color' => '#d6520f'], + ['type' => self::HTML5MULTIMEDIA, 'label' => __('Lien Multimédia (HTML)'), 'color' => '#34A853', 'disabled' => true], + ['type' => self::BOOKMARK_CORNER, 'label' => __('Lien marque-page sur coin de page'), 'color' => '#000000', 'disabled' => true], + ['type' => self::STATSTAG, 'label' => __('Tag statistique'), 'color' => '#000000'], + ['type' => self::PHONE, 'label' => __('Téléphone'), 'color' => '#000000'], + ['type' => self::AUDIODESCRIPTION, 'label' => __('Audiodescription'), 'color' => '#00535b'], + ['type' => self::PAGE_LABEL, 'label' => __('Label de page'), 'color' => '#00E6D7'], + ['type' => self::EVENT_OVERLAY, 'label' => __('Capter les évenements'), 'color' => '#ffcc00'], + ['type' => self::ARTICLE, 'label' => __('Article (définition)'), 'color' => '#ACC152'], + ['type' => self::LIKE, 'label' => __('Like'), 'color' => '#4267B2'], + ['type' => self::SLIDESHOW, 'label' => __('Diaporama'), 'color' => '#07b57a'], + ['type' => self::IFRAME, 'label' => __('iFrame'), 'color' => '#fcae25'], + ['type' => self::SHOWLINK, 'label' => __('Afficher un lien'), 'color' => '#125C70'], + ['type' => self::ZOOMHD, 'label' => __('Zoom HD'), 'color' => '#E80C95'], + ['type' => self::LOCK_CONTENTS, 'label' => __('Blocage des contenus'), 'color' => '#69D670'], + ['type' => self::TEXT, 'label' => __('Texte'), 'color' => '#9090FF'], + ['type' => self::ARTICLE_OPEN, 'label' => __('Afficher un article'), 'color' => '#ffcc00'], + ['type' => self::DOWNLOAD_PORTION, 'label' => __('Télécharger un extrait'), 'color' => '#AAAAAA'], + ['type' => self::TRIGGERSLINK, 'label' => __('Déclencher un lien'), 'color' => '#cc0000'], + ['type' => self::LAYER, 'label' => __('Animation de calque'), 'color' => '#3D0254'], + ['type' => self::ANCHOR, 'label' => __('Ancre'), 'color' => '#330000'], + ['type' => self::FLIPCARD, 'label' => __('Flipcard'), 'color' => '#460e3f'], + + ]; + } +}