header_html_file.go 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. package template
  2. var VarHeaderHtmlFile = []byte(`<!doctype html>
  3. <html lang="en">
  4. <head>
  5. <!-- Required meta tags -->
  6. <meta charset="utf-8">
  7. <meta name="theme-color" content="#205081" />
  8. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  9. <!-- Bootstrap CSS -->
  10. <link rel="stylesheet" href="{{$.System.PathCssBootstrap}}">
  11. <link rel="stylesheet" href="{{$.System.PathCssLightGallery}}">
  12. <title>{{$.Data.CachedBlock1}}</title>
  13. <meta name="keywords" content="{{$.Data.Page.MetaKeywords}}" />
  14. <meta name="description" content="{{$.Data.Page.MetaDescription}}" />
  15. <link rel="shortcut icon" href="{{$.System.PathIcoFav}}" type="image/x-icon" />
  16. <!-- Template CSS file from template folder -->
  17. <link rel="stylesheet" href="{{$.System.PathThemeStyles}}?v=3">
  18. </head>
  19. <body class="fixed-top-bar">
  20. <div id="sys-modal-shop-basket-placeholder"></div>
  21. <div id="wrap">
  22. <nav class="navbar navbar-expand-lg navbar-light bg-light">
  23. <div class="container">
  24. <a class="navbar-brand" href="/">Fave {{$.System.InfoVersion}}</a>
  25. <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
  26. <span class="navbar-toggler-icon"></span>
  27. </button>
  28. <div class="collapse navbar-collapse" id="navbarResponsive">
  29. <ul class="navbar-nav ml-auto">
  30. <li class="nav-item{{if eq $.Data.Page.Alias "/"}} active{{end}}">
  31. <a class="nav-link" href="/">Home</a>
  32. </li>
  33. <li class="nav-item">
  34. <a class="nav-link{{if eq $.Data.Page.Alias "/another/"}} active{{end}}" href="/another/">Another</a>
  35. </li>
  36. <li class="nav-item">
  37. <a class="nav-link{{if eq $.Data.Page.Alias "/about/"}} active{{end}}" href="/about/">About</a>
  38. </li>
  39. <li class="nav-item">
  40. <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>
  41. </li>
  42. <li class="nav-item">
  43. <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>
  44. </li>
  45. <li class="nav-item">
  46. <a class="nav-link{{if eq $.Data.Module "404"}} active{{end}}" href="/not-existent-page/">404</a>
  47. </li>
  48. <li class="nav-item">
  49. <a id="basket-nav-btn" class="nav-link" href="" onclick="window&&window.frontend&&frontend.ShopBasketOpen(this);return false;">Basket <span class="badge badge-pill badge-primary">0</span></a>
  50. </li>
  51. </ul>
  52. </div>
  53. </div>
  54. </nav>
  55. <div id="main">
  56. <div class="bg-fave">
  57. <div class="container">
  58. <h1 class="text-left text-white m-0 p-0 py-5">{{$.Data.CachedBlock2}}</h1>
  59. </div>
  60. </div>
  61. {{$.Data.CachedBlock3}}
  62. <div class="container clear-top">
  63. <div class="row pt-4">
  64. {{if or (eq $.Data.Module "shop") (eq $.Data.Module "shop-category")}}
  65. <div class="col-sm-5 col-md-4 col-lg-3">
  66. {{template "sidebar-left.html" .}}
  67. </div>
  68. {{end}}
  69. {{if or (eq $.Data.Module "shop-product")}}
  70. <div class="col-md-12">
  71. {{else}}
  72. <div class="col-sm-7 col-md-8 col-lg-9">
  73. {{end}}`)