This commit is contained in:
parent
473a963f8b
commit
c5a1837e67
|
@ -12,7 +12,11 @@ $this->headLink()->appendStylesheet('/static-sanjy-np/css/about.css')
|
|||
<div class="row">
|
||||
<div class="col-md-3 col-sm-4 bcid-cat">新闻动态</div>
|
||||
<div class="col-md-9 col-sm-8 location">
|
||||
<?= $this->render('breadcrumbs.phtml'); ?>
|
||||
<img src="/static-sanjy-np/img/address.png" alt=""/>
|
||||
<span>当前位置:
|
||||
<a href="/">主页</a> >
|
||||
<a href="/archives/news/localnews">新闻动态</a>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -28,13 +32,13 @@ $this->headLink()->appendStylesheet('/static-sanjy-np/css/about.css')
|
|||
<ul class="in_list font14">
|
||||
<li>
|
||||
<?php
|
||||
if(count($this->types))
|
||||
{
|
||||
foreach($this->types as $k=>$v)
|
||||
{
|
||||
if (count($this->types)) {
|
||||
foreach ($this->types as $k => $v) {
|
||||
$haed = "";
|
||||
if(!empty($v[$this->deepField])) {$haed = str_repeat(' ',$v[$this->deepField]);}
|
||||
echo '<li><a href="'.$v['url'].'"><i class="icon-chevron-right"></i>'.$haed.$v['title'].'</a></li>';
|
||||
if (!empty($v[$this->deepField])) {
|
||||
$haed = str_repeat(' ', $v[$this->deepField]);
|
||||
}
|
||||
echo '<li><a href="' . $v['url'] . '"><i class="icon-chevron-right"></i>' . $haed . $v['title'] . '</a></li>';
|
||||
$haed = "";
|
||||
}
|
||||
}
|
||||
|
@ -52,7 +56,12 @@ $this->headLink()->appendStylesheet('/static-sanjy-np/css/about.css')
|
|||
?>
|
||||
<div class="blog-article hentry format-image">
|
||||
<figure>
|
||||
<img class="img-responsive" src="/static-sanjy-np/img/2.jpg">
|
||||
<?php if ($v['image'] != '') { ?>
|
||||
<img class="img-responsive" src="<?= $v['image'] ?>">
|
||||
<?php } else { ?>
|
||||
<img class="img-responsive" src="/static-sanjy-np/img/banner03.jpg">
|
||||
<?php } ?>
|
||||
|
||||
</figure>
|
||||
<div class="entry-summary post-summary">
|
||||
<header class="entry-header">
|
||||
|
@ -62,7 +71,7 @@ $this->headLink()->appendStylesheet('/static-sanjy-np/css/about.css')
|
|||
<ul>
|
||||
<li class="entry-date date">
|
||||
<time class="entry-date"><i
|
||||
class="time"></i><?php echo date("Y-m-d",strtotime( $v['ts_published'] )); ?>
|
||||
class="time"></i><?php echo date("Y-m-d", strtotime($v['ts_published'])); ?>
|
||||
</time>
|
||||
</li>
|
||||
<li class="tags">
|
||||
|
@ -71,7 +80,7 @@ $this->headLink()->appendStylesheet('/static-sanjy-np/css/about.css')
|
|||
</ul>
|
||||
</div>
|
||||
<div class="entry-content">
|
||||
<p><?php echo $v['description']?></p>
|
||||
<p><?php echo $v['description'] ?></p>
|
||||
</div>
|
||||
<a href="<?php echo $v['url']; ?>" class="read-more-link">查看详情</a>
|
||||
</div>
|
||||
|
@ -79,7 +88,9 @@ $this->headLink()->appendStylesheet('/static-sanjy-np/css/about.css')
|
|||
<?php
|
||||
}
|
||||
} else {
|
||||
echo '暂无数据';
|
||||
echo '<div class="blog-article hentry format-image">
|
||||
<div class="alert alert-warning" role="alert">暂无数据。</div>
|
||||
</div>';
|
||||
}
|
||||
?>
|
||||
<div class="pagination-wrap">
|
||||
|
|
Loading…
Reference in New Issue