-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path_Layout.cshtml
More file actions
76 lines (75 loc) · 3.88 KB
/
_Layout.cshtml
File metadata and controls
76 lines (75 loc) · 3.88 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
74
75
76
@using cloudscribe.Web.Navigation
@using cloudscribe.Core.Models
@using cloudscribe.Core.Identity
@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="~/cssmin/themes/default/bootstrap.css" />
<link rel="stylesheet" href="~/css/site.css" asp-append-version="true" />
</environment>
<environment names="Staging,Production">
<link rel="stylesheet" href="~/cssmin/themes/default/bootstrap.min.css" />
<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()
<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>
</div>
<environment names="Development">
<script src="~/js/jquery.js"></script>
<script src="~/js/bootstrap.bundle.js"></script>
<script src="~/js/site.js" asp-append-version="true"></script>
</environment>
<environment names="Staging,Production">
<script src="https://ajax.aspnetcdn.com/ajax/jquery/jquery-2.2.0.min.js"
asp-fallback-src="~/js/jquery.min.js"
asp-fallback-test="window.jQuery">
</script>
<script src="https://ajax.aspnetcdn.com/ajax/bootstrap/3.3.6/bootstrap.min.js"
asp-fallback-src="~/js/bootstrap.min.js"
asp-fallback-test="window.jQuery && window.jQuery.fn && window.jQuery.fn.modal">
</script>
<script src="~/js/site.min.js" asp-append-version="true"></script>
</environment>
@RenderSection("Bottom", required: false)
@RenderSection("scripts", required: false)
<add-this profile-id="@Tenant.AddThisDotComUsername" async></add-this>
</body>
</html>