added market Place Mode

This commit is contained in:
vedatakd 2020-07-20 17:50:06 +03:00
parent d10af386f7
commit b9b920c365
4 changed files with 20 additions and 7 deletions

View File

@ -7,11 +7,12 @@ return [
'general' => [
'title' => 'visiosoft.module.advs::section.general',
'fields' => [
'market_place',
'iban_numbers',
'google_statistic_code',
'ogImage',
'free_currencyconverterapi_key',
'enabled_currencies'
'enabled_currencies',
],
],
'ads' => [

View File

@ -189,4 +189,10 @@ return [
},
],
],
'market_place' => [
'type' => 'anomaly.field_type.boolean',
'config' => [
'default_value' => true,
],
],
];

View File

@ -127,4 +127,7 @@ return [
'register_email_field' => [
'name' => 'Member Registration Email Requirement',
],
'market_place' => [
'name' => 'Market Place',
],
];

View File

@ -13,18 +13,21 @@
<img src="{{ img('visiosoft.module.profile::images/social-media.svg').url }}">
<p>{{ trans('visiosoft.module.profile::addon.title') }}</p>
</a>
<a href="{{ url_route('profile::ads') }}"
class="px-3 link-unstyled{{ app.request.pathinfo == '/profile/ads' ? ' active' : '' }}">
<img src="{{ img('visiosoft.module.profile::images/website.svg').url }}">
<p>{{ trans('visiosoft.module.advs::addon.title') }}</p>
</a>
{% set marketPlace = setting_value('visiosoft.module.advs::market_place') %}
{% if marketPlace %}
<a href="{{ url_route('profile::ads') }}"
class="px-3 link-unstyled{{ app.request.pathinfo == '/profile/ads' ? ' active' : '' }}">
<img src="{{ img('visiosoft.module.profile::images/website.svg').url }}">
<p>{{ trans('visiosoft.module.advs::addon.title') }}</p>
</a>
{% endif %}
<a href="{{ url_route('profile::address') }}"
class="px-3 link-unstyled{{ app.request.pathinfo == '/profile/address' ? ' active' : '' }}">
<img src="{{ img('visiosoft.module.profile::images/location.svg').url }}">
<p>{{ trans('visiosoft.module.profile::stream.adress.name') }}</p>
</a>
{{ addBlock('profile/navigation')|raw }}
{{ addBlock('profile/navigation',{'marketPlace':marketPlace})|raw }}
</div>
<div class="overlay"></div>