增加一个栏目
This commit is contained in:
@@ -14,6 +14,7 @@ return [
|
|||||||
'yjzdxk' => 68,//院级重点学科
|
'yjzdxk' => 68,//院级重点学科
|
||||||
'xhqk' => 66,//院级重点学科
|
'xhqk' => 66,//院级重点学科
|
||||||
'yjsgg' => 74,//预决算公告
|
'yjsgg' => 74,//预决算公告
|
||||||
|
'gsxxjy' => 75,//党史学习教育
|
||||||
],
|
],
|
||||||
//分类使用的模板
|
//分类使用的模板
|
||||||
'template' => [
|
'template' => [
|
||||||
|
|||||||
35
resources/views/category/gsxxjy.blade.php
Normal file
35
resources/views/category/gsxxjy.blade.php
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
@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">
|
||||||
|
@include('layouts.navigation',['category'=>$category])
|
||||||
|
<!-- 科研领域 -->
|
||||||
|
<ul class="research-award-ul">
|
||||||
|
@foreach (getArticlesBYCate(75,16) as $article)
|
||||||
|
<li data-href="{{ $article->link }}">
|
||||||
|
<span
|
||||||
|
class="research-award-cover"
|
||||||
|
style="background-image: url({{ $article->cover_path }});"
|
||||||
|
></span>
|
||||||
|
<h3 class="research-award-title nowrap-multi"
|
||||||
|
style="line-height: 24px; padding: 15px 0; height: 48px"
|
||||||
|
data-herf="{{ $article->link }}"
|
||||||
|
>{{ $article->title }}</h3>
|
||||||
|
</li>
|
||||||
|
@endforeach
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- end content -->
|
||||||
|
@endsection
|
||||||
@@ -29,6 +29,10 @@
|
|||||||
<a href="{{ getOneCategory(config('haai.category.yjsgg'),'link') }}">{{ getOneCategory(config('haai.category.yjsgg'),'title') }}</a>
|
<a href="{{ getOneCategory(config('haai.category.yjsgg'),'link') }}">{{ getOneCategory(config('haai.category.yjsgg'),'title') }}</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
<li class="nav-ul-li @if (isset($parent) && $parent->id==config('haai.category.gsxxjy')) show @endif">
|
||||||
|
<a href="{{ getOneCategory(config('haai.category.gsxxjy'),'link') }}">{{ getOneCategory(config('haai.category.gsxxjy'),'title') }}</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|||||||
Reference in New Issue
Block a user