148 lines
6.5 KiB
HTML
148 lines
6.5 KiB
HTML
{% set products = __SELF__.userProducts %}
|
|
{% set categories = __SELF__.userCategories %}
|
|
{% set userProfile = __SELF__.userProfile %}
|
|
{% set params = __SELF__.params %}
|
|
{% set sliders = __SELF__.sliders %}
|
|
|
|
|
|
|
|
|
|
{% for product in products %}
|
|
<!-- Quick View Modal Area -->
|
|
<div class="modal fade" id="quickview{{product.id}}" tabindex="-1" role="dialog" aria-labelledby="quickview" aria-hidden="true">
|
|
<div class="modal-dialog modal-lg modal-dialog-centered" role="document">
|
|
<div class="modal-content">
|
|
<button type="button" class="close btn" data-dismiss="modal" aria-label="Close">
|
|
<span aria-hidden="true">×</span>
|
|
</button>
|
|
<div class="modal-body">
|
|
<div class="quickview_body">
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-12 col-lg-5">
|
|
<div class="quickview_pro_img">
|
|
<img class="first_img" src="{{ product.images[0].path }}" alt="Gurluşyk, Gurluşyk platform, bezeg gurluşyk, gipsler merkezi, {{ product.name }}">
|
|
{% if product.images_count > 1 %}
|
|
<img class="hover_img" src="{{ product.images[1].path }}" alt="Gurluşyk, Gurluşyk platform, bezeg gurluşyk, gipsler merkezi, {{ product.name }}">
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
<div class="col-12 col-lg-7">
|
|
<div class="quickview_pro_des">
|
|
<h4 class="title">{{ product.name }}</h4>
|
|
<div class="top_seller_product_rating mb-15">
|
|
<i class="fa fa-star" aria-hidden="true"></i>
|
|
<i class="fa fa-star" aria-hidden="true"></i>
|
|
<i class="fa fa-star" aria-hidden="true"></i>
|
|
<i class="fa fa-star" aria-hidden="true"></i>
|
|
<i class="fa fa-star" aria-hidden="true"></i>
|
|
</div>
|
|
<h5 class="price">{{ product.price }} TMT</h5>
|
|
<p>{{ html_limit(product.description, 100) }}</p>
|
|
<a href="{{ 'product'|page({id: product.id}) }}">Giňişleýin maglumat</a>
|
|
</div>
|
|
<!-- Add to Cart Form -->
|
|
<form class="cart" method="post">
|
|
<div class="quantity">
|
|
<input type="number" class="qty-text" id="qty" step="1" min="1" max="12" name="quantity" value="1">
|
|
</div>
|
|
<button type="submit" name="addtocart" value="5" class="cart-submit">Sebede goş</button>
|
|
<!-- Wishlist -->
|
|
<div class="modal_pro_wishlist">
|
|
{% if user %}
|
|
<a href="{{ 'wishlist'|page }}"><i class="icofont-heart"></i></a>
|
|
{% else %}
|
|
<a href="{{ 'login'|page }}"><i class="icofont-heart"></i></a>
|
|
{% endif %}
|
|
</div>
|
|
|
|
</form>
|
|
<!-- Share -->
|
|
<div class="share_wf mt-30">
|
|
<p>Paýlaşmak</p>
|
|
<div class="_icon">
|
|
<a href="#"><i class="fa fa-facebook" aria-hidden="true"></i></a>
|
|
<a href="#"><i class="fa fa-twitter" aria-hidden="true"></i></a>
|
|
<a href="#"><i class="fa fa-pinterest" aria-hidden="true"></i></a>
|
|
<a href="#"><i class="fa fa-linkedin" aria-hidden="true"></i></a>
|
|
<a href="#"><i class="fa fa-instagram" aria-hidden="true"></i></a>
|
|
<a href="#"><i class="fa fa-envelope-o" aria-hidden="true"></i></a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- Quick View Modal Area -->
|
|
{% endfor %}
|
|
|
|
|
|
|
|
|
|
<!-- Breadcumb Area -->
|
|
<div class="breadcumb_area2">
|
|
<div class="container h-100">
|
|
<div class="row h-100 align-items-center">
|
|
<div class="col-12">
|
|
<!-- <h5>Harytlar</h5> -->
|
|
<ol class="breadcrumb">
|
|
<li class="breadcrumb-item"><a href="{{ 'index'|page }}">Esasy sahypa</a></li>
|
|
<li class="breadcrumb-item active">Satyjy harytlar</li>
|
|
<li class="breadcrumb-item active">{{ userProfile.name }}</li>
|
|
</ol>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- Breadcumb Area -->
|
|
|
|
|
|
{% if userProfile.web1 == "variant1" %}
|
|
|
|
{% partial "profile/style1" user=user userProfile=userProfile products=products categories=categories %}
|
|
|
|
{% elseif userProfile.web1 == "variant2" %}
|
|
|
|
{% partial "profile/style2" user=user userProfile=userProfile products=products categories=categories %}
|
|
|
|
{% elseif userProfile.web1 == "variant3" %}
|
|
|
|
{% partial "profile/style3" user=user userProfile=userProfile %}
|
|
|
|
{% elseif userProfile.web1 == "variant4" %}
|
|
|
|
{% partial "profile/style4" user=user userProfile=userProfile %}
|
|
|
|
{% else %}
|
|
|
|
{% partial "profile/style2" user=user userProfile=userProfile %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
{% put scripts %}
|
|
<script>
|
|
function sortHandle() {
|
|
event.preventDefault();
|
|
let sort = document.getElementById("sort_input");
|
|
let value = sort.value;
|
|
submitForm(value);
|
|
}
|
|
|
|
function submitForm(value) {
|
|
let form = document.getElementById("sortOptionUserProfile");
|
|
let sort = document.createElement("input");
|
|
sort.name = "sort";
|
|
sort.type = "hidden";
|
|
sort.value = value;
|
|
form.appendChild(sort);
|
|
form.submit()
|
|
}
|
|
</script>
|
|
{% endput %} |