first
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
<?php if($page->children->count() > 7): ?>
|
||||
<?php
|
||||
$blogpage = $page->children[7];
|
||||
?>
|
||||
<!--Blog One Start-->
|
||||
<?php
|
||||
$blogs = getBlogs(limit: 3, order: 'desc', paginate: true);
|
||||
?>
|
||||
<section class="blog-one section-bg section-pd">
|
||||
<div class="container">
|
||||
<div class="section-title text-center">
|
||||
<div class="section-title__tagline-box"> <span class="section-title__tagline"><?php echo e($blogpage->title); ?></span> </div>
|
||||
<h2 class="section-title__title"><?php echo implode(' ', array_slice(explode(' ', $blogpage->short_description), 0, 3)) .'<br>' .implode(' ', array_slice(explode(' ', $blogpage->short_description), 3)); ?></h2>
|
||||
</div>
|
||||
<div class="row">
|
||||
<!--BLog One Single Start-->
|
||||
<?php $__currentLoopData = $blogs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $blog): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
||||
<div class="col-xl-4 col-lg-6 col-md-6 wow fadeInLeft" data-wow-delay="100ms">
|
||||
<div class="blog-one__single">
|
||||
<div class="blog-one__img-box">
|
||||
<div class="blog-one__img"> <img class="blog-style1" src="<?php echo e($blog->image); ?>" alt=""> </div>
|
||||
</div>
|
||||
<div class="blog-one__content">
|
||||
<ul class="blog-one__meta list-unstyled">
|
||||
<li> <a href="<?php echo e(route('blog.single', $blog->slug)); ?>"><span class="icon-calendar"></span><?php echo e(getFormatted(date:$blog->date, format:'d M, Y')); ?></a> </li>
|
||||
</ul>
|
||||
<h3 class="blog-one__title"><a href="<?php echo e(route('blog.single', $blog->slug)); ?>"><?php echo e($blog->title); ?></a></h3>
|
||||
<p class="blog-one__text"><?php echo e($blog->short_description); ?></p>
|
||||
<a href="<?php echo e(route('blog.single', $blog->slug)); ?>" class="blog-one__btn"><span
|
||||
class="icon-right-arrow"></span>Post Details</a> </div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
||||
<!--BLog One Single End-->
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!--Blog One End-->
|
||||
<?php endif; ?>
|
||||
|
||||
<STYLe>
|
||||
.blog-style1{
|
||||
height:300PX;
|
||||
object-fit: cover;
|
||||
}
|
||||
</STYLe>
|
||||
<?php /**PATH /home/rohiniedu/public_html/resources/views/client/rohini/pages/partials/blog.blade.php ENDPATH**/ ?>
|
||||
Reference in New Issue
Block a user