45 lines
2.5 KiB
HTML
Executable File
45 lines
2.5 KiB
HTML
Executable File
{layout name="layout" /}
|
|
{php}
|
|
use app\model\Category;
|
|
use app\model\Block;
|
|
$childrenMenu = Category::getChildrenByParentId($category['parent_id']);
|
|
$blocks = Block::getByCategoryId(Category::CATEGORY_NEWS);
|
|
$blocks = Block::convertValue($blocks);
|
|
{/php}
|
|
|
|
{include file="public/about_second" /}
|
|
|
|
<!-- 新闻详情 -->
|
|
<div class="news-detail-bg w1360 flex wow fadeInUp" data-wow-duration="0.8s" data-wow-delay="0">
|
|
<div class="news-detail-txt">
|
|
<h1 class="color-blue wow fadeInUp" data-wow-duration="0.8s" data-wow-delay="0">{$item.title}</h1>
|
|
<div class="news-survey color-66 flex wow fadeInUp" data-wow-duration="0.8s" data-wow-delay="0.2s">
|
|
<span class="flex"><img src="__STATIC__/web/images/icon/icon-time-detail.png"><em class="pc-show">发布</em>时间:{$item.create_y_m_d}</span>
|
|
<span class="flex"><img src="__STATIC__/web/images/icon/icon-source.png"><em class="pc-show">文章</em>来源:{$item.source ?: '中正物业'}</span>
|
|
<span class="flex"><img src="__STATIC__/web/images/icon/icon-browse.png">浏览:{$item.views}</span>
|
|
</div>
|
|
<div class="rich-txt wow fadeInUp" data-wow-duration="0.8s" data-wow-delay="0">
|
|
{$item.content|raw}
|
|
</div>
|
|
<!-- 上下篇 -->
|
|
<div class="part-list flex">
|
|
{if !empty($prev)}
|
|
<div class="item flex"><strong class="color-blue">上一篇:</strong><a class="clips1" href="/news/{$prev.id}.html">{$prev['title']}</a></div>
|
|
{/if}
|
|
<em></em>
|
|
{if !empty($next)}
|
|
<div class="item flex"><strong class="color-blue">下一篇:</strong><a class="clips1" href="/news/{$next.id}.html">{$next['title']}</a></div>
|
|
{/if}
|
|
</div>
|
|
</div>
|
|
<div class="news-side wow fadeInUp pc-show" data-wow-duration="0.8s" data-wow-delay="0">
|
|
<a href="{$blocks['news_detail_right_img_1']['link'] ?: 'javascript:;'}" class="news-side-services color-white wow fadeInUp" data-wow-duration="0.8s" data-wow-delay="0" style="background: url({$blocks['news_detail_right_img_1']['value']});">
|
|
<p class="font-helvetica">{$blocks['news_detail_right_title_en_1']['value']}</p>
|
|
<span>{:nl2br($blocks['news_detail_right_title_1']['value'])}</span>
|
|
</a>
|
|
<div class="news-side-flag color-white wow fadeInUp" data-wow-duration="0.8s" data-wow-delay="0.2s" style="background: url({$blocks['news_detail_right_img_2']['value']});">
|
|
<p>{:nl2br($blocks['news_detail_right_title_2']['value'])}</p>
|
|
<strong class="uppercase font-helvetica">{$blocks['news_detail_right_title_en_2']['value']}</strong>
|
|
</div>
|
|
</div>
|
|
</div> |