Update theme.js
This commit is contained in:
		
							parent
							
								
									80f77b58af
								
							
						
					
					
						commit
						13d181c18b
					
				
							
								
								
									
										59
									
								
								lib/theme.js
									
									
									
									
									
								
							
							
						
						
									
										59
									
								
								lib/theme.js
									
									
									
									
									
								
							@ -1,35 +1,30 @@
 | 
				
			|||||||
(function(module) {
 | 
					 | 
				
			||||||
	"use strict";
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	var Theme = {};
 | 
					"use strict";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	Theme.defineWidgetAreas = function(areas, callback) {
 | 
					var Theme = module.exports;
 | 
				
			||||||
		areas = areas.concat([
 | 
					 | 
				
			||||||
			{
 | 
					 | 
				
			||||||
				'name': 'MOTD',
 | 
					 | 
				
			||||||
				'template': 'home.tpl',
 | 
					 | 
				
			||||||
				'location': 'motd'
 | 
					 | 
				
			||||||
			},
 | 
					 | 
				
			||||||
			{
 | 
					 | 
				
			||||||
				'name': 'Homepage Footer',
 | 
					 | 
				
			||||||
				'template': 'home.tpl',
 | 
					 | 
				
			||||||
				'location': 'footer'
 | 
					 | 
				
			||||||
			},
 | 
					 | 
				
			||||||
			{
 | 
					 | 
				
			||||||
				'name': 'Category Sidebar',
 | 
					 | 
				
			||||||
				'template': 'category.tpl',
 | 
					 | 
				
			||||||
				'location': 'sidebar'
 | 
					 | 
				
			||||||
			},
 | 
					 | 
				
			||||||
			{
 | 
					 | 
				
			||||||
				'name': 'Topic Footer',
 | 
					 | 
				
			||||||
				'template': 'topic.tpl',
 | 
					 | 
				
			||||||
				'location': 'footer'
 | 
					 | 
				
			||||||
			}
 | 
					 | 
				
			||||||
		]);
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
		callback(null, areas);
 | 
					Theme.defineWidgetAreas = async function(areas) {
 | 
				
			||||||
	};
 | 
						areas = areas.concat([
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
	module.exports = Theme;
 | 
								'name': 'MOTD',
 | 
				
			||||||
 | 
								'template': 'home.tpl',
 | 
				
			||||||
}(module));
 | 
								'location': 'motd'
 | 
				
			||||||
 | 
							},
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								'name': 'Homepage Footer',
 | 
				
			||||||
 | 
								'template': 'home.tpl',
 | 
				
			||||||
 | 
								'location': 'footer'
 | 
				
			||||||
 | 
							},
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								'name': 'Category Sidebar',
 | 
				
			||||||
 | 
								'template': 'category.tpl',
 | 
				
			||||||
 | 
								'location': 'sidebar'
 | 
				
			||||||
 | 
							},
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								'name': 'Topic Footer',
 | 
				
			||||||
 | 
								'template': 'topic.tpl',
 | 
				
			||||||
 | 
								'location': 'footer'
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
						]);
 | 
				
			||||||
 | 
						return areas;
 | 
				
			||||||
 | 
					};
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user