diff --git a/addons/default/visiosoft/advs-module/resources/lang/en/field.php b/addons/default/visiosoft/advs-module/resources/lang/en/field.php index 384be6a8c..15d55eb6a 100644 --- a/addons/default/visiosoft/advs-module/resources/lang/en/field.php +++ b/addons/default/visiosoft/advs-module/resources/lang/en/field.php @@ -337,6 +337,13 @@ return [ 'owner' => 'Owner', 'default_owner_instruction' => 'The owner will default to the current user if no user is selected', + // Listing page + 'ad_title' => 'Ad title', + 'listing_date' => 'Listing Date', + 'view' => 'View', + 'ads_with_map' => 'Ads With Map', + 'advanced_sorting' => 'Advanced Sorting', + 'free' => 'Free', 'ad_date' => 'Ad Date', 'photo_video' => 'Photo, Video', 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 20c4cbe0f..f958ac041 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 @@ -1,51 +1,69 @@ -{{ addBlock('ad-list/partials/ads',{'featured_advs':featured_advs})|raw }} -{% for adv in advs %} -
- {{ adv.name }}
+{% set hideStandard = setting_value('visiosoft.module.advs::hide_listing_standard_price') %} +{% set listLocation = setting_value('visiosoft.module.location::list_page_location') %} + +| {{ trans('visiosoft.module.advs::field.ad_title') }} | + {% if listLocation %} ++ {{ trans('visiosoft.module.advs::field.city.name') }} / {{ trans('visiosoft.module.advs::field.district.name') }} + | + {% endif %} +{{ trans('visiosoft.module.advs::field.listing_date') }} | +{{ trans('visiosoft.module.advs::field.price.name') }} | +|
|---|---|---|---|---|
+
+
+
+ |
+
+ #{{ adv.id }} ++ {{ adv.name }} ++{{ adv.cat1_name }} /{{ adv.cat2_name }} +
+
+ {{ addBlock('list/extra-actions', {'ad': adv, 'vars': _context})|raw }}
+
-
- {{ adv.cat1_name }}, {{ adv.cat2_name }}
-
-
-
-
-
-
- {% if not setting_value('visiosoft.module.advs::hide_listing_standard_price') %}
-
- {% if setting_value('visiosoft.module.location::list_page_location') %}
-
- {{ adv.city_name }} {{ adv.country_name }}
-
+ |
+ {% if listLocation %}
+
+ {{ adv.country_name }} +{{ adv.city_name }} + |
+ {% endif %}
+
+ {{ adv.publish_at.value|date('d F') }} +{{ adv.publish_at.value|date('Y') }} + |
+
+ {% if not hideStandard %}
+
+
-
-
-
-{% endfor %}
+
- {{ addBlock('list/extra-actions', {'ad': adv})|raw }}
-
- + {{ adv.price != '0' ? currency_format(adv.price,adv.currency) : trans('visiosoft.module.advs::field.free') }} + + |
+