From: Vincent Vanwaelscappel Date: Mon, 17 Jul 2023 13:28:40 +0000 (+0200) Subject: done #6066 @3 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=838348b0dd8e0d45600aa7527a4ba9e49fa2177c;p=fluidbook-toolbox.git done #6066 @3 --- diff --git a/app/Http/Controllers/Admin/Operations/FluidbookPublication/DownloadOperation.php b/app/Http/Controllers/Admin/Operations/FluidbookPublication/DownloadOperation.php index 572109b78..baf9f7786 100644 --- a/app/Http/Controllers/Admin/Operations/FluidbookPublication/DownloadOperation.php +++ b/app/Http/Controllers/Admin/Operations/FluidbookPublication/DownloadOperation.php @@ -32,7 +32,7 @@ trait DownloadOperation if (!FluidbookPublication::hasPermission($id, 'read')) { abort(401); } - return view('fluidbook_publication.delivery', ['fluidbook' => FluidbookPublication::where('id', $id)->first()]); + return view('fluidbook_publication.delivery.index', ['fluidbook' => FluidbookPublication::where('id', $id)->first()]); } protected function deliveryThumb($id, $type) diff --git a/resources/views/fluidbook_publication/delivery.blade.php b/resources/views/fluidbook_publication/delivery.blade.php deleted file mode 100644 index 232ff1b83..000000000 --- a/resources/views/fluidbook_publication/delivery.blade.php +++ /dev/null @@ -1,621 +0,0 @@ -@extends(backpack_view('blank')) - -@php - $breadcrumbs = [ - trans('backpack::crud.admin') => url(config('backpack.base.route_prefix'), 'dashboard'), - trans('backpack::base.my_account') => false, - ]; - $statusText = $fluidbook->status ? __('prêt') : __('en cours de production'); - $qrCodeMobile = QrCode::size(311)->color(27, 42, 78)->generate($fluidbook->getPreviewURL()); - - $fluidbookDesktopPreview = route('deliveryThumb', ['id' => $fluidbook->id, 'type' => 'desktop']); - $fluidbookMobilePreview = route('deliveryThumb', ['id' => $fluidbook->id, 'type' => 'mobile']); - - $fluidbookMobileFirstId = $fluidbook->mobilefirstFluidbookId; - if($fluidbookMobileFirstId){ - $previewMobileFirstUrl = App\Models\FluidbookPublication::find($fluidbookMobileFirstId)->getPreviewURL(); - $qrCodeMobileFirst = QrCode::size(311)->color(27, 42, 78)->generate($previewMobileFirstUrl); - $fluidbookMobileFirstPreview = route('deliveryThumb', ['id' => $fluidbookMobileFirstId, 'type' => 'mobile']); - } - - $totalPages = $fluidbook->getPagesNumber(); - $settings = [ - ['Titre' => $fluidbook->title], - ['Nombre de pages' => $totalPages. ' pages'], - ['Langue principale' => renameSettings($fluidbook->locale)], - [__('Date de création') => ( new \Carbon\Carbon($fluidbook->created_at))->isoFormat('DD/MM/Y') ], - [__('Dernière modification') => ( new \Carbon\Carbon($fluidbook->updated_at))->isoFormat('DD/MM/Y') ], - ['Mode de navigation' => renameSettings($fluidbook->mobileTransitions)], - ['SEO' => renameSettings($fluidbook->seoVersion)], - ['SCORM (e-learning)' => $fluidbook->scorm_enabled ? 'SCORM '.$fluidbook->getSCORMVersion() : __('Désactivé')], - ['Statistiques Fluidbook' => renameSettings($fluidbook->stats, true, true)], - ['Google Analytics' => $fluidbook->googleAnalytics ? $fluidbook->googleTagManager : __('Désactivé')] - ]; - - function renameSettings($v, $fem = false, $plurial = false) { - $e = $fem ? 'e' : ''; - $s = $plurial ? 's' : ''; - return match ($v) { - 'flip3d','flip' => 'Flip', - 'fade' => 'Air', - '1' => __('Activé'.($e).($s)), - '0','',null => __('Désactivé'.($e).($s)), - 'fr' => __('Français'), - 'en' => __('Anglais'), - default => ucfirst($v) - }; - } - - $features = [ - 'index' => ["value" => $fluidbook->index,"text" => __('Index'),"svg" => "nav-index"], - 'print' => ["value" => $fluidbook->print,"text" => __('Imprimer'),"svg" => "nav-print"], - 'chapters' => ["value" => $fluidbook->chapters,"text" => __('Sommaire'),"svg" => "nav-chapters"], - 'friend' => ["value" => $fluidbook->share,"text" => __('Partager'),"svg" => "nav-share"], - 'bookmark' => ["value" => $fluidbook->bookmark,"text" => __('Marques-pages'),"svg" => "nav-bookmarks"], - 'pdf' => ["value" => $fluidbook->pdf,"text" => __('Télécharger'),"svg" => "nav-download"], - 'sound' => ["value" => $fluidbook->soundTheme,"text" => __('Son'),"svg" => "nav-sound-on"], - 'search' => ["value" => $fluidbook->search,"text" => __('Recherche'),"svg" => "nav-search"], - 'help' => ["value" => $fluidbook->help,"text" => __('Aide'),"svg" => "nav-help"], - 'notes' => ["value" => $fluidbook->notes,"text" => __('Notes'),"svg" => "nav-notes"], - 'fullscreen' => ["value" => $fluidbook->fullscreen,"text" => __('Plein écran'),"svg" => "nav-fullscreen"], - ]; - - $orders = explode(',',$fluidbook->navOrder); - $orders = array_map(function($n) { return trim($n); }, $orders); - $orders = array_flip($orders); - $orders = array_intersect_key($orders,$features); - - $featuresSorted = array_merge($orders, $features); - - $enabledFeatures = array_filter($featuresSorted, function($n){ return $n['value'] !== "0" && !empty($n['value']); }); - $disabledFeatures = array_filter($featuresSorted, function($n){ return $n['value'] !== "1" && empty($n['value']); }); - - $icons = App\Models\FluidbookIconset::get('icons')->toArray(); - - $statUrl = route('stats', ['fluidbook_id' => $fluidbook->id, 'hash' => $fluidbook->hash]); - $cid = $fluidbook->cid; - - $socialImage = route('social_image',['cid' => $cid]); - if($fluidbook->facebook_image) - $socialImage = $fluidbook->facebook_image; - - $installServerUrl = null; - if($fluidbook->install_online) { - if($fluidbook->install_online['server']) { - $serverId = intval($fluidbook->install_online['server']); - $serverPath = $fluidbook->install_online['path']; - $servers=\App\Models\FluidbookExternalInstallServer::getAllServers(); - $serverInfos = $servers[$serverId]; - $baseUrl = $serverInfos['base_url']; - $serverName = $serverInfos['name']; - $installServerUrl = $baseUrl.$serverPath; - } - } - - $downloadVersions = $fluidbook->getDownloadVersions(); - $prefixDownloadUrl = '/fluidbook-publication/'.$fluidbook->id; - $prefixDownloadUrl = $prefixDownloadUrl.'/package'; - - foreach ($downloadVersions as $key => $version) { - if($key === "online") { - $downloadVersions[$key]['text'] = __("Standard"); - $downloadVersions[$key]['type'] = __("(serveur web)"); - $downloadVersions[$key]['icon'] = file_get_contents(url('images/icons/icon-standard-server.svg')); - $downloadVersions[$key]['notice_fr'] = "https://docs.google.com/document/d/1MK9aswqXXYleJwmbexKiAHNeNei-zTUb7CnbjkmNur4/edit"; - $downloadVersions[$key]['notice_en'] = "https://docs.google.com/document/d/18GlmLzUqJq_1UgAasSZKN9xDHmKQr4Mt8dY9Pex-Llw/edit?usp=drive_link"; - }elseif ($key === "scorm") { - $downloadVersions[$key]['text'] = __("LMS Scorm"); - $downloadVersions[$key]['type'] = __("(LMS / SCORM)"); - $downloadVersions[$key]['icon'] = file_get_contents(url('images/icons/icon-lms-scorm.svg')); - $downloadVersions[$key]['notice_fr'] = "https://docs.google.com/document/d/1wDrOihLieSRWLiXVHE4n7Ka_qHcDde_DeU6R--mzAZM/edit?usp=drive_link"; - $downloadVersions[$key]['notice_en'] = "https://docs.google.com/document/d/1g3jXC20krSiOSFG0TqzoJ7FsB8OUnvvjoI4yOMO8xUM/edit?usp=drive_link"; - }elseif ($key === "sharepoint") { - $downloadVersions[$key]['text'] = __("SharePoint"); - $downloadVersions[$key]['icon'] = file_get_contents(url('images/icons/icon-sharepoint.svg')); - $downloadVersions[$key]['notice_fr'] = "https://docs.google.com/document/d/15r6ajKDjLTlELhYVyIWJNzLkrsp8aqy4aRkP5vwNVQU/edit?usp=drive_link"; - $downloadVersions[$key]['notice_en'] = "https://docs.google.com/document/d/1FMh-fgMoFKPztGmexNA2h6VAbFa-OclPeYpLsv2eRtw/edit?usp=drive_link"; - }elseif ($key === "mac_exe_html") { - $downloadVersions[$key]['text'] = __("Version Offline"); - $downloadVersions[$key]['type'] = __("(Mac App)"); - $downloadVersions[$key]['icon'] = file_get_contents(url('images/icons/icon-mac-app.svg'), true); - }elseif ($key === "win_ins_html") { - $downloadVersions[$key]['text'] = __("Version Offline"); - $downloadVersions[$key]['type'] = __("(Windows App)"); - $downloadVersions[$key]['icon'] = file_get_contents(url('images/icons/icon-windows-app.svg')); - }elseif ($key === "win_cd_html") { - $downloadVersions[$key]['text'] = __("Version Offline"); - $downloadVersions[$key]['type'] = __("(CD-ROM / Clé USB)"); - $downloadVersions[$key]['icon'] = file_get_contents(url('images/icons/icon-cd-usb.svg')); - } - } - - $objectMail = "[Fluidbook #".$fluidbook->id."]"; - - $lang = app()->getLocale(); - - $noticesUrls = [ - 'fr' => [ - 'widget' => "https://docs.google.com/document/d/1ezbBxEWqmTbWgBwGXmJUefCpRsRFuF6VAFRh5rDIJUQ/edit?usp=drive_link", - 'ga' => "https://docs.google.com/document/d/1ycKxPWOtXUFyaPB2Eltfnq-Y5yn_XwwVue1TKwh4Kbk/edit?usp=drive_link" - ], - 'en' => [ - 'widget' => "https://docs.google.com/document/d/1J8xEY727rhdoAgD5mk96BZOuBES4sFvctuwomyIXWKI/edit?usp=drive_link", - 'ga' => "https://docs.google.com/document/d/1dus2uWddT8VY8MIoEnx6KOfJWRQq_AYRGhYLtd2dYgI/edit?usp=drive_link" - ], - ]; - - $CDPMail = $fluidbook->getProjectManagerEmail(); -@endphp - -@section('after_styles') - -@endsection - -@section('content') -
- {!! $icons[0]["icons"] !!} -
-
-
-
-
-

- {{ __('Bonjour :nom, votre Fluidbook est :status', ['nom' => Auth::user()->firstname ?: '', 'status' => $statusText]) }} ! -

- @if($fluidbook->status) -

- {{ $fluidbook->title }} -

- @else -

{{ __('Vous pouvez voir ci-dessous les différentes versions de votre Fluidbook et vérifier ses - caractéristiques') }}.
{{ __('Si tout vous convient, faites le savoir à votre chef de projet, il vous - préparera les livrables') }}.

- @endif - -
-
-
-
-

{{ __('Aperçu de votre Fluidbook :id', ['id' => $fluidbook->id ]) }} - - {{ $fluidbook->locale }} -

- {{ __('Cliquez sur l’une des versions ci-dessous pour la visualiser :') }} -
-
-
-

{{ __('Version Desktop') }}

-
- -
- -
- {{ __('Voir') }} -
-
-
-

{{ __('Version Mobile') }}

-
- -
- -
- {{ __('Voir') }} -
- @include('fluidbook_publication.qrcode_popup', ['id' => 'scanBoxMobile', 'text' => 'Mobile', 'qrcode' => $qrCodeMobile]) -
- @if($fluidbookMobileFirstId) -
-

{{ __('Version Mobile-first') }}

-
- -
- -
- {{ __('Voir') }} -
- @include('fluidbook_publication.qrcode_popup', ['id' => 'scanBoxMobileFirst', 'text' => 'Mobile-first', 'qrcode' => $qrCodeMobileFirst]) -
- @endif -
-
- -

{{__('Attention, ces liens temporaires de démo ne doivent être utilisés que pour - la validation du Fluidbook') }}. {{__('Merci de ne pas les partager !') }}

-
-
-
- -
-
-
-

{{ __('Paramètres du Fluidbook') }}

- {{ __('Voici les caractéristiques et fonctionnalités de votre Fluidbook') }} -
-
- @if($settings) -
- @include('fluidbook_publication.delivery_params', ['init' => 0, 'settings', $settings]) -
-
- @include('fluidbook_publication.delivery_params', ['init' => 5, 'settings', $settings]) -
- @endif -
- @if($enabledFeatures || $disabledFeatures) -
- @if($enabledFeatures) -
-

{{ __('Principales fonctionnalités activées') }}

-
- @foreach($enabledFeatures as $enabledFeature) -
- - - -

{{ $enabledFeature['text'] }}

-
- @endforeach -
-
- @endif - @if($disabledFeatures) -
-

{{ __('Principales fonctionnalités désactivées') }}

-
- @foreach($disabledFeatures as $disabledFeature) -
- - - -

{{ $disabledFeature['text'] }}

-
- @endforeach -
-
- @endif -
- @endif -
-

{{ __('Vous souhaitez modifier un paramètre ou une fonctionnalité ?') }} - @include('fluidbook_publication.link_contact_manager', ['mail' => $CDPMail, 'object' => $objectMail]) -

-
-
-
- @if($fluidbook->status) -
-
-
-

{{ __('Faites connaitre votre Fluidbook') }}

-

{{ __('Pour gagner en visibilité, vous devez donner de la visibilité à votre Fluidbook sur votre site web, votre blog, vos réseaux sociaux, etc. - verez ci-dessous quelques images pour vous aider à le diffuser') }}.

-
- -

{{ __('Image pour réseaux sociaux') }}

- -
-
- -
- -
-
-
- - {{ __('Simuler l\'apparence de votre Fluidbook lorsqu\'il est partagé sur les principaux réseaux sociaux') }} - - -
-
-
-
- -
-

{{ __('Mini Fluidbook animé') }}

-
- -
- -
-
-
- @endif -
-
-
-

{{ __('Mesurez votre audience') }}

-

{{ __('Les statistiques vous aident à mesurer l\'efficacité de votre Fluidbook et vous - fournissent des informations précieuses sur votre public.')}} {{ __('Connaître les préférences - et - les besoins de vos lecteurs constitue également une base solide pour améliorer votre - document')}}.

-
-
-
-
-
-

{{ __('Statistiques Fluidbook') }}

-

{{ __('Avec notre module de statistiques intégré, vous savez combien de personnes - ont vu - votre Fluidbook, quelles pages les ont le plus intéressé, quels - mots-clés ils ont - cherché, etc...') }}

- @if($fluidbook->stats) - - {{ __('Voir les statistiques') }} - - @else - - @endif -
-
-
-
-
-
-

{{ __('Statistiques Google Analytics') }}

-

{{ __('Fluidbook est conçu pour fonctionner avec Google Analytics et Google Tag - Manager - (GTM) pour vous donner accès à l\'un des outils de statistiques gratuits les - plus - puissants du marché')}}.

- @if($fluidbook->googleAnalytics) - - {{ __('Voir les statistiques') }} - - @else - - {{ __('Voir - la notice')}} - @endif -
-

{{ __('Vous souhaitez activer Google Analytics dans votre Fluidbook - ?')}}

- @include('fluidbook_publication.link_contact_manager', ['mail' => $CDPMail, 'object' => $objectMail]) -
-
-
-
-
-
-
- - -
-
-

{{ __('Une question sur votre Fluidbook ?') }}

-

- {{ __('Vous avez remarqué une erreur ou vous souhaitez changer un paramètre ?') }} - @if(!$CDPMail) - {{ __('Contacter votre chef de projet') }} - @endif -

- @if($CDPMail) - - {{ __('Contacter votre chef de projet') }} - - @endif -
-
-
-
- @if($fluidbook->status) -
-
-
-

{{ __('Publiez votre Fluidbook') }}

-

{{ __('L\'adresse d’hébergement a déjà été configurée, vous pouvez mettre votre Fluidbook - directement en ligne en cliquant ci-dessous :')}}

- -
- - -
-
-
-
- @endif -
-@endsection - -@push('after_scripts') - -@endpush diff --git a/resources/views/fluidbook_publication/delivery/contact_manager.blade.php b/resources/views/fluidbook_publication/delivery/contact_manager.blade.php new file mode 100644 index 000000000..03eb9956d --- /dev/null +++ b/resources/views/fluidbook_publication/delivery/contact_manager.blade.php @@ -0,0 +1,7 @@ +@if($mail) + + @endif + {{ $text??__('Contactez votre chef de projet') }} + @if($mail) + +@endif diff --git a/resources/views/fluidbook_publication/delivery/index.blade.php b/resources/views/fluidbook_publication/delivery/index.blade.php new file mode 100644 index 000000000..22cb1ddb9 --- /dev/null +++ b/resources/views/fluidbook_publication/delivery/index.blade.php @@ -0,0 +1,620 @@ +@extends(backpack_view('blank')) + +@php + $breadcrumbs = [ + trans('backpack::crud.admin') => url(config('backpack.base.route_prefix'), 'dashboard'), + trans('backpack::base.my_account') => false, + ]; + $statusText = $fluidbook->status ? __('prêt') : __('en cours de production'); + $qrCodeMobile = QrCode::size(311)->color(27, 42, 78)->generate($fluidbook->getPreviewURL()); + + $fluidbookDesktopPreview = route('deliveryThumb', ['id' => $fluidbook->id, 'type' => 'desktop']); + $fluidbookMobilePreview = route('deliveryThumb', ['id' => $fluidbook->id, 'type' => 'mobile']); + + $fluidbookMobileFirstId = $fluidbook->mobilefirstFluidbookId; + if($fluidbookMobileFirstId){ + $previewMobileFirstUrl = App\Models\FluidbookPublication::find($fluidbookMobileFirstId)->getPreviewURL(); + $qrCodeMobileFirst = QrCode::size(311)->color(27, 42, 78)->generate($previewMobileFirstUrl); + $fluidbookMobileFirstPreview = route('deliveryThumb', ['id' => $fluidbookMobileFirstId, 'type' => 'mobile']); + } + + $totalPages = $fluidbook->getPagesNumber(); + $settings = [ + __('Titre') => $fluidbook->title, + __('Nombre de pages') => $totalPages. ' pages', + __('Langue principale') => renameSettings($fluidbook->locale), + __('Date de création') => ( new \Carbon\Carbon($fluidbook->created_at))->isoFormat('DD/MM/Y'), + __('Dernière modification') => ( new \Carbon\Carbon($fluidbook->updated_at))->isoFormat('DD/MM/Y'), + __('Mode de navigation') => renameSettings($fluidbook->mobileTransitions), + __('SEO') => renameSettings($fluidbook->seoVersion), + 'SCORM ('.__('e-learning').')' => $fluidbook->scorm_enabled ? 'SCORM '.$fluidbook->getSCORMVersion() : __('Désactivé'), + __('Statistiques Fluidbook') => renameSettings($fluidbook->stats, true, true), + 'Google Analytics' => $fluidbook->googleAnalytics ? $fluidbook->googleTagManager : __('Désactivé') + ]; + + function renameSettings($v, $fem = false, $plural = false) { + if($fem){ + if($plural){ + $enabled=__('Activées'); + $disabled=__('Désactivées'); + }else{ + $enabled=__('Activée'); + $disabled=__('Désactivée'); + } + }else{ + if($plural){ + $enabled=__('Activés'); + $disabled=__('Désactivés'); + }else{ + $enabled=__('Activé'); + $disabled=__('Désactivé'); + } + } + return match ($v) { + 'flip3d','flip' => 'Flip', + 'fade' => 'Air', + '1' => $enabled, + '0','',null => $disabled, + 'fr' => __('Français'), + 'en' => __('Anglais'), + default => ucfirst($v) + }; + } + + function getGoogleDocsURL($id){ + return 'https://docs.google.com/document/d/'.$id.'/export?format=pdf'; + } + + $features = [ + 'index' => ["value" => $fluidbook->index,"text" => __('Index'),"svg" => "nav-index"], + 'print' => ["value" => $fluidbook->print,"text" => __('Imprimer'),"svg" => "nav-print"], + 'chapters' => ["value" => $fluidbook->chapters,"text" => __('Sommaire'),"svg" => "nav-chapters"], + 'friend' => ["value" => $fluidbook->share,"text" => __('Partager'),"svg" => "nav-share"], + 'bookmark' => ["value" => $fluidbook->bookmark,"text" => __('Marques-pages'),"svg" => "nav-bookmarks"], + 'pdf' => ["value" => $fluidbook->pdf,"text" => __('Télécharger'),"svg" => "nav-download"], + 'sound' => ["value" => $fluidbook->soundTheme,"text" => __('Son'),"svg" => "nav-sound-on"], + 'search' => ["value" => $fluidbook->search,"text" => __('Recherche'),"svg" => "nav-search"], + 'help' => ["value" => $fluidbook->help,"text" => __('Aide'),"svg" => "nav-help"], + 'notes' => ["value" => $fluidbook->notes,"text" => __('Notes'),"svg" => "nav-notes"], + 'fullscreen' => ["value" => $fluidbook->fullscreen,"text" => __('Plein écran'),"svg" => "nav-fullscreen"], + ]; + + $orders = explode(',',$fluidbook->navOrder); + $orders = array_map(function($n) { return trim($n); }, $orders); + $orders = array_flip($orders); + $orders = array_intersect_key($orders,$features); + + $featuresSorted = array_merge($orders, $features); + + $enabledFeatures = array_filter($featuresSorted, function($n){ return $n['value'] !== "0" && !empty($n['value']); }); + $disabledFeatures = array_filter($featuresSorted, function($n){ return $n['value'] !== "1" && empty($n['value']); }); + + $icons = App\Models\FluidbookIconset::get('icons')->toArray(); + + $statUrl = route('stats', ['fluidbook_id' => $fluidbook->id, 'hash' => $fluidbook->hash]); + $cid = $fluidbook->cid; + + $socialImage = route('social_image',['cid' => $cid]); + if($fluidbook->facebook_image) + $socialImage = $fluidbook->facebook_image; + + $installServerUrl = null; + if($fluidbook->install_online) { + if($fluidbook->install_online['server']) { + $serverId = intval($fluidbook->install_online['server']); + $serverPath = $fluidbook->install_online['path']; + $servers=\App\Models\FluidbookExternalInstallServer::getAllServers(); + $serverInfos = $servers[$serverId]; + $baseUrl = $serverInfos['base_url']; + $serverName = $serverInfos['name']; + $installServerUrl = $baseUrl.$serverPath; + } + } + + $downloadVersions = $fluidbook->getDownloadVersions(); + $prefixDownloadUrl = '/fluidbook-publication/'.$fluidbook->id; + $prefixDownloadUrl = $prefixDownloadUrl.'/package'; + + foreach ($downloadVersions as $key => $version) { + if($key === "online") { + $downloadVersions[$key]['text'] = __("Standard"); + $downloadVersions[$key]['type'] = __("(Serveur Web)"); + $downloadVersions[$key]['icon'] = file_get_contents(url('images/icons/icon-standard-server.svg')); + $downloadVersions[$key]['notice_fr'] = "1j4lEk2vqUnenXZQs2ucNZg51aFTLmTOoHPgYolj46m0"; + $downloadVersions[$key]['notice_en'] = "1CeLq8R8LMhWjZ0caXrO0HcfxRtzqGQkpaKJvDcYt_ZY"; + }elseif ($key === "scorm") { + $downloadVersions[$key]['text'] = __("LMS Scorm"); + $downloadVersions[$key]['type'] = __("(LMS / SCORM)"); + $downloadVersions[$key]['icon'] = file_get_contents(url('images/icons/icon-lms-scorm.svg')); + $downloadVersions[$key]['notice_fr'] = "1cZ_dTdehk2av0ZUGryY1xLF5IQoqSyCmgBXPH1OYPu4"; // Pas de notice en Français + $downloadVersions[$key]['notice_en'] = "1cZ_dTdehk2av0ZUGryY1xLF5IQoqSyCmgBXPH1OYPu4"; + }elseif ($key === "sharepoint") { + $downloadVersions[$key]['text'] = __("SharePoint"); + $downloadVersions[$key]['icon'] = file_get_contents(url('images/icons/icon-sharepoint.svg')); + $downloadVersions[$key]['notice_fr'] = "1O5EInYbNmNmcqi0VXq0FU7CqeYV6VJeJ0aI-bbgSlBc"; + $downloadVersions[$key]['notice_en'] = "1YeBLektflXZZz6yU-EKpYxe7i0fL0Oy13pB1vMdwMgw"; + }elseif ($key === "mac_exe_html") { + $downloadVersions[$key]['text'] = __("Version Offline"); + $downloadVersions[$key]['type'] = __("(Application MacOS)"); + $downloadVersions[$key]['icon'] = file_get_contents(url('images/icons/icon-mac-app.svg'), true); + }elseif ($key === "win_ins_html") { + $downloadVersions[$key]['text'] = __("Version Offline"); + $downloadVersions[$key]['type'] = __("(Application Windows)"); + $downloadVersions[$key]['icon'] = file_get_contents(url('images/icons/icon-windows-app.svg')); + }elseif ($key === "win_cd_html") { + $downloadVersions[$key]['text'] = __("Version Offline"); + $downloadVersions[$key]['type'] = __("(CD-ROM / Clé USB)"); + $downloadVersions[$key]['icon'] = file_get_contents(url('images/icons/icon-cd-usb.svg')); + } + } + + $objectMail = "[Fluidbook #".$fluidbook->id."]"; + + $lang = app()->getLocale(); + + $noticesUrls = [ + 'fr' => [ + 'widget' => "15F40AfCYpAvT_w2Y1cC-Y88rV1bCOXUuiRh7C__RugM", + 'ga' => "1gDnVgCx7MMcKlqJbPFCpRN27hBGpXEC1-s7f1Lsev5E" + ], + 'en' => [ + 'widget' => "1rn-fW8cRJsBiBrNonZgZNcZ-4sSmvglvJsSsmhdfXA8", + 'ga' => "1wg2dr7zs68k_Pq33idwbROSmamGHsAU0kdNYswSyklc" + ], + ]; + + $CDPMail = $fluidbook->getProjectManagerEmail(); +@endphp + +@section('after_styles') + +@endsection + +@section('content') +
+ {!! $icons[0]["icons"] !!} +
+
+
+
+
+

+ {{ __('Bonjour :nom, votre Fluidbook est :status', ['nom' => Auth::user()->firstname ?: '', 'status' => $statusText]) }} ! +

+ @if($fluidbook->status) +

+ {{ $fluidbook->title }} +

+ @else +

+ {{ __('Vous pouvez voir ci-dessous les différentes versions de votre Fluidbook et vérifier ses caractéristiques.') }} +
{{ __('Si tout vous convient, faites le savoir à votre chef de projet, il vous préparera les livrables.') }} +

+ @endif + +
+
+
+
+

{{ __('Aperçu de votre Fluidbook :id', ['id' => $fluidbook->id ]) }} - + {{ $fluidbook->locale }} +

+ {{ __('Cliquez sur l’une des versions ci-dessous pour la visualiser :') }} +
+
+
+

{{ __('Version Desktop') }}

+
+ +
+ +
+ {{ __('Voir') }} +
+
+
+

{{ __('Version Mobile') }}

+
+ +
+ +
+ {{ __('Voir') }} +
+ @include('fluidbook_publication.qrcode_popup', ['id' => 'scanBoxMobile', 'text' => 'Mobile', 'qrcode' => $qrCodeMobile]) +
+ @if($fluidbookMobileFirstId) +
+

{{ __('Version Mobile-first') }}

+
+ +
+ +
+ {{ __('Voir') }} +
+ @include('fluidbook_publication.qrcode_popup', ['id' => 'scanBoxMobileFirst', 'text' => 'Mobile-first', 'qrcode' => $qrCodeMobileFirst]) +
+ @endif +
+
+ +

{{__('Attention, ces liens temporaires de démo ne doivent être utilisés que pour la validation du Fluidbook.') }} {{__('Merci de ne pas les partager !') }}

+
+
+
+ +
+
+
+

{{ __('Paramètres du Fluidbook') }}

+ {{ __('Voici les caractéristiques et fonctionnalités de votre Fluidbook') }} +
+
+ @if($settings) + @include('fluidbook_publication.delivery.mainsettings', ['settings'=> $settings]) + @endif +
+ @if($enabledFeatures || $disabledFeatures) +
+ @if($enabledFeatures) +
+

{{ __('Principales fonctionnalités activées') }}

+
+ @foreach($enabledFeatures as $enabledFeature) +
+ + + +

{{ $enabledFeature['text'] }}

+
+ @endforeach +
+
+ @endif + @if($disabledFeatures) +
+

{{ __('Principales fonctionnalités désactivées') }}

+
+ @foreach($disabledFeatures as $disabledFeature) +
+ + + +

{{ $disabledFeature['text'] }}

+
+ @endforeach +
+
+ @endif +
+ @endif +
+

{{ __('Vous souhaitez modifier un paramètre ou une fonctionnalité ?') }} + @include('fluidbook_publication.delivery.contact_manager', ['mail' => $CDPMail, 'object' => $objectMail]) +

+
+
+
+ @if($fluidbook->status) +
+
+
+

{{ __('Faites connaitre votre Fluidbook') }}

+

{{ __('Pour gagner en visibilité, vous devez donner de la visibilité à votre Fluidbook sur votre site web, votre blog, vos réseaux sociaux, etc.') }}

+

{{__('Vous trouverez ci-dessous des images, outils et informations pour vous aider à le diffuser.')}}

+
+ +

{{ __('Image pour réseaux sociaux') }}

+ +
+
+ +
+ +
+
+
+ + {{ __('Simuler l\'apparence de votre Fluidbook lorsqu\'il est partagé sur les principaux réseaux sociaux') }} + +
    +
  • + {{ __('Si lorsque vous partager votre publication sur les réseaux sociaux, l\'image n\'apparaît pas ou si c\'est une image qui n\'est plus à jour, vous pouvez utiliser les outils suivant pour réinitialiser le cache des principaux réseaux sociaux.') }} +
  • + @php + $social=[ + 'Facebook'=>'https://developers.facebook.com/tools/debug/sharing/batch', + 'LinkedIn'=>'https://www.linkedin.com/post-inspector', + 'Twitter'=>'https://cards-dev.twitter.com/validator' + ]; + @endphp + @foreach($social as $name=>$url) +
  • {{$name}} : {{$url}} +
  • + @endforeach +
+
+
+
+
+ +
+

{{ __('Mini Fluidbook animé') }}

+
+ +
+ +
+
+
+ @endif +
+
+
+

{{ __('Mesurez votre audience') }}

+

{{ __('Les statistiques vous aident à mesurer l\'efficacité de votre Fluidbook et vous fournissent des informations précieuses sur votre public.')}} + {{ __('Connaître les préférences et les besoins de vos lecteurs constitue également une base solide pour améliorer votre document')}} + .

+
+
+
+
+
+

{{ __('Statistiques Fluidbook') }}

+

{{ __('Avec notre module de statistiques intégré, vous savez combien de personnes ont vu votre Fluidbook, quelles pages les ont le plus intéressé, quels mots-clés ils ont cherché, etc...') }}

+ @if($fluidbook->stats) + + {{ __('Voir les statistiques') }} + + @else + + @endif +
+
+
+
+
+
+

{{ __('Statistiques Google Analytics') }}

+

{{ __('Fluidbook est conçu pour fonctionner avec Google Analytics et Google Tag Manager (GTM) pour vous donner accès à l\'un des outils de statistiques gratuits les plus puissants du marché')}} + .

+ @if($fluidbook->googleAnalytics) + + {{ __('Voir les statistiques') }} + + @else + + {{ __('Voir la notice')}} + @endif +
+

{{ __('Vous souhaitez activer Google Analytics dans votre Fluidbook ?')}}

+ @include('fluidbook_publication.delivery.contact_manager', ['mail' => $CDPMail, 'object' => $objectMail]) +
+
+
+
+
+
+
+ + +
+
+

{{ __('Une question sur votre Fluidbook ?') }}

+

+ {{ __('Vous avez remarqué une erreur ou vous souhaitez changer un paramètre ?') }} +

+ @include('fluidbook_publication.delivery.contact_manager', ['mail' => $CDPMail, 'object' => $objectMail,'class'=>'btn btn-primary']) +
+
+
+
+ @if($fluidbook->status) +
+
+
+

{{ __('Publiez votre Fluidbook') }}

+

{{ __('L\'adresse d’hébergement a déjà été configurée, vous pouvez mettre votre Fluidbook + directement en ligne en cliquant ci-dessous :')}}

+ +
+ + +
+
+
+
+ @endif +
+@endsection + +@push('after_scripts') + +@endpush diff --git a/resources/views/fluidbook_publication/delivery/mainsettings.blade.php b/resources/views/fluidbook_publication/delivery/mainsettings.blade.php new file mode 100644 index 000000000..e4b1e83a4 --- /dev/null +++ b/resources/views/fluidbook_publication/delivery/mainsettings.blade.php @@ -0,0 +1,25 @@ +@php + $indexLeft=ceil(count($settings)/2); + $sides=['left'=>array_slice($settings,0,$indexLeft),'right'=>array_slice($settings,$indexLeft)]; + +@endphp + +@foreach($sides as $side=>$settingsSide) +
+ + + @foreach($settingsSide as $key=>$value) + + + + @endforeach + +
+

{{$key }}

+

{{ $value }}

+
+
+@endforeach diff --git a/resources/views/fluidbook_publication/delivery_params.blade.php b/resources/views/fluidbook_publication/delivery_params.blade.php deleted file mode 100644 index ff95fc504..000000000 --- a/resources/views/fluidbook_publication/delivery_params.blade.php +++ /dev/null @@ -1,26 +0,0 @@ - - - @foreach($settings as $value) - @php - $index = $loop->index; - $key = key($settings[$index]); - $value_ = $settings[$index][$key] - @endphp - @if($init === 0 && $loop->iteration < 6) - - - - @elseif($init === 5 && $loop->iteration > 5) - - - - @endif - @endforeach - -
-

{{ __($key) }}

-

{{ $value_ }}

-
-

{{ __($key) }}

-

{{ $value_ }}

-
diff --git a/resources/views/fluidbook_publication/link_contact_manager.blade.php b/resources/views/fluidbook_publication/link_contact_manager.blade.php deleted file mode 100644 index fa0e42c63..000000000 --- a/resources/views/fluidbook_publication/link_contact_manager.blade.php +++ /dev/null @@ -1,7 +0,0 @@ -@if($mail) - -@endif - {{ __('Contactez votre chef de projet') }} -@if($mail) - -@endif