diff --git a/addons/default/visiosoft/advs-module/resources/views/list/gallery.twig b/addons/default/visiosoft/advs-module/resources/views/list/gallery.twig index 56a91f3ab..dc6086f92 100644 --- a/addons/default/visiosoft/advs-module/resources/views/list/gallery.twig +++ b/addons/default/visiosoft/advs-module/resources/views/list/gallery.twig @@ -39,10 +39,8 @@ {% if showLocation %}

{{ adv.country_name }} / {{ adv.city_name }}

{% endif %} - {% if setting_value('visiosoft.module.advs::market_place') %} - {% if showDate %} + {% if setting_value('visiosoft.module.advs::market_place') and showDate %}

{{ adv.publish_at.value|date('d/m/Y') }}

- {% endif %} {% endif %} diff --git a/addons/default/visiosoft/advs-module/resources/views/list/partials/ads.twig b/addons/default/visiosoft/advs-module/resources/views/list/partials/ads.twig index adf4a8fbb..5763937b5 100644 --- a/addons/default/visiosoft/advs-module/resources/views/list/partials/ads.twig +++ b/addons/default/visiosoft/advs-module/resources/views/list/partials/ads.twig @@ -18,10 +18,8 @@ / {{ trans('visiosoft.module.advs::field.district.name') }} {% endif %} - {% if setting_value('visiosoft.module.advs::market_place') %} - {% if showDate %} - {{ trans('visiosoft.module.advs::field.date.name') }} - {% endif %} + {% if setting_value('visiosoft.module.advs::market_place') and showDate %} + {{ trans('visiosoft.module.advs::field.date.name') }} {% endif %} {{ trans('visiosoft.module.advs::field.price.name') }} @@ -64,13 +62,11 @@

{{ adv.city_name }}

{% endif %} - {% if setting_value('visiosoft.module.advs::market_place') %} - {% if showDate %} - -

{{ adv.publish_at.value|date('d/m') }}

-

{{ adv.publish_at.value|date('Y') }}

- - {% endif %} + {% if setting_value('visiosoft.module.advs::market_place') and showDate%} + +

{{ adv.publish_at.value|date('d/m') }}

+

{{ adv.publish_at.value|date('Y') }}

+ {% endif %} {% if not hideStandard %}