From ecb9483a4dedd49b4e223845603c001fec684ffb Mon Sep 17 00:00:00 2001 From: Muammer Top Date: Wed, 10 Mar 2021 17:24:27 +0300 Subject: [PATCH] #3522 hide ad date in ads list page --- .../advs-module/resources/views/list/table.twig | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/addons/default/visiosoft/advs-module/resources/views/list/table.twig b/addons/default/visiosoft/advs-module/resources/views/list/table.twig index c4a94399b..6cbc99d3c 100644 --- a/addons/default/visiosoft/advs-module/resources/views/list/table.twig +++ b/addons/default/visiosoft/advs-module/resources/views/list/table.twig @@ -9,8 +9,10 @@ class="text-center align-middle">{{ trans('visiosoft.module.advs::field.advs_list_table_thead.name') }} {{ trans('visiosoft.module.advs::field.advs_list_table_thead.price') }} - {{ trans('visiosoft.module.advs::field.advs_list_table_thead.publish_at') }} + {% if not setting_value('visiosoft.module.advs::ads_date_hidden') %} + {{ trans('visiosoft.module.advs::field.advs_list_table_thead.publish_at') }} + {% endif %} {% if setting_value('visiosoft.module.location::list_page_location') %} {{ trans('visiosoft.module.advs::field.advs_list_table_thead.location_city') }} @@ -38,9 +40,11 @@ {{ currency_format(adv.price,adv.currency) }} - - {{ adv.created_at|date("d/m/Y") }} - + {% if not setting_value('visiosoft.module.advs::ads_date_hidden') %} + + {{ adv.created_at|date("d/m/Y") }} + + {% endif %} {% if setting_value('visiosoft.module.location::list_page_location') %} {{ adv.city_name }} / {{ adv.country_name }}