mirror of https://github.com/abpframework/abp.git
13 changed files with 99 additions and 24 deletions
@ -1,6 +0,0 @@ |
|||
@using Volo.Abp.AspNetCore.Mvc.UI.Theming |
|||
@inject IThemeManager ThemeManager |
|||
@{ |
|||
//TODO: Move this to a lower layer... to Shared? |
|||
Layout = ThemeManager.CurrentTheme.DefaultLayout; |
|||
} |
|||
@ -0,0 +1,38 @@ |
|||
@using Volo.Abp.AspNetCore.Mvc.AntiForgery |
|||
@using Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic.Themes.Basic.Components.MainNavbar |
|||
@inject IAbpAntiForgeryManager AbpAntiForgeryManager |
|||
@{ |
|||
Layout = null; |
|||
AbpAntiForgeryManager.SetCookie(); |
|||
} |
|||
|
|||
<!DOCTYPE html> |
|||
|
|||
<html lang="en"> |
|||
<head> |
|||
<meta charset="utf-8"> |
|||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> |
|||
|
|||
<title>ABP Web Application</title> |
|||
|
|||
<vc:abp-style-bundle name="GlobalStyles"></vc:abp-style-bundle> |
|||
|
|||
<link rel="stylesheet" type="text/css" href="~/views/shared/_AppLayout.css" /> |
|||
|
|||
@RenderSection("styles", false) |
|||
</head> |
|||
<body> |
|||
|
|||
<div class="container-fluid"> |
|||
@RenderBody() |
|||
</div> |
|||
|
|||
<vc:abp-script-bundle name="GlobalScripts"></vc:abp-script-bundle> |
|||
|
|||
<script type="text/javascript" src="~/Abp/ApplicationConfigurationScript"></script> |
|||
<script type="text/javascript" src="~/Abp/ServiceProxyScript"></script> |
|||
|
|||
@RenderSection("scripts", false) |
|||
|
|||
</body> |
|||
</html> |
|||
@ -1,6 +0,0 @@ |
|||
@using Volo.Abp.AspNetCore.Mvc.UI.Theming |
|||
@inject IThemeManager ThemeManager |
|||
@{ |
|||
//TODO: Move this to a lower layer... to Shared? |
|||
Layout = ThemeManager.CurrentTheme.DefaultLayout; |
|||
} |
|||
@ -0,0 +1,5 @@ |
|||
@using Volo.Abp.AspNetCore.Mvc.UI.Theming |
|||
@inject IThemeManager ThemeManager |
|||
@{ |
|||
Layout = ThemeManager.CurrentTheme.GetApplicationLayout(); |
|||
} |
|||
@ -0,0 +1,5 @@ |
|||
@using Volo.Abp.AspNetCore.Mvc.UI.Theming |
|||
@inject IThemeManager ThemeManager |
|||
@{ |
|||
Layout = ThemeManager.CurrentTheme.GetApplicationLayout(); |
|||
} |
|||
@ -0,0 +1,5 @@ |
|||
@using Volo.Abp.AspNetCore.Mvc.UI.Theming |
|||
@inject IThemeManager ThemeManager |
|||
@{ |
|||
Layout = ThemeManager.CurrentTheme.GetApplicationLayout(); |
|||
} |
|||
@ -0,0 +1,9 @@ |
|||
namespace Volo.Abp.AspNetCore.Mvc.UI.Theming |
|||
{ |
|||
public static class StandardLayouts |
|||
{ |
|||
public const string Application = "Application"; |
|||
public const string Account = "Account"; |
|||
public const string Empty = "Empty"; |
|||
} |
|||
} |
|||
@ -0,0 +1,20 @@ |
|||
namespace Volo.Abp.AspNetCore.Mvc.UI.Theming |
|||
{ |
|||
public static class ThemeExtensions |
|||
{ |
|||
public static string GetApplicationLayout(this ITheme theme, bool fallbackToDefault = true) |
|||
{ |
|||
return theme.GetLayout(StandardLayouts.Application, fallbackToDefault); |
|||
} |
|||
|
|||
public static string GetAccountLayout(this ITheme theme, bool fallbackToDefault = true) |
|||
{ |
|||
return theme.GetLayout(StandardLayouts.Account, fallbackToDefault); |
|||
} |
|||
|
|||
public static string GetEmptyLayout(this ITheme theme, bool fallbackToDefault = true) |
|||
{ |
|||
return theme.GetLayout(StandardLayouts.Empty, fallbackToDefault); |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue