mirror of https://github.com/abpframework/abp
				
				
				
			
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							27 lines
						
					
					
						
							893 B
						
					
					
				
			
		
		
	
	
							27 lines
						
					
					
						
							893 B
						
					
					
				| using Volo.Abp.AspNetCore.Mvc.UI.Theming;
 | |
| using Volo.Abp.DependencyInjection;
 | |
| 
 | |
| namespace Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic
 | |
| {
 | |
|     [ThemeName(Name)]
 | |
|     public class BasicTheme : ITheme, ITransientDependency
 | |
|     {
 | |
|         public const string Name = "Basic";
 | |
| 
 | |
|         public string GetLayout(string name, bool fallbackToDefault = true)
 | |
|         {
 | |
|             switch (name)
 | |
|             {
 | |
|                 case StandardLayouts.Application:
 | |
|                     return "~/Themes/Basic/Layouts/Application.cshtml";
 | |
|                 case StandardLayouts.Account:
 | |
|                     return "~/Themes/Basic/Layouts/Account.cshtml";
 | |
|                 case StandardLayouts.Empty:
 | |
|                     return "~/Themes/Basic/Layouts/Empty.cshtml";
 | |
|                 default:
 | |
|                     return fallbackToDefault ? "~/Themes/Basic/Layouts/Application.cshtml" : null;
 | |
|             }
 | |
|         }
 | |
|     }
 | |
| }
 |