-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path_Layout.cshtml
More file actions
73 lines (73 loc) · 3.89 KB
/
_Layout.cshtml
File metadata and controls
73 lines (73 loc) · 3.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
@using cloudscribe.Core.Models
@using cloudscribe.Core.Identity
@using cloudscribe.Web.Navigation
@using cloudscribe.Web.Pagination
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@addTagHelper "*, cloudscribe.Web.Common"
@addTagHelper "*, cloudscribe.Web.Navigation"
@addTagHelper "*, cloudscribe.Web.Pagination"
@addTagHelper "*, cloudscribe.Core.Web"
@inject SiteContext Tenant
@{
var siteRoot = "";
if (!string.IsNullOrWhiteSpace(Tenant.SiteFolderName)) { siteRoot = "/" + Tenant.SiteFolderName; }
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>@ViewData["Title"] - @(Tenant?.SiteName ?? "Sample")</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
@RenderSection("Meta", required: false)
<environment names="Development">
<link rel="stylesheet" href="~/css/bootstrap.css" cs-resolve-theme-resource="true" cs-tenant="@Tenant" />
<link rel="stylesheet" href="~/css/site.css" asp-append-version="true" />
</environment>
<environment names="Staging,Production">
<link rel="stylesheet" href="~/css/bootstrap.min.css" cs-resolve-theme-resource="true" cs-tenant="@Tenant" />
<link rel="stylesheet" href="~/css/site.min.css" asp-append-version="true" />
</environment>
@RenderSection("Styles", required: false)
<google-analytics profile-id="@Tenant.GoogleAnalyticsProfileId" user-id="@User.GetUserId()"></google-analytics>
</head>
<body class="@ViewData["BodyClass"]">
<nav class="navbar navbar-light bg-light">
<div class="container">
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<a href="~/@(Tenant?.SiteFolderName ?? "")" class="navbar-brand">@(Tenant?.SiteName ?? "Sample")</a>
<div class="container">
<div class="collapse navbar-collapse" id="navbarSupportedContent">
@await Component.InvokeAsync("Navigation", new { viewName = "BootstrapTopNavWithDropdowns", filterName = NamedNavigationFilters.TopNav, startingNodeKey = "" })
@await Html.PartialAsync("_LoginPartial")
</div>
</div>
</div>
</nav>
@RenderSection("Toolbar", required: false)
<div class="container body-content">
@await Component.InvokeAsync("Navigation", new { viewName = "BootstrapBreadcrumbs", filterName = NamedNavigationFilters.Breadcrumbs, startingNodeKey = "" })
@await Html.PartialAsync("AlertsPartial")
@RenderBody()
</div>
<footer class="container text-center">
<small>Copyright © @DateTime.Now.Year - @(Tenant?.SiteName ?? "Sample")</small><br />
<small>
@* you are free to remove the powered by cloudscribe link but we appreciate it if you choose to keep it! *@
<a target="_blank" href="https://www.cloudscribe.com/?utm_source=@Context.Request.Host.Value&utm_medium=referral&utm_campaign=poweredbycloudscribe">Powered by cloudscribe</a>
</small>
</footer>
<environment names="Development">
<script src="~/js/jquery.js" cs-resolve-theme-resource="true" cs-tenant="@Tenant"></script>
<script src="~/js/bootstrap.js" cs-resolve-theme-resource="true" cs-tenant="@Tenant"></script>
</environment>
<environment names="Staging,Production">
<script src="~/js/jquery.min.js" cs-resolve-theme-resource="true" cs-tenant="@Tenant"></script>
<script src="~/js/bootstrap.min.js" cs-resolve-theme-resource="true" cs-tenant="@Tenant"></script>
</environment>
@RenderSection("Bottom", required: false)
@RenderSection("scripts", required: false)
<add-this profile-id="@Tenant.AddThisDotComUsername" async></add-this>
</body>
</html>