Commit e222b9cf by Siti Aisah
parents a6d40ad9 86d9ac63
...@@ -79,7 +79,7 @@ class PageController extends Controller ...@@ -79,7 +79,7 @@ class PageController extends Controller
*/ */
public function store(Request $request) public function store(Request $request)
{ {
$request['content'] = strip_tags($request->content, ['a', 'br', 'p', '<b>', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'td', 'th', 'tr', 'iframe','section','small','button', 'span']); $request['content'] = strip_tags($request->content, ['a', 'br', 'p', '<b>', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'td', 'th', 'tr', 'iframe','section','small','button', 'span','style','h1','h2','h3','h4','h5','h6', 'thead', 'tbody']);
$request['title'] = strip_tags($request->title); $request['title'] = strip_tags($request->title);
$request->validate([ $request->validate([
'title' => 'required', 'title' => 'required',
...@@ -121,7 +121,7 @@ class PageController extends Controller ...@@ -121,7 +121,7 @@ class PageController extends Controller
$data['content'] = 'kosong'; $data['content'] = 'kosong';
} }
$content = $trans->translate($this->SOURCE, $this->TARGET, strip_tags($data['content'], ['a', 'br', 'p', '<b>', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'td', 'th', 'tr', 'iframe','section','small','button', 'span'])); $content = $trans->translate($this->SOURCE, $this->TARGET, strip_tags($data['content'], ['a', 'br', 'p', '<b>', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'td', 'th', 'tr', 'iframe','section','small','button', 'span','style','h1','h2','h3','h4','h5','h6', 'thead', 'tbody']));
$dataEn['page_id'] = $page->id; $dataEn['page_id'] = $page->id;
$dataEn['title'] = $title; $dataEn['title'] = $title;
...@@ -139,7 +139,7 @@ class PageController extends Controller ...@@ -139,7 +139,7 @@ class PageController extends Controller
$data['content'] = 'kosong'; $data['content'] = 'kosong';
} }
$content = $trans->translate($this->SOURCE, $this->TARGETDE, strip_tags($data['content'], ['a', 'br', 'p', '<b>', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'td', 'th', 'tr', 'iframe','section','small','button', 'span'])); $content = $trans->translate($this->SOURCE, $this->TARGETDE, strip_tags($data['content'], ['a', 'br', 'p', '<b>', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'td', 'th', 'tr', 'iframe','section','small','button', 'span','style','h1','h2','h3','h4','h5','h6', 'thead', 'tbody']));
$dataDe['page_id'] = $page->id; $dataDe['page_id'] = $page->id;
$dataDe['title'] = $title; $dataDe['title'] = $title;
...@@ -157,7 +157,7 @@ class PageController extends Controller ...@@ -157,7 +157,7 @@ class PageController extends Controller
$data['content'] = 'kosong'; $data['content'] = 'kosong';
} }
$content = $trans->translate($this->SOURCE, $this->TARGETSA, strip_tags($data['content'], ['a', 'br', 'p', '<b>', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'td', 'th', 'tr', 'iframe','section','small','button', 'span'])); $content = $trans->translate($this->SOURCE, $this->TARGETSA, strip_tags($data['content'], ['a', 'br', 'p', '<b>', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'td', 'th', 'tr', 'iframe','section','small','button', 'span','style','h1','h2','h3','h4','h5','h6', 'thead', 'tbody']));
$dataSa['page_id'] = $page->id; $dataSa['page_id'] = $page->id;
$dataSa['title'] = $title; $dataSa['title'] = $title;
...@@ -175,7 +175,7 @@ class PageController extends Controller ...@@ -175,7 +175,7 @@ class PageController extends Controller
$data['content'] = 'kosong'; $data['content'] = 'kosong';
} }
$content = $trans->translate($this->SOURCE, $this->TARGETZH, strip_tags($data['content'], ['a', 'br', 'p', '<b>', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'td', 'th', 'tr', 'iframe','section','small','button', 'span'])); $content = $trans->translate($this->SOURCE, $this->TARGETZH, strip_tags($data['content'], ['a', 'br', 'p', '<b>', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'td', 'th', 'tr', 'iframe','section','small','button', 'span','style','h1','h2','h3','h4','h5','h6', 'thead', 'tbody']));
$dataZh['page_id'] = $page->id; $dataZh['page_id'] = $page->id;
$dataZh['title'] = $title; $dataZh['title'] = $title;
...@@ -241,11 +241,11 @@ class PageController extends Controller ...@@ -241,11 +241,11 @@ class PageController extends Controller
*/ */
public function update(Request $request, $id) public function update(Request $request, $id)
{ {
$request['content'] = strip_tags($request->content, ['a', 'br', 'p', '<b>', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'td', 'th', 'tr', 'iframe','section','small','button', 'span']); $request['content'] = strip_tags($request->content, ['a', 'br', 'p', '<b>', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'td', 'th', 'tr', 'iframe','section','small','button', 'span','style','h1','h2','h3','h4','h5','h6', 'thead', 'tbody']);
$request['content_en'] = strip_tags($request->content_en, ['a', 'br', 'p', '<b>', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'td', 'th', 'tr', 'iframe','section','small','button', 'span']); $request['content_en'] = strip_tags($request->content_en, ['a', 'br', 'p', '<b>', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'td', 'th', 'tr', 'iframe','section','small','button', 'span','style','h1','h2','h3','h4','h5','h6', 'thead', 'tbody']);
$request['content_de'] = strip_tags($request->content_de, ['a', 'br', 'p', '<b>', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'td', 'th', 'tr', 'iframe','section','small','button', 'span']); $request['content_de'] = strip_tags($request->content_de, ['a', 'br', 'p', '<b>', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'td', 'th', 'tr', 'iframe','section','small','button', 'span','style','h1','h2','h3','h4','h5','h6', 'thead', 'tbody']);
$request['content_sa'] = strip_tags($request->content_sa, ['a', 'br', 'p', '<b>', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'td', 'th', 'tr', 'iframe','section','small','button', 'span']); $request['content_sa'] = strip_tags($request->content_sa, ['a', 'br', 'p', '<b>', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'td', 'th', 'tr', 'iframe','section','small','button', 'span','style','h1','h2','h3','h4','h5','h6', 'thead', 'tbody']);
$request['content_zh'] = strip_tags($request->content_zh, ['a', 'br', 'p', '<b>', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'td', 'th', 'tr', 'iframe','section','small','button','span']); $request['content_zh'] = strip_tags($request->content_zh, ['a', 'br', 'p', '<b>', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'td', 'th', 'tr', 'iframe','section','small','button','span','style','h1','h2','h3','h4','h5','h6', 'thead', 'tbody']);
$request['title'] = strip_tags($request->title); $request['title'] = strip_tags($request->title);
$request['title_en'] = strip_tags($request->title_en); $request['title_en'] = strip_tags($request->title_en);
$request['title_de'] = strip_tags($request->title_de); $request['title_de'] = strip_tags($request->title_de);
...@@ -294,7 +294,7 @@ class PageController extends Controller ...@@ -294,7 +294,7 @@ class PageController extends Controller
{ {
if ($manual==1){ if ($manual==1){
$dataEn['title'] = strip_tags($data['title_en']); $dataEn['title'] = strip_tags($data['title_en']);
$dataEn['content'] = strip_tags($data['content_en'], ['a', 'br', 'p', '<b>', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'td', 'th', 'tr', 'iframe','section','small','button', 'span']); $dataEn['content'] = strip_tags($data['content_en'], ['a', 'br', 'p', '<b>', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'td', 'th', 'tr', 'iframe','section','small','button', 'span','style','h1','h2','h3','h4','h5','h6', 'thead', 'tbody']);
} }
else{ else{
if ($data['content'] == null) { if ($data['content'] == null) {
...@@ -304,7 +304,7 @@ class PageController extends Controller ...@@ -304,7 +304,7 @@ class PageController extends Controller
$trans = new GoogleTranslate(); $trans = new GoogleTranslate();
$title = $trans->translate($this->SOURCE, $this->TARGET, strip_tags($data['title'])); $title = $trans->translate($this->SOURCE, $this->TARGET, strip_tags($data['title']));
if (strlen($data['content']) < 5000) { if (strlen($data['content']) < 5000) {
$content = $trans->translate($this->SOURCE, $this->TARGET, strip_tags($data['content'], ['a', 'br', 'p', '<b>', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'td', 'th', 'tr', 'iframe','section','small','button', 'span'])); $content = $trans->translate($this->SOURCE, $this->TARGET, strip_tags($data['content'], ['a', 'br', 'p', '<b>', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'td', 'th', 'tr', 'iframe','section','small','button', 'span','style','h1','h2','h3','h4','h5','h6', 'thead', 'tbody']));
$dataEn['content'] = $content; $dataEn['content'] = $content;
} }
$dataEn['title'] = $title; $dataEn['title'] = $title;
...@@ -317,7 +317,7 @@ class PageController extends Controller ...@@ -317,7 +317,7 @@ class PageController extends Controller
{ {
if($manual==1){ if($manual==1){
$dataDe['title'] = strip_tags($data['title_de']); $dataDe['title'] = strip_tags($data['title_de']);
$dataDe['content'] = strip_tags($data['content_de'], ['a', 'br', 'p', '<b>', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'td', 'th', 'tr', 'iframe','section','small','button', 'span']); $dataDe['content'] = strip_tags($data['content_de'], ['a', 'br', 'p', '<b>', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'td', 'th', 'tr', 'iframe','section','small','button', 'span','style','h1','h2','h3','h4','h5','h6', 'thead', 'tbody']);
} }
else{ else{
if($data['content']==null){ if($data['content']==null){
...@@ -326,7 +326,7 @@ class PageController extends Controller ...@@ -326,7 +326,7 @@ class PageController extends Controller
$trans = new GoogleTranslate(); $trans = new GoogleTranslate();
$title = $trans->translate($this->SOURCE, $this->TARGETDE, strip_tags($data['title'])); $title = $trans->translate($this->SOURCE, $this->TARGETDE, strip_tags($data['title']));
if (strlen($data['content']) < 5000) { if (strlen($data['content']) < 5000) {
$content = $trans->translate($this->SOURCE, $this->TARGETDE, strip_tags($data['content'], ['a', 'br', 'p', '<b>', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'td', 'th', 'tr', 'iframe','section','small','button', 'span'])); $content = $trans->translate($this->SOURCE, $this->TARGETDE, strip_tags($data['content'], ['a', 'br', 'p', '<b>', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'td', 'th', 'tr', 'iframe','section','small','button', 'span','style','h1','h2','h3','h4','h5','h6', 'thead', 'tbody']));
$dataDe['content'] = $content; $dataDe['content'] = $content;
} }
$dataDe['title'] = $title; $dataDe['title'] = $title;
...@@ -339,7 +339,7 @@ class PageController extends Controller ...@@ -339,7 +339,7 @@ class PageController extends Controller
{ {
if($manual==1){ if($manual==1){
$dataSa['title'] = strip_tags($data['title_sa']); $dataSa['title'] = strip_tags($data['title_sa']);
$dataSa['content'] = strip_tags($data['content_sa'], ['a', 'br', 'p', '<b>', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'td', 'th', 'tr', 'iframe','section','small','button', 'span']); $dataSa['content'] = strip_tags($data['content_sa'], ['a', 'br', 'p', '<b>', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'td', 'th', 'tr', 'iframe','section','small','button', 'span','style','h1','h2','h3','h4','h5','h6', 'thead', 'tbody']);
} }
else{ else{
if($data['content']==null){ if($data['content']==null){
...@@ -349,7 +349,7 @@ class PageController extends Controller ...@@ -349,7 +349,7 @@ class PageController extends Controller
$trans = new GoogleTranslate(); $trans = new GoogleTranslate();
$title = $trans->translate($this->SOURCE, $this->TARGETSA, strip_tags($data['title'])); $title = $trans->translate($this->SOURCE, $this->TARGETSA, strip_tags($data['title']));
if (strlen($data['content']) < 5000) { if (strlen($data['content']) < 5000) {
$content = $trans->translate($this->SOURCE, $this->TARGETSA, strip_tags($data['content'], ['a', 'br', 'p', '<b>', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'td', 'th', 'tr', 'iframe','section','small','button', 'span'])); $content = $trans->translate($this->SOURCE, $this->TARGETSA, strip_tags($data['content'], ['a', 'br', 'p', '<b>', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'td', 'th', 'tr', 'iframe','section','small','button', 'span','style','h1','h2','h3','h4','h5','h6', 'thead', 'tbody']));
$dataSa['content'] = $content; $dataSa['content'] = $content;
} }
$dataSa['title'] = $title; $dataSa['title'] = $title;
...@@ -362,7 +362,7 @@ class PageController extends Controller ...@@ -362,7 +362,7 @@ class PageController extends Controller
{ {
if($manual==1){ if($manual==1){
$dataZh['title'] = strip_tags($data['title_zh']); $dataZh['title'] = strip_tags($data['title_zh']);
$dataZh['content'] = strip_tags($data['content_zh'],['a', 'br', 'p', '<b>', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'td', 'th', 'tr', 'iframe','section','small','button', 'span']); $dataZh['content'] = strip_tags($data['content_zh'],['a', 'br', 'p', '<b>', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'td', 'th', 'tr', 'iframe','section','small','button', 'span','style','h1','h2','h3','h4','h5','h6', 'thead', 'tbody']);
} }
else{ else{
if($data['content']==null){ if($data['content']==null){
...@@ -372,7 +372,7 @@ class PageController extends Controller ...@@ -372,7 +372,7 @@ class PageController extends Controller
$trans = new GoogleTranslate(); $trans = new GoogleTranslate();
$title = $trans->translate($this->SOURCE, $this->TARGETZH, strip_tags($data['title'])); $title = $trans->translate($this->SOURCE, $this->TARGETZH, strip_tags($data['title']));
if (strlen($data['content']) < 5000) { if (strlen($data['content']) < 5000) {
$content = $trans->translate($this->SOURCE, $this->TARGETZH, strip_tags($data['content'], ['a', 'br', 'p', '<b>', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'td', 'th', 'tr', 'iframe','section','small','button', 'span'])); $content = $trans->translate($this->SOURCE, $this->TARGETZH, strip_tags($data['content'], ['a', 'br', 'p', '<b>', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'td', 'th', 'tr', 'iframe','section','small','button', 'span','style','h1','h2','h3','h4','h5','h6', 'thead', 'tbody']));
$dataZh['content'] = $content; $dataZh['content'] = $content;
} }
$dataZh['title'] = $title; $dataZh['title'] = $title;
......
...@@ -69,7 +69,8 @@ class FrontController extends Controller ...@@ -69,7 +69,8 @@ class FrontController extends Controller
$quote = Design::where('name_design', 'quote')->get(); $quote = Design::where('name_design', 'quote')->get();
$widget_right = Design::where('name_design', 'widget_right')->orderBy('urutan', 'ASC')->get(); $widget_right = Design::where('name_design', 'widget_right')->orderBy('urutan', 'ASC')->get();
$widget_left = Design::where('name_design', 'widget_left')->orderBy('urutan', 'ASC')->get(); $widget_left = Design::where('name_design', 'widget_left')->orderBy('urutan', 'ASC')->get();
$body = Design::where('name_design', 'body')->where('title_show' , 't')->get(); $body = Design::where('name_design', 'body')->get();
// $body = Design::where('name_design', 'body')->where('title_show' , 't')->orderBy('urutan', 'ASC')->get();
$footer = Design::where('name_design', 'like', '%footer_row%')->get(); $footer = Design::where('name_design', 'like', '%footer_row%')->get();
$data = [ $data = [
......
...@@ -52,6 +52,7 @@ ...@@ -52,6 +52,7 @@
</section> </section>
@endif @endif
@endif @endif
@if(!isset($setting['default_content']) || strtolower($setting['default_content'] == 'tampil'))
<section class="blog-wrapper"> <section class="blog-wrapper">
<div class="container"> <div class="container">
<div id="content" class="col-lg-8 col-md-8 col-sm-12 col-xs-12"> <div id="content" class="col-lg-8 col-md-8 col-sm-12 col-xs-12">
...@@ -129,7 +130,7 @@ ...@@ -129,7 +130,7 @@
</script> </script>
<script src="http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script> <script src="http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
</div> --}} </div> --}}
<div class="widget"> <div class="widget">
<div class="title"> <div class="title">
<h2>جدول أعمال</h2> <h2>جدول أعمال</h2>
...@@ -145,7 +146,7 @@ ...@@ -145,7 +146,7 @@
<a href="{!! url('agendas') !!}" class="btn btn-primary">انظر جدول الأعمال الكامل</a> <a href="{!! url('agendas') !!}" class="btn btn-primary">انظر جدول الأعمال الكامل</a>
</div><!-- end widget --> </div><!-- end widget -->
<div class="widget"> <div class="widget">
<div class="title"> <div class="title">
<h2>كل المعلومات</h2> <h2>كل المعلومات</h2>
...@@ -160,8 +161,8 @@ ...@@ -160,8 +161,8 @@
</ul> </ul>
<a href="{!! url('informations') !!}" class="btn btn-primary">انظر المعلومات الكاملة</a> <a href="{!! url('informations') !!}" class="btn btn-primary">انظر المعلومات الكاملة</a>
</div><!-- end widget --> </div><!-- end widget -->
<div class="widget"> <div class="widget">
<div id="tabbed_widget" class="tabbable"> <div id="tabbed_widget" class="tabbable">
<ul class="nav nav-tabs"> <ul class="nav nav-tabs">
...@@ -212,12 +213,12 @@ ...@@ -212,12 +213,12 @@
<h2>{!! $vwidget_right->title_design !!}</h2> <h2>{!! $vwidget_right->title_design !!}</h2>
</div><!-- end title --> </div><!-- end title -->
{!! $vwidget_right->value_design !!} {!! $vwidget_right->value_design !!}
</div><!-- end widget --> </div><!-- end widget -->
@endforeach @endforeach
</div><!-- end content --> </div><!-- end content -->
</div><!-- end container --> </div><!-- end container -->
</section><!--end white-wrapper --> </section><!--end white-wrapper -->
@endif
{{-- 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)
...@@ -244,7 +245,7 @@ ...@@ -244,7 +245,7 @@
{{-- Label Gallery --}} {{-- Label Gallery --}}
@if(!isset($setting['gallery']) || strtolower($setting['gallery']) == '1' || strtolower($setting['gallery']) == 'on') @if(!isset($setting['gallery']) || strtolower($setting['gallery']) == '1' || strtolower($setting['gallery']) == 'on')
@if ($gallery->count() != 0) @if ($gallery->count() != 0)
<section class="panel-wrapper jt-shadow"> <section class="panel-wrapper jt-shadow">
<div class="container"> <div class="container">
...@@ -259,13 +260,13 @@ ...@@ -259,13 +260,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">
...@@ -275,12 +276,12 @@ ...@@ -275,12 +276,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;">
...@@ -345,7 +346,7 @@ ...@@ -345,7 +346,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">
...@@ -377,4 +378,4 @@ ...@@ -377,4 +378,4 @@
</ol> </ol>
</div> </div>
</section><!-- make bg --> </section><!-- make bg -->
@endsection @endsection
\ No newline at end of file
...@@ -61,32 +61,32 @@ ...@@ -61,32 +61,32 @@
</ul> </ul>
</li> </li>
@elseif($setting['layout_menu'] == 1) @elseif($setting['layout_menu'] == 1)
<li class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle">{!! $value->rSa->name !!} <div class="arrow-up"></div></a> <li class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle">@if ($value->rSa) {!! $value->rSa->name !!} @endif <div class="arrow-up"></div></a>
<ul class="dropdown-menu" role="menu"> <ul class="dropdown-menu" role="menu">
@foreach ($menu as $valuec) @foreach ($menu as $valuec)
@if($valuec->parent == $value->id) @if($valuec->parent == $value->id)
@if($valuec->url) @if($valuec->url)
<li><a href="{!! url((string)$valuec->url) !!}">{!! $valuec->rSa->name !!}</a></li> <li><a href="{!! url((string)$valuec->url) !!}">@if ($valuec->rSa) {!! $valuec->rSa->name !!} @endif</a></li>
@else @else
<li class="dropdown-submenu"> <li class="dropdown-submenu">
<b> <a href="#">{!! $valuec->name !!}</a> </b> <b> <a href="#">@if ($valuec->rSa) {!! $valuec->rSa->name !!} @endif</a> </b>
<ul class="dropdown-menu"> <ul class="dropdown-menu">
@foreach ($menu as $valuec2) @foreach ($menu as $valuec2)
@if($valuec2->parent == $valuec->id) @if($valuec2->parent == $valuec->id)
@if($valuec2->url) @if($valuec2->url)
<li><a href="{!! url((string)$valuec2->url) !!}">{!! $valuec2->rSa->name !!}</a></li> <li><a href="{!! url((string)$valuec2->url) !!}">@if ($valuec2->rSa) {!! $valuec2->rSa->name !!} @endif</a></li>
@else @else
<li class="dropdown-submenu"> <li class="dropdown-submenu">
<b> <a href="#">{!! $valuec2->rSa->name !!}</a></b> <b> <a href="#">@if ($valuec2->rSa) {!! $valuec2->rSa->name !!} @endif</a></b>
<ul class="dropdown-menu"> <ul class="dropdown-menu">
@foreach($menu as $valuec3) @foreach($menu as $valuec3)
@if($valuec3->parent == $valuec2->id) @if($valuec3->parent == $valuec2->id)
<li><a href="{!! url((string)$valuec3->url) !!}" target="_blank">{!! $valuec3->rSa->name !!}</a></li> <li><a href="{!! url((string)$valuec3->url) !!}" target="_blank">@if ($valuec3->rSa) {!! $valuec3->rSa->name !!} @endif</a></li>
@endif @endif
......
...@@ -52,6 +52,7 @@ ...@@ -52,6 +52,7 @@
</section> </section>
@endif @endif
@endif @endif
@if(!isset($setting['default_content']) || strtolower($setting['default_content'] == 'tampil'))
<section class="blog-wrapper"> <section class="blog-wrapper">
<div class="container"> <div class="container">
<div id="content" class="col-lg-8 col-md-8 col-sm-12 col-xs-12"> <div id="content" class="col-lg-8 col-md-8 col-sm-12 col-xs-12">
...@@ -129,7 +130,7 @@ ...@@ -129,7 +130,7 @@
</script> </script>
<script src="http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script> <script src="http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
</div> --}} </div> --}}
<div class="widget"> <div class="widget">
<div class="title"> <div class="title">
<h2>AGENDA</h2> <h2>AGENDA</h2>
...@@ -159,9 +160,9 @@ ...@@ -159,9 +160,9 @@
@endforeach @endforeach
</ul> </ul>
<a href="{!! url('informations') !!}" class="btn btn-primary">Siehe vollständige Informationen</a> <a href="{!! url('informations') !!}" class="btn btn-primary">Siehe vollständige Informationen</a>
</div><!-- end widget --> </div><!-- end widget -->
<div class="widget"> <div class="widget">
<div id="tabbed_widget" class="tabbable"> <div id="tabbed_widget" class="tabbable">
<ul class="nav nav-tabs"> <ul class="nav nav-tabs">
...@@ -212,12 +213,12 @@ ...@@ -212,12 +213,12 @@
<h2>{!! $vwidget_right->title_design !!}</h2> <h2>{!! $vwidget_right->title_design !!}</h2>
</div><!-- end title --> </div><!-- end title -->
{!! $vwidget_right->value_design !!} {!! $vwidget_right->value_design !!}
</div><!-- end widget --> </div><!-- end widget -->
@endforeach @endforeach
</div><!-- end content --> </div><!-- end content -->
</div><!-- end container --> </div><!-- end container -->
</section><!--end white-wrapper --> </section><!--end white-wrapper -->
@endif
{{-- 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)
...@@ -242,7 +243,7 @@ ...@@ -242,7 +243,7 @@
@endif @endif
{{-- Label Gallery --}} {{-- Label Gallery --}}
@if(!isset($setting['gallery']) || strtolower($setting['gallery']) == '1' || strtolower($setting['gallery']) == 'on') @if(!isset($setting['gallery']) || strtolower($setting['gallery']) == '1' || strtolower($setting['gallery']) == 'on')
@if ($gallery->count() != 0) @if ($gallery->count() != 0)
<section class="panel-wrapper jt-shadow"> <section class="panel-wrapper jt-shadow">
<div class="container"> <div class="container">
...@@ -257,13 +258,13 @@ ...@@ -257,13 +258,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">
...@@ -273,12 +274,12 @@ ...@@ -273,12 +274,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;">
...@@ -343,7 +344,7 @@ ...@@ -343,7 +344,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">
...@@ -375,4 +376,4 @@ ...@@ -375,4 +376,4 @@
</ol> </ol>
</div> </div>
</section><!-- make bg --> </section><!-- make bg -->
@endsection @endsection
\ No newline at end of file
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<!-- <link rel="stylesheet" href="https://cdn.datatables.net/1.10.24/css/jquery.dataTables.min.css"> <!-- <link rel="stylesheet" href="https://cdn.datatables.net/1.10.24/css/jquery.dataTables.min.css">
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.24/css/dataTables.bootstrap4.min.css"> --> <link rel="stylesheet" href="https://cdn.datatables.net/1.10.24/css/dataTables.bootstrap4.min.css"> -->
<link rel="stylesheet" href="{!! asset('backend/js/datatables.net-bs/css/dataTables.bootstrap.min.css') !!}"> {{-- <link rel="stylesheet" href="{!! asset('backend/js/datatables.net-bs/css/dataTables.bootstrap.min.css') !!}"> --}}
<style> <style>
...@@ -82,15 +82,7 @@ tr.group:hover { ...@@ -82,15 +82,7 @@ tr.group:hover {
@endsection @endsection
@section('scripts') @section('scripts')
<script src="{!!asset('backend/js/datatables.net/js/jquery.dataTables.min.js') !!}"></script>
<script src="{!!asset('backend/js/datatables.net-bs/js/dataTables.bootstrap.min.js') !!}"></script>
<!-- <script src="{!!asset('backend/js/datatables.net-bs/js/dataTables.bootstrap.min.js') !!}"></script> -->
<!-- <script src="{{ url('backend/assets/plugins/jquery-datatable/buttons/dataTables.buttons.min.js') }}"></script>
<script src="{{ url('backend/assets/plugins/jquery-datatable/buttons/buttons.bootstrap4.min.js') }}"></script>
<script src="{{ url('backend/assets/plugins/jquery-datatable/buttons/buttons.colVis.min.js') }}"></script>
<script src="{{ url('backend/assets/plugins/jquery-datatable/buttons/buttons.html5.min.js') }}"></script>
<script src="{{ url('backend/assets/plugins/jquery-datatable/buttons/buttons.print.min.js') }}"></script> -->
<script> <script>
// var url = "{{ route('download') }}"; // var url = "{{ route('download') }}";
......
...@@ -53,6 +53,7 @@ ...@@ -53,6 +53,7 @@
</section> </section>
@endif @endif
@endif @endif
@if(!isset($setting['default_content']) || strtolower($setting['default_content'] == 'tampil'))
<section class="blog-wrapper"> <section class="blog-wrapper">
<div class="container"> <div class="container">
<div id="content" class="col-lg-8 col-md-8 col-sm-12 col-xs-12"> <div id="content" class="col-lg-8 col-md-8 col-sm-12 col-xs-12">
...@@ -130,7 +131,7 @@ ...@@ -130,7 +131,7 @@
</script> </script>
<script src="http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script> <script src="http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
</div> --}} </div> --}}
<div class="widget"> <div class="widget">
<div class="title"> <div class="title">
<h2>AGENDA</h2> <h2>AGENDA</h2>
...@@ -146,7 +147,7 @@ ...@@ -146,7 +147,7 @@
<a href="{!! url('agendas') !!}" class="btn btn-primary">See Full Agenda</a> <a href="{!! url('agendas') !!}" class="btn btn-primary">See Full Agenda</a>
</div><!-- end widget --> </div><!-- end widget -->
<div class="widget"> <div class="widget">
<div class="title"> <div class="title">
<h2>Information</h2> <h2>Information</h2>
...@@ -213,14 +214,14 @@ ...@@ -213,14 +214,14 @@
<h2>{!! $vwidget_right->title_design !!}</h2> <h2>{!! $vwidget_right->title_design !!}</h2>
</div><!-- end title --> </div><!-- end title -->
{!! $vwidget_right->value_design !!} {!! $vwidget_right->value_design !!}
</div><!-- end widget --> </div><!-- end widget -->
@endforeach @endforeach
</div><!-- end content --> </div><!-- end content -->
</div><!-- end container --> </div><!-- end container -->
</section><!--end white-wrapper --> </section><!--end white-wrapper -->
@endif
{{-- 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)
<section class="panel-wrapper jt-shadow" style="padding-bottom: 25px;"> <section class="panel-wrapper jt-shadow" style="padding-bottom: 25px;">
...@@ -244,7 +245,7 @@ ...@@ -244,7 +245,7 @@
@endif @endif
{{-- Label Gallery --}} {{-- Label Gallery --}}
@if(!isset($setting['gallery']) || strtolower($setting['gallery']) == '1' || strtolower($setting['gallery']) == 'on') @if(!isset($setting['gallery']) || strtolower($setting['gallery']) == '1' || strtolower($setting['gallery']) == 'on')
@if ($gallery->count() != 0) @if ($gallery->count() != 0)
<section class="panel-wrapper jt-shadow"> <section class="panel-wrapper jt-shadow">
<div class="container"> <div class="container">
...@@ -259,13 +260,13 @@ ...@@ -259,13 +260,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">
...@@ -275,12 +276,12 @@ ...@@ -275,12 +276,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;">
...@@ -345,7 +346,7 @@ ...@@ -345,7 +346,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">
<div id="myCarousel" class="carousel slide" data-ride="carousel"> <div id="myCarousel" class="carousel slide" data-ride="carousel">
...@@ -376,4 +377,4 @@ ...@@ -376,4 +377,4 @@
</ol> </ol>
</div> </div>
</section><!-- make bg --> </section><!-- make bg -->
@endsection @endsection
\ No newline at end of file
...@@ -48,14 +48,16 @@ ...@@ -48,14 +48,16 @@
</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><!-- end title -->
<div class="row"> <div class="row">
<div class="blog-masonry"> <div class="blog-masonry">
...@@ -86,7 +88,7 @@ ...@@ -86,7 +88,7 @@
</div><!-- end blog-carousel-header --> </div><!-- end blog-carousel-header -->
<div class="blog-carousel-desc"> <div class="blog-carousel-desc">
{{-- <p>{!! substr(html_entity_decode($value->content),0 , 250) !!}</p> --}} {{-- <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>{!! substr(strip_tags(html_entity_decode($value->content,ENT_COMPAT,"UTF-8")),0 , 250) !!}</p>
{{-- <p>{!! $value->content !!}</p> --}} {{-- <p>{!! $value->content !!}</p> --}}
</div><!-- end blog-carousel-desc --> </div><!-- end blog-carousel-desc -->
</div><!-- end blog-carousel --> </div><!-- end blog-carousel -->
...@@ -95,124 +97,128 @@ ...@@ -95,124 +97,128 @@
@endforeach @endforeach
</div><!-- end blog-masonry --> </div><!-- end blog-masonry -->
<div class="clearfix"></div> <div class="clearfix"></div>
<hr>
<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
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
<a href="{!! url('post/'.$value->slug) !!}"><h2 style="color: #ffffff;">{{$value->title}}</h2></a> <a href="{!! url('post/'.$value->slug) !!}"><h2 style="color: #ffffff;">{{$value->title}}</h2></a>
</div><!-- end title --> </div><!-- end title -->
<div class="shop_desc"> <div class="shop_desc">
<p style="color: #ffffff;">{!! strip_tags(substr(html_entity_decode($value->content,ENT_COMPAT,"UTF-8"),0 , 250)) !!}</p> <p style="color: #ffffff;">{!! substr(strip_tags(html_entity_decode($value->content,ENT_COMPAT,"UTF-8")),0 , 250) !!}</p>
</div><!-- end shop_desc --> </div><!-- end shop_desc -->
<div class="blog-carousel-meta"> <div class="blog-carousel-meta">
<span style="color: #ffffff;"><i class="fa fa-calendar"></i> {!! InseoHelper::tglbulanindo2($value->post_date) !!}</span> <span style="color: #ffffff;"><i class="fa fa-calendar"></i> {!! InseoHelper::tglbulanindo2($value->post_date) !!}</span>
......
...@@ -113,7 +113,8 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= ...@@ -113,7 +113,8 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
<!-- SLIDER REVOLUTION 4.x CSS SETTINGS --> <!-- SLIDER REVOLUTION 4.x CSS SETTINGS -->
<link rel="stylesheet" type="text/css" href="https://statik.unesa.ac.id/profileunesa_konten_statik/front/rs-plugin/css/settings.css" media="screen" /> <link rel="stylesheet" type="text/css" href="https://statik.unesa.ac.id/profileunesa_konten_statik/front/rs-plugin/css/settings.css" media="screen" />
{{-- datatables --}}
<link rel="stylesheet" href="{!! asset('backend/js/datatables.net-bs/css/dataTables.bootstrap.min.css') !!}">
@yield('assets') @yield('assets')
</head> </head>
<body> <body>
...@@ -251,7 +252,6 @@ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> ...@@ -251,7 +252,6 @@ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- SLIDER REVOLUTION 4.x SCRIPTS --> <!-- SLIDER REVOLUTION 4.x SCRIPTS -->
<script type="text/javascript" src="https://statik.unesa.ac.id/profileunesa_konten_statik/front/rs-plugin/js/jquery.themepunch.plugins.min.js"></script> <script type="text/javascript" src="https://statik.unesa.ac.id/profileunesa_konten_statik/front/rs-plugin/js/jquery.themepunch.plugins.min.js"></script>
<script type="text/javascript" src="https://statik.unesa.ac.id/profileunesa_konten_statik/front/rs-plugin/js/jquery.themepunch.revolution.min.js"></script> <script type="text/javascript" src="https://statik.unesa.ac.id/profileunesa_konten_statik/front/rs-plugin/js/jquery.themepunch.revolution.min.js"></script>
@yield('scripts')
<script src="https://www.unesa.ac.id/assets/js/jquery.prettyPhoto.js"></script> <script src="https://www.unesa.ac.id/assets/js/jquery.prettyPhoto.js"></script>
<script type="text/javascript"> <script type="text/javascript">
(function($) { (function($) {
...@@ -307,5 +307,19 @@ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> ...@@ -307,5 +307,19 @@ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<script type="text/javascript" src="https://statik.unesa.ac.id/profileunesa_konten_statik/front/switcher/js/fswit.js"></script> <script type="text/javascript" src="https://statik.unesa.ac.id/profileunesa_konten_statik/front/switcher/js/fswit.js"></script>
<script src="https://statik.unesa.ac.id/profileunesa_konten_statik/front/switcher/js/bootstrap-select.js"></script> <script src="https://statik.unesa.ac.id/profileunesa_konten_statik/front/switcher/js/bootstrap-select.js"></script>
<script src="{!!asset('backend/js/datatables.net/js/jquery.dataTables.min.js') !!}"></script>
<script src="{!!asset('backend/js/datatables.net-bs/js/dataTables.bootstrap.min.js') !!}"></script>
<!-- <script src="{!!asset('backend/js/datatables.net-bs/js/dataTables.bootstrap.min.js') !!}"></script> -->
<!-- <script src="{{ url('backend/assets/plugins/jquery-datatable/buttons/dataTables.buttons.min.js') }}"></script>
<script src="{{ url('backend/assets/plugins/jquery-datatable/buttons/buttons.bootstrap4.min.js') }}"></script>
<script src="{{ url('backend/assets/plugins/jquery-datatable/buttons/buttons.colVis.min.js') }}"></script>
<script src="{{ url('backend/assets/plugins/jquery-datatable/buttons/buttons.html5.min.js') }}"></script>
<script src="{{ url('backend/assets/plugins/jquery-datatable/buttons/buttons.print.min.js') }}"></script> -->
@yield('scripts')
</body> </body>
</html> </html>
...@@ -97,6 +97,8 @@ ...@@ -97,6 +97,8 @@
<!-- SLIDER REVOLUTION 4.x CSS SETTINGS --> <!-- SLIDER REVOLUTION 4.x CSS SETTINGS -->
<link rel="stylesheet" type="text/css" href="https://statik.unesa.ac.id/profileunesa_konten_statik/front/rs-plugin/css/settings.css" media="screen" /> <link rel="stylesheet" type="text/css" href="https://statik.unesa.ac.id/profileunesa_konten_statik/front/rs-plugin/css/settings.css" media="screen" />
{{-- datatables --}}
<link rel="stylesheet" href="{!! asset('backend/js/datatables.net-bs/css/dataTables.bootstrap.min.css') !!}">
@yield('assets') @yield('assets')
</head> </head>
...@@ -231,7 +233,7 @@ ...@@ -231,7 +233,7 @@
<!-- SLIDER REVOLUTION 4.x SCRIPTS --> <!-- SLIDER REVOLUTION 4.x SCRIPTS -->
<script type="text/javascript" src="https://statik.unesa.ac.id/profileunesa_konten_statik/front/rs-plugin/js/jquery.themepunch.plugins.min.js"></script> <script type="text/javascript" src="https://statik.unesa.ac.id/profileunesa_konten_statik/front/rs-plugin/js/jquery.themepunch.plugins.min.js"></script>
<script type="text/javascript" src="https://statik.unesa.ac.id/profileunesa_konten_statik/front/rs-plugin/js/jquery.themepunch.revolution.min.js"></script> <script type="text/javascript" src="https://statik.unesa.ac.id/profileunesa_konten_statik/front/rs-plugin/js/jquery.themepunch.revolution.min.js"></script>
@yield('scripts')
<script src="https://www.unesa.ac.id/assets/js/jquery.prettyPhoto.js"></script> <script src="https://www.unesa.ac.id/assets/js/jquery.prettyPhoto.js"></script>
<script type="text/javascript"> <script type="text/javascript">
(function($) { (function($) {
...@@ -287,5 +289,17 @@ ...@@ -287,5 +289,17 @@
<script type="text/javascript" src="https://statik.unesa.ac.id/profileunesa_konten_statik/front/switcher/js/fswit.js"></script> <script type="text/javascript" src="https://statik.unesa.ac.id/profileunesa_konten_statik/front/switcher/js/fswit.js"></script>
<script src="https://statik.unesa.ac.id/profileunesa_konten_statik/front/switcher/js/bootstrap-select.js"></script> <script src="https://statik.unesa.ac.id/profileunesa_konten_statik/front/switcher/js/bootstrap-select.js"></script>
<script src="{!!asset('backend/js/datatables.net/js/jquery.dataTables.min.js') !!}"></script>
<script src="{!!asset('backend/js/datatables.net-bs/js/dataTables.bootstrap.min.js') !!}"></script>
<!-- <script src="{!!asset('backend/js/datatables.net-bs/js/dataTables.bootstrap.min.js') !!}"></script> -->
<!-- <script src="{{ url('backend/assets/plugins/jquery-datatable/buttons/dataTables.buttons.min.js') }}"></script>
<script src="{{ url('backend/assets/plugins/jquery-datatable/buttons/buttons.bootstrap4.min.js') }}"></script>
<script src="{{ url('backend/assets/plugins/jquery-datatable/buttons/buttons.colVis.min.js') }}"></script>
<script src="{{ url('backend/assets/plugins/jquery-datatable/buttons/buttons.html5.min.js') }}"></script>
<script src="{{ url('backend/assets/plugins/jquery-datatable/buttons/buttons.print.min.js') }}"></script> -->
@yield('scripts')
</body> </body>
</html> </html>
...@@ -36,3 +36,14 @@ ...@@ -36,3 +36,14 @@
</div><!-- end container --> </div><!-- end container -->
</section><!--end white-wrapper --> </section><!--end white-wrapper -->
@endsection @endsection
@section('scripts')
<script>
$(document).ready(function() {
var table1 = $('.data-table-ori').DataTable();
} );
</script>
@stop
\ No newline at end of file
...@@ -52,6 +52,7 @@ ...@@ -52,6 +52,7 @@
</section> </section>
@endif @endif
@endif @endif
@if(!isset($setting['default_content']) || strtolower($setting['default_content'] == 'tampil'))
<section class="blog-wrapper"> <section class="blog-wrapper">
<div class="container"> <div class="container">
<div id="content" class="col-lg-8 col-md-8 col-sm-12 col-xs-12"> <div id="content" class="col-lg-8 col-md-8 col-sm-12 col-xs-12">
...@@ -129,7 +130,7 @@ ...@@ -129,7 +130,7 @@
</script> </script>
<script src="http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script> <script src="http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
</div> --}} </div> --}}
<div class="widget"> <div class="widget">
<div class="title"> <div class="title">
<h2>议程</h2> <h2>议程</h2>
...@@ -145,7 +146,7 @@ ...@@ -145,7 +146,7 @@
<a href="{!! url('agendas') !!}" class="btn btn-primary">查看完整议程</a> <a href="{!! url('agendas') !!}" class="btn btn-primary">查看完整议程</a>
</div><!-- end widget --> </div><!-- end widget -->
<div class="widget"> <div class="widget">
<div class="title"> <div class="title">
<h2>信息</h2> <h2>信息</h2>
...@@ -160,9 +161,9 @@ ...@@ -160,9 +161,9 @@
</ul> </ul>
<a href="{!! url('informations') !!}" class="btn btn-primary"> <a href="{!! url('informations') !!}" class="btn btn-primary">
查看完整信息</a> 查看完整信息</a>
</div><!-- end widget --> </div><!-- end widget -->
<div class="widget"> <div class="widget">
<div id="tabbed_widget" class="tabbable"> <div id="tabbed_widget" class="tabbable">
<ul class="nav nav-tabs"> <ul class="nav nav-tabs">
...@@ -213,12 +214,12 @@ ...@@ -213,12 +214,12 @@
<h2>{!! $vwidget_right->title_design !!}</h2> <h2>{!! $vwidget_right->title_design !!}</h2>
</div><!-- end title --> </div><!-- end title -->
{!! $vwidget_right->value_design !!} {!! $vwidget_right->value_design !!}
</div><!-- end widget --> </div><!-- end widget -->
@endforeach @endforeach
</div><!-- end content --> </div><!-- end content -->
</div><!-- end container --> </div><!-- end container -->
</section><!--end white-wrapper --> </section><!--end white-wrapper -->
@endif
{{-- 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)
...@@ -244,7 +245,7 @@ ...@@ -244,7 +245,7 @@
{{-- Label Gallery --}} {{-- Label Gallery --}}
@if(!isset($setting['gallery']) || strtolower($setting['gallery']) == '1' || strtolower($setting['gallery']) == 'on') @if(!isset($setting['gallery']) || strtolower($setting['gallery']) == '1' || strtolower($setting['gallery']) == 'on')
@if ($gallery->count() != 0) @if ($gallery->count() != 0)
<section class="panel-wrapper jt-shadow"> <section class="panel-wrapper jt-shadow">
<div class="container"> <div class="container">
...@@ -259,13 +260,13 @@ ...@@ -259,13 +260,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">
...@@ -275,12 +276,12 @@ ...@@ -275,12 +276,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;">
...@@ -345,7 +346,7 @@ ...@@ -345,7 +346,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">
...@@ -377,4 +378,4 @@ ...@@ -377,4 +378,4 @@
</ol> </ol>
</div> </div>
</section><!-- make bg --> </section><!-- make bg -->
@endsection @endsection
\ No newline at end of file
...@@ -61,12 +61,14 @@ ...@@ -61,12 +61,14 @@
</ul> </ul>
</li> </li>
@elseif($setting['layout_menu'] == 1) @elseif($setting['layout_menu'] == 1)
<li class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle">{!! $value->rZh->name !!} <div class="arrow-up"></div></a> <li class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle">@if ($value->rZh) {!! $value->rZh->name !!} @endif <div class="arrow-up"></div></a>
<ul class="dropdown-menu" role="menu"> <ul class="dropdown-menu" role="menu">
@foreach ($menu as $valuec) @foreach ($menu as $valuec)
@if($valuec->parent == $value->id) @if($valuec->parent == $value->id)
@if($valuec->url) @if($valuec->url)
@if ($valuec->rZh)
<li><a href="{!! url((string)$valuec->url) !!}">{!! $valuec->rZh->name !!}</a></li> <li><a href="{!! url((string)$valuec->url) !!}">{!! $valuec->rZh->name !!}</a></li>
@endif
@else @else
<li class="dropdown-submenu"> <li class="dropdown-submenu">
<b> <a href="#">{!! $valuec->name !!}</a> </b> <b> <a href="#">{!! $valuec->name !!}</a> </b>
...@@ -75,19 +77,21 @@ ...@@ -75,19 +77,21 @@
@if($valuec2->parent == $valuec->id) @if($valuec2->parent == $valuec->id)
@if($valuec2->url) @if($valuec2->url)
@if ($valuec2->rZh)
<li><a href="{!! url((string)$valuec2->url) !!}">{!! $valuec2->rZh->name !!}</a></li> <li><a href="{!! url((string)$valuec2->url) !!}">{!! $valuec2->rZh->name !!}</a></li>
@endif
@else @else
<li class="dropdown-submenu"> <li class="dropdown-submenu">
@if ($valuec2->rZh)
<b> <a href="#">{!! $valuec2->rZh->name !!}</a></b> <b> <a href="#">{!! $valuec2->rZh->name !!}</a></b>
@endif
<ul class="dropdown-menu"> <ul class="dropdown-menu">
@foreach($menu as $valuec3) @foreach($menu as $valuec3)
@if($valuec3->parent == $valuec2->id) @if($valuec3->parent == $valuec2->id)
@if ($valuec3->rZh)
<li><a href="{!! url((string)$valuec3->url) !!}" target="_blank">{!! $valuec3->rZh->name !!}</a></li> <li><a href="{!! url((string)$valuec3->url) !!}" target="_blank">{!! $valuec3->rZh->name !!}</a></li>
@endif
@endif @endif
@endforeach @endforeach
......
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