diff --git a/library.js b/library.js index a7e3b74..6b51e72 100644 --- a/library.js +++ b/library.js @@ -69,6 +69,16 @@ library.defineWidgetAreas = async function (areas) { }); areas = areas.concat([ + { + name: 'Main post header', + template: 'topic.tpl', + location: 'mainpost-header', + }, + { + name: 'Main post footer', + template: 'topic.tpl', + location: 'mainpost-footer', + }, { name: 'Account Header', template: 'account/profile.tpl', diff --git a/templates/partials/topic/post.tpl b/templates/partials/topic/post.tpl index e9c88a5..e10d929 100644 --- a/templates/partials/topic/post.tpl +++ b/templates/partials/topic/post.tpl @@ -1,3 +1,11 @@ +{{{ if (!./index && widgets.mainpost-header.length) }}} +
+ {{{ each widgets.mainpost-header }}} + {widgets.mainpost-header.html} + {{{ end }}} +
+{{{ end }}} +
@@ -103,4 +111,11 @@
-
\ No newline at end of file + +{{{ if (!./index && widgets.mainpost-footer.length) }}} +
+ {{{ each widgets.mainpost-footer }}} + {widgets.mainpost-footer.html} + {{{ end }}} +
+{{{ end }}} \ No newline at end of file