File: D:/HostingSpaces/SBogers10/sportivo.komma.pro/app/views/layouts/pages/blogArticle.blade.php
@extends('layouts.base')
@section('extraMeta')
<meta property="og:url" content="http://{{$_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']}}"/>
<meta property="og:type" content="article"/>
<meta property="og:title" content="{{$data->content['header']}}"/>
<meta property="og:description" content="{{$data->content['text']}}"/>
<meta property="og:image" content="http://{{$_SERVER['SERVER_NAME'].$data->photo}}"/>
@endsection
@section('navigationBar')
@parent
@if($data->socialMedia)
@include('layouts.partials.socialMedia')
@endif
@endsection
@section('pageHeader')
@if(isset($data->photo))
@include('layouts.partials.photoHeader')
@else
@include('layouts.partials.mainHeader')
@endif
@stop
@section('content-block1')
<section class="content-block1 row blog-article">
@include('layouts.partials.contentblocks.breadcrumb')
<article class="span8">
@include('layouts.partials.contentblocks.mainContent')
</article>
@if(isset($data->content['text2']))
<?php //dd($data->content['text2']); ?>
@foreach($data->content['text2'] as $blogRow)
@if($blogRow->status)
<div class="span12 row blog-content {{$blogRow->typeSlug}}">
@if($blogRow->typeSlug == 'two-column-block')
<div class="span6">
{{$blogRow->description->left}}
</div>
<div class="span6">
{{$blogRow->description->right}}
</div>
@endif
@if($blogRow->typeSlug == 'content-block')
<div class="span6">
@if($blogRow->location=='left')
@if(isset($blogRow->images))
<img alt="blog-image" src="{{$blogRow->images[0]->medium}}" />
@endif
@else
{{$blogRow->description}}
@endif
</div>
<div class="span6">
@if($blogRow->location=='left')
{{$blogRow->description}}
@else
@if(isset($blogRow->images))
<img alt="blog-image" src="{{$blogRow->images[0]->medium}}" />
@endif
@endif
</div>
@endif
</div>
@endif
@endforeach
<div class="span8 right blog-content">
</div>
@endif
@if(isset($data->buttons))
@include('layouts.partials.contentblocks.buttonRow')
@endif
</section>
@stop
@section('subContent')
@include('layouts.partials.articles')
@include('layouts.partials.sportsPurposeCircles')
@stop
@section('extraJavascript')
<?php
$imagePath = "http://".$_SERVER['SERVER_NAME'].$data->photo;
?>
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "BlogPosting",
"mainEntityOfPage":{
"@type":"WebPage",
"@id":"http://{{$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']}}"
},
"headline": "{{$data->content['header']}}",
"image": {
"@type" : "ImageObject",
"url" : "{{$imagePath}}",
"width": 2200,
"height" : 1467
},
"datePublished": "{{\Carbon\Carbon::createFromFormat('Y-m-d H:i:s', $data->content['date'])->toIso8601String()}}",
"dateModified": "{{\Carbon\Carbon::createFromFormat('Y-m-d H:i:s', $data->content['date'])->toIso8601String()}}",
"author" : {
"@type": "Person",
"name" : "Albert Roosenboom"
},
"publisher": {
"@type": "Organization",
"name": "Sportivo",
"logo": {
"@type": "ImageObject",
"url": "http://www.sportivo.nu/images/structure/sportivo_publisher.png",
"width": 459,
"height": 60
}
},
"description": "{{strip_tags($data->content['text'])}}"
}
</script>
@endsection