初步完成
This commit is contained in:
80
resources/views/category/cgzh.blade.php
Normal file
80
resources/views/category/cgzh.blade.php
Normal file
@@ -0,0 +1,80 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('title', $category->title)
|
||||
|
||||
@section('content')
|
||||
<!-- content -->
|
||||
<div class="container mian">
|
||||
<!-- content-nav -->
|
||||
<nav class="mian-nav">
|
||||
@include('category.left',$parent)
|
||||
</nav>
|
||||
<!-- content-content -->
|
||||
<div class="mian-content">
|
||||
<div class="mian-content-header">
|
||||
<a href="/">首页</a>
|
||||
<i class="fa fa-caret-right"></i>
|
||||
<a href="{{ $category->link }}">{{ $category->title }}</a>
|
||||
</div>
|
||||
<!-- 创新成果转移转化亮点工作 -->
|
||||
<div class="sub-title">
|
||||
<b><i class="fa fa-certificate"></i>{{ getOneCategory(20,'title') }}</b>
|
||||
<a href="{{ getOneCategory(20,'link') }}">更多</a>
|
||||
</div>
|
||||
<div class="results-news">
|
||||
@if(getArticlesBYCate(20,8)->isNotEmpty())
|
||||
@foreach (getArticlesBYCate(20,8) as $article)
|
||||
@if ($loop->first)
|
||||
<a class="results-news-cover" style="background-image: url({{ $article->cover_path }});" href="{{ $article->link }}">
|
||||
<span>{{ $article->title }}</span>
|
||||
</a>
|
||||
@endif
|
||||
@endforeach
|
||||
<ul class="results-news-ul">
|
||||
@foreach (getArticlesBYCate(20,8) as $article)
|
||||
@if ($loop->iteration>1)
|
||||
<li>
|
||||
<a class="nowrap" href="{{ $article->link }}">
|
||||
<i class="fa fa-angle-double-right"></i>
|
||||
{{ $article->title }}
|
||||
<span>{{ $article->created_at }}</span>
|
||||
</a>
|
||||
</li>
|
||||
@endif
|
||||
@endforeach
|
||||
</ul>
|
||||
@endif
|
||||
</div>
|
||||
<!-- 工作动态 -->
|
||||
<div class="sub-title">
|
||||
<b><i class="fa fa-th-large"></i>{{ getOneCategory(21,'title') }}</b>
|
||||
<a href="{{ getOneCategory(21,'link') }}">更多</a>
|
||||
</div>
|
||||
<div class="results-news">
|
||||
@if(getArticlesBYCate(21,8)->isNotEmpty())
|
||||
@foreach (getArticlesBYCate(21,8) as $article)
|
||||
@if ($loop->first)
|
||||
<a class="results-news-cover" style="background-image: url({{ $article->cover_path }});" href="{{ $article->link }}">
|
||||
<span>{{ $article->title }}</span>
|
||||
</a>
|
||||
@endif
|
||||
@endforeach
|
||||
<ul class="results-news-ul">
|
||||
@foreach (getArticlesBYCate(21,8) as $article)
|
||||
@if ($loop->iteration>1)
|
||||
<li>
|
||||
<a class="nowrap" href="{{ $article->link }}">
|
||||
<i class="fa fa-angle-double-right"></i>
|
||||
{{ $article->title }}
|
||||
<span>{{ $article->created_at }}</span>
|
||||
</a>
|
||||
</li>
|
||||
@endif
|
||||
@endforeach
|
||||
</ul>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end content -->
|
||||
@endsection
|
||||
Reference in New Issue
Block a user