place some code under the right loop (#5945)

v1.18.x
Chế Tiệp Chân Khoa 8 years ago committed by Barış Soner Uşaklı
parent ab765c5407
commit 1f5d14dda4

@ -23,6 +23,7 @@
widgetsAtLocation.forEach(function (widget) {
html += widget.html;
});
if (location === 'footer' && !$('#content [widget-area="footer"]').length) {
$('#content').append($('<div class="row"><div widget-area="footer" class="col-xs-12"></div></div>'));
@ -37,7 +38,6 @@
} else if (location === 'header' && !$('#content [widget-area="header"]').length) {
$('#content').prepend($('<div class="row"><div widget-area="header" class="col-xs-12"></div></div>'));
}
});
area = $('#content [widget-area="' + location + '"]');
if (html && area.length) {

Loading…
Cancel
Save