192 lines
6.3 KiB
PHP
192 lines
6.3 KiB
PHP
<?php echo $__env->make('_mediaplayer', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
|
|
<?php $__env->startSection('title'); ?>
|
|
Fragment gemist | <?php echo e($podcast->title); ?>
|
|
|
|
<?php $__env->stopSection(); ?>
|
|
|
|
<?php $__env->startPush('scripts'); ?>
|
|
<script>
|
|
$(".vertical_carousel").each(function() {
|
|
$(this).before("<a class='slider_control up' id='" + this.id + "_prev' href='#' title='Terug'></a>");
|
|
$(this).after("<a class='slider_control down' id='" + this.id + "_next' href='#' title='Verder'></a>");
|
|
var carouselOptions = {
|
|
direction: "up",
|
|
items: {
|
|
visible: 3,
|
|
},
|
|
scroll: {
|
|
items: 2,
|
|
duration: 500,
|
|
pauseOnHover: true
|
|
},
|
|
auto: {
|
|
items: 3,
|
|
play: true,
|
|
pauseOnHover: true,
|
|
},
|
|
mousewheel: true,
|
|
swipe: {
|
|
onMouse: true,
|
|
onTouch: true
|
|
},
|
|
prev: {
|
|
button: $('.slider_control.up', $(this).parent()),
|
|
pauseOnHover: true,
|
|
},
|
|
next: {
|
|
button: $('.slider_control.down', $(this).parent()),
|
|
pauseOnHover: true,
|
|
},
|
|
};
|
|
|
|
$(this).carouFredSel(carouselOptions);
|
|
|
|
$(this).parent().parent().hover(function(){
|
|
$(".up.slider_control", this).removeClass("slideDownBack").addClass("slideDown");
|
|
$(".down.slider_control", this).removeClass("slideUpBack").addClass("slideUp");
|
|
},
|
|
function(){
|
|
$(".up.slider_control", this).removeClass("slideDown").addClass("slideDownBack");
|
|
$(".down.slider_control", this ).removeClass("slideUp").addClass("slideUpBack");
|
|
});
|
|
|
|
// $(window).trigger("resize");
|
|
});
|
|
</script>
|
|
<?php $__env->stopPush(); ?>
|
|
|
|
<?php $__env->startSection('content'); ?>
|
|
<?php
|
|
$audioUrl = url( $apiUrl . 'podcast/download/' . $podcast->url . "?auth=" . $podcast->auth );
|
|
$popoutUrl = url('luister/fragment/' . $podcast->url . '?auth=' . $podcast->auth );
|
|
?>
|
|
<div class="page_layout page_margin_top clearfix">
|
|
<div class="row page_margin_top">
|
|
<div class="column column_2_3">
|
|
<div class="row">
|
|
<div class="post single">
|
|
<h1>Fragment gemist</h1>
|
|
<h2 class="post_title"><?php echo e($podcast->title); ?></h2>
|
|
<ul class="post_details clearfix">
|
|
<?php if($podcast->program): ?>
|
|
<li class="detail"><a href="<?php echo e(url('programma' . $podcast->program->url )); ?>"><?php echo e($podcast->program->name); ?></a></li>
|
|
<?php endif; ?>
|
|
<li class="detail date"><?php echo e(Formatter::relativeDate($podcast->created)); ?></li>
|
|
</ul>
|
|
|
|
<div class="post_content page_margin_top_section clearfix">
|
|
<h3><?php echo $podcast->content; ?></h3>
|
|
</div>
|
|
|
|
<p>
|
|
<audio controls autoplay="true">
|
|
<source src="<?php echo e($audioUrl); ?>" type="audio/mpeg" />
|
|
</audio>
|
|
</p>
|
|
|
|
<div class="row page_margin_top">
|
|
<div class="share_box clearfix">
|
|
<a class="action_button" href="<?php echo e($audioUrl); ?>" title="Download dit fragment als MP3">
|
|
<span class="fa fa-download"></span>
|
|
<span>Download fragment</span>
|
|
</a>
|
|
<a class="action_button" href="<?php echo e($popoutUrl); ?>" target="_radioplayer" onclick="window.open('<?php echo e($popoutUrl); ?>', '_radioplayer','width=400,height=400'); return false;" class="btn btn-default">
|
|
<span class="fa fa-external-link-alt"></span>
|
|
<span>Luister in nieuw venster</span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<!--
|
|
<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>
|
|
-->
|
|
</div>
|
|
<div class="column column_1_3">
|
|
<?php if(count($related) > 1): ?>
|
|
<h4 class="box_header page_margin_top_section">Meer uit deze uitzending</h4>
|
|
<div class="vertical_carousel_container clearfix">
|
|
<ul class="blog podcasts vertical_carousel" id="related_items">
|
|
<?php $__currentLoopData = $related; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $relatedItem): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
|
<?php if($relatedItem->id == $podcast->id): ?> <?php continue; ?> <?php endif; ?>
|
|
<li class="post">
|
|
<div class="post_content">
|
|
<h5>
|
|
<a href="<?php echo e(url('radio/gemist/fragment/' . $relatedItem->url)); ?>" title="<?php echo e($relatedItem->title); ?>">
|
|
<span class="fa fa-chevron-circle-right"></span>
|
|
<?php echo e($relatedItem->titleWithoutProgram()); ?>
|
|
|
|
</a>
|
|
</h5>
|
|
<p class="post_details simple" title="<?php echo e($relatedItem->content); ?>">
|
|
<?php echo e(Formatter::excerpt($relatedItem->content, 80)); ?>
|
|
|
|
</p>
|
|
</div>
|
|
</li>
|
|
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
|
</ul>
|
|
</div>
|
|
<a href="<?php echo e(url('radio/gemist/programma' . $podcast->program->url)); ?>" class="more">Meer <?php echo e($podcast->program->name); ?></a>
|
|
<?php endif; ?>
|
|
|
|
<h4 class="box_header page_margin_top_section">Meer fragmenten</h4>
|
|
<nav>
|
|
<ul class="blog podcasts">
|
|
<li class="post">
|
|
<a href="<?php echo e(url('radio/gemist')); ?>" class="read_more">
|
|
<span class="arrow"></span>
|
|
<span>Alle recente fragmenten</span>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</nav>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<?php $__env->stopSection(); ?>
|
|
|
|
<?php echo $__env->make('page', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
|