$cid = $fluidbook->cid;
$socialImage = route('social_image',['cid' => $cid]);
- if($fluidbook->facebook_image)
+ if($fluidbook->facebook_image){
$socialImage = $fluidbook->facebook_image;
+ }
$installServerUrl = null;
if($fluidbook->install_online) {
}
}
- $downloadVersions = $fluidbook->getDownloadVersions();
+ $downloadVersions = \App\Models\FluidbookPublication::getDownloadVersions();
$prefixDownloadUrl = '/fluidbook-publication/'.$fluidbook->id;
$prefixDownloadUrl = $prefixDownloadUrl.'/package';
$downloadVersions[$key]['icon'] = file_get_contents(url('images/icons/icon-standard-server.svg'));
$downloadVersions[$key]['notice_fr'] = "1j4lEk2vqUnenXZQs2ucNZg51aFTLmTOoHPgYolj46m0";
$downloadVersions[$key]['notice_en'] = "1CeLq8R8LMhWjZ0caXrO0HcfxRtzqGQkpaKJvDcYt_ZY";
+ $downloadVersions[$key]['enabled'] = $fluidbook->download_online;
}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";
+ $downloadVersions[$key]['enabled'] = $fluidbook->download_scorm && $fluidbook->scorm_enable;
}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";
+ $downloadVersions[$key]['enabled'] = $fluidbook->download_sharepoint;
}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);
+ $downloadVersions[$key]['enabled'] = $fluidbook->download_mac_exe_html;
}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'));
+ $downloadVersions[$key]['enabled'] = $fluidbook->download_win_ins_html;
}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'));
+ $downloadVersions[$key]['enabled'] = $fluidbook->download_win_cd_html;
}
}
];
$CDPMail = $fluidbook->getProjectManagerEmail();
+
+ $noticeSVG='<svg id="Instruction" xmlns="http://www.w3.org/2000/svg"
+ width="30" height="30" viewBox="0 0 30 30">
+ <circle id="Ellipse_24" data-name="Ellipse 24" cx="15"
+ cy="15" r="15" fill="rgba(70,127,207,0.1)"/>
+ <g id="Groupe_270" data-name="Groupe 270"
+ transform="translate(9.5 8.5)">
+ <path id="Tracé_124" data-name="Tracé 124"
+ d="M12.5,13.54H3a1.5,1.5,0,0,1,0-3h8.5a1,1,0,0,0,1-1v-8a1,1,0,0,0-1-1H3A1.5,1.5,0,0,0,1.5,2V12"
+ transform="translate(-1.5 -0.54)" fill="none"
+ stroke="#3a72c5" stroke-linecap="round"
+ stroke-linejoin="round" stroke-width="1"/>
+ <line id="Ligne_20" data-name="Ligne 20" y2="3"
+ transform="translate(10 10)" fill="none"
+ stroke="#3a72c5" stroke-linecap="round"
+ stroke-linejoin="round" stroke-width="1"/>
+ </g>
+ </svg>';
+
+ $downloadSVG='<svg id="Groupe_268" data-name="Groupe 268"
+ xmlns="http://www.w3.org/2000/svg" width="30" height="30"
+ viewBox="0 0 30 30">
+ <rect id="Rectangle_480" data-name="Rectangle 480"
+ width="30" height="30" rx="15" fill="#467fcf"/>
+ <g id="Groupe_265" data-name="Groupe 265"
+ transform="translate(8.5 8)">
+ <path id="Tracé_122" data-name="Tracé 122"
+ d="M.5,10.5v1a2,2,0,0,0,2,2h9a2,2,0,0,0,2-2v-1"
+ transform="translate(-0.5 -0.5)" fill="none"
+ stroke="#fff" stroke-linecap="round"
+ stroke-linejoin="round" stroke-width="1"/>
+ <path id="Tracé_123" data-name="Tracé 123"
+ d="M4,6,7,9.5,10,6"
+ transform="translate(-0.5 -0.5)" fill="none"
+ stroke="#fff" stroke-linecap="round"
+ stroke-linejoin="round" stroke-width="1"/>
+ <line id="Ligne_19" data-name="Ligne 19" y1="9"
+ transform="translate(6.5)" fill="none"
+ stroke="#fff" stroke-linecap="round"
+ stroke-linejoin="round" stroke-width="1"/>
+ </g>
+ </svg>';
+
+ $lockSVG='<svg id="Groupe_271" data-name="Groupe 271"
+ xmlns="http://www.w3.org/2000/svg" width="30" height="30"
+ viewBox="0 0 30 30">
+ <circle id="Ellipse_24" data-name="Ellipse 24" cx="15" cy="15"
+ r="15" fill="#fff"/>
+ <g id="Groupe_271-2" data-name="Groupe 271"
+ transform="translate(10 8.252)" opacity="0.2">
+ <rect id="Rectangle_481" data-name="Rectangle 481"
+ width="10" height="8" rx="1"
+ transform="translate(0 5)" fill="none"
+ stroke="#1b2a4e" stroke-linecap="round"
+ stroke-linejoin="round" stroke-width="1"/>
+ <path id="Tracé_125" data-name="Tracé 125"
+ d="M10.5,5.5V4a3.5,3.5,0,0,0-7,0V5.5"
+ transform="translate(-2 -0.5)" fill="none"
+ stroke="#1b2a4e" stroke-linecap="round"
+ stroke-linejoin="round" stroke-width="1"/>
+ <circle id="Ellipse_30" data-name="Ellipse 30" cx="0.5"
+ cy="0.5" r="0.5" transform="translate(4.5 8.5)"
+ fill="none" stroke="#1b2a4e" stroke-linecap="round"
+ stroke-linejoin="round" stroke-width="1"/>
+ </g>';
+
+
@endphp
@section('after_styles')
<div class="delivery-anchor">
<ul class="d-flex flex-md-row flex-sm-column list-none p-0 icon-m">
<li><a href="#s_glimpses" class="text-decoration-none"><img
- src="{{ url('images/icons/icon-eye.svg') }}"/>{{ __('Aperçu de votre Fluidbook') }}
+ src="{{ url('images/icons/icon-eye.svg') }}"/>{{ __('Aperçu de votre Fluidbook') }}
</a></li>
<li><a href="#s_settings" class="text-decoration-none"><img
- src="{{ url('images/icons/icon-settings.svg') }}"/>{{ __('Paramètres du Fluidbook') }}
+ src="{{ url('images/icons/icon-settings.svg') }}"/>{{ __('Paramètres du Fluidbook') }}
</a></li>
<li><a href="#s_social" class="text-decoration-none"><img
- src="{{ url('images/icons/icon-like.svg') }}"/>{{ __('Faites connaitre votre Fluidbook') }}
+ src="{{ url('images/icons/icon-like.svg') }}"/>{{ __('Faites connaitre votre Fluidbook') }}
</a></li>
<li><a href="#s_stats" class="text-decoration-none"><img
- src="{{ url('images/icons/icon-stats.svg') }}"/>{{ __('Mesurez votre audience') }}
+ src="{{ url('images/icons/icon-stats.svg') }}"/>{{ __('Mesurez votre audience') }}
</a></li>
</ul>
</div>
<div class="d-grid gap-8 feature-grid">
@foreach($enabledFeatures as $enabledFeature)
<div
- class="delivery-feature d-flex align-center text-center flex-column">
+ class="delivery-feature d-flex align-center text-center flex-column">
<svg xmlns="http://www.w3.org/2000/svg">
<use href="#{{ $enabledFeature['svg'] }}"/>
</svg>
<div class="d-grid gap-8 feature-grid">
@foreach($disabledFeatures as $disabledFeature)
<div
- class="delivery-feature disabled-feature d-flex align-center text-center flex-column">
+ class="delivery-feature disabled-feature d-flex align-center text-center flex-column">
<svg xmlns="http://www.w3.org/2000/svg">
<use href="#{{ $disabledFeature['svg'] }}"/>
</svg>
</a>
@else
<button
- class="btn bg-default pointer-none disabled">{{ __('Statistiques désactivées') }}</button>
+ class="btn bg-default pointer-none disabled">{{ __('Statistiques désactivées') }}</button>
@endif
</div>
</div>
</a>
@else
<button
- class="btn bg-default pointer-none disabled">{{ __('Statistiques désactivées') }}</button>
+ class="btn bg-default pointer-none disabled">{{ __('Statistiques désactivées') }}</button>
<a href="{{ getGoogleDocsURL($noticesUrls[$lang]['ga']) }}"
class="btn bg-default ml-2" rel="noopener">{{ __('Voir la notice')}}</a>
@endif
@endphp
@isset($version['text'])
<div
- class="dropdown-element position-relative d-flex align-items-center {{ $version['install'] || ( str_contains($key, "win") && sizeof($winActiveVersion) > 0 ) ? 'active' : '' }}">
+ class="dropdown-element position-relative d-flex align-items-center {{ $version['enabled']?'active':'' }}">
<a href=""></a>
<div class="icon">
{!! $version['icon'] !!}
<p class="version m-0">
{{ $version['text'] }}
</p>
- @if((sizeof($winActiveVersion) === sizeof($winVersion) && str_contains($key, "win")) || (sizeof($winActiveVersion) > 1 && str_contains($key, "win") ) || !str_contains($key, "win"))
+ @if($version['enabled'])
@isset($version['type'])
<p class="type m-0">
{{ $version['type'] }}
<div class="tools d-flex align-center ml-auto">
@isset($version['notice_'.$lang])
<a href="{{ getGoogleDocsURL($version['notice_'.$lang]) }}"
- class="mr-1 instruction position-relative">
- <svg id="Instruction" xmlns="http://www.w3.org/2000/svg"
- width="30" height="30" viewBox="0 0 30 30">
- <circle id="Ellipse_24" data-name="Ellipse 24" cx="15"
- cy="15" r="15" fill="rgba(70,127,207,0.1)"/>
- <g id="Groupe_270" data-name="Groupe 270"
- transform="translate(9.5 8.5)">
- <path id="Tracé_124" data-name="Tracé 124"
- d="M12.5,13.54H3a1.5,1.5,0,0,1,0-3h8.5a1,1,0,0,0,1-1v-8a1,1,0,0,0-1-1H3A1.5,1.5,0,0,0,1.5,2V12"
- transform="translate(-1.5 -0.54)" fill="none"
- stroke="#3a72c5" stroke-linecap="round"
- stroke-linejoin="round" stroke-width="1"/>
- <line id="Ligne_20" data-name="Ligne 20" y2="3"
- transform="translate(10 10)" fill="none"
- stroke="#3a72c5" stroke-linecap="round"
- stroke-linejoin="round" stroke-width="1"/>
- </g>
- </svg>
+ class="mr-1 instruction position-relative">{!! $noticeSVG !!}
</a>
@endisset
- @if($version['install'] || (str_contains($key, "win") && sizeof($winActiveVersion) > 0))
+ @if($version['enabled'])
<a class="download-overlay" href="{{ $downloadUrl }}"></a>
<a href="{{ $downloadUrl }}" class="download">
- <svg id="Groupe_268" data-name="Groupe 268"
- xmlns="http://www.w3.org/2000/svg" width="30" height="30"
- viewBox="0 0 30 30">
- <rect id="Rectangle_480" data-name="Rectangle 480"
- width="30" height="30" rx="15" fill="#467fcf"/>
- <g id="Groupe_265" data-name="Groupe 265"
- transform="translate(8.5 8)">
- <path id="Tracé_122" data-name="Tracé 122"
- d="M.5,10.5v1a2,2,0,0,0,2,2h9a2,2,0,0,0,2-2v-1"
- transform="translate(-0.5 -0.5)" fill="none"
- stroke="#fff" stroke-linecap="round"
- stroke-linejoin="round" stroke-width="1"/>
- <path id="Tracé_123" data-name="Tracé 123"
- d="M4,6,7,9.5,10,6"
- transform="translate(-0.5 -0.5)" fill="none"
- stroke="#fff" stroke-linecap="round"
- stroke-linejoin="round" stroke-width="1"/>
- <line id="Ligne_19" data-name="Ligne 19" y1="9"
- transform="translate(6.5)" fill="none"
- stroke="#fff" stroke-linecap="round"
- stroke-linejoin="round" stroke-width="1"/>
- </g>
- </svg>
+ {!! $downloadSVG !!}
</a>
- @else
- <svg id="Groupe_271" data-name="Groupe 271"
- xmlns="http://www.w3.org/2000/svg" width="30" height="30"
- viewBox="0 0 30 30">
- <circle id="Ellipse_24" data-name="Ellipse 24" cx="15" cy="15"
- r="15" fill="#fff"/>
- <g id="Groupe_271-2" data-name="Groupe 271"
- transform="translate(10 8.252)" opacity="0.2">
- <rect id="Rectangle_481" data-name="Rectangle 481"
- width="10" height="8" rx="1"
- transform="translate(0 5)" fill="none"
- stroke="#1b2a4e" stroke-linecap="round"
- stroke-linejoin="round" stroke-width="1"/>
- <path id="Tracé_125" data-name="Tracé 125"
- d="M10.5,5.5V4a3.5,3.5,0,0,0-7,0V5.5"
- transform="translate(-2 -0.5)" fill="none"
- stroke="#1b2a4e" stroke-linecap="round"
- stroke-linejoin="round" stroke-width="1"/>
- <circle id="Ellipse_30" data-name="Ellipse 30" cx="0.5"
- cy="0.5" r="0.5" transform="translate(4.5 8.5)"
- fill="none" stroke="#1b2a4e" stroke-linecap="round"
- stroke-linejoin="round" stroke-width="1"/>
- </g>
- </svg>
+ @else
+ {!! $lockSVG !!}
+ </svg>
@endif
</div>
</div>