Commit 4102d324 by Aan Choesni Herlingga

jika tidak ada bhs inggris

parent 7cb34f95
...@@ -23,7 +23,9 @@ ...@@ -23,7 +23,9 @@
@if ($title != 'Agenda') @if ($title != 'Agenda')
<div class="row"> <div class="row">
<div class="headline"> <div class="headline">
<h2><a href="{!! url('post/'.$value->slug) !!}">{!! $value->rEn->title !!}</a></h2> @if ($value->rEn)
<h2><a href="{!! url('post/'.$value->slug) !!}">{!! $value->rEn->title !!}</a></h2>
@endif
</div> </div>
<div class="news-text"> <div class="news-text">
<div class="col-lg-4"> <div class="col-lg-4">
...@@ -40,15 +42,19 @@ ...@@ -40,15 +42,19 @@
</a> </a>
</div> </div>
<strong>{!! InseoHelper::tglbulanindo2($value->post_date) !!}</strong> <strong>{!! InseoHelper::tglbulanindo2($value->post_date) !!}</strong>
@if ($value->rEn)
<p>{!! strip_tags(substr(html_entity_decode($value->rEn->content,ENT_COMPAT,"UTF-8"),0 , 250)) !!}</p> <p>{!! strip_tags(substr(html_entity_decode($value->rEn->content,ENT_COMPAT,"UTF-8"),0 , 250)) !!}</p>
<br> <br>
@endif
<a class="pull-right" style="padding-right: 20px;" href="{!! url('post/'.$value->slug) !!}">Read more &raquo;&raquo;</a> <a class="pull-right" style="padding-right: 20px;" href="{!! url('post/'.$value->slug) !!}">Read more &raquo;&raquo;</a>
</div> </div>
</div> </div>
@else @else
<div class="row"> <div class="row">
<div class="headline"> <div class="headline">
@if ($value->rEn)
<h2><a target="_blank" href="{!! url('info/'.$value->slug) !!}">{!! $value->rEn->title !!}</a></h2> <h2><a target="_blank" href="{!! url('info/'.$value->slug) !!}">{!! $value->rEn->title !!}</a></h2>
@endif
</div> </div>
<div class="news-text"> <div class="news-text">
<strong> {!! InseoHelper::tglbulanindo2($value->event_date) !!}</strong> — <strong> {!! InseoHelper::tglbulanindo2($value->event_date) !!}</strong> —
......
...@@ -49,7 +49,9 @@ ...@@ -49,7 +49,9 @@
@endif @endif
</div> </div>
<div class="blog-carousel-header"> <div class="blog-carousel-header">
@if ($value->rEn)
<h3><a title="{!! $value->title !!}" href="{!! url('post/'.$value->slug) !!}">{!! $value->rEn->title !!}</a></h3> <h3><a title="{!! $value->title !!}" href="{!! url('post/'.$value->slug) !!}">{!! $value->rEn->title !!}</a></h3>
@endif
<div class="blog-carousel-meta"> <div class="blog-carousel-meta">
<span><i class="fa fa-calendar"></i> {!! InseoHelper::tglbulanindo2($value->post_date) !!}</span> <span><i class="fa fa-calendar"></i> {!! InseoHelper::tglbulanindo2($value->post_date) !!}</span>
@if($value->comment_status) @if($value->comment_status)
...@@ -60,7 +62,9 @@ ...@@ -60,7 +62,9 @@
</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> --}}
@if ($value->rEn)
<p>{!! strip_tags(substr(html_entity_decode($value->rEn->content,ENT_COMPAT,"UTF-8"),0 , 250)) !!}</p> <p>{!! strip_tags(substr(html_entity_decode($value->rEn->content,ENT_COMPAT,"UTF-8"),0 , 250)) !!}</p>
@endif
{{-- <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 -->
...@@ -103,7 +107,7 @@ ...@@ -103,7 +107,7 @@
<ul class="recent_posts_widget"> <ul class="recent_posts_widget">
@foreach($info as $value) @foreach($info as $value)
<li> <li>
<a href="{!! url('info/'.$value->slug) !!}"><img src="https://www.unesa.ac.id/assets/demos/logounesa.png" alt="">{!! $value->rEn->title !!}</a> <a href="{!! url('info/'.$value->slug) !!}"><img src="https://www.unesa.ac.id/assets/demos/logounesa.png" alt="">@if ($value->rEn) {!! $value->rEn->title !!} @endif</a>
<a class="readmore" href="#">{!! InseoHelper::tglbulanindo2($value->event_date) !!}</a> <a class="readmore" href="#">{!! InseoHelper::tglbulanindo2($value->event_date) !!}</a>
</li> </li>
@endforeach @endforeach
...@@ -129,7 +133,7 @@ ...@@ -129,7 +133,7 @@
@else @else
<img src="{{ url('/storage/thumbnail/' . $value->thumbnail) }}" alt=""> <img src="{{ url('/storage/thumbnail/' . $value->thumbnail) }}" alt="">
@endif @endif
@endif{!! $value->rEn->title !!} @endif @if ($value->rEn) {!! $value->rEn->title !!} @endif
</a> </a>
<a class="readmore" href="{!! url('post/'.$value->slug) !!}">{!! InseoHelper::tglbulanindo2($value->post_date) !!}</a> <a class="readmore" href="{!! url('post/'.$value->slug) !!}">{!! InseoHelper::tglbulanindo2($value->post_date) !!}</a>
</li> </li>
...@@ -145,7 +149,7 @@ ...@@ -145,7 +149,7 @@
@else @else
<img src="{{ url('/storage/thumbnail/' . $value->thumbnail) }}" alt="" class="img-responsive" style="height: 150px; width: auto;"> <img src="{{ url('/storage/thumbnail/' . $value->thumbnail) }}" alt="" class="img-responsive" style="height: 150px; width: auto;">
@endif @endif
@endif{!! $value->rEn->title !!}</a> @endif @if ($value->rEn) {!! $value->rEn->title !!} @endif</a>
<a class="readmore" href="{!! url('post/'.$value->slug) !!}">{!! InseoHelper::tglbulanindo2($value->post_date) !!}</a> <a class="readmore" href="{!! url('post/'.$value->slug) !!}">{!! InseoHelper::tglbulanindo2($value->post_date) !!}</a>
</li> </li>
@endforeach @endforeach
......
...@@ -18,14 +18,18 @@ ...@@ -18,14 +18,18 @@
<div class="col-lg-12"> <div class="col-lg-12">
<div class="blog-carousel"> <div class="blog-carousel">
<div class="blog-carousel-header"> <div class="blog-carousel-header">
@if ($data->rEn)
<h1>{!! $data->rEn->title !!}</h1> <h1>{!! $data->rEn->title !!}</h1>
@endif
<div class="blog-carousel-meta"> <div class="blog-carousel-meta">
<span><i class="fa fa-eye"></i> <a href="#">{!! $data->viewer !!} Views</a></span> <span><i class="fa fa-eye"></i> <a href="#">{!! $data->viewer !!} Views</a></span>
{{-- <span><i class="fa fa-user"></i> <a href="#">Redaksi</a></span> --}} {{-- <span><i class="fa fa-user"></i> <a href="#">Redaksi</a></span> --}}
</div><!-- end blog-carousel-meta --> </div><!-- end blog-carousel-meta -->
</div><!-- end blog-carousel-header --> </div><!-- end blog-carousel-header -->
<div class="blog-carousel-desc"> <div class="blog-carousel-desc">
@if ($data->rEn)
{!! $data->rEn->content !!} {!! $data->rEn->content !!}
@endif
</div> </div>
</div> </div>
</div> </div>
......
@foreach ($menu as $value) @foreach ($menu as $value)
@if(!$value->parent) @if(!$value->parent)
@if($value->url) @if($value->url)
<li><a href="{!! url((string)$value->url) !!}">{!! $value->rEn->name !!}</a></li> <li><a href="{!! url((string)$value->url) !!}">@if ($value->rEn) {!! $value->rEn->name !!} @endif</a></li>
@else @else
<li class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle">{!! $value->rEn->name !!} <div class="arrow-up"></div></a> <li class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle">{!! $value->rEn->name !!} <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->rEn)
<li><a href="{!! url((string)$valuec->url) !!}">{!! $valuec->rEn->name !!}</a></li> <li><a href="{!! url((string)$valuec->url) !!}">{!! $valuec->rEn->name !!}</a></li>
@endif
@else @else
<li class="dropdown-submenu"> <li class="dropdown-submenu">
@if ($valuec->rEn)
<a href="#">{!! $valuec->rEn->name !!}</a> <a href="#">{!! $valuec->rEn->name !!}</a>
@endif
<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->rEn)
<li><a href="{!! url((string)$valuec2->url) !!}">{!! $valuec2->rEn->name !!}</a></li> <li><a href="{!! url((string)$valuec2->url) !!}">{!! $valuec2->rEn->name !!}</a></li>
@endif
@endif @endif
@endforeach @endforeach
</ul> </ul>
......
...@@ -4,7 +4,9 @@ ...@@ -4,7 +4,9 @@
<section class="post-wrapper-top jt-shadow clearfix"> <section class="post-wrapper-top jt-shadow clearfix">
<div class="container"> <div class="container">
<div class="col-lg-12"> <div class="col-lg-12">
@if ($data->rEn)
<h2>{!! $data->rEn->title !!}</h2> <h2>{!! $data->rEn->title !!}</h2>
@endif
</div> </div>
</div> </div>
</section><!-- end post-wrapper-top --> </section><!-- end post-wrapper-top -->
...@@ -13,7 +15,9 @@ ...@@ -13,7 +15,9 @@
<div class="container"> <div class="container">
<div class="row"> <div class="row">
<div id="main-content" class="col-md-12" role="main" align="justify"> <div id="main-content" class="col-md-12" role="main" align="justify">
@if ($data->rEn)
{!! $data->rEn->content !!} {!! $data->rEn->content !!}
@endif
</div> </div>
</div> </div>
</div><!-- end title --> </div><!-- end title -->
......
...@@ -4,7 +4,9 @@ ...@@ -4,7 +4,9 @@
<section class="post-wrapper-top jt-shadow clearfix"> <section class="post-wrapper-top jt-shadow clearfix">
<div class="container"> <div class="container">
<div class="col-lg-12"> <div class="col-lg-12">
@if ($data->rEn)
<h2>{!! $data->rEn->title !!}</h2> <h2>{!! $data->rEn->title !!}</h2>
@endif
</div> </div>
</div> </div>
</section><!-- end post-wrapper-top --> </section><!-- end post-wrapper-top -->
...@@ -18,10 +20,12 @@ ...@@ -18,10 +20,12 @@
<div class="col-lg-12"> <div class="col-lg-12">
<div class="blog-carousel"> <div class="blog-carousel">
<div class="blog-carousel-header"> <div class="blog-carousel-header">
@if ($data->rEn)
<h1>{!! $data->rEn->title !!}</h1> <h1>{!! $data->rEn->title !!}</h1>
@endif
<div class="blog-carousel-meta"> <div class="blog-carousel-meta">
<span><i class="fa fa-calendar"></i> <span><i class="fa fa-calendar"></i>
<time title="{!! $data->post_data !!}" datetime="{!! $data->post_data !!}">{!! InseoHelper::tglbulanindo2($data->post_date) !!}</time> - kategori <a href="#">{!! $data->rCategory->rEn->name !!}</a></span> <time title="{!! $data->post_data !!}" datetime="{!! $data->post_data !!}">{!! InseoHelper::tglbulanindo2($data->post_date) !!}</time> - kategori <a href="#">@if ($data->rCategory->rEn) {!! $data->rCategory->rEn->name !!} @endif</a></span>
<span><i class="fa fa-eye"></i> <a href="#">{!! $data->viewer !!} Views</a></span> <span><i class="fa fa-eye"></i> <a href="#">{!! $data->viewer !!} Views</a></span>
{{-- <span><i class="fa fa-user"></i> <a href="#">Redaksi</a></span> --}} {{-- <span><i class="fa fa-user"></i> <a href="#">Redaksi</a></span> --}}
</div><!-- end blog-carousel-meta --> </div><!-- end blog-carousel-meta -->
...@@ -45,13 +49,17 @@ ...@@ -45,13 +49,17 @@
<div class="content_kaitan"> <div class="content_kaitan">
<ul class="ul_kaitan nav nav-tabs nav-stacked"> <ul class="ul_kaitan nav nav-tabs nav-stacked">
@foreach($terkait as $valTerkait) @foreach($terkait as $valTerkait)
@if ($valTerkait->rEn)
<li><strong><a title="{!! $valTerkait->rEn->title !!}" href="{!! url('post/'.$valTerkait->slug) !!}">{!! $valTerkait->rEn->title !!}</a></strong></li> <li><strong><a title="{!! $valTerkait->rEn->title !!}" href="{!! url('post/'.$valTerkait->slug) !!}">{!! $valTerkait->rEn->title !!}</a></strong></li>
@endif
@endforeach @endforeach
</ul> </ul>
</div> </div>
</div> </div>
</div> </div>
@if ($data->rEn)
{!! $data->rEn->content !!} {!! $data->rEn->content !!}
@endif
</div> </div>
</div> </div>
</div> </div>
......
...@@ -4,14 +4,18 @@ ...@@ -4,14 +4,18 @@
<h2>Category</h2> <h2>Category</h2>
<ul class="nav nav-tabs nav-stacked"> <ul class="nav nav-tabs nav-stacked">
@foreach($categories as $value) @foreach($categories as $value)
@if ($value->rEn)
<li><a class="unesa-link" href="{!! url('category/'.$value->name) !!}">{!! $value->rEn->name !!}</a></li> <li><a class="unesa-link" href="{!! url('category/'.$value->name) !!}">{!! $value->rEn->name !!}</a></li>
@endif
@endforeach @endforeach
</ul> </ul>
<h2>latest article</h2> <h2>latest article</h2>
<ul class="nav nav-tabs nav-stacked"> <ul class="nav nav-tabs nav-stacked">
@foreach($hot as $value) @foreach($hot as $value)
@if ($value->rEn)
<li><a class="unesa-link" href="{!! url('post/'.$value->slug) !!}">{!! $value->rEn->title !!}</a></li> <li><a class="unesa-link" href="{!! url('post/'.$value->slug) !!}">{!! $value->rEn->title !!}</a></li>
@endif
@endforeach @endforeach
</ul> </ul>
......
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