|
|
|
@ -53,8 +53,7 @@
|
|
|
|
|
if (location === 'footer' && !$('#content [widget-area="footer"]').length) {
|
|
|
|
|
$('#content').append($('<div class="row"><div widget-area="footer" class="col-xs-12"></div></div>'));
|
|
|
|
|
} else if (location === 'sidebar' && !$('#content [widget-area="sidebar"]').length) {
|
|
|
|
|
$('#content > *').wrapAll($('<div class="row"><div class="col-lg-9 col-xs-12"></div></div>'));
|
|
|
|
|
$('#content').append($('<div class="row"><div widget-area="sidebar" class="col-lg-3 col-xs-12"></div></div>'));
|
|
|
|
|
$('#content > *').wrapAll($('<div class="row"><div class="col-lg-9 col-xs-12"></div><div widget-area="sidebar" class="col-lg-3 col-xs-12"></div></div></div>'));
|
|
|
|
|
} else if (location === 'header' && !$('#content [widget-area="header"]').length) {
|
|
|
|
|
$('#content').prepend($('<div class="row"><div widget-area="header" class="col-xs-12"></div></div>'));
|
|
|
|
|
}
|
|
|
|
@ -69,11 +68,11 @@
|
|
|
|
|
ajaxify.widgets.reposition(location);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$('#content [widget-area] img:not(.user-img)').addClass('img-responsive');
|
|
|
|
|
$('#content [widget-area] img:not(.user-img)').addClass('img-responsive');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(window).trigger('action:widgets.loaded', {});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (typeof callback === 'function') {
|
|
|
|
|
callback();
|
|
|
|
|
}
|
|
|
|
|