header.html 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <!-- Required meta tags -->
  5. <meta charset="utf-8">
  6. <meta name="theme-color" content="#205081" />
  7. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  8. <!-- Bootstrap CSS -->
  9. <link rel="stylesheet" href="{{$.System.PathCssBootstrap}}">
  10. <title>
  11. {{if not (eq $.Data.Module "404")}}
  12. {{if eq $.Data.Module "index"}}
  13. {{$.Data.Page.Name}}
  14. {{else if or (eq $.Data.Module "blog") (eq $.Data.Module "blog-post") (eq $.Data.Module "blog-category")}}
  15. {{if eq $.Data.Module "blog-category"}}
  16. Posts of category "{{$.Data.Blog.Category.Name}}" | Blog
  17. {{else if eq $.Data.Module "blog-post"}}
  18. {{$.Data.Blog.Post.Name}} | Blog
  19. {{else}}
  20. Latest posts | Blog
  21. {{end}}
  22. {{else if or (eq $.Data.Module "shop") (eq $.Data.Module "shop-product") (eq $.Data.Module "shop-category")}}
  23. {{if eq $.Data.Module "shop-category"}}
  24. Products of category "{{$.Data.Shop.Category.Name}}" | Shop
  25. {{else if eq $.Data.Module "shop-product"}}
  26. {{$.Data.Shop.Product.Name}} | Shop
  27. {{else}}
  28. Latest products | Shop
  29. {{end}}
  30. {{end}}
  31. {{else}}
  32. Error 404
  33. {{end}}
  34. </title>
  35. <meta name="keywords" content="{{$.Data.Page.MetaKeywords}}" />
  36. <meta name="description" content="{{$.Data.Page.MetaDescription}}" />
  37. <link rel="shortcut icon" href="{{$.System.PathIcoFav}}" type="image/x-icon" />
  38. <!-- Template CSS file from template folder -->
  39. <link rel="stylesheet" href="{{$.System.PathThemeStyles}}?v=2">
  40. <!-- Template JavaScript file from template folder -->
  41. <script src="{{$.System.PathThemeScripts}}?v=2"></script>
  42. </head>
  43. <body class="fixed-top-bar1">
  44. <div id="wrap">
  45. <nav class="navbar navbar-expand-lg navbar-light bg-light">
  46. <div class="container">
  47. <a class="navbar-brand" href="/">Fave {{$.System.InfoVersion}}</a>
  48. <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
  49. <span class="navbar-toggler-icon"></span>
  50. </button>
  51. <div class="collapse navbar-collapse" id="navbarResponsive">
  52. <ul class="navbar-nav ml-auto">
  53. <li class="nav-item{{if eq $.Data.Page.Alias "/"}} active{{end}}">
  54. <a class="nav-link" href="/">Home</a>
  55. </li>
  56. <li class="nav-item">
  57. <a class="nav-link{{if eq $.Data.Page.Alias "/another/"}} active{{end}}" href="/another/">Another</a>
  58. </li>
  59. <li class="nav-item">
  60. <a class="nav-link{{if eq $.Data.Page.Alias "/about/"}} active{{end}}" href="/about/">About</a>
  61. </li>
  62. <li class="nav-item">
  63. <a class="nav-link{{if or (eq $.Data.Module "blog") (eq $.Data.Module "blog-post") (eq $.Data.Module "blog-category")}} active{{end}}" href="/blog/">Blog</a>
  64. </li>
  65. <li class="nav-item">
  66. <a class="nav-link{{if or (eq $.Data.Module "shop") (eq $.Data.Module "shop-product") (eq $.Data.Module "shop-category")}} active{{end}}" href="/shop/">Shop</a>
  67. </li>
  68. <li class="nav-item">
  69. <a class="nav-link{{if eq $.Data.Module "404"}} active{{end}}" href="/not-existent-page/">404</a>
  70. </li>
  71. </ul>
  72. </div>
  73. </div>
  74. </nav>
  75. <div id="main">
  76. <div class="bg-fave">
  77. <div class="container">
  78. <h1 class="text-left text-white m-0 p-0 py-5">
  79. {{if not (eq $.Data.Module "404")}}
  80. {{if eq $.Data.Module "index"}}
  81. {{if eq $.Data.Page.Alias "/"}}
  82. Welcome to home page
  83. {{else}}
  84. Welcome to some another page
  85. {{end}}
  86. {{else if or (eq $.Data.Module "blog") (eq $.Data.Module "blog-post") (eq $.Data.Module "blog-category")}}
  87. {{if eq $.Data.Module "blog-category"}}
  88. Blog category
  89. {{else if eq $.Data.Module "blog-post"}}
  90. Blog post
  91. {{else}}
  92. Blog
  93. {{end}}
  94. {{else if or (eq $.Data.Module "shop") (eq $.Data.Module "shop-product") (eq $.Data.Module "shop-category")}}
  95. {{if eq $.Data.Module "shop-category"}}
  96. Shop category
  97. {{else if eq $.Data.Module "shop-product"}}
  98. Shop product
  99. {{else}}
  100. Shop
  101. {{end}}
  102. {{end}}
  103. {{else}}
  104. Oops, page is not found...
  105. {{end}}
  106. </h1>
  107. </div>
  108. </div>
  109. <div class="container clear-top">
  110. <div class="row pt-4">
  111. {{if or (eq $.Data.Module "shop") (eq $.Data.Module "shop-category")}}
  112. <div class="col-sm-5 col-md-4 col-lg-3">
  113. {{template "sidebar-left.html" .}}
  114. </div>
  115. {{end}}
  116. {{if or (eq $.Data.Module "shop-product")}}
  117. <div class="col-md-12">
  118. {{else}}
  119. <div class="col-sm-7 col-md-8 col-lg-9">
  120. {{end}}