PageRenderTime 13ms CodeModel.GetById 10ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/BlogEngine/BlogEngine.NET/themes/Garland-Revisited/site.cshtml

#
Razor | 93 lines | 80 code | 7 blank | 6 comment | 3 complexity | 58038aa02ad67c2bfcb997d611a53368 MD5 | raw file
 1@using BlogEngine.Core;
 2@{
 3    string loginText = Security.IsAuthenticated ? Resources.labels.logoff : Resources.labels.login;
 4    string loginUrl = Security.IsAuthenticated ? Utils.RelativeWebRoot + "Account/login.aspx?logoff" : Utils.RelativeWebRoot + "Account/login.aspx";
 5
 6    bool isPost = Request.Url.PathAndQuery.IndexOf("/post/", StringComparison.OrdinalIgnoreCase) != -1;
 7    bool isPage = Request.Url.PathAndQuery.IndexOf("/page/", StringComparison.OrdinalIgnoreCase) != -1;
 8    string bodyCss = string.Format("sidebars{0}{1}",
 9        isPost ? " single-post" : string.Empty,
10        isPage ? " page" : string.Empty);
11}
12<!DOCTYPE html>
13<html>
14<head>
15    <title>@Page.Title</title>
16    <link rel="shortcut icon" href="@Href(Utils.RelativeWebRoot + "pics/blogengine.ico")" type="image/x-icon"/>
17    <link href="@Href(Utils.RelativeWebRoot + "themes/" + BlogSettings.Instance.Theme + "/style.css")" rel="stylesheet" type="text/css" />
18</head>
19<body class="@bodyCss">
20    <div id="navigation">
21    </div>
22    <div id="wrapper">
23        <div id="container" class="clear-block">
24            <div id="header">
25                <div id="logo-floater">
26                    <h1>
27                        <a href="@Utils.AbsoluteWebRoot">@BlogSettings.Instance.Name</a> <span style="font-style: italic;
28                            font-size: 60%;">@BlogSettings.Instance.Description</span>
29                    </h1>
30                </div>
31                <!-- <ul class="links primary-links"> -->
32                <ul id="dropmenu">
33                    <li><a href="@(Utils.AbsoluteWebRoot)" rel="home">@(Resources.labels.home)</a></li>
34                    <li><a href="@(Utils.AbsoluteWebRoot)archive.aspx">@(Resources.labels.archive)</a></li>
35                    <li><a href="@(Utils.AbsoluteWebRoot)contact.aspx">@(Resources.labels.contact)</a></li>
36                    @foreach (BlogEngine.Core.Page parentPage in BlogEngine.Core.Page.Pages.Where(p => !p.HasParentPage))
37                    {
38                        <li class="page_item"><a href="@parentPage.RelativeLink" title="@parentPage.Title">@parentPage.Title</a>
39                            @if (parentPage.HasChildPages)
40                            {
41                                <ul class="menu">
42                                    @foreach (BlogEngine.Core.Page childPage in BlogEngine.Core.Page.Pages.Where(p => p.Parent == parentPage.Id))
43                                    {
44                                        <li class="page_item"><a href="@childPage.RelativeLink" title="@childPage.Title">@childPage.Title</a></li>
45                                    }
46                                </ul>
47                            }
48                        </li>
49                    }
50                    <li><a href="@(Utils.FeedUrl)">@Resources.labels.subscribe</a></li>
51                </ul>
52            </div>
53            <!-- /header -->
54
55            <div id="sidebar-left" class="sidebar">
56                <div class="menu">
57                    @Html.Raw(Html.RenderWidgetZone("be_WIDGET_ZONE"))
58                </div>
59            </div>
60
61            <div id="center">
62                <div id="squeeze">
63                    <div class="right-corner">
64                        <div class="left-corner">
65                            <!-- begin content -->
66
67
68                            <div class="node">
69                                @RenderBody()
70                            </div>
71
72
73                            <!-- end content -->
74                            <span class="clear"></span>
75                            <div id="footer">
76                                Theme: Garland-revisited by Pross &bull; Adapted
77                                by <a href="http://allben.net/">Ben Amada</a><br />
78                            </div>
79                        </div>
80                    </div>
81                </div>
82            </div>
83            <!-- /.left-corner, /.right-corner, /#squeeze, /#center -->
84            <div id="sidebar-right" class="sidebar">
85                <div class="menu">
86                    @Html.Raw(Html.RenderWidgetZone("right-sidebar"))
87                </div>
88            </div>
89        </div>
90        <!-- /container -->
91    </div>
92</body>
93</html>