change text cut method
This commit is contained in:
parent
1fed5e6798
commit
83f4a6c7cb
|
@ -38,7 +38,7 @@ $this->headLink()->appendStylesheet('/static-sanji/css/data-list.css');
|
|||
<h4><a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']);?></a></h4>
|
||||
<p class="c-info"><span class="c-click"></span><i><?php echo $md['viewed']?></i> | <span class="c-time"></span><i><?php echo date("d,M,Y",strtotime( $md['ts_published'] )); ?></i></p>
|
||||
<p class="c-con">
|
||||
<?php echo str_replace(array("\r\n", "\n", "\r"),'<br />',mb_strlen($md['description'])>200 ? $this->escape(mb_substr($md['description'],0,200,'UTF-8').'...'):$this->escape($md['description']));?>
|
||||
<?php echo str_replace(array("\r\n", "\n", "\r"),'<br />',mb_strlen($md['description'])>120 ? $this->escape(mb_substr($md['description'],0,120,'UTF-8').'...'):$this->escape($md['description']));?>
|
||||
</p>
|
||||
<div class="dam clear">
|
||||
<div class="c-left">
|
||||
|
|
|
@ -37,7 +37,7 @@ $this->headLink()->appendStylesheet('/static-sanji/css/data-list.css');
|
|||
<h4><a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']);?></a></h4>
|
||||
<p class="c-info"><span class="c-click"></span><i><?php echo $md['viewed']?></i> | <span class="c-time"></span><i><?php echo date("d,M,Y",strtotime( $md['ts_published'] )); ?></i></p>
|
||||
<p class="c-con">
|
||||
<?php echo str_replace(array("\r\n", "\n", "\r"),'<br />',mb_strlen($md['description'])>200 ? $this->escape(mb_substr($md['description'],0,200,'UTF-8').'...'):$this->escape($md['description']));?>
|
||||
<?php echo str_replace(array("\r\n", "\n", "\r"),'<br />',mb_strlen($md['description'])>120 ? $this->escape(mb_substr($md['description'],0,120,'UTF-8').'...'):$this->escape($md['description']));?>
|
||||
</p>
|
||||
<div class="dam clear">
|
||||
<div class="c-left">
|
||||
|
|
|
@ -40,7 +40,7 @@ $this->theme->AppendPlus($this,'colorbox');
|
|||
<h4><a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']);?></a></h4>
|
||||
<p class="c-info"><span class="c-click"></span><i><?php echo $md['viewed']?></i> | <span class="c-time"></span><i><?php echo date("d,M,Y",strtotime( $md['ts_published'] )); ?></i></p>
|
||||
<p class="c-con">
|
||||
<?php echo str_replace(array("\r\n", "\n", "\r"),'<br />',mb_strlen($md['description'])>200 ? $this->escape(mb_substr($md['description'],0,200,'UTF-8').'...'):$this->escape($md['description']));?>
|
||||
<?php echo str_replace(array("\r\n", "\n", "\r"),'<br />',mb_strlen($md['description'])>120 ? $this->escape(mb_substr($md['description'],0,120,'UTF-8').'...'):$this->escape($md['description']));?>
|
||||
</p>
|
||||
<div class="dam clear">
|
||||
<div class="c-left">
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
color: #272727;
|
||||
}
|
||||
.data-content h3{
|
||||
padding: 10px;
|
||||
padding: 10px 0;
|
||||
line-height: 18px;
|
||||
font-size: 16px;
|
||||
color: #272727;
|
||||
|
|
|
@ -147,7 +147,6 @@ a:hover{
|
|||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2; /*限制在一个块元素显示的文本的行数*/
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden
|
||||
}
|
||||
|
||||
.c-left{
|
||||
|
|
Loading…
Reference in New Issue