This commit is contained in:
parent
db6c8db3e5
commit
a1245e737f
|
@ -11,37 +11,49 @@ $this->breadcrumb()->setSeparator(' > ');
|
||||||
if(!empty($this->infos['keyword'])) $keyword = $this->infos['keyword']; else $keyword = $this->infos['title'];
|
if(!empty($this->infos['keyword'])) $keyword = $this->infos['keyword']; else $keyword = $this->infos['title'];
|
||||||
$this->headMeta()->appendName('keywords', $keyword);
|
$this->headMeta()->appendName('keywords', $keyword);
|
||||||
$this->headMeta()->appendName('description', mb_substr($this->infos['description'],0,180,'utf-8'));
|
$this->headMeta()->appendName('description', mb_substr($this->infos['description'],0,180,'utf-8'));
|
||||||
$this->headLink()->appendStylesheet('/static-sanji/css/new-list.css');
|
$this->headLink()->appendStylesheet('/static-sanji-v2/css/archive.css');
|
||||||
$this->headLink()->appendStylesheet('/static-sanji/css/new-detail.css');
|
|
||||||
?>
|
|
||||||
<div class="body-warp">
|
|
||||||
<div class="nav" id="nav">
|
|
||||||
<ul>
|
|
||||||
<?php
|
|
||||||
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'].'">'.$haed.$v['title'].'</a></li>';
|
|
||||||
$haed = "";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
?>
|
||||||
|
|
||||||
<div class="content-warp">
|
<div class="content-warp">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h1 class="text-center"><?php echo $this->infos['title'];?></h1>
|
<div class="row">
|
||||||
<div class="text-center">[<?php echo date("Y-m-d",strtotime($this->infos['ts_published']));?>] 来源 : <?php echo $this->infos['source'];?></div>
|
<div class="col-md-3 col-sm-2">
|
||||||
<?php if(!empty($this->mdinfo)){?>
|
<div class="list-group">
|
||||||
<?php foreach($this->mdinfo as $v){ ?>
|
<a href="#" class="list-group-item active">
|
||||||
<div class="info">相关数据:《<a href="/data/<?= $v['uuid']?>"><?= $v['title']?></a>》</div>
|
新闻动态
|
||||||
<?php } } ?>
|
</a>
|
||||||
<?php echo $this->infos['body'];?>
|
<?php
|
||||||
|
if(count($this->types))
|
||||||
|
{
|
||||||
|
foreach($this->types as $k=>$v)
|
||||||
|
{
|
||||||
|
$haed = "";
|
||||||
|
if(!empty($v[$this->deepField])) {$haed = str_repeat(' ',$v[$this->deepField]);}
|
||||||
|
echo '<a href="'.$v['url'].'" class="list-group-item">'.$haed.$v['title'].'</a>';
|
||||||
|
$haed = "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-8 col-sm-10">
|
||||||
|
<ol class="breadcrumb">
|
||||||
|
<li><a href="#">首页</a></li>
|
||||||
|
<li><a href="active">新闻动态</a></li>
|
||||||
|
</ol>
|
||||||
|
|
||||||
|
<h1 class="text-center"><?php echo $this->infos['title'];?></h1>
|
||||||
|
<div class="text-center">[<?php echo date("Y-m-d",strtotime($this->infos['ts_published']));?>] 来源 : <?php echo $this->infos['source'];?></div>
|
||||||
|
<?php if(!empty($this->mdinfo)){?>
|
||||||
|
<?php foreach($this->mdinfo as $v){ ?>
|
||||||
|
<div class="info">相关数据:《<a href="/data/<?= $v['uuid']?>"><?= $v['title']?></a>》</div>
|
||||||
|
<?php } } ?>
|
||||||
|
<hr>
|
||||||
|
<?php echo $this->infos['body'];?>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -6,41 +6,57 @@ $this->breadcrumb('<a href="/">首页</a>');
|
||||||
$this->breadcrumb('<a href="/archives/">新闻中心</a>');
|
$this->breadcrumb('<a href="/archives/">新闻中心</a>');
|
||||||
$this->breadcrumb($this->title);
|
$this->breadcrumb($this->title);
|
||||||
$this->breadcrumb()->setSeparator(' > ');
|
$this->breadcrumb()->setSeparator(' > ');
|
||||||
$this->headLink()->appendStylesheet('/static-sanji/css/new-list.css');
|
$this->headLink()->appendStylesheet('/static-sanji-v2/css/archive.css');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="body-warp">
|
<div class="content-warp">
|
||||||
<div class="nav" id="nav">
|
|
||||||
<ul>
|
<div class="list-warp container" style="min-height: 600px">
|
||||||
<?php
|
<div class="row">
|
||||||
if(count($this->types))
|
<div class="col-md-3">
|
||||||
{
|
<div class="list-group">
|
||||||
foreach($this->types as $k=>$v)
|
<a href="#" class="list-group-item active">
|
||||||
{
|
新闻动态
|
||||||
$haed = "";
|
</a>
|
||||||
if(!empty($v[$this->deepField])) {$haed = str_repeat(' ',$v[$this->deepField]);}
|
|
||||||
echo '<li><a href="'.$v['url'].'">'.$haed.$v['title'].'</a></li>';
|
|
||||||
$haed = "";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<div class="list-warp container">
|
|
||||||
<ul>
|
|
||||||
<?php
|
|
||||||
if(count($this->paginator))
|
|
||||||
{
|
|
||||||
foreach ($this->paginator as $v)
|
|
||||||
{
|
|
||||||
?>
|
|
||||||
<li><a href="<?php echo $v['url']; ?>"><?php echo $v['title']; ?></a><span><?php echo date("Y-m-d",strtotime( $v['ts_published'] )); ?></span></li>
|
|
||||||
<?php
|
<?php
|
||||||
}
|
if(count($this->types))
|
||||||
} else {
|
{
|
||||||
echo '暂无数据';
|
foreach($this->types as $k=>$v)
|
||||||
}
|
{
|
||||||
?>
|
$haed = "";
|
||||||
</ul>
|
if(!empty($v[$this->deepField])) {$haed = str_repeat(' ',$v[$this->deepField]);}
|
||||||
|
echo '<a href="'.$v['url'].'" class="list-group-item">'.$haed.$v['title'].'</a>';
|
||||||
|
$haed = "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-8">
|
||||||
|
<ol class="breadcrumb">
|
||||||
|
<li><a href="#">首页</a></li>
|
||||||
|
<li><a href="active">新闻动态</a></li>
|
||||||
|
</ol>
|
||||||
|
<ul class="news-list">
|
||||||
|
<?php
|
||||||
|
if(count($this->paginator))
|
||||||
|
{
|
||||||
|
foreach ($this->paginator as $v)
|
||||||
|
{
|
||||||
|
?>
|
||||||
|
<li><a href="<?php echo $v['url']; ?>"><?php echo $v['title']; ?></a><span class="pull-right"><?php echo date("Y-m-d",strtotime( $v['ts_published'] )); ?></span></li>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
echo '暂无数据';
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="page">
|
<div class="page">
|
||||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
.content-warp{
|
||||||
|
margin-top: 50px;
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
.content-warp{
|
||||||
|
margin-top: 80px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.breadcrumb > a > .active{
|
||||||
|
color: #00A9FF;
|
||||||
|
}
|
||||||
|
.news-list >li {
|
||||||
|
padding:8px 0px;
|
||||||
|
}
|
||||||
|
.news-list >li >a{
|
||||||
|
color:#303848;
|
||||||
|
}
|
||||||
|
.news-list > li >span{
|
||||||
|
color:#999;
|
||||||
|
}
|
Loading…
Reference in New Issue