fix widget rendering
This commit is contained in:
parent
c943c60b7a
commit
8dfaa25464
1 changed files with 8 additions and 7 deletions
15
_widgets.php
15
_widgets.php
|
@ -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>'
|
||||
);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue