forked from ZwiiCMS-Team/ZwiiCMS
length
This commit is contained in:
parent
64158856c2
commit
a30f0977b8
@ -130,8 +130,8 @@
|
|||||||
: utf8_encode(strftime('%d %B %Y', $article['publishedOn'])); ?>
|
: utf8_encode(strftime('%d %B %Y', $article['publishedOn'])); ?>
|
||||||
</div>
|
</div>
|
||||||
<p class="blogContent">
|
<p class="blogContent">
|
||||||
<?php $lenght = $this->getData(['module',$this->getUrl(0), 'config', 'articlesLenght']) !== 0 ? $this->getData(['module',$this->getUrl(0), 'config', 'articlesLenght']) : 500 ?>
|
<?php $length = $this->getData(['module',$this->getUrl(0), 'config', 'articlesLenght']) !== 0 ? $this->getData(['module',$this->getUrl(0), 'config', 'articlesLenght']) : 500 ?>
|
||||||
<?php echo helper::subword(strip_tags($article['content'],'<br><p>'), 0, $lenght); ?>...
|
<?php echo helper::subword(strip_tags($article['content'],'<br><p>'), 0, $length); ?>...
|
||||||
<a href="<?php echo helper::baseUrl() . $this->getUrl(0) . '/' . $articleId; ?>">Lire la suite</a>
|
<a href="<?php echo helper::baseUrl() . $this->getUrl(0) . '/' . $articleId; ?>">Lire la suite</a>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user