From 8dfaa25464e6b30064460e4fc4138e47cd16a04d Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Tue, 24 Aug 2021 23:17:43 +0200 Subject: [PATCH] fix widget rendering --- _widgets.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/_widgets.php b/_widgets.php index ca7c1c4..33118f9 100644 --- a/_widgets.php +++ b/_widgets.php @@ -201,12 +201,13 @@ class enhancePostContentWidget return null; } - return - ($w->content_only ? '' : '
') . - ($w->title ? '

' . html::escapeHTML($w->title) . '

' : '') . - ($w->text ? '

' . html::escapeHTML($w->text) . '

' : '') . - '' . - ($w->content_only ? '' : '
'); + return $w->renderDiv( + $w->content_only, + $w->class, + 'id="epc_' . $w->type .'"', + ($w->title ? $w->renderTitle(html::escapeHTML($w->title)) : '') . + ($w->text ? '

' . html::escapeHTML($w->text) . '

' : '') . + '' + ); } } \ No newline at end of file