Skip to content

Commit

Permalink
DEV: Add plugin outlets to main content section (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
s3lase authored Apr 9, 2024
1 parent 12ff98a commit e8cc46d
Showing 1 changed file with 28 additions and 26 deletions.
54 changes: 28 additions & 26 deletions javascripts/discourse/components/custom-footer.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -10,34 +10,36 @@
</div>
</div>
<div class="second-box">
<div class="links">
{{#each this.linkSections as |section|}}
<div class="list" data-easyfooter-section={{section.dataName}}>
<span title={{section.title}}>
{{section.text}}
</span>
<PluginOutlet @name="easy-footer-second-box">
<div class="links">
{{#each this.linkSections as |section|}}
<div class="list" data-easyfooter-section={{section.dataName}}>
<span title={{section.title}}>
{{section.text}}
</span>

<ul>
{{#each section.childLinks as |link|}}
<li
class="footer-section-link-wrapper"
data-easyfooter-link={{link.dataName}}
>
<a
class="footer-section-link"
title={{link.title}}
href={{link.href}}
target={{link.target}}
referrerpolicy={{link.referrerpolicy}}
<ul>
{{#each section.childLinks as |link|}}
<li
class="footer-section-link-wrapper"
data-easyfooter-link={{link.dataName}}
>
{{link.text}}
</a>
</li>
{{/each}}
</ul>
</div>
{{/each}}
</div>
<a
class="footer-section-link"
title={{link.title}}
href={{link.href}}
target={{link.target}}
referrerpolicy={{link.referrerpolicy}}
>
{{link.text}}
</a>
</li>
{{/each}}
</ul>
</div>
{{/each}}
</div>
</PluginOutlet>
</div>
<div class="third-box">
<div class="footer-links">
Expand Down

0 comments on commit e8cc46d

Please sign in to comment.