diff --git a/addons/default/visiosoft/advs-module/resources/views/advs/list-item.twig b/addons/default/visiosoft/advs-module/resources/views/advs/list-item.twig index 867ff70b6..6c7bc6a37 100644 --- a/addons/default/visiosoft/advs-module/resources/views/advs/list-item.twig +++ b/addons/default/visiosoft/advs-module/resources/views/advs/list-item.twig @@ -134,8 +134,10 @@
{{ adv.created_at|date('d/m/Y') }} + {% if setting_value('visiosoft.module.location::detail_page_location') %} {{ adv.city_name }} - , {{ adv.country_name }} + , {{ adv.country_name }}qqq + {% endif %} {% if adv.isCorporate == 2 %} {{ adv.owner }} @@ -278,7 +280,7 @@ {% include "visiosoft.module.customfields::list-item" %} {% endif %} {% endif %} - {% if adv.map_Val != "" %} + {% if adv.map_Val != "" and setting_value('visiosoft.module.location::detail_page_location') %}
{% if entries('advs').isEnabled('streetview') %} @@ -334,9 +336,11 @@
+ {% if setting_value('visiosoft.module.location::detail_page_location') %} + {% endif %}
diff --git a/addons/default/visiosoft/advs-module/resources/views/advs/list.twig b/addons/default/visiosoft/advs-module/resources/views/advs/list.twig index 7598e0aeb..714fc7d2b 100644 --- a/addons/default/visiosoft/advs-module/resources/views/advs/list.twig +++ b/addons/default/visiosoft/advs-module/resources/views/advs/list.twig @@ -121,7 +121,9 @@ "> {% endif %} + {% if setting_value('visiosoft.module.location::list_page_location') %} + {% endif %} {% if entries('advs').isEnabled('comparisons') %} @@ -181,7 +183,9 @@ "> {% endif %} + {% if setting_value('visiosoft.module.location::list_page_location') %} + {% endif %} {% if entries('advs').isEnabled('comparisons') %} diff --git a/addons/default/visiosoft/advs-module/resources/views/advs/partials/display_mode.twig b/addons/default/visiosoft/advs-module/resources/views/advs/partials/display_mode.twig index 836eb98af..0808a23e8 100644 --- a/addons/default/visiosoft/advs-module/resources/views/advs/partials/display_mode.twig +++ b/addons/default/visiosoft/advs-module/resources/views/advs/partials/display_mode.twig @@ -1,5 +1,7 @@ \ No newline at end of file diff --git a/addons/default/visiosoft/advs-module/resources/views/advs/partials/table-row.twig b/addons/default/visiosoft/advs-module/resources/views/advs/partials/table-row.twig index 664fad088..028e5e940 100644 --- a/addons/default/visiosoft/advs-module/resources/views/advs/partials/table-row.twig +++ b/addons/default/visiosoft/advs-module/resources/views/advs/partials/table-row.twig @@ -32,9 +32,11 @@ {{ adv.created_at|date("d/m/Y") }} + {% if setting_value('visiosoft.module.location::list_page_location') %} {{ adv.city_name }} / {{ adv.country_name }} + {% endif %} {% if entries('advs').isEnabled('customfields') %} {% include "visiosoft.module.customfields::cftablerow" %} {% endif %} @@ -57,9 +59,11 @@
+ {% if setting_value('visiosoft.module.location::list_page_location') %} + {% endif %} {% if entries('advs').isEnabled('comparisons') %} @@ -78,9 +82,11 @@ {{ adv.created_at|date("d/m/Y") }} + {% if setting_value('visiosoft.module.location::list_page_location') %} {{ adv.city_name }} / {{ adv.country_name }} + {% endif %} {% if entries('advs').isEnabled('customfields') %} {% include "visiosoft.module.customfields::cftablerow" %} {% endif %} diff --git a/addons/default/visiosoft/advs-module/resources/views/advs/table.twig b/addons/default/visiosoft/advs-module/resources/views/advs/table.twig index 824a8b7ab..2bb32d2b3 100644 --- a/addons/default/visiosoft/advs-module/resources/views/advs/table.twig +++ b/addons/default/visiosoft/advs-module/resources/views/advs/table.twig @@ -94,7 +94,9 @@ {{ 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 setting_value('visiosoft.module.location::list_page_location') %} {{ trans('visiosoft.module.advs::field.advs_list_table_thead.location_city') }} / {{ trans('visiosoft.module.advs::field.advs_list_table_thead.location_country') }} + {% endif %} {% if entries('advs').isEnabled('customfields') %} {% include "visiosoft.module.customfields::cftable" %} {% endif %} diff --git a/addons/default/visiosoft/advs-module/resources/views/partials/list-filter.twig b/addons/default/visiosoft/advs-module/resources/views/partials/list-filter.twig index fc126f274..42d40728c 100644 --- a/addons/default/visiosoft/advs-module/resources/views/partials/list-filter.twig +++ b/addons/default/visiosoft/advs-module/resources/views/partials/list-filter.twig @@ -36,7 +36,7 @@
- + {% if setting_value('visiosoft.module.location::list_page_location') %}
@@ -94,7 +94,7 @@
- + {% endif %} {% for key,value in checkboxes %}
diff --git a/addons/default/visiosoft/default-theme/resources/js/scroll-screen.js b/addons/default/visiosoft/default-theme/resources/js/scroll-screen.js index 46624eff9..ba0e04767 100644 --- a/addons/default/visiosoft/default-theme/resources/js/scroll-screen.js +++ b/addons/default/visiosoft/default-theme/resources/js/scroll-screen.js @@ -1,3 +1,5 @@ $(window).on('load',function(){ - $('#swipeTableModal').modal('show'); + if (window.innerWidth < 800) { + $('#swipeTableModal').modal('show'); + } }); \ No newline at end of file diff --git a/addons/default/visiosoft/default-theme/resources/views/indexes/index.twig b/addons/default/visiosoft/default-theme/resources/views/indexes/index.twig index a1a46271b..6915021e7 100644 --- a/addons/default/visiosoft/default-theme/resources/views/indexes/index.twig +++ b/addons/default/visiosoft/default-theme/resources/views/indexes/index.twig @@ -9,6 +9,8 @@
+ + {% if setting_value('visiosoft.module.location::home_page_location') %}
{% set cities = entries('location','cities').orderBy('slug').get() %} @@ -21,49 +23,53 @@
-
- +
-
- -
-
- {% set SearchPlaceHolder = entries('cats','placeholderforsearch').get() %} - + +
+
+ {% set SearchPlaceHolder = entries('cats','placeholderforsearch').get() %} + +
+
+
+
-
-
- -
-
- +
+ +
-
{% if(app.request.cookies.has('last_search')) %} @@ -243,14 +252,17 @@
{% if adv.is_get_adv == "1" and adv.stock != "0" and entries('advs').isEnabled('carts') %} - {% endif %} + {% if setting_value('visiosoft.module.location::home_page_location') %} + {% endif %}
@@ -276,7 +288,8 @@ class="img-respocive"> {% if adv.is_get_adv == "1" and adv.stock != "0" and entries('advs').isEnabled('carts') %} - {% endif %} @@ -309,14 +322,17 @@
{% if adv.is_get_adv == "1" and adv.stock != "0" and entries('advs').isEnabled('carts') %} - {% endif %} + {% if setting_value('visiosoft.module.location::home_page_location') %} + {% endif %}
@@ -341,6 +357,6 @@ - {{ blocks('advs-default-theme-addoncategories-bottom') }} + {{ blocks('advs-default-theme-addoncategories-bottom') }} \ No newline at end of file diff --git a/addons/default/visiosoft/location-module/resources/config/settings.php b/addons/default/visiosoft/location-module/resources/config/settings.php new file mode 100644 index 000000000..2977763f5 --- /dev/null +++ b/addons/default/visiosoft/location-module/resources/config/settings.php @@ -0,0 +1,27 @@ + [ + 'type' => 'anomaly.field_type.boolean', + 'config' => [ + 'default_value' => true, + ], + ], + 'list_page_location' => [ + 'type' => 'anomaly.field_type.boolean', + 'config' => [ + 'default_value' => true, + ], + ], + 'detail_page_location' => [ + 'type' => 'anomaly.field_type.boolean', + 'config' => [ + 'default_value' => true, + ], + ], +];