@foreach($content as $block) 
	@if($block->type == "headerRichA")
		@php($block->image->url = isset($block->image->crops)
			? $block->image->crops->{'16:9'}->{'1600'}
			: $block->image->crop)
		<a href="{{$block->image->url}}" class="post_image page_margin_top prettyPhoto" rel="prettyPhoto" title="{{$block->image->title}}">
			<img src="{{$block->image->url}}" alt="{{$block->image->title}}">
		</a>
		<div class="sentence margin_top_10">
			<span class="text">{{$block->image->title}}</span>
			@if($block->image->author)
			<span class="author">{{$block->image->author}}</span>
			@endif
		</div>
	@elseif($block->type == "text")
		<div class="text">{!!$block->text!!}</div>
	@elseif($block->type == "intro")
		<h3 class="excerpt">{{strip_tags($block->text)}}</h3>
	@elseif($block->type == "quote")
		<blockquote>
			{!!$block->text!!}
			<div class="author">{{$block->name}}</div>	
		</blockquote>
	@elseif($block->type == "image") 
		<?php
			if(isset($block->image->imageWide)) 
				$image = $block->image->imageWide;
			else if(isset($block->image->crop))
				$image = $block->image->crop;
			else if(isset($block->image->crops) && isset($block->image->crops->{'16:9'}))
				foreach($block->image->crops->{'16:9'} as $image) break;
			else if(isset($block->image->imageHigh))
				$image = $block->image->imageHigh;
			else $image = null;
		?>
		@if($image)
		<a class="post_image page_margin_top prettyPhoto" rel="prettyPhoto" href="{{$image}}" title="{{$block->image->title}} &copy; {{$block->image->author}}">
			<img src="{{$image}}" class="attachment-small-slider-thumb size-small-slider-thumb wp-post-image" alt="{{$block->image->title}}" title="" style="display: block;">
		</a>
		<div class="sentence">
			@if($block->image->title)
			<span class="text">{{$block->image->title}}</span>
			@endif
			@if($block->image->author)
			<span class="author">{{$block->image->author}}</span>
			@endif
		</div>
		@endif
	@elseif($block->type == "video" || $block->type == "headerVideo")
		@include('widgets/mediaplayer')
		<video controls>
		@foreach($block->video->streams as $stream)
			<source src="{!!$stream->stream_url!!}" type="application/x-mpegurl" /> 
		@endforeach
		</video>
		<span class="author">{{$block->video->author}}</span>
	@elseif($block->type == "carousel")
            <div class="horizontal_carousel_container gallery">
            <ul class="horizontal_carousel visible-5 autoplay-1 scroll-1 navigation-1 easing-easeInOutQuint duration-750">
            @foreach($block->items as $image)
		<?php
			if(isset($image->image->imageWide)) 
				$img = $image->image->imageWide;
			else if(isset($block->image->crop))
				$image = $block->image->crop;
			else if(isset($image->image->crops) && isset($image->image->crops->{'16:9'}))
				foreach($image->image->crops->{'16:9'} as $img) break;
			else if(isset($image->image->imageHigh))
				$img = $image->image->imageHigh;
			else $img = null;
		?>
		@if($img)
              <li>
                <a href="{{$img}}" class="post_image prettyPhoto" rel="prettyPhoto[gallery]" title="{{$image->image->title}} &copy; {{$image->image->author}}">
                    <img src="{{$img}}" alt="{{$image->image->title}}" title="{{$image->image->title}}">
                </a>
              </li>
		@endif
            @endforeach
            </ul>
            </div>
        @endif
@endforeach

