Source

FunnelWebAzureCompat / src / FunnelWeb.Web / Views / Shared / _Public.cshtml

Full commit
<!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")" />
    @{ 
        Html.RequiresCss("Base.css", "Base", 0);
        Html.RequiresCss("Theme.css", "Theme", 10000);
    }
    @MvcHtmlString.Create(Html.RenderCssHere(new List<IClientDependencyPath> {
        new BasicPath("Base", "~/Content/themes/base"),
        new BasicPath("Theme", "~/Themes/" + Html.Settings().Theme + "/Content/Styles")
        }))
    @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>
                    @MvcHtmlString.Create(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() -->
    @MvcHtmlString.Create(Html.RenderJsHere(new List<IClientDependencyPath> {
            new BasicPath("Scripts", "~/Scripts"),
            new BasicPath("ThemeScripts", "~/Themes/" + Html.Settings().Theme  + "/Content/Scripts/")
        })
    )
    @{Html.RequiresJs("jquery-1.7.min.js", "Scripts", 0);
      Html.RequiresJs("jsdate.js", "Scripts", 1);
      Html.RequiresJs("prettify.js", "Scripts", 1);
      Html.RequiresJs("showdown.js", "Scripts", 1);
      Html.RequiresJs("wmd.js", "Scripts", 1);
      Html.RequiresJs("site.js", "Scripts", 1);
    }
    @MvcMiniProfiler.MiniProfiler.RenderIncludes()
    @if (IsSectionDefined("Scripts"))
    {
        @RenderSection("Scripts")
    }
</body>
</html>