123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255 |
- <!doctype html>
- <html lang="en">
- <head>
- <!-- Required meta tags -->
- <meta charset="utf-8">
- <meta name="theme-color" content="#205081" />
- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
- <!-- Bootstrap CSS -->
- <link rel="stylesheet" href="{{$.System.PathCssBootstrap}}">
- <link rel="stylesheet" href="{{$.System.PathCssLightGallery}}">
- <title>
- {{if not (eq $.Data.Module "404")}}
- {{if eq $.Data.Module "index"}}
- {{$.Data.Page.Name}}
- {{else if or (eq $.Data.Module "blog") (eq $.Data.Module "blog-post") (eq $.Data.Module "blog-category")}}
- {{if eq $.Data.Module "blog-category"}}
- Posts of category "{{$.Data.Blog.Category.Name}}" | Blog
- {{else if eq $.Data.Module "blog-post"}}
- {{$.Data.Blog.Post.Name}} | Blog
- {{else}}
- Latest posts | Blog
- {{end}}
- {{else if or (eq $.Data.Module "shop") (eq $.Data.Module "shop-product") (eq $.Data.Module "shop-category")}}
- {{if eq $.Data.Module "shop-category"}}
- Products of category "{{$.Data.Shop.Category.Name}}" | Shop
- {{else if eq $.Data.Module "shop-product"}}
- {{$.Data.Shop.Product.Name}} | Shop
- {{else}}
- Latest products | Shop
- {{end}}
- {{end}}
- {{else}}
- Error 404
- {{end}}
- </title>
- <meta name="keywords" content="{{$.Data.Page.MetaKeywords}}" />
- <meta name="description" content="{{$.Data.Page.MetaDescription}}" />
- <link rel="shortcut icon" href="{{$.System.PathIcoFav}}" type="image/x-icon" />
- <!-- Template CSS file from template folder -->
- <link rel="stylesheet" href="{{$.System.PathThemeStyles}}?v=3">
- </head>
- <body class="fixed-top-bar">
- <div id="wrap">
- <nav class="navbar navbar-expand-lg navbar-light bg-light">
- <div class="container">
- <a class="navbar-brand" href="/">Fave {{$.System.InfoVersion}}</a>
- <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
- <span class="navbar-toggler-icon"></span>
- </button>
- <div class="collapse navbar-collapse" id="navbarResponsive">
- <ul class="navbar-nav ml-auto">
- <li class="nav-item{{if eq $.Data.Page.Alias "/"}} active{{end}}">
- <a class="nav-link" href="/">Home</a>
- </li>
- <li class="nav-item">
- <a class="nav-link{{if eq $.Data.Page.Alias "/another/"}} active{{end}}" href="/another/">Another</a>
- </li>
- <li class="nav-item">
- <a class="nav-link{{if eq $.Data.Page.Alias "/about/"}} active{{end}}" href="/about/">About</a>
- </li>
- <li class="nav-item">
- <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>
- </li>
- <li class="nav-item">
- <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>
- </li>
- <li class="nav-item">
- <a class="nav-link{{if eq $.Data.Module "404"}} active{{end}}" href="/not-existent-page/">404</a>
- </li>
- </ul>
- </div>
- </div>
- </nav>
- <div id="main">
- <div class="bg-fave">
- <div class="container">
- <h1 class="text-left text-white m-0 p-0 py-5">
- {{if not (eq $.Data.Module "404")}}
- {{if eq $.Data.Module "index"}}
- {{if eq $.Data.Page.Alias "/"}}
- Welcome to home page
- {{else}}
- Welcome to some another page
- {{end}}
- {{else if or (eq $.Data.Module "blog") (eq $.Data.Module "blog-post") (eq $.Data.Module "blog-category")}}
- {{if eq $.Data.Module "blog-category"}}
- Blog category
- {{else if eq $.Data.Module "blog-post"}}
- Blog post
- {{else}}
- Blog
- {{end}}
- {{else if or (eq $.Data.Module "shop") (eq $.Data.Module "shop-product") (eq $.Data.Module "shop-category")}}
- {{if eq $.Data.Module "shop-category"}}
- Shop category
- {{else if eq $.Data.Module "shop-product"}}
- Shop product
- {{else}}
- Shop
- {{end}}
- {{end}}
- {{else}}
- Oops, page is not found...
- {{end}}
- </h1>
- </div>
- </div>
- <nav class="navbar navbar-expand-lg navbar-light bg-light navbar-cats">
- <div class="container">
- <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
- <span class="navbar-toggler-icon"></span>
- </button>
- <div class="collapse navbar-collapse" id="navbarSupportedContent">
- <ul class="navbar-nav mr-auto">
- {{range $.Data.Shop.Categories 0 1}}
- {{if .HaveChilds}}
- <li class="nav-item dropdown">
- <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">{{.Name}}</a>
- <div class="dropdown-menu" aria-labelledby="navbarDropdown">
- <a class="dropdown-item" href="{{.Permalink}}">All products</a>
- <div class="dropdown-divider"></div>
- {{range $index, $subcat := $.Data.Shop.Categories .Id 1}}
- <a class="dropdown-item" href="{{$subcat.Permalink}}">{{$subcat.Name}}</a>
- {{end}}
- </div>
- </li>
- {{else}}
- <li class="nav-item">
- <a class="nav-link" href="{{.Permalink}}">{{.Name}}</a>
- </li>
- {{end}}
- {{end}}
- </ul>
- </div>
- </div>
- </nav>
- {{if or (eq $.Data.Module "blog") (eq $.Data.Module "blog-category") (eq $.Data.Module "blog-post")}}
- <div class="container clear-top pt-4">
- <nav aria-label="breadcrumb">
- <ol class="breadcrumb mb-0">
- {{if eq $.Data.Module "blog"}}
- <li class="breadcrumb-item">Blog</li>
- {{else}}
- <li class="breadcrumb-item"><a href="/blog/">Blog</a></li>
- {{end}}
- {{if eq $.Data.Module "blog-category"}}
- {{if $.Data.Blog.Category.Parent.Parent.Parent.Parent.Parent}}
- <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>
- {{end}}
- {{if $.Data.Blog.Category.Parent.Parent.Parent.Parent}}
- <li class="breadcrumb-item"><a href="{{$.Data.Blog.Category.Parent.Parent.Parent.Parent.Permalink}}">{{$.Data.Blog.Category.Parent.Parent.Parent.Parent.Name}}</a></li>
- {{end}}
- {{if $.Data.Blog.Category.Parent.Parent.Parent}}
- <li class="breadcrumb-item"><a href="{{$.Data.Blog.Category.Parent.Parent.Parent.Permalink}}">{{$.Data.Blog.Category.Parent.Parent.Parent.Name}}</a></li>
- {{end}}
- {{if $.Data.Blog.Category.Parent.Parent}}
- <li class="breadcrumb-item"><a href="{{$.Data.Blog.Category.Parent.Parent.Permalink}}">{{$.Data.Blog.Category.Parent.Parent.Name}}</a></li>
- {{end}}
- {{if $.Data.Blog.Category.Parent}}
- <li class="breadcrumb-item"><a href="{{$.Data.Blog.Category.Parent.Permalink}}">{{$.Data.Blog.Category.Parent.Name}}</a></li>
- {{end}}
- <li class="breadcrumb-item">{{$.Data.Blog.Category.Name}}</li>
- {{end}}
- {{if eq $.Data.Module "blog-post"}}
- {{if $.Data.Blog.Post.Category.Id}}
- {{if $.Data.Blog.Post.Category.Parent.Parent.Parent.Parent.Parent}}
- <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>
- {{end}}
- {{if $.Data.Blog.Post.Category.Parent.Parent.Parent.Parent}}
- <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>
- {{end}}
- {{if $.Data.Blog.Post.Category.Parent.Parent.Parent}}
- <li class="breadcrumb-item"><a href="{{$.Data.Blog.Post.Category.Parent.Parent.Parent.Permalink}}">{{$.Data.Blog.Post.Category.Parent.Parent.Parent.Name}}</a></li>
- {{end}}
- {{if $.Data.Blog.Post.Category.Parent.Parent}}
- <li class="breadcrumb-item"><a href="{{$.Data.Blog.Post.Category.Parent.Parent.Permalink}}">{{$.Data.Blog.Post.Category.Parent.Parent.Name}}</a></li>
- {{end}}
- {{if $.Data.Blog.Post.Category.Parent}}
- <li class="breadcrumb-item"><a href="{{$.Data.Blog.Post.Category.Parent.Permalink}}">{{$.Data.Blog.Post.Category.Parent.Name}}</a></li>
- {{end}}
- <li class="breadcrumb-item"><a href="{{$.Data.Blog.Post.Category.Permalink}}">{{$.Data.Blog.Post.Category.Name}}</a></li>
- {{end}}
- <li class="breadcrumb-item active">{{$.Data.Blog.Post.Name}}</li>
- {{end}}
- </ol>
- </nav>
- </div>
- {{end}}
- {{if or (eq $.Data.Module "shop") (eq $.Data.Module "shop-category") (eq $.Data.Module "shop-product")}}
- <div class="container clear-top pt-4">
- <nav aria-label="breadcrumb">
- <ol class="breadcrumb mb-0">
- {{if eq $.Data.Module "shop"}}
- <li class="breadcrumb-item">Shop</li>
- {{else}}
- <li class="breadcrumb-item"><a href="/shop/">Shop</a></li>
- {{end}}
- {{if eq $.Data.Module "shop-category"}}
- {{if $.Data.Shop.Category.Parent.Parent.Parent.Parent.Parent}}
- <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>
- {{end}}
- {{if $.Data.Shop.Category.Parent.Parent.Parent.Parent}}
- <li class="breadcrumb-item"><a href="{{$.Data.Shop.Category.Parent.Parent.Parent.Parent.Permalink}}">{{$.Data.Shop.Category.Parent.Parent.Parent.Parent.Name}}</a></li>
- {{end}}
- {{if $.Data.Shop.Category.Parent.Parent.Parent}}
- <li class="breadcrumb-item"><a href="{{$.Data.Shop.Category.Parent.Parent.Parent.Permalink}}">{{$.Data.Shop.Category.Parent.Parent.Parent.Name}}</a></li>
- {{end}}
- {{if $.Data.Shop.Category.Parent.Parent}}
- <li class="breadcrumb-item"><a href="{{$.Data.Shop.Category.Parent.Parent.Permalink}}">{{$.Data.Shop.Category.Parent.Parent.Name}}</a></li>
- {{end}}
- {{if $.Data.Shop.Category.Parent}}
- <li class="breadcrumb-item"><a href="{{$.Data.Shop.Category.Parent.Permalink}}">{{$.Data.Shop.Category.Parent.Name}}</a></li>
- {{end}}
- <li class="breadcrumb-item">{{$.Data.Shop.Category.Name}}</li>
- {{end}}
- {{if eq $.Data.Module "shop-product"}}
- {{if $.Data.Shop.Product.Category.Id}}
- {{if $.Data.Shop.Product.Category.Parent.Parent.Parent.Parent.Parent}}
- <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>
- {{end}}
- {{if $.Data.Shop.Product.Category.Parent.Parent.Parent.Parent}}
- <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>
- {{end}}
- {{if $.Data.Shop.Product.Category.Parent.Parent.Parent}}
- <li class="breadcrumb-item"><a href="{{$.Data.Shop.Product.Category.Parent.Parent.Parent.Permalink}}">{{$.Data.Shop.Product.Category.Parent.Parent.Parent.Name}}</a></li>
- {{end}}
- {{if $.Data.Shop.Product.Category.Parent.Parent}}
- <li class="breadcrumb-item"><a href="{{$.Data.Shop.Product.Category.Parent.Parent.Permalink}}">{{$.Data.Shop.Product.Category.Parent.Parent.Name}}</a></li>
- {{end}}
- {{if $.Data.Shop.Product.Category.Parent}}
- <li class="breadcrumb-item"><a href="{{$.Data.Shop.Product.Category.Parent.Permalink}}">{{$.Data.Shop.Product.Category.Parent.Name}}</a></li>
- {{end}}
- <li class="breadcrumb-item"><a href="{{$.Data.Shop.Product.Category.Permalink}}">{{$.Data.Shop.Product.Category.Name}}</a></li>
- {{end}}
- <li class="breadcrumb-item active">{{$.Data.Shop.Product.Name}}</li>
- {{end}}
- </ol>
- </nav>
- </div>
- {{end}}
- <div class="container clear-top">
- <div class="row pt-4">
- {{if or (eq $.Data.Module "shop") (eq $.Data.Module "shop-category")}}
- <div class="col-sm-5 col-md-4 col-lg-3">
- {{template "sidebar-left.html" .}}
- </div>
- {{end}}
- {{if or (eq $.Data.Module "shop-product")}}
- <div class="col-md-12">
- {{else}}
- <div class="col-sm-7 col-md-8 col-lg-9">
- {{end}}
|