You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

119 lines
4.6 KiB

@{
string next = Blog.GetNextPage();
string prev = Blog.GetPrevPage();
}
<!doctype html>
<html lang="en-us">
<head prefix="og: http://ogp.me/ns#">
<meta charset="utf-8" />
<title>@Page.Title</title>
<meta name="description" content="@Blog.Description" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1" />
<link type="application/rsd+xml" rel="edituri" title="RSD" href="~/views/robots/rsd" />
<link type="application/rss+xml" rel="alternate" title="@Blog.Title" href="~/feed/rss/" />
<link type="application/atom+xml" rel="alternate" title="@Blog.Title" href="~/feed/atom/" />
<link rel="stylesheet" href="@Blog.FingerPrint("/css/bootstrap.min.css")" />
@*<link rel="stylesheet" href="@Blog.FingerPrint("/themes/" + Blog.Theme + "/site.css")" />*@
<link rel="stylesheet" href="@Blog.FingerPrint("/themes/" + Blog.Theme + "/common.css")" />
<link rel="shortcut icon" href="@Blog.FingerPrint("/favicon.ico")" type="image/x-icon" />
<link rel="dns-prefetch" href="http://gravatar.com/" />
@AdminCss()
<meta name="application-name" content="@Blog.Title" />
<meta name="msapplication-TileColor" content="#ffffff" />
<meta property="og:title" content="@Page.Title" />
<meta property="og:type" content="website" />
<meta property="og:image" content="@Blog.Image" />
<meta property="og:url" content="@(Request.Url.Scheme +"://" + Request.Url.Authority + Request.RawUrl)" />
@if (!string.IsNullOrEmpty(prev))
{
<link rel="prev" href="@prev" />
}
@if (!string.IsNullOrEmpty(next))
{
<link rel="next" href="@next" />
}
</head>
<body itemscope itemtype="http://schema.org/Blog" class="@(User.Identity.IsAuthenticated ? "admin" : null)">
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header navbar-right">
@*<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>*@
<a class="navbar-brand" href="#">
<small>اخبار سومین</small>
<img src="@Blog.FingerPrint("/images/revert-logo.png")">
</a>
</div>
@*<div class="collapse navbar-collapse navbar-right" id="collapse">
<ul class="nav navbar-nav navbar-right">
<li class="rtl"><a href="/"><span class="glyphicon glyphicon-home"></span>خانه</a></li>
<li class="rtl"><a href="/jobs">آگهی‌های استخدام</a></li>
<li class="rtl"><a href="/login">ورود به سایت</a></li>
</ul>
</div>*@
</div>
</nav>
<div class="container">
<div class="row row-offcanvas row-offcanvas-right">
@*<header role="banner">
<h1 class="rtl" itemprop="name">@Blog.Title</h1>
</header>*@
<div role="main" class="col-md-12">
@RenderBody()
@if (Page.ShowPaging != null)
{
<ul class="pager">
@if (Blog.GetPosts().Count() > Blog.PostsPerPage * Blog.CurrentPage)
{
<li class="previous"><a href="@Blog.GetPagingUrl(1)" rel="prev">&larr; Older</a></li>
}
@if (Blog.CurrentPage > 1)
{
<li class="next"><a href="@Blog.GetPagingUrl(-1)" rel="next">Newer &rarr;</a></li>
}
</ul>
}
</div>
</div>
</div>
<footer class="text-center" role="contentinfo" itemscope itemtype="http://schema.org/Person" itemprop="author">
<span>
Copyright &copy; @DateTime.Now.Year
<a href="http://www.sevom.in" itemprop="url name">Sevomin</a>
</span>
</footer>
@if ((Blog.CurrentPost != null && Blog.CurrentPost.AreCommentsOpen(Context)) || Blog.IsNewPost)
{
<script src="@Blog.FingerPrint("/scripts/comments.js")" async defer></script>
}
@if (User.Identity.IsAuthenticated)
{
@RenderPage("~/views/AdminMenu.cshtml")
}
</body>
</html>
@helper AdminCss()
{
if (User.Identity.IsAuthenticated)
{
<link href="@Blog.FingerPrint("/css/admin.css")" rel="stylesheet" />
}
}