news paragraphe tronque

This commit is contained in:
Deltacms 2022-12-29 16:12:49 +01:00
parent ce5e9e7633
commit febff944f8
1 changed files with 1 additions and 1 deletions

View File

@ -507,7 +507,7 @@ class news extends common {
$arrayContent[$key] = strip_tags($arrayContent[$key]);
$arrayContent[$key] = '<p>'.substr( $arrayContent[$key], 0, $charRemain).'</p>';
$arrayContent[$key] .= '<p> ... <a href="'. helper::baseUrl(true) . $this->getUrl(0) . '/' . $newsIds[$i] . '"><span class="newsSuite">'.$text['news_view']['index'][0].'</span></a></p>' ;
$charDisplay = $charDisplay + 100; //pour tenir compte des balises html de la ligne précédente
$charDisplay = $charDisplay + 1000;
}
self::$news[$newsIds[$i]]['content'] .= $arrayContent[$key];
$charDisplay = $charDisplay + strlen( strip_tags( $arrayContent[$key]) );