调整页面
This commit is contained in:
@@ -3,81 +3,63 @@
|
||||
@section('title', '首页')
|
||||
|
||||
@section('content')
|
||||
@if ($advert)
|
||||
<div id="lyg_sub_banner"><img src="{{ $advert->cover_path }}"/></div>
|
||||
@endif
|
||||
<div class="ly_page ly_min">
|
||||
<div class="ly_wrap">
|
||||
<div class="lyg_page_box">
|
||||
<div class="lyg_lpage">
|
||||
<div id="lyg_left_bar">
|
||||
<h2>{{ $parent->title }}</h2>
|
||||
<dl>
|
||||
@foreach ($parent->childrens as $children)
|
||||
<dt><a href="{{ route('category.show',$children) }}">{{ $children->title }}</a></dt>
|
||||
@endforeach
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
<div class="lyg_rpage">
|
||||
<div class="lyg_rpage_box">
|
||||
<div class="lyg_page_title">
|
||||
<h2>{{ $parent->title }}</h2>
|
||||
<div id="lyg_breadcrumb">
|
||||
|
||||
<a class="ly_home" href="#">首页</a>
|
||||
<font>></font>
|
||||
@if ($parent->id==$category->id)
|
||||
{{ $category->title }}
|
||||
@else
|
||||
{{ $parent->title }}
|
||||
<font>></font>
|
||||
{{ $category->title }}
|
||||
<div class="container mg-t-b container_col">
|
||||
<div class="page-left">
|
||||
<div class="pagelist">
|
||||
<h1>{{ $parent->title }}</h1>
|
||||
<ul class="listbox">
|
||||
@if ($parent->childrens->isNotEmpty())
|
||||
@foreach ($parent->childrens as $child)
|
||||
<li @if($category->id==$child->id) class="active" @endif>
|
||||
<a href="{{ $child->link }}">{{ $child->title }}</a>
|
||||
@if ($child->childrens->isNotEmpty())
|
||||
<ul class="dropdown">
|
||||
@foreach ($child->childrens as $childd)
|
||||
<li @if($category->id==$child->id) class="active" @endif>
|
||||
<a href="{{ $childd->link }}">{{ $childd->title }}</a>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
@endif
|
||||
</div>
|
||||
<div class="lyg_clear"></div>
|
||||
</div>
|
||||
<div id="lyg_news" class="lyg_container_content">
|
||||
<div id="lyg_news_0">
|
||||
@foreach ($articles as $article)
|
||||
<div class="lyg_item lyg_top">
|
||||
<div class="lyg_lbar">
|
||||
<a href="{{ route('article.show',$article) }}">
|
||||
<img src="{{ $article->cover_path }}" width="270" height="174"/>
|
||||
</a>
|
||||
</div>
|
||||
<div class="lyg_rbar">
|
||||
<h3><a href="{{ route('article.show',$article) }}">{{ $article->title }}</a></h3>
|
||||
<div class="lyg_intro">
|
||||
{{ $article->description }}
|
||||
</div>
|
||||
<div class="lyg_date">
|
||||
更新时间:{{ $article->created_at }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="lyg_clear"></div>
|
||||
</div>
|
||||
@endforeach
|
||||
<div class="lyg_blank25"></div>
|
||||
@if ($articles->isNotEmpty())
|
||||
{{ $articles->links('layouts.pagination') }}
|
||||
@endif
|
||||
{{-- <div class="Page clearfix">--}}
|
||||
{{-- <span>46 条记录 1/6 页</span>--}}
|
||||
{{-- <a href="">下一页</a>--}}
|
||||
{{-- <span class="current">1</span>--}}
|
||||
{{-- <a href=""> 2 </a>--}}
|
||||
{{-- <a href=""> 3 </a>--}}
|
||||
{{-- <a href=""> 4 </a>--}}
|
||||
{{-- <a href=""> 5 </a>--}}
|
||||
{{-- <a href="">下5页</a>--}}
|
||||
{{-- <a href="">末页</a>--}}
|
||||
{{-- </div>--}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="lyg_clear"></div>
|
||||
</li>
|
||||
@endforeach
|
||||
@endif
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="page-right">
|
||||
<div class="pagelujing">
|
||||
<div class="name">{{ $category->title }}</div>
|
||||
<span>
|
||||
您当前所在位置:<a href="/">首页</a> >
|
||||
@if ($parent->id!=$category->id)
|
||||
<a href="{{ $parent->link }}">{{ $parent->title }}</a> >
|
||||
@endif
|
||||
<a href="{{ $category->link }}">{{ $category->title }}</a> >
|
||||
</span>
|
||||
</div>
|
||||
<div class="news-txt ny mg-t-b">
|
||||
<div class="news-con">
|
||||
<ul class="newslist ny">
|
||||
@if ($articles->isNotEmpty())
|
||||
@foreach ($articles as $article)
|
||||
<li>
|
||||
<a href="{{ $article->link }}">{{ $article->title }}</a><span>{{ $article->created_at->format('m-d') }}</span>
|
||||
</li>
|
||||
|
||||
@endforeach
|
||||
@endif
|
||||
</ul>
|
||||
|
||||
<div class="tcdPageCode">
|
||||
@if ($articles->isNotEmpty())
|
||||
{{ $articles->links('layouts.pagination') }}
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
Reference in New Issue
Block a user