File: D:/HostingSpaces/SBogers84/zuiderbos.nl/app/storage/views/a091184ddd8a4d62542cd1de5276348d
<?php /*
This page isn't actively used.
Only if you type in the '/actueel' directly into the browser this will show.
On request this page is implemented into the posts.index mapping.
*/ ?>
<?php $__env->startSection('editable_content'); ?>
<div class="image-wrapper">
<?php echo $__env->make('layouts.partials.navigation', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<?php if(isset($page->content)): ?>
<div class="content-placeholder">
<?php /* Make extra block for the creative backgrounds in this design :p */ ?>
<?php /*<div class="background"></div>*/ ?>
<div class="grey-block"></div>
<div class="grid-row">
<h1 class="grid-col col-12"><?php echo $page->translation->name; ?></h1>
<?php /*<span class="right-icon styling"></span>*/ ?>
<?php /* Load news and seperate first newsitem */ ?>
<?php
$news = $page->getNews(3);
// $latestNewsItem = $news->shift();
$latestNewsItem = array_shift($news);
?>
<?php if(isset($latestNewsItem)): ?>
<?php if(get_class($latestNewsItem) == 'Komma\Kms\Newsletters\Models\Newsletter'): ?>
<article
class="grid-col mobile latest-news-item <?php if($latestNewsItem->images->count() == 0): ?> no-image <?php endif; ?>">
<a href="/<?php echo $latestNewsItem->routes->first()->route; ?>">
<figure <?php if($latestNewsItem->images->count() != 0): ?> style="background-image: url('<?php echo $latestNewsItem->images->first()->large_image_url; ?>');"<?php endif; ?>>
<span class="overlay"></span>
</figure>
<div class="content">
<span class="highlighted"><?php echo KommaLang::get('highlighted'); ?>:</span>
<h2><?php echo \Illuminate\Support\Facades\Lang::get('translations.newsletter'); ?>
- <?php echo ucfirst(trans('calender.months.'.$latestNewsItem->month)); ?> <?php echo $latestNewsItem->year; ?></h2>
<span class="date"> <?php echo $latestNewsItem->getDate()->format('j'); ?> <?php echo \Illuminate\Support\Facades\Lang::get('calender.months.'.$latestNewsItem->getDate()->format('n')); ?> <?php echo $latestNewsItem->getDate()->format('Y'); ?>
</span>
</div>
</a>
</article>
<?php else: ?>
<article
class="grid-col mobile latest-news-item <?php if($latestNewsItem->images->count() == 0): ?> no-image <?php endif; ?>">
<a href="/<?php echo $latestNewsItem->translations->first()->routes->filter(function($route) use ($page) {
if( starts_with($route->route, $page->translation->route->route)){
return $route->route;
}
})->first()->route;; ?>">
<figure <?php if($latestNewsItem->images->count() != 0): ?> style="background-image: url('<?php echo $latestNewsItem->images->first()->large_image_url; ?>');"<?php endif; ?>>
<span class="overlay"></span>
</figure>
<div class="content">
<span class="highlighted"><?php echo KommaLang::get('highlighted'); ?>:</span>
<h2><?php echo $latestNewsItem->translations->first()->name; ?></h2>
<span class="date">
<?php echo $latestNewsItem->getDate()->format('j'); ?> <?php echo \Illuminate\Support\Facades\Lang::get('calender.months.'.$latestNewsItem->getDate()->format('n')); ?> <?php echo $latestNewsItem->getDate()->format('Y'); ?>
</span>
</div>
</a>
</article>
<?php endif; ?>
<?php endif; ?>
<?php /* Sideblock block */ ?>
<div class="page-impression grid-col">
<?php /* Calender */ ?>
<section class="calender grid-col">
<a href="/<?php echo $links->{$page->root->code_name.'-actual-calender'}->route; ?>">
<?php /* Calender Header */ ?>
<h3><?php echo KommaLang::get('home_agenda_title'); ?></h3>
<?php /* Load calender list */ ?>
<?php echo $__env->make('layouts.partials.calender.list', ['calenderItems' => $page->school->calenderItems()->with('translation')->orderBy('calender.date', 'asc')->where('active', 1)->where('calender.date', '>=', \Carbon\Carbon::today())->get()], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<?php /* Calender Link / Footer */ ?>
<div class="link-block">
<span>
<?php echo KommaLang::get('full_agenda'); ?>
</span>
</div>
</a>
</section>
<?php /* Vacation planning link */ ?>
<?php /* <div class="vacation-link">*/ ?>
<?php /* <a href="/<?php echo $links->{$page->root->code_name.'-actual-vacation'}->route; ?>">*/ ?>
<?php /* <p><?php echo KommaLang::get('showVacationPlanning'); ?></p>*/ ?>
<?php /* <span><?php echo KommaLang::get('readMore'); ?></span>*/ ?>
<?php /* </a>*/ ?>
<?php /* </div>*/ ?>
<span class="left-icon styling"></span>
</div>
<?php /* Main content block */ ?>
<div class="grid-col main">
<?php if(isset($latestNewsItem)): ?>
<?php if(get_class($latestNewsItem) == 'Komma\Kms\Newsletters\Models\Newsletter'): ?>
<article
class="grid-col desktop latest-news-item <?php if($latestNewsItem->images->count() == 0): ?> no-image <?php endif; ?>">
<a href="/<?php echo $latestNewsItem->routes->first()->route; ?>">
<figure <?php if($latestNewsItem->images->count() != 0): ?> style="background-image: url('<?php echo $latestNewsItem->images->first()->large_image_url; ?>');"<?php endif; ?>>
<span class="overlay"></span>
</figure>
<div class="content">
<span class="highlighted"><?php echo KommaLang::get('highlighted'); ?>:</span>
<h2><?php echo \Illuminate\Support\Facades\Lang::get('translations.newsletter'); ?>
- <?php echo ucfirst(trans('calender.months.'.$latestNewsItem->month)); ?> <?php echo $latestNewsItem->year; ?></h2>
<span class="date"> <?php echo $latestNewsItem->getDate()->format('j'); ?> <?php echo \Illuminate\Support\Facades\Lang::get('calender.months.'.$latestNewsItem->getDate()->format('n')); ?> <?php echo $latestNewsItem->getDate()->format('Y'); ?>
</span>
</div>
</a>
</article>
<?php else: ?>
<article
class="grid-col desktop latest-news-item <?php if($latestNewsItem->images->count() == 0): ?> no-image <?php endif; ?>">
<a href="/<?php echo $latestNewsItem->translations->first()->routes->filter(function($route) use ($page) {
if( starts_with($route->route, $page->translation->route->route)){
return $route->route;
}
})->first()->route;; ?>">
<figure <?php if($latestNewsItem->images->count() != 0): ?> style="background-image: url('<?php echo $latestNewsItem->images->first()->large_image_url; ?>');"<?php endif; ?>>
<span class="overlay"></span>
</figure>
<div class="content">
<span class="highlighted"><?php echo KommaLang::get('highlighted'); ?>:</span>
<h2><?php echo $latestNewsItem->translations->first()->name; ?></h2>
<span class="date">
<?php echo $latestNewsItem->getDate()->format('j'); ?> <?php echo \Illuminate\Support\Facades\Lang::get('calender.months.'.$latestNewsItem->getDate()->format('n')); ?> <?php echo $latestNewsItem->getDate()->format('Y'); ?>
</span>
</div>
</a>
</article>
<?php endif; ?>
<?php endif; ?>
<div class="main-placeholder">
<?php /* Show next news items */ ?>
<div class="next-news-items">
<div class="header-placeholder">
<h3> <?php echo KommaLang::get('latestNews'); ?> </h3>
<a href="/<?php echo $links->{$page->root->code_name.'-actual-news'}->route; ?>"> <?php echo KommaLang::get('showOlderNews'); ?> </a>
</div>
<?php echo $__env->make('layouts.partials.posts.newsLoop', ['news' => $news ], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<a class="button mobile"
href="/<?php echo $links->{$page->root->code_name.'-actual-news'}->route; ?>"> <?php echo KommaLang::get('showOlderNews'); ?> </a>
</div>
<?php /* Photo Albums */ ?>
<?php /*<div class="photo-albums-row">*/ ?>
<?php /*<div class="header-placeholder">*/ ?>
<?php /*<h3> <?php echo KommaLang::get('latestPhotoAlbums'); ?> </h3>*/ ?>
<?php /*<a href="/<?php echo $links->{$page->root->code_name.'-actual-photoalbums'}->route; ?>"> <?php echo KommaLang::get('showAllAlbums'); ?> </a>*/ ?>
<?php /*</div>*/ ?>
<?php /*<?php echo $__env->make('layouts.partials.photoAlbums.photoAlbumLoop', ['photoAlbums' => $page->school->photoAlbums()->with('translations')->where('photo_albums.show_in_overview', 1)->orderBy('photo_albums.lft', 'asc')->get()->take(2) ], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>*/ ?>
<?php /*</div>*/ ?>
<?php /* Relevant pages */ ?>
<?php echo $__env->make('layouts.partials.relevantPages', ['findChildren' => true], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
</div>
</div>
</div>
</div>
<?php endif; ?>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('extra-js'); ?>
<script>
$(function () {
resizeMyPage();
$(window).resize(
$.throttle(100, resizeMyPage)
);
});
function resizeMyPage() {
// Main content must be at least 200px higher then the impression block
$('.content-placeholder .main').css('min-height', $('.actual .page-impression').height() + 200);
// Resizing for the grey block on (default)pages
var greyHeight = $('.content-placeholder .main').height() - $('.actual .page-impression').height() + 100;
var greyWidth = ($('.content-placeholder').width() - $('.actual .content-placeholder>.grid-row').width()) / 2 + $('.actual .page-impression').width();
$('.grey-block').height(greyHeight).width(greyWidth);
}
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.master', ['view' => 'actual'], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>