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 null;
} }
return return $w->renderDiv(
($w->content_only ? '' : '<div class="epc-widgetlist' . $w->content_only,
($w->class ? ' ' . html::escapeHTML($w->class) : '') . '"">') . $w->class,
($w->title ? '<h2>' . html::escapeHTML($w->title) . '</h2>' : '') . 'id="epc_' . $w->type .'"',
($w->text ? '<p>' . html::escapeHTML($w->text) . '</p>' : '') . ($w->title ? $w->renderTitle(html::escapeHTML($w->title)) : '') .
'<ul>' . $res . '</ul>' . ($w->text ? '<p>' . html::escapeHTML($w->text) . '</p>' : '') .
($w->content_only ? '' : '</div>'); '<ul>' . $res . '</ul>'
);
} }
} }