|
@@ -421,31 +421,26 @@
|
|
|
@endif
|
|
|
</div>
|
|
|
<div class="home_news_list">
|
|
|
- @if(array_has($articles, '3') && $articles['3'])
|
|
|
- @foreach($articles['3'] as $k=>$v)
|
|
|
- @if($k<4)
|
|
|
- <div class="home_news_item">
|
|
|
- <div class="news_time">
|
|
|
- <div class="news_day">{{date('d',strtotime($v->created_at))}}</div>
|
|
|
- <div class="news_year">{{date('Y/m月',strtotime($v->created_at))}}</div>
|
|
|
- </div>
|
|
|
- <div class="news_info">
|
|
|
- @if(empty($v->is_url))
|
|
|
- <a href="{{route('news.show',['id'=>$v->id])}}" target="_blank"
|
|
|
- class="news_title substring" title="{{$v->title}}">{{$v->title}}</a>
|
|
|
- <div class="news_content">{!! cut_str(strip_tags(htmlspecialchars_decode($v->content,ENT_QUOTES)),'80',0,'...') !!}</div>
|
|
|
- @else
|
|
|
- <a href="{{$v->is_url}}" target="_blank"
|
|
|
- class="news_title substring" title="{{$v->title}}">{{$v->title}}</a>
|
|
|
- <div class="news_content">{!! cut_str(strip_tags(htmlspecialchars_decode($v->content,ENT_QUOTES)),'80',0,'...') !!}</div>
|
|
|
- @endif
|
|
|
- </div>
|
|
|
- <div class="clear"></div>
|
|
|
- </div>
|
|
|
- @endif
|
|
|
-
|
|
|
- @endforeach
|
|
|
- @endif
|
|
|
+ @foreach($ad_pic3 as $k=>$v)
|
|
|
+ <div class="home_news_item">
|
|
|
+ <div class="news_time">
|
|
|
+ <div class="news_day">{{date('d',strtotime($v->created_at))}}</div>
|
|
|
+ <div class="news_year">{{date('Y/m月',strtotime($v->created_at))}}</div>
|
|
|
+ </div>
|
|
|
+ <div class="news_info">
|
|
|
+ @if(empty($v->is_url))
|
|
|
+ <a href="{{route('news.show',['id'=>$v->id])}}" target="_blank"
|
|
|
+ class="news_title substring" title="{{$v->title}}">{{$v->title}}</a>
|
|
|
+ <div class="news_content">{!! cut_str(strip_tags(htmlspecialchars_decode($v->content,ENT_QUOTES)),'80',0,'...') !!}</div>
|
|
|
+ @else
|
|
|
+ <a href="{{$v->is_url}}" target="_blank"
|
|
|
+ class="news_title substring" title="{{$v->title}}">{{$v->title}}</a>
|
|
|
+ <div class="news_content">{!! cut_str(strip_tags(htmlspecialchars_decode($v->content,ENT_QUOTES)),'80',0,'...') !!}</div>
|
|
|
+ @endif
|
|
|
+ </div>
|
|
|
+ <div class="clear"></div>
|
|
|
+ </div>
|
|
|
+ @endforeach
|
|
|
</div>
|
|
|
<div class="clear"></div>
|
|
|
<a href="{{route('news.list',['id'=>3])}}" class="box_more" target="_blank">查看更多></a>
|