Commit 7cbfcaa0 by Triyah Fatmawati

tambah setting main content

parent 91e95fe0
...@@ -48,171 +48,177 @@ ...@@ -48,171 +48,177 @@
</section> </section>
@endif @endif
@endif @endif
<section class="blog-wrapper"> @if(!isset($setting['default_content']) || strtolower($setting['default_content'] == 'tampil'))
<div class="container"> <section class="blog-wrapper">
<div id="content" class="col-lg-8 col-md-8 col-sm-12 col-xs-12"> <div class="container">
<div class="title"> {{-- @if(!isset($setting['content']) || strtolower($setting['content'] == 'tampil')) --}}
<h2>Berita Terbaru <div id="content" class="col-lg-8 col-md-8 col-sm-12 col-xs-12">
<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> <div class="title">
</h2> <h2>Berita Terbaru
</div><!-- end title --> <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 class="row"> </div><!-- end title -->
<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 -->
<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"> <hr>
<!-- Pagination Normal -->
<ul class="pagination">
{!! $posts->render() !!}
</ul>
</div><!-- end pagination_wrapper -->
</div><!-- end row --> <div class="pagination_wrapper">
</div><!-- end content --> <!-- 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><!-- end row -->
{{-- <div class="widget"> </div><!-- end content -->
<div id="google_translate_element"></div> {{-- @endif --}}
<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"> {{-- @if(!isset($setting['sidebar']) || strtolower($setting['sidebar'] == 'tampil')) --}}
<div class="title"> <div id="sidebar" class="col-lg-4 col-md-4 col-sm-12 col-xs-12">
<h2>Agenda</h2> {{-- <div class="widget">
</div><!-- end title --> <div id="google_translate_element"></div>
<ul class="recent_posts_widget"> <script>
@foreach($agenda as $value) function googleTranslateElementInit() {
<li> new google.translate.TranslateElement({
<a href="{!! url('agenda/'.$value->slug) !!}"><img src="https://www.unesa.ac.id/assets/demos/logounesa.png" alt="">{!! $value->title !!}</a> pageLanguage: 'id'
<a class="readmore" href="#">{!! InseoHelper::tglbulanindo2($value->event_date) !!}</a> }, 'google_translate_element');
</li> }
@endforeach </script>
</ul> <script src="http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
<a href="{!! url('agendas') !!}" class="btn btn-primary">Lihat Agenda Selengkapnya</a> </div> --}}
</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 -->
<div class="widget"> <div class="widget">
<div id="tabbed_widget" class="tabbable"> <div class="title">
<ul class="nav nav-tabs"> <h2>Agenda</h2>
<li class="active"><a href="#recent" data-toggle="tab">Terbaru</a></li> </div><!-- end title -->
<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"> <ul class="recent_posts_widget">
@foreach($resend as $value) @foreach($agenda as $value)
<li> <li>
<a href="{!! url('post/'.$value->slug) !!}"> <a href="{!! url('agenda/'.$value->slug) !!}"><img src="https://www.unesa.ac.id/assets/demos/logounesa.png" alt="">{!! $value->title !!}</a>
@if($value->thumbnail) <a class="readmore" href="#">{!! InseoHelper::tglbulanindo2($value->event_date) !!}</a>
@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> </li>
@endforeach @endforeach
</ul><!-- recent posts --> </ul>
</div> <a href="{!! url('agendas') !!}" class="btn btn-primary">Lihat Agenda Selengkapnya</a>
<div class="tab-pane" id="new"> </div><!-- end widget -->
<div class="widget">
<div class="title">
<h2>Pengumuman</h2>
</div><!-- end title -->
<ul class="recent_posts_widget"> <ul class="recent_posts_widget">
@foreach($hot as $value) @foreach($info as $value)
<li> <li>
<a href="{!! url('post/'.$value->slug) !!}"> <a href="{!! url('information/'.$value->slug) !!}"><img src="https://www.unesa.ac.id/assets/demos/logounesa.png" alt="">{!! $value->title !!}</a>
@if($value->thumbnail) <a class="readmore" href="#">{!! InseoHelper::tglbulanindo2($value->event_date) !!}</a>
@if ($setting['external_storage'] == 1) </li>
<img src="{{ $setting['url_static'] . '/' . $setting['directory'] . '/thumbnail/' . $value->thumbnail }}" alt="" class="img-responsive" style="height: 150px; width: auto;"> @endforeach
@else </ul>
<img src="{{ url('/storage/thumbnail/' . $value->thumbnail) }}" alt="" class="img-responsive" style="height: 150px; width: auto;"> <a href="{!! url('informations') !!}" class="btn btn-primary">Lihat Pengumuman Selengkapnya</a>
@endif </div><!-- end widget -->
@endif{!! $value->title !!}
</a> <div class="widget">
<a class="readmore" href="{!! url('post/'.$value->slug) !!}">{!! InseoHelper::tglbulanindo2($value->post_date) !!}</a> <div id="tabbed_widget" class="tabbable">
</li> <ul class="nav nav-tabs">
@endforeach <li class="active"><a href="#recent" data-toggle="tab">Terbaru</a></li>
</ul><!-- recent posts --> <li><a href="#new" data-toggle="tab">Populer</a></li>
</div> </ul>
</div><!-- end tab content --> <div class="tab-content">
</div><!-- end tab pane --> <div class="tab-pane active" id="recent">
</div><!-- end widget --> <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 --}} {{-- Label Body Tambahan --}}
@if(!isset($setting['body_position']) || strtolower($setting['body_position']) == 'bawah') @if(!isset($setting['body_position']) || strtolower($setting['body_position']) == 'bawah')
@if($body->count() != 0) @if($body->count() != 0)
...@@ -248,13 +254,13 @@ ...@@ -248,13 +254,13 @@
<div class="shop_carousel"> <div class="shop_carousel">
<div class="shop_item"> <div class="shop_item">
<div class="entry"> <div class="entry">
@if ($setting['external_storage'] == 1) @if ($setting['external_storage'] == 1)
<img src="{{ $setting['url_static'] . '/' . $setting['directory'] . '/gallery/' . $value->gallery }}" alt="" class="img-responsive"> <img src="{{ $setting['url_static'] . '/' . $setting['directory'] . '/gallery/' . $value->gallery }}" alt="" class="img-responsive">
@else @else
<img src="{{ url('/storage/gallery/' . $value->thumbnail) }}" alt="" class="img-responsive"> <img src="{{ url('/storage/gallery/' . $value->thumbnail) }}" alt="" class="img-responsive">
@endif @endif
<div class="magnifier"> <div class="magnifier">
<div class="buttons"> <div class="buttons">
<a class="st btn btn-default" rel="bookmark" href="{{ $setting['url_static'] . '/' . $setting['directory'] . '/gallery/' . $value->gallery }}" target="_blank"> <a class="st btn btn-default" rel="bookmark" href="{{ $setting['url_static'] . '/' . $setting['directory'] . '/gallery/' . $value->gallery }}" target="_blank">
...@@ -264,12 +270,12 @@ ...@@ -264,12 +270,12 @@
</div><!-- end buttons --> </div><!-- end buttons -->
</div><!-- end magnifier --> </div><!-- end magnifier -->
</div><!-- end entry --> </div><!-- end entry -->
</div><!-- end item --> </div><!-- end item -->
</div><!-- end shop carousel --> </div><!-- end shop carousel -->
@endforeach @endforeach
</div><!-- end padding-top --> </div><!-- end padding-top -->
</div><!-- end carousel_wrapper --> </div><!-- end carousel_wrapper -->
</div> </div>
<!-- end container -->{{-- <!-- end container -->{{--
<div class="portfolio_wrapper padding-top" style="position: relative; overflow: hidden; height: 372px;"> <div class="portfolio_wrapper padding-top" style="position: relative; overflow: hidden; height: 372px;">
...@@ -334,7 +340,7 @@ ...@@ -334,7 +340,7 @@
</div>--}} </div>--}}
<div class="clearfix"></div> <div class="clearfix"></div>
</section> </section>
@endif @endif
@endif @endif
<section class="make-bg-full"> <section class="make-bg-full">
...@@ -347,7 +353,7 @@ ...@@ -347,7 +353,7 @@
<div class="long-twitter"> <div class="long-twitter">
@if($value->title_show == true) @if($value->title_show == true)
<p class="lead"> <p class="lead">
{!! $value->value_design !!} {!! $value->value_design !!}
<div style="text-align: center; font-size: 14pt;">{!! $value->title_design !!}</div> <div style="text-align: center; font-size: 14pt;">{!! $value->title_design !!}</div>
</p> </p>
...@@ -367,4 +373,4 @@ ...@@ -367,4 +373,4 @@
</ol> </ol>
</div> </div>
</section><!-- make bg --> </section><!-- make bg -->
@endsection @endsection
\ No newline at end of file
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