cached_block_3_html_file.go 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. package template
  2. var VarCachedBlock_3HtmlFile = []byte(`{{if $.Data.ModuleShopEnabled}}
  3. <nav class="navbar navbar-expand-lg navbar-light bg-light navbar-cats">
  4. <div class="container">
  5. <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
  6. <span class="navbar-toggler-icon"></span>
  7. </button>
  8. <div class="collapse navbar-collapse" id="navbarSupportedContent">
  9. <ul class="navbar-nav mr-auto">
  10. {{range $.Data.Shop.Categories 0 1}}
  11. {{if .HaveChilds}}
  12. <li class="nav-item dropdown">
  13. <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">{{.Name}}</a>
  14. <div class="dropdown-menu" aria-labelledby="navbarDropdown">
  15. <a class="dropdown-item" href="{{.Permalink}}">All products</a>
  16. <div class="dropdown-divider"></div>
  17. {{range $index, $subcat := $.Data.Shop.Categories .Id 1}}
  18. <a class="dropdown-item" href="{{$subcat.Permalink}}">{{$subcat.Name}}</a>
  19. {{end}}
  20. </div>
  21. </li>
  22. {{else}}
  23. <li class="nav-item">
  24. <a class="nav-link" href="{{.Permalink}}">{{.Name}}</a>
  25. </li>
  26. {{end}}
  27. {{end}}
  28. </ul>
  29. </div>
  30. </div>
  31. </nav>
  32. {{end}}
  33. {{if $.Data.ModuleBlogEnabled}}
  34. {{if or (eq $.Data.Module "blog") (eq $.Data.Module "blog-category") (eq $.Data.Module "blog-post")}}
  35. <div class="container clear-top pt-4">
  36. <nav aria-label="breadcrumb">
  37. <ol class="breadcrumb mb-0">
  38. {{if eq $.Data.Module "blog"}}
  39. <li class="breadcrumb-item">Blog</li>
  40. {{else}}
  41. <li class="breadcrumb-item"><a href="/blog/">Blog</a></li>
  42. {{end}}
  43. {{if eq $.Data.Module "blog-category"}}
  44. {{if $.Data.Blog.Category.Parent.Parent.Parent.Parent.Parent}}
  45. <li class="breadcrumb-item"><a href="{{$.Data.Blog.Category.Parent.Parent.Parent.Parent.Parent.Permalink}}">{{$.Data.Blog.Category.Parent.Parent.Parent.Parent.Parent.Name}}</a></li>
  46. {{end}}
  47. {{if $.Data.Blog.Category.Parent.Parent.Parent.Parent}}
  48. <li class="breadcrumb-item"><a href="{{$.Data.Blog.Category.Parent.Parent.Parent.Parent.Permalink}}">{{$.Data.Blog.Category.Parent.Parent.Parent.Parent.Name}}</a></li>
  49. {{end}}
  50. {{if $.Data.Blog.Category.Parent.Parent.Parent}}
  51. <li class="breadcrumb-item"><a href="{{$.Data.Blog.Category.Parent.Parent.Parent.Permalink}}">{{$.Data.Blog.Category.Parent.Parent.Parent.Name}}</a></li>
  52. {{end}}
  53. {{if $.Data.Blog.Category.Parent.Parent}}
  54. <li class="breadcrumb-item"><a href="{{$.Data.Blog.Category.Parent.Parent.Permalink}}">{{$.Data.Blog.Category.Parent.Parent.Name}}</a></li>
  55. {{end}}
  56. {{if $.Data.Blog.Category.Parent}}
  57. <li class="breadcrumb-item"><a href="{{$.Data.Blog.Category.Parent.Permalink}}">{{$.Data.Blog.Category.Parent.Name}}</a></li>
  58. {{end}}
  59. <li class="breadcrumb-item">{{$.Data.Blog.Category.Name}}</li>
  60. {{end}}
  61. {{if eq $.Data.Module "blog-post"}}
  62. {{if $.Data.Blog.Post.Category.Id}}
  63. {{if $.Data.Blog.Post.Category.Parent.Parent.Parent.Parent.Parent}}
  64. <li class="breadcrumb-item"><a href="{{$.Data.Blog.Post.Category.Parent.Parent.Parent.Parent.Parent.Permalink}}">{{$.Data.Blog.Post.Category.Parent.Parent.Parent.Parent.Parent.Name}}</a></li>
  65. {{end}}
  66. {{if $.Data.Blog.Post.Category.Parent.Parent.Parent.Parent}}
  67. <li class="breadcrumb-item"><a href="{{$.Data.Blog.Post.Category.Parent.Parent.Parent.Parent.Permalink}}">{{$.Data.Blog.Post.Category.Parent.Parent.Parent.Parent.Name}}</a></li>
  68. {{end}}
  69. {{if $.Data.Blog.Post.Category.Parent.Parent.Parent}}
  70. <li class="breadcrumb-item"><a href="{{$.Data.Blog.Post.Category.Parent.Parent.Parent.Permalink}}">{{$.Data.Blog.Post.Category.Parent.Parent.Parent.Name}}</a></li>
  71. {{end}}
  72. {{if $.Data.Blog.Post.Category.Parent.Parent}}
  73. <li class="breadcrumb-item"><a href="{{$.Data.Blog.Post.Category.Parent.Parent.Permalink}}">{{$.Data.Blog.Post.Category.Parent.Parent.Name}}</a></li>
  74. {{end}}
  75. {{if $.Data.Blog.Post.Category.Parent}}
  76. <li class="breadcrumb-item"><a href="{{$.Data.Blog.Post.Category.Parent.Permalink}}">{{$.Data.Blog.Post.Category.Parent.Name}}</a></li>
  77. {{end}}
  78. <li class="breadcrumb-item"><a href="{{$.Data.Blog.Post.Category.Permalink}}">{{$.Data.Blog.Post.Category.Name}}</a></li>
  79. {{end}}
  80. <li class="breadcrumb-item active">{{$.Data.Blog.Post.Name}}</li>
  81. {{end}}
  82. </ol>
  83. </nav>
  84. </div>
  85. {{end}}
  86. {{end}}
  87. {{if $.Data.ModuleShopEnabled}}
  88. {{if or (eq $.Data.Module "shop") (eq $.Data.Module "shop-category") (eq $.Data.Module "shop-product")}}
  89. <div class="container clear-top pt-4">
  90. <nav aria-label="breadcrumb">
  91. <ol class="breadcrumb mb-0">
  92. {{if eq $.Data.Module "shop"}}
  93. <li class="breadcrumb-item">Shop</li>
  94. {{else}}
  95. <li class="breadcrumb-item"><a href="/shop/">Shop</a></li>
  96. {{end}}
  97. {{if eq $.Data.Module "shop-category"}}
  98. {{if $.Data.Shop.Category.Parent.Parent.Parent.Parent.Parent}}
  99. <li class="breadcrumb-item"><a href="{{$.Data.Shop.Category.Parent.Parent.Parent.Parent.Parent.Permalink}}">{{$.Data.Shop.Category.Parent.Parent.Parent.Parent.Parent.Name}}</a></li>
  100. {{end}}
  101. {{if $.Data.Shop.Category.Parent.Parent.Parent.Parent}}
  102. <li class="breadcrumb-item"><a href="{{$.Data.Shop.Category.Parent.Parent.Parent.Parent.Permalink}}">{{$.Data.Shop.Category.Parent.Parent.Parent.Parent.Name}}</a></li>
  103. {{end}}
  104. {{if $.Data.Shop.Category.Parent.Parent.Parent}}
  105. <li class="breadcrumb-item"><a href="{{$.Data.Shop.Category.Parent.Parent.Parent.Permalink}}">{{$.Data.Shop.Category.Parent.Parent.Parent.Name}}</a></li>
  106. {{end}}
  107. {{if $.Data.Shop.Category.Parent.Parent}}
  108. <li class="breadcrumb-item"><a href="{{$.Data.Shop.Category.Parent.Parent.Permalink}}">{{$.Data.Shop.Category.Parent.Parent.Name}}</a></li>
  109. {{end}}
  110. {{if $.Data.Shop.Category.Parent}}
  111. <li class="breadcrumb-item"><a href="{{$.Data.Shop.Category.Parent.Permalink}}">{{$.Data.Shop.Category.Parent.Name}}</a></li>
  112. {{end}}
  113. <li class="breadcrumb-item">{{$.Data.Shop.Category.Name}}</li>
  114. {{end}}
  115. {{if eq $.Data.Module "shop-product"}}
  116. {{if $.Data.Shop.Product.Category.Id}}
  117. {{if $.Data.Shop.Product.Category.Parent.Parent.Parent.Parent.Parent}}
  118. <li class="breadcrumb-item"><a href="{{$.Data.Shop.Product.Category.Parent.Parent.Parent.Parent.Parent.Permalink}}">{{$.Data.Shop.Product.Category.Parent.Parent.Parent.Parent.Parent.Name}}</a></li>
  119. {{end}}
  120. {{if $.Data.Shop.Product.Category.Parent.Parent.Parent.Parent}}
  121. <li class="breadcrumb-item"><a href="{{$.Data.Shop.Product.Category.Parent.Parent.Parent.Parent.Permalink}}">{{$.Data.Shop.Product.Category.Parent.Parent.Parent.Parent.Name}}</a></li>
  122. {{end}}
  123. {{if $.Data.Shop.Product.Category.Parent.Parent.Parent}}
  124. <li class="breadcrumb-item"><a href="{{$.Data.Shop.Product.Category.Parent.Parent.Parent.Permalink}}">{{$.Data.Shop.Product.Category.Parent.Parent.Parent.Name}}</a></li>
  125. {{end}}
  126. {{if $.Data.Shop.Product.Category.Parent.Parent}}
  127. <li class="breadcrumb-item"><a href="{{$.Data.Shop.Product.Category.Parent.Parent.Permalink}}">{{$.Data.Shop.Product.Category.Parent.Parent.Name}}</a></li>
  128. {{end}}
  129. {{if $.Data.Shop.Product.Category.Parent}}
  130. <li class="breadcrumb-item"><a href="{{$.Data.Shop.Product.Category.Parent.Permalink}}">{{$.Data.Shop.Product.Category.Parent.Name}}</a></li>
  131. {{end}}
  132. <li class="breadcrumb-item"><a href="{{$.Data.Shop.Product.Category.Permalink}}">{{$.Data.Shop.Product.Category.Name}}</a></li>
  133. {{end}}
  134. <li class="breadcrumb-item active">{{$.Data.Shop.Product.Name}} {{$.Data.Shop.Product.Id}}</li>
  135. {{end}}
  136. </ol>
  137. </nav>
  138. </div>
  139. {{end}}
  140. {{end}}`)