File: D:/HostingSpaces/SBogers10/ridderstee.komma.pro/app/views/layouts/pages/newsletter.blade.php
@extends('layouts.master')
@section('editable_content')
{{--@if(App::getLocale() == 'nl')--}}
<section class="impression-video">
<h2>@lang('translations.videoImpression')</h2>
<p>@lang('translations.videoImpressionText')</p>
<div class="dynamic-block video-block">
<div class="video-wrapper">
<div id="ytplayer"></div>
</div>
</div>
</section>
<script>
// Load the IFrame Player API code asynchronously.
var tag = document.createElement('script');
tag.src = "https://www.youtube.com/player_api";
var firstScriptTag = document.getElementsByTagName('script')[0];
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
// Replace the 'ytplayer' element with an <iframe> and
// YouTube player after the API code downloads.
var player;
function onYouTubePlayerAPIReady() {
player = new YT.Player('ytplayer', {
height: '360',
width: '640',
videoId: '@lang('translations.videoImpressionLink')',
host: 'https://www.youtube-nocookie.com',
playerVars: {
modestbranding: 1,
showinfo: 0,
rel: 0,
autoplay: 1
},
});
}
</script>
{{--@else--}}
{{--<section class="main-text-row">--}}
{{--<div class="grid-row">--}}
{{--<div class="placeholder">--}}
{{--<figure>--}}
{{--@if($page->content->images->count() != 0)--}}
{{--@foreach(['large', 'medium', 'small'] as $imageSize)--}}
{{--<span class="{{$imageSize}}"--}}
{{--style="background-image: url('{{ $page->content->images->first()->{$imageSize.'_image_url'} }}');"></span>--}}
{{--@endforeach--}}
{{--@endif--}}
{{--</figure>--}}
{{--<div class="content grid-col">--}}
{{--<h1>@lang('translations.newsletter.title')</h1>--}}
{{--<p>@lang('translations.newsletter.thanks')</p>--}}
{{--</div>--}}
{{--</div>--}}
{{--</div>--}}
{{--</section>--}}
{{--@endif--}}
@endsection