feat: changing widget-* to data-widget-* (#479)

main
Aziz Khoury 6 years ago committed by Julian Lam
parent 521504fbe2
commit 93fe46d5a5

@ -16,7 +16,7 @@
padding-bottom: 0px; padding-bottom: 0px;
} }
[widget-area="header"], [widget-area="footer"] { [data-widget-area="header"], [data-widget-area="footer"] {
display: none; display: none;
} }
} }

@ -1,5 +1,5 @@
<!-- IMPORT partials/breadcrumbs.tpl --> <!-- IMPORT partials/breadcrumbs.tpl -->
<div widget-area="header"> <div data-widget-area="header">
{{{each widgets.header}}} {{{each widgets.header}}}
{{widgets.header.html}} {{widgets.header.html}}
{{{end}}} {{{end}}}
@ -13,13 +13,13 @@
{{{end}}} {{{end}}}
</ul> </ul>
</div> </div>
<div widget-area="sidebar" class="col-lg-3 col-sm-12 <!-- IF !widgets.sidebar.length -->hidden<!-- ENDIF !widgets.sidebar.length -->"> <div data-widget-area="sidebar" class="col-lg-3 col-sm-12 <!-- IF !widgets.sidebar.length -->hidden<!-- ENDIF !widgets.sidebar.length -->">
{{{each widgets.sidebar}}} {{{each widgets.sidebar}}}
{{widgets.sidebar.html}} {{widgets.sidebar.html}}
{{{end}}} {{{end}}}
</div> </div>
</div> </div>
<div widget-area="footer"> <div data-widget-area="footer">
{{{each widgets.footer}}} {{{each widgets.footer}}}
{{widgets.footer.html}} {{widgets.footer.html}}
{{{end}}} {{{end}}}

@ -1,5 +1,5 @@
<!-- IMPORT partials/breadcrumbs.tpl --> <!-- IMPORT partials/breadcrumbs.tpl -->
<div widget-area="header"> <div data-widget-area="header">
{{{each widgets.header}}} {{{each widgets.header}}}
{{widgets.header.html}} {{widgets.header.html}}
{{{end}}} {{{end}}}
@ -49,13 +49,13 @@
<!-- IMPORT partials/paginator.tpl --> <!-- IMPORT partials/paginator.tpl -->
<!-- ENDIF config.usePagination --> <!-- ENDIF config.usePagination -->
</div> </div>
<div widget-area="sidebar" class="col-lg-3 col-sm-12 <!-- IF !widgets.sidebar.length -->hidden<!-- ENDIF !widgets.sidebar.length -->"> <div data-widget-area="sidebar" class="col-lg-3 col-sm-12 <!-- IF !widgets.sidebar.length -->hidden<!-- ENDIF !widgets.sidebar.length -->">
{{{each widgets.sidebar}}} {{{each widgets.sidebar}}}
{{widgets.sidebar.html}} {{widgets.sidebar.html}}
{{{end}}} {{{end}}}
</div> </div>
</div> </div>
<div widget-area="footer"> <div data-widget-area="footer">
{{{each widgets.footer}}} {{{each widgets.footer}}}
{{widgets.footer.html}} {{widgets.footer.html}}
{{{end}}} {{{end}}}

@ -227,7 +227,7 @@
</div> </div>
</div> </div>
<!-- ENDIF group.isOwner --> <!-- ENDIF group.isOwner -->
<div widget-area="left"> <div data-widget-area="left">
{{{each widgets.left}}} {{{each widgets.left}}}
{{widgets.left.html}} {{widgets.left.html}}
{{{end}}} {{{end}}}
@ -240,7 +240,7 @@
<!-- ENDIF !posts.length --> <!-- ENDIF !posts.length -->
<!-- IMPORT partials/posts_list.tpl --> <!-- IMPORT partials/posts_list.tpl -->
</div> </div>
<div widget-area="right"> <div data-widget-area="right">
{{{each widgets.right}}} {{{each widgets.right}}}
{{widgets.right.html}} {{widgets.right.html}}
{{{end}}} {{{end}}}

@ -1,5 +1,5 @@
<!-- IMPORT partials/breadcrumbs.tpl --> <!-- IMPORT partials/breadcrumbs.tpl -->
<div widget-area="header"> <div data-widget-area="header">
{{{each widgets.header}}} {{{each widgets.header}}}
{{widgets.header.html}} {{widgets.header.html}}
{{{end}}} {{{end}}}

@ -1,5 +1,5 @@
<!-- IMPORT partials/breadcrumbs.tpl --> <!-- IMPORT partials/breadcrumbs.tpl -->
<div widget-area="header"> <div data-widget-area="header">
{{{each widgets.header}}} {{{each widgets.header}}}
{{widgets.header.html}} {{widgets.header.html}}
{{{end}}} {{{end}}}

@ -1,5 +1,5 @@
<!-- IMPORT partials/breadcrumbs.tpl --> <!-- IMPORT partials/breadcrumbs.tpl -->
<div widget-area="header"> <div data-widget-area="header">
{{{each widgets.header}}} {{{each widgets.header}}}
{{widgets.header.html}} {{widgets.header.html}}
{{{end}}} {{{end}}}

@ -1,5 +1,5 @@
<!-- IMPORT partials/breadcrumbs.tpl --> <!-- IMPORT partials/breadcrumbs.tpl -->
<div widget-area="header"> <div data-widget-area="header">
{{{each widgets.header}}} {{{each widgets.header}}}
{{widgets.header.html}} {{widgets.header.html}}
{{{end}}} {{{end}}}

@ -1,5 +1,5 @@
<!-- IMPORT partials/breadcrumbs.tpl --> <!-- IMPORT partials/breadcrumbs.tpl -->
<div widget-area="header"> <div data-widget-area="header">
{{{each widgets.header}}} {{{each widgets.header}}}
{{widgets.header.html}} {{widgets.header.html}}
{{{end}}} {{{end}}}

@ -1,5 +1,5 @@
<!-- IMPORT partials/breadcrumbs.tpl --> <!-- IMPORT partials/breadcrumbs.tpl -->
<div widget-area="header"> <div data-widget-area="header">
{{{each widgets.header}}} {{{each widgets.header}}}
{{widgets.header.html}} {{widgets.header.html}}
{{{end}}} {{{end}}}
@ -76,13 +76,14 @@
</div> </div>
</div> </div>
</div> </div>
<div widget-area="sidebar" class="col-lg-3 col-sm-12 <!-- IF !widgets.sidebar.length -->hidden<!-- ENDIF !widgets.sidebar.length -->"> <div data-widget-area="sidebar" class="col-lg-3 col-sm-12 <!-- IF !widgets.sidebar.length -->hidden<!-- ENDIF !widgets.sidebar.length -->">
{{{each widgets.sidebar}}} {{{each widgets.sidebar}}}
{{widgets.sidebar.html}} {{widgets.sidebar.html}}
{{{end}}} {{{end}}}
</div> </div>
</div> </div>
<div widget-area="footer">
<div data-widget-area="footer">
{{{each widgets.footer}}} {{{each widgets.footer}}}
{{widgets.footer.html}} {{widgets.footer.html}}
{{{end}}} {{{end}}}

@ -1,5 +1,5 @@
<!-- IMPORT partials/breadcrumbs.tpl --> <!-- IMPORT partials/breadcrumbs.tpl -->
<div widget-area="header"> <div data-widget-area="header">
{{{each widgets.header}}} {{{each widgets.header}}}
{{widgets.header.html}} {{widgets.header.html}}
{{{end}}} {{{end}}}

@ -1,5 +1,6 @@
<!-- IMPORT partials/breadcrumbs.tpl --> <!-- IMPORT partials/breadcrumbs.tpl -->
<div widget-area="header">
<div data-widget-area="header">
{{{each widgets.header}}} {{{each widgets.header}}}
{{widgets.header.html}} {{widgets.header.html}}
{{{end}}} {{{end}}}

Loading…
Cancel
Save