update news list title length
This commit is contained in:
parent
c197603a10
commit
74bd95524a
|
@ -124,7 +124,14 @@
|
|||
<div class="news-wrapper">
|
||||
<div class="col-xs-2" style="background: url('<?= $this->list_news[$i]['image'] ?>') no-repeat center;background-size:contain;height: 75px"></div>
|
||||
<div class="col-xs-10">
|
||||
<h5><a href="<?= $this->list_news[$i]['url'] ?>"><?= $this->list_news[$i]['title'] ?></a></h5>
|
||||
<h5><a href="<?= $this->list_news[$i]['url'] ?>"><?php
|
||||
if (mb_strlen($this->list_news[$i]['title'])>40)
|
||||
{
|
||||
echo mb_substr($this->list_news[$i]['title'],0,40,'utf-8').'...';
|
||||
}else{
|
||||
echo $this->list_news[$i]['title'];
|
||||
}
|
||||
?></a></h5>
|
||||
<p>
|
||||
<?php
|
||||
$description = "";
|
||||
|
@ -146,7 +153,16 @@
|
|||
<div class="news-wrapper">
|
||||
<div class="col-xs-2" style="background: url('<?= $this->list_news[$i]['image'] ?>') no-repeat center;background-size:contain;height: 75px"></div>
|
||||
<div class="col-xs-10">
|
||||
<h5><a href="<?= $this->list_news[$i]['url'] ?>"><?= $this->list_news[$i]['title'] ?></a></h5>
|
||||
<h5><a href="<?= $this->list_news[$i]['url'] ?>">
|
||||
<?php
|
||||
if (mb_strlen($this->list_news[$i]['title'])>30)
|
||||
{
|
||||
echo mb_substr($this->list_news[$i]['title'],0,40,'utf-8').'...';
|
||||
}else{
|
||||
echo $this->list_news[$i]['title'];
|
||||
}
|
||||
?>
|
||||
</a></h5>
|
||||
<p>
|
||||
<?php
|
||||
$description = "";
|
||||
|
|
Loading…
Reference in New Issue