news paragraphe tronque
This commit is contained in:
parent
ce5e9e7633
commit
febff944f8
|
@ -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]) );
|
||||
|
|
Loading…
Reference in New Issue