69 lines
2.9 KiB
PHP
69 lines
2.9 KiB
PHP
<?php $__env->startSection('content'); ?>
|
|
<div class="infinite-scroll">
|
|
<?php $__currentLoopData = $models; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $post): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
|
<article class="post-item card mb-5 shadow-hover">
|
|
<div class="row">
|
|
<div class="col-lg-3 no-gutter p-0">
|
|
<div class="img-preview-container">
|
|
<img class="img-fluid img-preview2" src="<?php echo e(Post::getPreviewThumbWebPath($post)); ?>" alt="">
|
|
<div class="img-caption">
|
|
<?php echo $__env->make('inc.views.previews.imageCaption.imageCaptionSwitcher', ['post' => $post], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-lg-9 p-4">
|
|
<div class="row">
|
|
<h4 class="">
|
|
<?php echo $__env->make('inc.views.previews.title.titleSwitcher', ['post' => $post], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
|
|
</h4>
|
|
</div>
|
|
<div class="row">
|
|
<p class="">
|
|
<?php echo $__env->make('inc.views.previews.content.contentSwitcher', ['post' => $post], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</article>
|
|
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
|
|
|
<?php if(method_exists($models, 'render')): ?>
|
|
<?php echo e($models->appends($_GET)->render()); ?>
|
|
|
|
<?php endif; ?>
|
|
</div>
|
|
<?php $__env->stopSection(); ?>
|
|
|
|
<?php $__env->startSection('scripts'); ?>
|
|
##parent-placeholder-16728d18790deb58b3b8c1df74f06e536b532695##
|
|
<?php echo HTML::script('/packages/jscroll/jquery.jscroll.min.js'); ?>
|
|
|
|
|
|
<script>
|
|
// $('ul.pagination').hide();
|
|
|
|
$(function() {
|
|
$('.infinite-scroll').jscroll({
|
|
autoTrigger: true,
|
|
loadingHtml: '<small>Laden...</small>',
|
|
padding: 0,
|
|
nextSelector: '.pagination li.active + li a',
|
|
contentSelector: 'div.infinite-scroll',
|
|
callback: function() {
|
|
$('ul.pagination:visible:first').hide();
|
|
}
|
|
});
|
|
});
|
|
</script>
|
|
<?php $__env->stopSection(); ?>
|
|
|
|
<?php $__env->startSection('sidebar'); ?>
|
|
##parent-placeholder-19bd1503d9bad449304cc6b4e977b74bac6cc771##
|
|
<?php if(isset($sidebar)): ?>
|
|
<?php echo $__env->make('inc.views.sidebar', ['sidebar.sidebar' => $sidebar], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
|
|
<?php endif; ?>
|
|
<?php if(isset($filters)): ?>
|
|
<?php echo $__env->make('inc.views.filter.filterContainer', ['filters' => $filters], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
|
|
<?php endif; ?>
|
|
<?php $__env->stopSection(); ?>
|
|
<?php echo $__env->make('layouts.app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
|