Skip to content

Commit

Permalink
feat: add brand-header widget area
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli committed Mar 29, 2023
1 parent d686510 commit b2879c4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions library.js
Expand Up @@ -93,6 +93,11 @@ library.defineWidgetAreas = async function (areas) {
template: 'global',
location: 'sidebar-footer',
},
{
name: 'Brand Header',
template: 'global',
location: 'brand-header',
},
]);

return areas;
Expand Down
7 changes: 7 additions & 0 deletions templates/partials/header/brand.tpl
Expand Up @@ -14,6 +14,13 @@
</a>
{{{ end }}}
</div>
{{{ if widgets.brand-header.length }}}
<div data-widget-area="brand-header" class="ms-auto gap-3 p-2 align-self-center">
{{{each widgets.brand-header}}}
{{./html}}
{{{end}}}
</div>
{{{ end }}}
</div>
</div>
{{{ end }}}

0 comments on commit b2879c4

Please sign in to comment.