Pressroom template verwijderd, website naar root van repo
This commit is contained in:
49
resources/views/widgets/banners.blade.php
Normal file
49
resources/views/widgets/banners.blade.php
Normal file
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
$banners = [
|
||||
['ligterink-en-de-wit.jpg', 'https://www.ligterink-dewit.nl', 'Ligterink en De Wit']
|
||||
];
|
||||
|
||||
shuffle($banners);
|
||||
if(count($banners)):
|
||||
list($img, $url, $alt) = $banners[0];
|
||||
?>
|
||||
<div class="banner">
|
||||
<h4 class="box_header">Advertentie</h4>
|
||||
<p class='ad'>
|
||||
<a href="{{$url}}" target="_nhgooi_adbanner" class="ad_banner"><img src="/images/banners/{{$img}}" alt="{{$alt}}" title="{{$alt}}" /></a>
|
||||
</p>
|
||||
<p class='abnotice'></p>
|
||||
<p><a href="{{ route('adverteren') }}">Hier adverteren?</a></p>
|
||||
</div>
|
||||
<style>
|
||||
.banner {
|
||||
}
|
||||
.banner .ad {
|
||||
padding-top: 10px;
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
}
|
||||
.banner .ad img {
|
||||
width: 100%;
|
||||
}
|
||||
.banner p, .banner a {
|
||||
font-size: 90%;
|
||||
padding-top: 0;
|
||||
padding-bottom: 0;
|
||||
color: #3A3A3A;
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
||||
@push('scripts')
|
||||
<script>
|
||||
$(function() {
|
||||
if($('.ad').filter(':visible').length == 0 || $('.ad').height() == 0) {
|
||||
$('.abnotice').text("Wij zijn mede afhankelijk van advertentie-inkomsten om u gratis radio- en tv-uitzendingen en regionaal nieuws aan te kunnen bieden. Als u uw ad blocker uitschakelt, verschijnt hier een kleine onopvallende advertentie die ons helpt onze kosten te dekken.").show();
|
||||
setTimeout(function() { $('.banner').slideUp('slow'); }, 5000);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
<?php
|
||||
endif;
|
||||
?>
|
||||
18
resources/views/widgets/laatstenieuws.blade.php
Normal file
18
resources/views/widgets/laatstenieuws.blade.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<div class="latest_news_scrolling_list_container">
|
||||
<ul>
|
||||
<li class="category">Laatste nieuws:</li>
|
||||
<li class="left"><a href="#"></a></li>
|
||||
<li class="right"><a href="#"></a></li>
|
||||
<li class="posts">
|
||||
<ul class="latest_news_scrolling_list">
|
||||
@foreach($data as $item)
|
||||
<li>
|
||||
<a href="{{url($item->url)}}" title="{{$item->title}}">{{substr($item->title, 0, 60)}}{{strlen($item->title) < 60 ? "" : "..."}}</a>
|
||||
<span class="when">{{Formatter::relativeDate($item->published)}} {{$item->published->format('H:i')}}</span>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
10
resources/views/widgets/laatstepodcasts.blade.php
Normal file
10
resources/views/widgets/laatstepodcasts.blade.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<ul class="list no_border spacing clearfix">
|
||||
@foreach($data as $podcast)
|
||||
<li class="bullet_style_2">
|
||||
<h5>
|
||||
<a href="{{route('gemist.fragment') . $podcast->url}}" title="{{$podcast->title}}" style="color: inherit;">{{$podcast->titleWithoutProgram()}}</a>
|
||||
</h5>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
|
||||
27
resources/views/widgets/mediaplayer.blade.php
Normal file
27
resources/views/widgets/mediaplayer.blade.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
if(!isset($MEDIAPLAYER_INCLUDED)):
|
||||
// Make sure mediaplayer JS is not applied more than once on a page.
|
||||
View::share('MEDIAPLAYER_INCLUDED', true);
|
||||
?>
|
||||
@push('scripts')
|
||||
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/mediaelement/4.2.7/mediaelement-and-player.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var pluginPath = 'https://cdnjs.cloudflare.com/ajax/libs/mediaelement/4.2.7/';
|
||||
$("audio").mediaelementplayer({
|
||||
pluginPath: pluginPath,
|
||||
stretching: 'responsive',
|
||||
});
|
||||
$("video").mediaelementplayer({
|
||||
pluginPath: pluginPath,
|
||||
videoWidth: '100%',
|
||||
videoHeight: '100%',
|
||||
enableAutosize: true,
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
|
||||
@push('styles')
|
||||
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/mediaelement/4.2.7/mediaelementplayer.css" />
|
||||
@endpush
|
||||
|
||||
<?php endif; ?>
|
||||
173
resources/views/widgets/menu.blade.php
Normal file
173
resources/views/widgets/menu.blade.php
Normal file
@@ -0,0 +1,173 @@
|
||||
<?php $menu = array(
|
||||
"Radio" => array(
|
||||
"" => "/gids",
|
||||
"Luister live" => "/luister/live",
|
||||
"Regionieuws" => "/luister/regionieuws",
|
||||
"Programmagids" => "/gids",
|
||||
"Programma gemist" => "/gemist/programma",
|
||||
"Fragment gemist" => "/gemist/fragment",
|
||||
"Zondagsdienst" => "/kerkdienst"),
|
||||
"TV" => array(
|
||||
"Kijk live" => "/kijk/live"),
|
||||
"Regioagenda" => "/agenda",
|
||||
"Over ons" => array(
|
||||
"" => "/contact",
|
||||
"Contact" => "/contact",
|
||||
"Frequenties" => "/frequenties",
|
||||
"Adverteren?" => "/adverteren",
|
||||
),
|
||||
"NH Nieuws" => "https://nhnieuws.nl");
|
||||
?>
|
||||
<?php
|
||||
function isActive($link, $checksubmenus) {
|
||||
if(is_array($link)) {
|
||||
if(!$checksubmenus) { return false; }
|
||||
foreach($link as $item => $link) {
|
||||
if(isActive($link, $checksubmenus)) { return true; }
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
return (substr($_SERVER["REQUEST_URI"], 0, strlen($link)) == $link);
|
||||
}
|
||||
|
||||
function buildMenu($menu, $ismobile) {
|
||||
$result = "";
|
||||
foreach($menu as $title => $link) {
|
||||
if($title == "") { continue; }
|
||||
$submenu = is_array($link);
|
||||
$isactive = isActive($link, !$ismobile);
|
||||
$isplayer = !$submenu && substr($link, 0, 8) == '/luister';
|
||||
$submenulink = $submenu && isset($link[""]) ? $link[""] : "#";
|
||||
$target = substr($submenu ? $submenulink : $link, 0, 4) == "http" ? "target='_blank'" : "";
|
||||
if($isplayer) { $icon = "<span class='fas fa-headphones'></span> "; }
|
||||
else { $icon = ""; }
|
||||
$result .=
|
||||
"<li class=\"" . ($submenu ? "submenu" : "") . ($isactive ? " selected" : "") . "\">
|
||||
<a href=\"" . ($submenu ? $submenulink : $link) . "\" class=\"" . ($isplayer ? "player" : "") . "\" title=\"{$title}\" {$target}>{$icon}{$title}</a>";
|
||||
if($submenu) {
|
||||
$result .= "\t\t\t<ul>\n"
|
||||
. buildMenu($link, $ismobile)
|
||||
. "\t\t\t</ul>\n";
|
||||
}
|
||||
$result .= "\t\t</li>\n";
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
?>
|
||||
<nav>
|
||||
<ul class="sf-menu">
|
||||
@php($newsUrl = '/nieuws')
|
||||
@if($news)
|
||||
<li class="submenu mega_menu_parent {{isActive($newsUrl, false) ? "selected" : ""}}">
|
||||
<a href="{{$newsUrl}}" title="Nieuws">
|
||||
Nieuws
|
||||
</a>
|
||||
<ul>
|
||||
<li class="submenu">
|
||||
<a href="{{$newsUrl}}" title="Laatste nieuws">
|
||||
Laatste nieuws
|
||||
</a>
|
||||
<ul class="mega_menu blog">
|
||||
@foreach($news as $item)
|
||||
<li class="post">
|
||||
@if($item->images && count($item->images))
|
||||
<a href="{{url($item->url)}}" title="{{$item->title}}">
|
||||
<img src='{{$imgBase . $item->images[0]->url}}' alt='{{$item->title}}'>
|
||||
</a>
|
||||
@endif
|
||||
<h5><a href="{{url($item->url)}}" title="{{$item->title}}">{{$item->title}}</a></h5>
|
||||
<ul class="post_details simple">
|
||||
<li class="category">{{$item->region->title}}</li>
|
||||
<li class="date">
|
||||
{{Formatter::relativeDate($item->published)}} om {{$item->published->format('H:i')}} uur
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</li>
|
||||
@if($popular)
|
||||
<li class="submenu">
|
||||
<a href="{{$newsUrl}}" title="Meest gelezen">
|
||||
Meest gelezen
|
||||
</a>
|
||||
<ul class="mega_menu blog">
|
||||
@foreach($popular as $item)
|
||||
<li class="post">
|
||||
@if($item->images && count($item->images))
|
||||
<a href="{{url($item->url)}}" title="{{$item->title}}">
|
||||
<img src='{{$imgBase . $item->images[0]->url}}' alt='{{$item->title}}'>
|
||||
</a>
|
||||
@endif
|
||||
<h5><a href="{{url($item->url)}}" title="{{$item->title}}">{{$item->title}}</a></h5>
|
||||
<ul class="post_details simple">
|
||||
<li class="category">{{$item->region->title}}</li>
|
||||
<li class="date">
|
||||
{{Formatter::relativeDate($item->published)}}
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</li>
|
||||
@endif
|
||||
@if($podcasts)
|
||||
<li class="submenu">
|
||||
<a href="{{route('gemist')}}" title="Gesprek gemist">
|
||||
Fragment gemist
|
||||
</a>
|
||||
<ul class="mega_menu blog">
|
||||
@foreach($podcasts as $item)
|
||||
@if($loop->index >= 3) @break @endif
|
||||
<li class="post">
|
||||
@if($item->image)
|
||||
<a href="{{route('gemist.fragment') . $item->url}}" title="{{$item->title}}" class="fixed-height">
|
||||
<img src='{{$imgBase . $item->image->url}}' alt='{{$item->title}}'>
|
||||
</a>
|
||||
@endif
|
||||
<h5><a href="{{route('gemist.fragment') . $item->url}}" title="{{$item->title}}">{{$item->title}}</a></h5>
|
||||
<ul class="post_details simple">
|
||||
@if($item->program)
|
||||
<li class="category">{{$item->program->name}}</li>
|
||||
@endif
|
||||
<li class="date">
|
||||
{{Formatter::relativeDate($item->created)}}
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</li>
|
||||
@endif
|
||||
</ul>
|
||||
</li>
|
||||
@else
|
||||
<li class="{{isActive($newsUrl, false) ? "selected" : ""}}">
|
||||
<a href="{{$newsUrl}}" title="Nieuws">Nieuws</a>
|
||||
</li>
|
||||
@endif
|
||||
{!! buildMenu($menu, false) !!}
|
||||
</ul>
|
||||
</nav>
|
||||
<div class="mobile_menu_container" >
|
||||
<a href="#" class="mobile-menu-switch">
|
||||
<span class="line"></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"></span>
|
||||
</a>
|
||||
<div class="mobile-menu-divider"></div>
|
||||
<nav>
|
||||
<ul class="mobile-menu">
|
||||
<li class="submenu {{isActive($newsUrl, false) ? "selected" : ""}}">
|
||||
<a href="{{$newsUrl}}" title="Nieuws">
|
||||
Nieuws
|
||||
</a>
|
||||
</li>
|
||||
{!! buildMenu($menu, true) !!}
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
57
resources/views/widgets/nustraks.blade.php
Normal file
57
resources/views/widgets/nustraks.blade.php
Normal file
@@ -0,0 +1,57 @@
|
||||
<h4 class="page_margin_top box_header"><span class="fa fa-music"></span> Nu op NH Gooi Radio</h4>
|
||||
|
||||
<div class="clearfix">
|
||||
|
||||
@php($program = $data[0])
|
||||
<ul class="blog podcasts">
|
||||
<li class="post">
|
||||
<div class="post_content">
|
||||
<h2><a href="{{route('programma') . $program->url}}" title="{{$program->name}}">{{$program->name}}</a></h2>
|
||||
@if($program->tagline)
|
||||
<p>{{$program->tagline}}</p>
|
||||
@endif
|
||||
<a class="action_button player" style="margin-top: 0;" href="{{route('luister.live')}}" title="Luister live">
|
||||
<span class="fa fa-play"></span>
|
||||
<span>Luister live tot {{$program->end->format('H:i')}} uur.</span>
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div class="clearfix"></div>
|
||||
|
||||
<h5 class="page_margin_top">Daarna:</h5>
|
||||
<ul class="list no_border spacing">
|
||||
@php($startDay = $program->start->format('d'))
|
||||
@foreach($data as $program)
|
||||
@php($isToday = $program->start->format('d') == $startDay)
|
||||
@if($loop->index > 5)
|
||||
@break
|
||||
@elseif(($loop->index >= 3) && $program->nonstop)
|
||||
@break
|
||||
@elseif(!$loop->first)
|
||||
<li class="bullet style_2"><a href="{{route('programma') . $program->url}}" title="{{$program->name}}">
|
||||
<b>{{$program->name}}</b></a> |
|
||||
<span class="text-muted">{{Formatter::relativeDate($program->start)}} om {{$program->start->format('H:i')}}.</span>
|
||||
</li>
|
||||
@if($program->tagline)
|
||||
<li class="bullet text-muted">{{$program->tagline}}</li>
|
||||
@endif
|
||||
|
||||
@endif
|
||||
@endforeach
|
||||
</ul>
|
||||
|
||||
@if(isset($recent))
|
||||
<h5 class="page_margin_top box_header">Net gemist?</h5>
|
||||
<p><b>{{$recent->name}}</b></p>
|
||||
<span class="text-muted">{{Formatter::relativeDate($recent->start)}} om {{$recent->start->format('H:i')}}.</span>
|
||||
<p class="clearfix">
|
||||
@php($duration = $recent->end->diff($recent->start)->h)
|
||||
<a class="action_button player" style="margin-top: 0;" href="{{route('luister.programma') . '/' . $recent->start->format('Y/m/d/H') . '/' . $duration}}" title="Luister live">
|
||||
<span class="fa fa-history"></span>
|
||||
<span>Terugluisteren</span>
|
||||
</a>
|
||||
</p>
|
||||
@endif
|
||||
</div>
|
||||
23
resources/views/widgets/populairnieuws.blade.php
Normal file
23
resources/views/widgets/populairnieuws.blade.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<div class="vertical_carousel_container clearfix">
|
||||
<ul class="blog small vertical_carousel autoplay-1 scroll-1 navigation-1 easing-easeInOutQuint duration-750">
|
||||
@foreach($data as $news)
|
||||
<li class="post">
|
||||
<a href="{{url($news->url)}}" title="{{$news->title}}">
|
||||
<img src="{{$news->images && count($news->images) ? $imgBase . $news->images[0]->url : '/images/noimage.png'}}" alt="{{$news->title}}">
|
||||
</a>
|
||||
<div class="post_content">
|
||||
<h5>
|
||||
<a href="{{url($news->url)}}" title="{{$news->title}}">{{$news->title}}</a>
|
||||
</h5>
|
||||
<ul class="post_details simple">
|
||||
<li class="category"><a href="{{route('nieuws.regio', $news->region->slug)}}" title="{{$news->region->title}}">{{$news->region->title}}</a></li>
|
||||
<li class="date">
|
||||
{{Formatter::relativeDate($news->published)}}
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
8
resources/views/widgets/popularnews.blade.php
Normal file
8
resources/views/widgets/popularnews.blade.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<h2 title="De meest bekeken nieuwsberichten van de afgelopen 60 dagen">Populair nieuws</h2>
|
||||
@foreach($news as $newsItem)
|
||||
<p class="details">
|
||||
<span class="fa fa-angle-right"></span>
|
||||
<a href="{{url($newsItem->url)}}">{{$newsItem->title}}</a><br />
|
||||
<time class="post-date">{{$newsItem->region->title}}, {{Formatter::fullDate($newsItem->published, 'd m y?')}}</span>
|
||||
</p>
|
||||
@endforeach
|
||||
10
resources/views/widgets/regioagenda.blade.php
Normal file
10
resources/views/widgets/regioagenda.blade.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<ul class="list no_border spacing clearfix">
|
||||
@foreach($data as $item)
|
||||
@if($loop->index >= 5) @break @endif
|
||||
<li class="bullet_style_2">
|
||||
<h5>
|
||||
<a href="{{url($item->url)}}" title="{{$item->title}}" style="color: inherit;">{{$item->title}}</a>
|
||||
</h5>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
43
resources/views/widgets/share.blade.php
Normal file
43
resources/views/widgets/share.blade.php
Normal file
@@ -0,0 +1,43 @@
|
||||
<div class="row page_margin_top">
|
||||
<div class="share_box clearfix">
|
||||
<label>Share:</label>
|
||||
<ul class="social_icons clearfix">
|
||||
<li>
|
||||
<a target="_blank" title="" href="http://facebook.com/QuanticaLabs" class="social_icon facebook">
|
||||
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a target="_blank" title="" href="https://twitter.com/QuanticaLabs" class="social_icon twitter">
|
||||
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a title="" href="mailto:contact@pressroom.com" class="social_icon mail">
|
||||
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a title="" href="#" class="social_icon skype">
|
||||
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a title="" href="http://themeforest.net/user/QuanticaLabs?ref=QuanticaLabs" class="social_icon envato">
|
||||
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a title="" href="#" class="social_icon instagram">
|
||||
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a title="" href="#" class="social_icon pinterest">
|
||||
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user