mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-24 22:11:01 -06:00
fix
This commit is contained in:
parent
ec8e384410
commit
10aa92a273
@ -5,48 +5,37 @@
|
|||||||
{% set showLocation = setting_value('visiosoft.module.location::home_page_location') %}
|
{% set showLocation = setting_value('visiosoft.module.location::home_page_location') %}
|
||||||
{% set showDate = setting_value('visiosoft.theme.base::date_fields') %}
|
{% set showDate = setting_value('visiosoft.theme.base::date_fields') %}
|
||||||
|
|
||||||
<div id="gallerying" class="d-flex flex-wrap">
|
<div class="row p-0 m-0 ">
|
||||||
|
|
||||||
{{ addBlock('ad-list/partials/gallery',{'featured_advs': featured_advs, 'vars': _context})|raw }}
|
{{ addBlock('ad-list/partials/gallery',{'featured_advs': featured_advs, 'vars': _context})|raw }}
|
||||||
|
|
||||||
{% for adv in advs %}
|
{% for adv in advs %}
|
||||||
<div class="w-50 gallery-item-wrapper mb-1{{ adv.doping != null ? ' doping_type4' }}">
|
<div class="col-xl-4 col-lg-6">
|
||||||
<div class="gallery-item rounded p-3 d-flex h-100">
|
<a href="{{ adv.detail_url }}" class="w-100 p-0 d-flex flex-column">
|
||||||
<div>
|
<div class="d-flex flex-column product-hb border shadow-sm rounded">
|
||||||
<a href="{{ adv.detail_url }}">
|
<div class="heart-icon d-flex align-items-center justify-content-center shadow-sm">
|
||||||
<img src="{{ adv.cover_photo }}" alt="{{ adv.name }}" class="rounded">
|
<i class="far fa-heart"></i>
|
||||||
</a>
|
</div>
|
||||||
<div class="action-data-wrapper d-flex justify-content-center">
|
<div class="product-image-hb">
|
||||||
<div class="action-data d-flex flex-column">
|
<img class="product-image-in" src="{{ adv.cover_photo }}" alt="{{ adv.name }}">
|
||||||
|
</div>
|
||||||
{{ addBlock('list/extra-actions', {'ad': adv, 'vars': _context}, ['favs', 'comparisons'])|raw }}
|
<div class="product-info-hb d-flex flex-column px-lg-3 px-2 mt-3">
|
||||||
|
{% if not setting_value('visiosoft.module.advs::hide_ad_cat') %}
|
||||||
</div>
|
<a href="{{ adv.detail_url }}" class="product-name-hb text-dark">{{ adv.cat1_name }} /{{ adv.cat2_name }}</a>
|
||||||
|
{% endif %}
|
||||||
|
{% if showPrice %}
|
||||||
|
<div class="product-price-hb font-weight-bold mt-2 text-dark">
|
||||||
|
{{ adv.price != '0' ? currency_format(adv.price,adv.currency) : trans('visiosoft.module.advs::field.free') }}
|
||||||
|
<span>TL</span>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="ml-4 mt-1">
|
</a>
|
||||||
<h6 class="mb-1">
|
|
||||||
<a href="{{ adv.detail_url }}">{{ adv.name }}</a>
|
|
||||||
</h6>
|
|
||||||
{% if not setting_value('visiosoft.module.advs::hide_ad_cat') %}
|
|
||||||
<p class="cat-data mb-1">{{ adv.cat1_name }} /{{ adv.cat2_name }}</p>
|
|
||||||
{% endif %}
|
|
||||||
{% if showPrice %}
|
|
||||||
<p class="price-data mb-1">
|
|
||||||
{{ adv.price != '0' ? currency_format(adv.price,adv.currency) : trans('visiosoft.module.advs::field.free') }}
|
|
||||||
</p>
|
|
||||||
{% endif %}
|
|
||||||
{% if showLocation %}
|
|
||||||
<p class="location-data">{{ adv.country_name }} / {{ adv.city_name }}</p>
|
|
||||||
{% endif %}
|
|
||||||
{% if setting_value('visiosoft.module.advs::market_place') and showDate %}
|
|
||||||
<p class="date-data">{{ adv.publish_at.value|date('d/m/Y') }}</p>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block customjs %}
|
{% block customjs %}
|
||||||
|
|||||||
@ -25,3 +25,63 @@
|
|||||||
padding: 100px 50px;
|
padding: 100px 50px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.product-hb {
|
||||||
|
font-family: -apple-system,
|
||||||
|
BlinkMacSystemFont,
|
||||||
|
Arial,
|
||||||
|
Roboto,
|
||||||
|
Oxygen,
|
||||||
|
Ubuntu,
|
||||||
|
Cantarell,
|
||||||
|
Fira Sans,
|
||||||
|
Droid Sans,
|
||||||
|
Helvetica Neue,
|
||||||
|
sans-serif !important;
|
||||||
|
height: 315px;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.heart-icon {
|
||||||
|
width: 36px;
|
||||||
|
height: 36px;
|
||||||
|
border-radius: 50%;
|
||||||
|
font-size: 18px;
|
||||||
|
color: rgb(109, 109, 109);
|
||||||
|
background-color: rgb(245, 245, 245);
|
||||||
|
position: absolute;
|
||||||
|
right: 25px;
|
||||||
|
top: 15px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.product-image-hb {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
height: 190px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.product-image-in {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
object-fit: contain;
|
||||||
|
}
|
||||||
|
|
||||||
|
.product-name-hb {
|
||||||
|
font-size: 12px;
|
||||||
|
line-height: 18px;
|
||||||
|
margin-bottom: 4px;
|
||||||
|
margin-top: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
-webkit-line-clamp: 2;
|
||||||
|
height: 36px;
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
.product-price-hb {
|
||||||
|
font-size: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tl-span {
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user