| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- @inject('systemPresenter', 'App\Presenters\SystemPresenter')
- @extends('layouts.app')
- @section('title', $systemPresenter->checkReturnValue('title', $article->title))
- @section('description', $systemPresenter->checkReturnValue('seo_desc', $article->desc))
- @section('keywords', $systemPresenter->checkReturnValue('seo_keyword', $article->keyword))
- @section('style')
- <link rel="stylesheet" href="{{ asset('share.js/css/share.min.css') }}">
- @endsection
- @section('header-text')
- <div class="text-inner">
- <div class="row">
- <div class="col-md-12 to-animate fadeInUp animated">
- <h3 class="color-white">
- {{ $article->title }}
- </h3>
- <p class=" m-t-25 color-white">
- <i class="glyphicon glyphicon-calendar"></i>{{ $article->created_at }}
-
- @if($article->category)
- <i class="glyphicon glyphicon-th-list"></i>
- <a href="{{ route('category', ['id' => $article->cate_id]) }}" target="_blank">
- {{ $article->category->name }}
- </a>
- @endif
- </p>
- <p class="color-white">
- <i class="glyphicon glyphicon-tags"></i>
- @foreach ($article->tag as $tag)
- <a href="{{ route('tag', ['id' => $tag->id]) }}" target="_blank">
- {{ $tag->tag_name }}
- </a>
-
- @endforeach
- </p>
- </div>
- </div>
- </div>
- @endsection
- @section('content')
- <div class="markdown-preview">
- {!! $article->html_content !!}
- </div>
- <div id="share" class="social-share m-t-25"></div>
- <!-- 评论插件 -->
- @include('default.comment.index', [
- 'commentId' => $article->id,
- 'commentTitle' => $article->title,
- 'commentUrl' => Request::getUri()
- ])
- @endsection
- @section('script')
- <script src="{{ asset('share.js/js/jquery.share.min.js') }}"></script>
- <script>
- $(function(){
- $('#share').share({sites: ['qzone', 'qq', 'weibo','wechat']});
- });
- </script>
- @endsection
|