fixed mobile sub-cats

This commit is contained in:
muammertop 2021-04-16 18:36:54 +03:00
parent 92eadf3821
commit 120aa11ac7
4 changed files with 13 additions and 1 deletions

View File

@ -38,6 +38,7 @@ return [
'get_categories', 'get_categories',
'listing_page_image', 'listing_page_image',
'show_ads_count', 'show_ads_count',
'show_subcats_mobile',
], ],
], ],
'ads_detail' => [ 'ads_detail' => [

View File

@ -437,4 +437,10 @@ return [
'default_value' => true, 'default_value' => true,
] ]
], ],
'show_subcats_mobile' => [
'type' => 'anomaly.field_type.boolean',
'config' => [
'default_value' => false,
]
],
]; ];

View File

@ -262,4 +262,7 @@ return [
'name' => 'Detailed Product Options', 'name' => 'Detailed Product Options',
'instructions' => 'Allows you to enter stock and price information for the product' 'instructions' => 'Allows you to enter stock and price information for the product'
], ],
'show_subcats_mobile' => [
'name' => 'Show subcategories on mobile view',
]
]; ];

View File

@ -1,5 +1,7 @@
<div id="mobileListingPage" class="d-sm-none mb-5"> <div id="mobileListingPage" class="d-sm-none mb-5">
{% if setting_value('visiosoft.module.advs::show_subcats_mobile') %}
{% include "visiosoft.module.advs::list/partials/sub-categories-mobile" %} {% include "visiosoft.module.advs::list/partials/sub-categories-mobile" %}
{% endif %}
{% if not hideBreadcrump %} {% if not hideBreadcrump %}
{% include "visiosoft.module.advs::list/partials/mobile-breadcrumb" %} {% include "visiosoft.module.advs::list/partials/mobile-breadcrumb" %}
{% endif %} {% endif %}