forked from funnelweblog/FunnelWeb
/
_Public.cshtml
103 lines (101 loc) · 4.24 KB
/
_Public.cshtml
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
@using StackExchange.Profiling
<!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js" lang="en">
<!--<![endif]-->
<head>
<title>@(ViewBag.Title == null ? "" : (ViewBag.Title + " - "))@Html.Settings().SiteTitle
</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="language" content="english" />
<meta name="author" content="@Html.Settings().SiteTitle" />
<link href="@Html.Qualify(Html.ActionUrl("Feed", "Feed", null))" type="application/atom+xml" rel="alternate" title="Blog Feed" />
<link href="@Html.Qualify(Html.ActionUrl("CommentFeed", "Feed", null))" type="application/atom+xml" rel="alternate" title="Comments Feed" />
<link title="RSD" href="@Html.Qualify(Href("~/rsd.xml"))" type="application/rsd+xml" rel="EditURI" />
<link rel="icon" type="image/png" href="@Url.Content("~/Content/Resources/favicon.png")" />
@Styles.Render("~/Content/themes/base/baseCss")
@Styles.Render("~/Content/themes/base/css")
<link href="@Html.Qualify(Href("~/content/theme.css"))" rel="stylesheet"/>
@RenderSection("Meta", required: false)
@MvcHtmlString.Create(Html.Settings().HtmlHead)
<script>
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
window.disqus_shortname = '@Html.Settings().DisqusShortname'; // required: replace example with your forum shortname
window.disqus_identifier = document.title || 'Home';
window.disqus_developer = !! ~document.location.href.indexOf("localhost") ? 1 : 0;
window.disqus_url = document.location.href;
</script>
</head>
<body>
<header>
<a class="logo" href="@Url.Content("~/")" title="@Html.Settings().SiteTitle">@Html.Settings().SiteTitle</a>
<div>
<nav>
<ul>
@Html.QualifyLinks(Html.Settings().MainLinks)
@if (ViewData.IsLoggedIn())
{
<li>@Html.AdminActionLink("New Post", "Edit", "WikiAdmin")</li>
<li>@Html.AdminActionLink("Admin", "Index", "Admin")</li>
<li>@Html.AdminActionLink("Logout", "Logout", "Login")</li>
}
</ul>
</nav>
<div class="search">
@using (Html.BeginForm("Search", "Wiki", FormMethod.Get))
{
<p>
@Html.TextBox("q", Request.QueryString["q"], new { alt = "Search", @class = "medium" })
<input type="submit" id="search" class="submit" value="Search" />
</p>
}
</div>
</div>
</header>
<div role="main">
@if (TempData.ContainsKey("Flash"))
{
<div class="flash">
<p>@TempData["Flash"]</p>
</div>
}
<div class="body">
@if (IsSectionDefined("Summary"))
{
<div class="intro" id="_summary">
<div class="intro-in">
@RenderSection("Summary", required: false)
</div>
</div>
}
<div class="content">
@RenderBody()
</div>
</div>
</div>
<footer>
@MvcHtmlString.Create(Html.Settings().Footer)
@if (!ViewData.IsLoggedIn())
{
<p>
Is this your blog? @Html.AdminActionLink("Log in and update it", "Login", "Login").</p>
}
</footer>
<!-- Powered by FunnelWeb, the blog engine of real developers -->
<!-- FunnelWeb version: @Html.Version() -->
@Scripts.Render("~/bundles/jquery")
@Scripts.Render("~/bundles/jsdate")
@Scripts.Render("~/bundles/showdown")
@Scripts.Render("~/bundles/prettify")
@MiniProfiler.RenderIncludes()
@MvcHtmlString.Create(Html.Settings().HtmlFooter)
@if (IsSectionDefined("Scripts"))
{
@RenderSection("Scripts")
}
</body>
</html>