fix widget rendering

master
Jean-Christian Paul Denis 2021-08-24 23:17:43 +02:00
parent c943c60b7a
commit 8dfaa25464
1 changed files with 8 additions and 7 deletions

View File

@ -201,12 +201,13 @@ class enhancePostContentWidget
return null;
}
return
($w->content_only ? '' : '<div class="epc-widgetlist' .
($w->class ? ' ' . html::escapeHTML($w->class) : '') . '"">') .
($w->title ? '<h2>' . html::escapeHTML($w->title) . '</h2>' : '') .
($w->text ? '<p>' . html::escapeHTML($w->text) . '</p>' : '') .
'<ul>' . $res . '</ul>' .
($w->content_only ? '' : '</div>');
return $w->renderDiv(
$w->content_only,
$w->class,
'id="epc_' . $w->type .'"',
($w->title ? $w->renderTitle(html::escapeHTML($w->title)) : '') .
($w->text ? '<p>' . html::escapeHTML($w->text) . '</p>' : '') .
'<ul>' . $res . '</ul>'
);
}
}