mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-10 07:16:06 -06:00
Merge pull request #872 from openclassify/vedatt
Change currency function
This commit is contained in:
commit
84ef5a4b40
@ -4,7 +4,7 @@
|
|||||||
{% if standardPrice and standardPrice > 0 %}
|
{% if standardPrice and standardPrice > 0 %}
|
||||||
<div class="d-flex flex-wrap align-items-center">
|
<div class="d-flex flex-wrap align-items-center">
|
||||||
<h3 class="ad-price-standard mr-3 text-truncate">
|
<h3 class="ad-price-standard mr-3 text-truncate">
|
||||||
<b>{{ adv.standard_price.currency() }}</b>
|
<b>{{ currency_format(adv.standard_price,adv.currency) }}</b>
|
||||||
</h3>
|
</h3>
|
||||||
<h3 class="ad-price-standard-percentage text-white p-2">
|
<h3 class="ad-price-standard-percentage text-white p-2">
|
||||||
<b>%{{ (100 - ((100 * adv.price.value) / adv.standard_price.value))|round(0, 'common') }}</b>
|
<b>%{{ (100 - ((100 * adv.price.value) / adv.standard_price.value))|round(0, 'common') }}</b>
|
||||||
@ -12,7 +12,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<h3 class="ad-price">
|
<h3 class="ad-price">
|
||||||
<b>{{ adv.price.currency() }}</b>
|
<b>{{ currency_format(adv.price,adv.currency) }}</b>
|
||||||
<!-- priceField with Block -->
|
<!-- priceField with Block -->
|
||||||
{{ addBlock('ad-detail/priceField',{'adv':adv})|raw }}
|
{{ addBlock('ad-detail/priceField',{'adv':adv})|raw }}
|
||||||
<!-- priceField with Block -->
|
<!-- priceField with Block -->
|
||||||
|
|||||||
@ -18,7 +18,7 @@
|
|||||||
{% if setting_value('visiosoft.theme.base::price_fields') %}
|
{% if setting_value('visiosoft.theme.base::price_fields') %}
|
||||||
<div class="d-flex justify-content-between align-items-center">
|
<div class="d-flex justify-content-between align-items-center">
|
||||||
<b>{{ adv.price != '0'
|
<b>{{ adv.price != '0'
|
||||||
? adv.price.currency()
|
? currency_format(adv.price,adv.currency)
|
||||||
: trans('visiosoft.module.advs::field.free') }}</b>
|
: trans('visiosoft.module.advs::field.free') }}</b>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
@ -24,12 +24,12 @@
|
|||||||
{% if not setting_value('visiosoft.module.advs::hide_listing_standard_price') %}
|
{% if not setting_value('visiosoft.module.advs::hide_listing_standard_price') %}
|
||||||
<p class="theme-price-old small mb-0"><del>
|
<p class="theme-price-old small mb-0"><del>
|
||||||
{{ adv.standard_price != adv.price and adv.standard_price != '0'
|
{{ adv.standard_price != adv.price and adv.standard_price != '0'
|
||||||
? adv.standard_price.currency()
|
? currency_format(adv.standard_price,adv.currency)
|
||||||
: '' }}
|
: '' }}
|
||||||
</del></p>
|
</del></p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<b>{{ adv.price != '0'
|
<b>{{ adv.price != '0'
|
||||||
? adv.price.currency()
|
? currency_format(adv.price,adv.currency)
|
||||||
: trans('visiosoft.module.advs::field.free') }}</b>
|
: trans('visiosoft.module.advs::field.free') }}</b>
|
||||||
</div>
|
</div>
|
||||||
{% if setting_value('visiosoft.module.location::list_page_location') %}
|
{% if setting_value('visiosoft.module.location::list_page_location') %}
|
||||||
|
|||||||
@ -36,7 +36,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="justify-content-center align-middle td-price">
|
<td class="justify-content-center align-middle td-price">
|
||||||
<b>{{ adv.price.currency() }}</b>
|
<b>{{ currency_format(adv.price,adv.currency) }}</b>
|
||||||
</td>
|
</td>
|
||||||
<td class="justify-content-center align-middle td-date">
|
<td class="justify-content-center align-middle td-date">
|
||||||
<small>{{ adv.created_at|date("d/m/Y") }}</small>
|
<small>{{ adv.created_at|date("d/m/Y") }}</small>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user