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 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>'
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue