Commit 7cbfcaa0 by Triyah Fatmawati

tambah setting main content

parent 91e95fe0
......@@ -48,171 +48,177 @@
</section>
@endif
@endif
<section class="blog-wrapper">
<div class="container">
<div id="content" class="col-lg-8 col-md-8 col-sm-12 col-xs-12">
<div class="title">
<h2>Berita Terbaru
<div style="font-size:12px; float:right"><a href="{!! url('archive') !!}" class="btn btn-box"><i class="fa fa-chevron-circle-right"></i> lihat berita selengkapnya</a></div>
</h2>
</div><!-- end title -->
<div class="row">
<div class="blog-masonry">
<?php $e=1; ?>
@foreach($posts as $value)
<div class="col-lg-6 @if($e%2 != 0) first @else last @endif">
<div class="blog-carousel">
<div class="entry">
@if($value->thumbnail)
<center>
@if ($setting['external_storage'] == 1)
<img src="{{ $setting['url_static'] . '/' . $setting['directory'] . '/thumbnail/' . $value->thumbnail }}" alt="" class="img-responsive" style="height: 150px; width: auto;">
@else
<img src="{{ url('/storage/thumbnail/' . $value->thumbnail) }}" alt="" class="img-responsive" style="height: 150px; width: auto;">
@endif
</center>
@endif
</div>
<div class="blog-carousel-header">
<h3><a title="{!! $value->title !!}" href="{!! url('post/'.$value->slug) !!}">{!! $value->title !!}</a></h3>
<div class="blog-carousel-meta">
<span><i class="fa fa-calendar"></i> {!! InseoHelper::tglbulanindo2($value->post_date) !!}</span>
@if($value->comment_status)
<span><i class="fa fa-comment"></i> <a href="#">{!! $value->comment_count !!} Comments</a></span>
@endif
<span><i class="fa fa-eye"></i> <a href="#">{!! $value->viewer !!} Views</a></span>
</div><!-- end blog-carousel-meta -->
</div><!-- end blog-carousel-header -->
<div class="blog-carousel-desc">
{{-- <p>{!! substr(html_entity_decode($value->content),0 , 250) !!}</p> --}}
<p>{!! strip_tags(substr(html_entity_decode($value->content,ENT_COMPAT,"UTF-8"),0 , 250)) !!}</p>
{{-- <p>{!! $value->content !!}</p> --}}
</div><!-- end blog-carousel-desc -->
</div><!-- end blog-carousel -->
</div><!-- end col-lg-4 -->
<?php $e++; ?>
@endforeach
</div><!-- end blog-masonry -->
@if(!isset($setting['default_content']) || strtolower($setting['default_content'] == 'tampil'))
<section class="blog-wrapper">
<div class="container">
{{-- @if(!isset($setting['content']) || strtolower($setting['content'] == 'tampil')) --}}
<div id="content" class="col-lg-8 col-md-8 col-sm-12 col-xs-12">
<div class="title">
<h2>Berita Terbaru
<div style="font-size:12px; float:right"><a href="{!! url('archive') !!}" class="btn btn-box"><i class="fa fa-chevron-circle-right"></i> lihat berita selengkapnya</a></div>
</h2>
</div><!-- end title -->
<div class="clearfix"></div>
<div class="row">
<div class="blog-masonry">
<?php $e=1; ?>
@foreach($posts as $value)
<div class="col-lg-6 @if($e%2 != 0) first @else last @endif">
<div class="blog-carousel">
<div class="entry">
@if($value->thumbnail)
<center>
@if ($setting['external_storage'] == 1)
<img src="{{ $setting['url_static'] . '/' . $setting['directory'] . '/thumbnail/' . $value->thumbnail }}" alt="" class="img-responsive" style="height: 150px; width: auto;">
@else
<img src="{{ url('/storage/thumbnail/' . $value->thumbnail) }}" alt="" class="img-responsive" style="height: 150px; width: auto;">
@endif
</center>
@endif
</div>
<div class="blog-carousel-header">
<h3><a title="{!! $value->title !!}" href="{!! url('post/'.$value->slug) !!}">{!! $value->title !!}</a></h3>
<div class="blog-carousel-meta">
<span><i class="fa fa-calendar"></i> {!! InseoHelper::tglbulanindo2($value->post_date) !!}</span>
@if($value->comment_status)
<span><i class="fa fa-comment"></i> <a href="#">{!! $value->comment_count !!} Comments</a></span>
@endif
<span><i class="fa fa-eye"></i> <a href="#">{!! $value->viewer !!} Views</a></span>
</div><!-- end blog-carousel-meta -->
</div><!-- end blog-carousel-header -->
<div class="blog-carousel-desc">
{{-- <p>{!! substr(html_entity_decode($value->content),0 , 250) !!}</p> --}}
<p>{!! strip_tags(substr(html_entity_decode($value->content,ENT_COMPAT,"UTF-8"),0 , 250)) !!}</p>
{{-- <p>{!! $value->content !!}</p> --}}
</div><!-- end blog-carousel-desc -->
</div><!-- end blog-carousel -->
</div><!-- end col-lg-4 -->
<?php $e++; ?>
@endforeach
</div><!-- end blog-masonry -->
<hr>
<div class="clearfix"></div>
<div class="pagination_wrapper">
<!-- Pagination Normal -->
<ul class="pagination">
{!! $posts->render() !!}
</ul>
</div><!-- end pagination_wrapper -->
<hr>
</div><!-- end row -->
</div><!-- end content -->
<div class="pagination_wrapper">
<!-- Pagination Normal -->
<ul class="pagination">
{!! $posts->render() !!}
</ul>
</div><!-- end pagination_wrapper -->
<div id="sidebar" class="col-lg-4 col-md-4 col-sm-12 col-xs-12">
{{-- <div class="widget">
<div id="google_translate_element"></div>
<script>
function googleTranslateElementInit() {
new google.translate.TranslateElement({
pageLanguage: 'id'
}, 'google_translate_element');
}
</script>
<script src="http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
</div> --}}
</div><!-- end row -->
</div><!-- end content -->
{{-- @endif --}}
<div class="widget">
<div class="title">
<h2>Agenda</h2>
</div><!-- end title -->
<ul class="recent_posts_widget">
@foreach($agenda as $value)
<li>
<a href="{!! url('agenda/'.$value->slug) !!}"><img src="https://www.unesa.ac.id/assets/demos/logounesa.png" alt="">{!! $value->title !!}</a>
<a class="readmore" href="#">{!! InseoHelper::tglbulanindo2($value->event_date) !!}</a>
</li>
@endforeach
</ul>
<a href="{!! url('agendas') !!}" class="btn btn-primary">Lihat Agenda Selengkapnya</a>
</div><!-- end widget -->
<div class="widget">
<div class="title">
<h2>Pengumuman</h2>
</div><!-- end title -->
<ul class="recent_posts_widget">
@foreach($info as $value)
<li>
<a href="{!! url('information/'.$value->slug) !!}"><img src="https://www.unesa.ac.id/assets/demos/logounesa.png" alt="">{!! $value->title !!}</a>
<a class="readmore" href="#">{!! InseoHelper::tglbulanindo2($value->event_date) !!}</a>
</li>
@endforeach
</ul>
<a href="{!! url('informations') !!}" class="btn btn-primary">Lihat Pengumuman Selengkapnya</a>
</div><!-- end widget -->
{{-- @if(!isset($setting['sidebar']) || strtolower($setting['sidebar'] == 'tampil')) --}}
<div id="sidebar" class="col-lg-4 col-md-4 col-sm-12 col-xs-12">
{{-- <div class="widget">
<div id="google_translate_element"></div>
<script>
function googleTranslateElementInit() {
new google.translate.TranslateElement({
pageLanguage: 'id'
}, 'google_translate_element');
}
</script>
<script src="http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
</div> --}}
<div class="widget">
<div id="tabbed_widget" class="tabbable">
<ul class="nav nav-tabs">
<li class="active"><a href="#recent" data-toggle="tab">Terbaru</a></li>
<li><a href="#new" data-toggle="tab">Populer</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="recent">
<div class="widget">
<div class="title">
<h2>Agenda</h2>
</div><!-- end title -->
<ul class="recent_posts_widget">
@foreach($resend as $value)
@foreach($agenda as $value)
<li>
<a href="{!! url('post/'.$value->slug) !!}">
@if($value->thumbnail)
@if ($setting['external_storage'] == 1)
<img src="{{ $setting['url_static'] . '/' . $setting['directory'] . '/thumbnail/' . $value->thumbnail }}" alt="" class="img-responsive">
@else
<img src="{{ url('/storage/thumbnail/' . $value->thumbnail) }}" alt="" class="img-responsive">
@endif
@endif{!! $value->title !!}
</a>
<a class="readmore" href="{!! url('post/'.$value->slug) !!}">
{!! InseoHelper::tglbulanindo2($value->post_date) !!}
</a>
<a href="{!! url('agenda/'.$value->slug) !!}"><img src="https://www.unesa.ac.id/assets/demos/logounesa.png" alt="">{!! $value->title !!}</a>
<a class="readmore" href="#">{!! InseoHelper::tglbulanindo2($value->event_date) !!}</a>
</li>
@endforeach
</ul><!-- recent posts -->
</div>
<div class="tab-pane" id="new">
</ul>
<a href="{!! url('agendas') !!}" class="btn btn-primary">Lihat Agenda Selengkapnya</a>
</div><!-- end widget -->
<div class="widget">
<div class="title">
<h2>Pengumuman</h2>
</div><!-- end title -->
<ul class="recent_posts_widget">
@foreach($hot as $value)
<li>
<a href="{!! url('post/'.$value->slug) !!}">
@if($value->thumbnail)
@if ($setting['external_storage'] == 1)
<img src="{{ $setting['url_static'] . '/' . $setting['directory'] . '/thumbnail/' . $value->thumbnail }}" alt="" class="img-responsive" style="height: 150px; width: auto;">
@else
<img src="{{ url('/storage/thumbnail/' . $value->thumbnail) }}" alt="" class="img-responsive" style="height: 150px; width: auto;">
@endif
@endif{!! $value->title !!}
</a>
<a class="readmore" href="{!! url('post/'.$value->slug) !!}">{!! InseoHelper::tglbulanindo2($value->post_date) !!}</a>
</li>
@endforeach
</ul><!-- recent posts -->
</div>
</div><!-- end tab content -->
</div><!-- end tab pane -->
</div><!-- end widget -->
@foreach($info as $value)
<li>
<a href="{!! url('information/'.$value->slug) !!}"><img src="https://www.unesa.ac.id/assets/demos/logounesa.png" alt="">{!! $value->title !!}</a>
<a class="readmore" href="#">{!! InseoHelper::tglbulanindo2($value->event_date) !!}</a>
</li>
@endforeach
</ul>
<a href="{!! url('informations') !!}" class="btn btn-primary">Lihat Pengumuman Selengkapnya</a>
</div><!-- end widget -->
<div class="widget">
<div id="tabbed_widget" class="tabbable">
<ul class="nav nav-tabs">
<li class="active"><a href="#recent" data-toggle="tab">Terbaru</a></li>
<li><a href="#new" data-toggle="tab">Populer</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="recent">
<ul class="recent_posts_widget">
@foreach($resend as $value)
<li>
<a href="{!! url('post/'.$value->slug) !!}">
@if($value->thumbnail)
@if ($setting['external_storage'] == 1)
<img src="{{ $setting['url_static'] . '/' . $setting['directory'] . '/thumbnail/' . $value->thumbnail }}" alt="" class="img-responsive">
@else
<img src="{{ url('/storage/thumbnail/' . $value->thumbnail) }}" alt="" class="img-responsive">
@endif
@endif{!! $value->title !!}
</a>
<a class="readmore" href="{!! url('post/'.$value->slug) !!}">
{!! InseoHelper::tglbulanindo2($value->post_date) !!}
</a>
</li>
@endforeach
</ul><!-- recent posts -->
</div>
<div class="tab-pane" id="new">
<ul class="recent_posts_widget">
@foreach($hot as $value)
<li>
<a href="{!! url('post/'.$value->slug) !!}">
@if($value->thumbnail)
@if ($setting['external_storage'] == 1)
<img src="{{ $setting['url_static'] . '/' . $setting['directory'] . '/thumbnail/' . $value->thumbnail }}" alt="" class="img-responsive" style="height: 150px; width: auto;">
@else
<img src="{{ url('/storage/thumbnail/' . $value->thumbnail) }}" alt="" class="img-responsive" style="height: 150px; width: auto;">
@endif
@endif{!! $value->title !!}
</a>
<a class="readmore" href="{!! url('post/'.$value->slug) !!}">{!! InseoHelper::tglbulanindo2($value->post_date) !!}</a>
</li>
@endforeach
</ul><!-- recent posts -->
</div>
</div><!-- end tab content -->
</div><!-- end tab pane -->
</div><!-- end widget -->
@foreach ($widget_right as $vwidget_right)
<div class="widget">
<div class="title">
<h2>{!! $vwidget_right->title_design !!}</h2>
</div><!-- end title -->
{!! $vwidget_right->value_design !!}
</div><!-- end widget -->
@endforeach
</div><!-- end sidebar -->
{{-- @endif --}}
</div><!-- end container -->
</section><!--end white-wrapper -->
@endif
@foreach ($widget_right as $vwidget_right)
<div class="widget">
<div class="title">
<h2>{!! $vwidget_right->title_design !!}</h2>
</div><!-- end title -->
{!! $vwidget_right->value_design !!}
</div><!-- end widget -->
@endforeach
</div><!-- end content -->
</div><!-- end container -->
</section><!--end white-wrapper -->
{{-- Label Body Tambahan --}}
@if(!isset($setting['body_position']) || strtolower($setting['body_position']) == 'bawah')
@if($body->count() != 0)
......@@ -248,13 +254,13 @@
<div class="shop_carousel">
<div class="shop_item">
<div class="entry">
@if ($setting['external_storage'] == 1)
<img src="{{ $setting['url_static'] . '/' . $setting['directory'] . '/gallery/' . $value->gallery }}" alt="" class="img-responsive">
@else
<img src="{{ url('/storage/gallery/' . $value->thumbnail) }}" alt="" class="img-responsive">
@endif
@endif
<div class="magnifier">
<div class="buttons">
<a class="st btn btn-default" rel="bookmark" href="{{ $setting['url_static'] . '/' . $setting['directory'] . '/gallery/' . $value->gallery }}" target="_blank">
......@@ -264,12 +270,12 @@
</div><!-- end buttons -->
</div><!-- end magnifier -->
</div><!-- end entry -->
</div><!-- end item -->
</div><!-- end shop carousel -->
@endforeach
</div><!-- end padding-top -->
</div><!-- end carousel_wrapper -->
</div><!-- end carousel_wrapper -->
</div>
<!-- end container -->{{--
<div class="portfolio_wrapper padding-top" style="position: relative; overflow: hidden; height: 372px;">
......@@ -334,7 +340,7 @@
</div>--}}
<div class="clearfix"></div>
</section>
@endif
@endif
@endif
<section class="make-bg-full">
......@@ -347,7 +353,7 @@
<div class="long-twitter">
@if($value->title_show == true)
<p class="lead">
{!! $value->value_design !!}
<div style="text-align: center; font-size: 14pt;">{!! $value->title_design !!}</div>
</p>
......@@ -367,4 +373,4 @@
</ol>
</div>
</section><!-- make bg -->
@endsection
\ No newline at end of file
@endsection
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment