From 9b52d3428f8fb2aceebbcb2a69fcca7f1efd32a6 Mon Sep 17 00:00:00 2001 From: Diatrex Date: Thu, 5 Nov 2020 14:59:14 +0300 Subject: [PATCH] #2559 e-madencilik ads header hide --- .../advs-module/resources/config/settings/sections.php | 1 + .../advs-module/resources/config/settings/settings.php | 7 +++++++ .../visiosoft/advs-module/resources/lang/en/setting.php | 5 ++++- .../advs-module/resources/views/new-ad/post-cat.twig | 4 +++- 4 files changed, 15 insertions(+), 2 deletions(-) diff --git a/addons/default/visiosoft/advs-module/resources/config/settings/sections.php b/addons/default/visiosoft/advs-module/resources/config/settings/sections.php index a689b5385..8c0a8a34a 100644 --- a/addons/default/visiosoft/advs-module/resources/config/settings/sections.php +++ b/addons/default/visiosoft/advs-module/resources/config/settings/sections.php @@ -31,6 +31,7 @@ return [ 'hide_standard_price_field', 'hide_options_field', 'listing_page_image', + 'show_breadcrumb_when_creating_ad', ], ], 'ads_image' => [ diff --git a/addons/default/visiosoft/advs-module/resources/config/settings/settings.php b/addons/default/visiosoft/advs-module/resources/config/settings/settings.php index 5581683da..b7a24c416 100644 --- a/addons/default/visiosoft/advs-module/resources/config/settings/settings.php +++ b/addons/default/visiosoft/advs-module/resources/config/settings/settings.php @@ -290,4 +290,11 @@ return [ 'default_value' => 5, ], ], + 'show_breadcrumb_when_creating_ad' => [ + 'type' => 'anomaly.field_type.boolean', + 'config' => [ + 'default_value' => true, + 'mode' => 'checkbox' + ], + ], ]; diff --git a/addons/default/visiosoft/advs-module/resources/lang/en/setting.php b/addons/default/visiosoft/advs-module/resources/lang/en/setting.php index 65b8e4f3e..d4db6a482 100644 --- a/addons/default/visiosoft/advs-module/resources/lang/en/setting.php +++ b/addons/default/visiosoft/advs-module/resources/lang/en/setting.php @@ -179,5 +179,8 @@ return [ 'user_filter_limit' => [ 'name' => 'User Filter Limit', 'instructions' => 'In the admin panel' - ] + ], + 'show_breadcrumb_when_creating_ad' => [ + 'name' => 'Show Breadcrumb When Creating an Ad', + ], ]; diff --git a/addons/default/visiosoft/advs-module/resources/views/new-ad/post-cat.twig b/addons/default/visiosoft/advs-module/resources/views/new-ad/post-cat.twig index 6c6aba785..45666e944 100644 --- a/addons/default/visiosoft/advs-module/resources/views/new-ad/post-cat.twig +++ b/addons/default/visiosoft/advs-module/resources/views/new-ad/post-cat.twig @@ -6,7 +6,9 @@ {% block content %}
- {% include "visiosoft.module.advs::new-ad/partials/breadcrumb" %} + {% if setting_value('visiosoft.module.advs::show_breadcrumb_when_creating_ad') %} + {% include "visiosoft.module.advs::new-ad/partials/breadcrumb" %} + {% endif %}