post.blade.php 7.23 KB
Newer Older
1
@extends('webprofile.front.jollyany.master2')
2

Bagus Pambudi committed
3
@section('meta')
4 5 6 7
<title>{{$data->rZh?$data->rZh->title:$data->title}}</title>
<meta name="description" content="{!! strip_tags(substr(html_entity_decode($data->rZh?$data->rZh->content:$data->content,ENT_COMPAT,"UTF-8"),0 , 200)) !!}">
<meta name="keywords" content="{{ $data->rZh?$data->rZh->keys:$data->keys }}">
<meta name="author" content="{{ $setting['header_admin'] }}">
Siti Aisah committed
8
{{-- <link rel="alternate" hreflang="{{Session::get('selected_language')}}" href="{{ url('post/'.$data->slug) }}" />
9
<link rel="alternate" hreflang="en-us" href="{{ url('') }}" />
Siti Aisah committed
10
<link rel="canonical" href="{{ url('') }}" /> --}}
Bagus Pambudi committed
11
@endsection
12 13 14 15 16 17
@section('content')
  <section class="post-wrapper-top jt-shadow clearfix">
    <div class="container">
      <div class="col-lg-12">
        @if ($data->rZh)
          <h2>{!! $data->rZh->title !!}</h2>
18 19
          @else
          <h2>{!! $data->title !!}</h2>
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
        @endif
      </div>
    </div>
  </section><!-- end post-wrapper-top -->

  <section class="blog-wrapper">
    <div class="container">
        <div class="row">
          <div id="main-content" class="col-lg-8 col-md-8 col-sm-12 col-xs-12">
            <div class="row">
              <div class="blog-masonry">
                <div class="col-lg-12">
                  <div class="blog-carousel">
                    <div class="blog-carousel-header">
                      @if ($data->rZh)
35
                      <h1>{!! $data->rZh->title?$data->rZh->title:$data->title !!}</h1>
36 37
                      @else
                      <h1>{!! $data->title !!}</h1>
38 39 40
                      @endif
                      <div class="blog-carousel-meta">
                          <span><i class="fa fa-calendar"></i>
41
                          <time title="{!! $data->post_data !!}" datetime="{!! $data->post_data !!}">{!! InseoHelper::tglbulanindo2($data->post_date) !!}</time> - kategori <a href="#">{!!$data->rCategory->rZh? $data->rCategory->rZh->name:$data->rCategory->name !!}</a></span>
42
                          @if(!isset($setting['post_views']) || $setting['post_views'] == 1)
43
                          <span><i class="fa fa-eye"></i> <a href="#">{!! $data->viewer !!} Views</a></span>
44 45 46
                          @elseif($setting['post_views'] == 0)
                          <span></span>
                          @endif
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
                          {{-- <span><i class="fa fa-user"></i> <a href="#">Redaksi</a></span> --}}
                      </div><!-- end blog-carousel-meta -->
                    </div><!-- end blog-carousel-header -->
                    <div class="blog-carousel-desc">
                      @if ($data->thumbnail)
                      @if($data->cover_status == 1)
                      <center>
                        @if ($setting['external_storage'] == 1)
                        <img src="{{ $setting['url_static'] . '/' . $setting['directory'] . '/thumbnail/' . $data->thumbnail }}" alt=""  style="max-width:708px">
                        @else
                        <img src="{{ url('/storage/thumbnail/' . $data->thumbnail) }}" alt=""  style="max-width:708px">
                        @endif
                      </center>
                      @endif
                      @endif
                      <br>
                      <div class="widget col-md-4 pull-right related hidden-sm hidden-xs kaitan" style="margin-bottom: 5px;">
                        <h4 class="h4_kaitan"><strong>类似新闻 </strong></h4>
                        <div class="isi_kaitan">
                          <div class="content_kaitan">
                              <ul class="ul_kaitan nav nav-tabs nav-stacked">
                                @foreach($terkait as $valTerkait)
                                @if ($valTerkait->rZh)
                                <li><strong><a title="{!! $valTerkait->rZh->title !!}" href="{!! url('post/'.$valTerkait->slug) !!}">{!! $valTerkait->rZh->title !!}</a></strong></li>
                                @endif
                                @endforeach
                              </ul>
                          </div>
                        </div>
                      </div>
                      @if ($data->rZh)
                      {!! $data->rZh->content !!}
79 80 81 82 83 84 85 86
                      <p>
                       <i><b>Share It On:</b></i> </p>
                       <div class="social-icons">
                        <span>
                          <a data-toggle="tooltip" data-placement="bottom" target="_blank" title="Facebook" href="https://www.facebook.com/sharer.php?u={!! url('post/'.$data->slug) !!}" data-original-title="" style="background-color: #1877f2;"><i class="fa fa-facebook" style="color: white;"></i></a>
                        </span>

                        <span>
87
                          <a data-toggle="tooltip" data-placement="bottom" target="_blank" title="Twitter" href="https://twitter.com/share?url={!! url('/') !!}&amp;text={!! $data->rZh->title?url($data->rZh->title) :url($data->title) !!}&amp;hashtags={!! $data->rCategory->rZh?$data->rCategory->rZh->name:$data->rCategory->name !!}" data-original-title="" style="background-color: #55acee;"><i class="fa fa-twitter" style="color: white;"></i></a>
88 89 90 91 92 93 94
                        </span>

                        <span>
                          <a data-toggle="tooltip" data-placement="bottom" target="_blank" title="Linkedin" href="http://www.linkedin.com/shareArticle?mini=true&amp;url={!! url('post/'.$data->slug) !!}" data-original-title="" style="background-color: #007bb5;"><i class="fa fa-linkedin" style="color: white;"></i></a>
                        </span>

                        <span>
95
                          <a data-toggle="tooltip" data-placement="bottom" target="_blank" title="Email" href="mailto:?Subject={!! $data->rCategory->rZh?$data->rCategory->rZh->name:$data->rCategory->name !!}&amp;Body={!! $data->rZh->title?url($data->rZh->title) :url($data->title) !!} {!! url('post/'.$data->slug) !!}" data-original-title="" style="background-color: #0166ff;"><i class="fa fa-envelope" style="color: white;"></i></a>
96 97 98 99 100 101 102
                        </span>

                        <span>
                          <a data-toggle="tooltip" data-placement="bottom" target="_blank" title="Whatsapp" href="https://wa.me/?text={!! url('post/'.$data->slug) !!}" data-original-title="" style="background-color: #12af0a;"><i class="fa fa-phone" style="color: white;"></i></a>
                        </span>

                        <span class="last">
103
                          <a data-toggle="tooltip" data-placement="bottom" target="_blank" title="" href="https://telegram.me/share/url?url={!! url('post/'.$data->slug) !!}&amp;text={!! $data->rZh->title?url($data->rZh->title) :url($data->title) !!}" data-original-title="Telegram" style="background-color: #2ca5e0;"><i class="fa fa-location-arrow" style="color: white;"></i></a>
104 105
                        </span>
                      </div>
106 107
                      @else
                      {!! $data->content !!}
108
                      @endif
109
                   
110 111 112 113 114 115 116 117 118 119 120 121
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
          @include('webprofile.front.jollyany.zh.widget')
        </div>
    </div><!-- end container -->
  </section><!--end white-wrapper -->

@endsection