mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-11-03 20:45:58 +01:00 
			
		
		
		
	closes #1855
This commit is contained in:
		@@ -29,7 +29,7 @@
 | 
			
		||||
		if (!numLocations) {
 | 
			
		||||
			ajaxify.widgets.reposition();
 | 
			
		||||
		}
 | 
			
		||||
		
 | 
			
		||||
 | 
			
		||||
		function renderWidgets(location) {
 | 
			
		||||
			var area = $('#content [widget-area="' + location + '"]'),
 | 
			
		||||
				areaData = {
 | 
			
		||||
@@ -46,12 +46,12 @@
 | 
			
		||||
				}
 | 
			
		||||
 | 
			
		||||
				if (!area.length && window.location.pathname.indexOf('/admin') === -1 && renderedWidgets.length) {
 | 
			
		||||
					if (location === 'footer') {
 | 
			
		||||
					if (location === 'footer' && !$('#content [widget-area="footer"]').length) {
 | 
			
		||||
						$('#content').append($('<div class="col-xs-12"><div widget-area="footer"></div></div>'));
 | 
			
		||||
					} else if (location === 'sidebar') {
 | 
			
		||||
					} else if (location === 'sidebar' && !$('#content [widget-area="sidebar"]').length) {
 | 
			
		||||
						$('#content > *').wrapAll($('<div class="col-lg-9 col-xs-12"></div>'));
 | 
			
		||||
						$('#content').append($('<div class="col-lg-3 col-xs-12"><div widget-area="sidebar"></div></div>'));
 | 
			
		||||
					} else if (location === 'header') {
 | 
			
		||||
					} else if (location === 'header' && !$('#content [widget-area="header"]').length) {
 | 
			
		||||
						$('#content').prepend($('<div class="col-xs-12"><div widget-area="header"></div></div>'));
 | 
			
		||||
					}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user