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.

118 lines
4.6 KiB

  1. @{
  2. string next = Blog.GetNextPage();
  3. string prev = Blog.GetPrevPage();
  4. }
  5. <!doctype html>
  6. <html lang="en-us">
  7. <head prefix="og: http://ogp.me/ns#">
  8. <meta charset="utf-8" />
  9. <title>@Page.Title</title>
  10. <meta name="description" content="@Blog.Description" />
  11. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1" />
  12. <link type="application/rsd+xml" rel="edituri" title="RSD" href="~/views/robots/rsd" />
  13. <link type="application/rss+xml" rel="alternate" title="@Blog.Title" href="~/feed/rss/" />
  14. <link type="application/atom+xml" rel="alternate" title="@Blog.Title" href="~/feed/atom/" />
  15. <link rel="stylesheet" href="@Blog.FingerPrint("/css/bootstrap.min.css")" />
  16. @*<link rel="stylesheet" href="@Blog.FingerPrint("/themes/" + Blog.Theme + "/site.css")" />*@
  17. <link rel="stylesheet" href="@Blog.FingerPrint("/themes/" + Blog.Theme + "/common.css")" />
  18. <link rel="shortcut icon" href="@Blog.FingerPrint("/favicon.ico")" type="image/x-icon" />
  19. <link rel="dns-prefetch" href="http://gravatar.com/" />
  20. @AdminCss()
  21. <meta name="application-name" content="@Blog.Title" />
  22. <meta name="msapplication-TileColor" content="#ffffff" />
  23. <meta property="og:title" content="@Page.Title" />
  24. <meta property="og:type" content="website" />
  25. <meta property="og:image" content="@Blog.Image" />
  26. <meta property="og:url" content="@(Request.Url.Scheme +"://" + Request.Url.Authority + Request.RawUrl)" />
  27. @if (!string.IsNullOrEmpty(prev))
  28. {
  29. <link rel="prev" href="@prev" />
  30. }
  31. @if (!string.IsNullOrEmpty(next))
  32. {
  33. <link rel="next" href="@next" />
  34. }
  35. </head>
  36. <body itemscope itemtype="http://schema.org/Blog" class="@(User.Identity.IsAuthenticated ? "admin" : null)">
  37. <nav class="navbar navbar-default navbar-fixed-top" role="navigation">
  38. <div class="container">
  39. <div class="navbar-header navbar-right">
  40. @*<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#collapse">
  41. <span class="sr-only">Toggle navigation</span>
  42. <span class="icon-bar"></span>
  43. <span class="icon-bar"></span>
  44. <span class="icon-bar"></span>
  45. </button>*@
  46. <a class="navbar-brand" href="#">
  47. <small>اخبار سومین</small>
  48. <img src="@Blog.FingerPrint("/images/revert-logo.png")">
  49. </a>
  50. </div>
  51. @*<div class="collapse navbar-collapse navbar-right" id="collapse">
  52. <ul class="nav navbar-nav navbar-right">
  53. <li class="rtl"><a href="/"><span class="glyphicon glyphicon-home"></span>خانه</a></li>
  54. <li class="rtl"><a href="/jobs">آگهی‌های استخدام</a></li>
  55. <li class="rtl"><a href="/login">ورود به سایت</a></li>
  56. </ul>
  57. </div>*@
  58. </div>
  59. </nav>
  60. <div class="container">
  61. <div class="row row-offcanvas row-offcanvas-right">
  62. @*<header role="banner">
  63. <h1 class="rtl" itemprop="name">@Blog.Title</h1>
  64. </header>*@
  65. <div role="main" class="col-md-12">
  66. @RenderBody()
  67. @if (Page.ShowPaging != null)
  68. {
  69. <ul class="pager">
  70. @if (Blog.GetPosts().Count() > Blog.PostsPerPage * Blog.CurrentPage)
  71. {
  72. <li class="previous"><a href="@Blog.GetPagingUrl(1)" rel="prev">&larr; Older</a></li>
  73. }
  74. @if (Blog.CurrentPage > 1)
  75. {
  76. <li class="next"><a href="@Blog.GetPagingUrl(-1)" rel="next">Newer &rarr;</a></li>
  77. }
  78. </ul>
  79. }
  80. </div>
  81. </div>
  82. </div>
  83. <footer class="text-center" role="contentinfo" itemscope itemtype="http://schema.org/Person" itemprop="author">
  84. <span>
  85. Copyright &copy; @DateTime.Now.Year
  86. <a href="http://www.sevom.in" itemprop="url name">Sevomin</a>
  87. </span>
  88. </footer>
  89. @if ((Blog.CurrentPost != null && Blog.CurrentPost.AreCommentsOpen(Context)) || Blog.IsNewPost)
  90. {
  91. <script src="@Blog.FingerPrint("/scripts/comments.js")" async defer></script>
  92. }
  93. @if (User.Identity.IsAuthenticated)
  94. {
  95. @RenderPage("~/views/AdminMenu.cshtml")
  96. }
  97. </body>
  98. </html>
  99. @helper AdminCss()
  100. {
  101. if (User.Identity.IsAuthenticated)
  102. {
  103. <link href="@Blog.FingerPrint("/css/admin.css")" rel="stylesheet" />
  104. }
  105. }