#3981 igamkoop requests

This commit is contained in:
muammertop 2021-05-11 11:37:43 +03:00
parent e7a6d6ae8f
commit ca0c8c45f8
3 changed files with 19 additions and 7 deletions

View File

@ -40,7 +40,9 @@
<p class="location-data">{{ adv.country_name }} / {{ adv.city_name }}</p>
{% endif %}
{% if setting_value('visiosoft.module.advs::market_place') %}
<p class="date-data">{{ adv.publish_at.value|date('d/m/Y') }}</p>
{% if showDate %}
<p class="date-data">{{ adv.publish_at.value|date('d/m/Y') }}</p>
{% endif %}
{% endif %}
</div>
</div>

View File

@ -1,11 +1,12 @@
{% set hideStandard = setting_value('visiosoft.module.advs::hide_listing_standard_price') %}
{% set listLocation = setting_value('visiosoft.module.location::list_page_location') %}
{% set showDate = setting_value('visiosoft.theme.base::date_fields') %}
<div id="listing" class="w-100 table-responsive">
<table class="w-100 text-center">
<thead>
<tr class="text-white">
<th class="text-nowrap" colspan="3">{{ trans('visiosoft.module.advs::field.ad_title') }}</th>
<th class="text-nowrap" colspan="2">{{ trans('visiosoft.module.advs::field.ad_title') }}</th>
{% for cF in listingCFs %}
<th class="text-nowrap">{{ cF.name }}</th>
@ -17,6 +18,11 @@
/ {{ trans('visiosoft.module.advs::field.district.name') }}
</th>
{% endif %}
{% if setting_value('visiosoft.module.advs::market_place') %}
{% if showDate %}
<th class="text-nowrap">{{ trans('visiosoft.module.advs::field.date.name') }}</th>
{% endif %}
{% endif %}
<th class="text-nowrap">{{ trans('visiosoft.module.advs::field.price.name') }}</th>
</tr>
</thead>
@ -59,10 +65,12 @@
</td>
{% endif %}
{% if setting_value('visiosoft.module.advs::market_place') %}
<td class="date-data">
<p>{{ adv.publish_at.value|date('d/m') }}</p>
<p>{{ adv.publish_at.value|date('Y') }}</p>
</td>
{% if showDate %}
<td class="date-data">
<p>{{ adv.publish_at.value|date('d/m') }}</p>
<p>{{ adv.publish_at.value|date('Y') }}</p>
</td>
{% endif %}
{% endif %}
<td class="price-data">
{% if not hideStandard %}

View File

@ -30,7 +30,9 @@
<img src="{{ adv.cover_photo }}" alt="{{ adv.name }}" class="rounded-sm">
<div class="ml-3 mt-1">
<h6 class="mb-1">{{ adv.name }}</h6>
<p class="mb-1">{{ adv.country_name }} / {{ adv.city_name }}</p>
{% if listLocation %}
<p class="mb-1">{{ adv.country_name }} / {{ adv.city_name }}</p>
{% endif %}
<p>{{ adv.price != '0' ? currency_format(adv.price,adv.currency) : trans('visiosoft.module.advs::field.free') }}</p>
</div>
</a>