Add sections intro and content

This commit is contained in:
Laurent Destailleur 2020-04-04 18:18:58 +02:00
parent 493a6d9709
commit c22a6ad98c

View File

@ -123,12 +123,15 @@ while ($obj = $dbjoomla->fetch_object($resql)) {
$htmltext = ""; $htmltext = "";
if ($blogpostheader) $htmltext .= $blogpostheader."\n"; if ($blogpostheader) $htmltext .= $blogpostheader."\n";
$htmltext .= '<section id="mysectionnews" contenteditable="true">'."\n"; $htmltext .= '<section id="mysectionnewsintro" contenteditable="true">'."\n";
$htmltext .= $obj->introtext; $htmltext .= $obj->introtext;
$htmltext .= '</section>'."\n";
if ($obj->fulltext) { if ($obj->fulltext) {
$htmltext .= '<br>'."\n".'<hr>'."\n".'<br>'."\n".$obj->fulltext; $htmltext .= '<section id="mysectionnewscontent" contenteditable="true">'."\n";
$htmltext .= '<br>'."\n".'<hr>'."\n".'<br>'."\n";
$htmltext .= $obj->fulltext;
$htmltext .= "</section>";
} }
$htmltext .= "\n</section>";
if ($blogpostfooter) $htmltext .= "\n".$blogpostfooter; if ($blogpostfooter) $htmltext .= "\n".$blogpostfooter;
$language = ($obj->language && $obj->language != '*' ? $obj->language : 'en'); $language = ($obj->language && $obj->language != '*' ? $obj->language : 'en');