Merge pull request #618 from openclassify/vedatakdogan

added market Place Mode
This commit is contained in:
Ozcan Durak 2020-07-22 19:20:55 +03:00 committed by GitHub
commit 2d17027b75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 20 additions and 7 deletions

View File

@ -7,11 +7,12 @@ return [
'general' => [ 'general' => [
'title' => 'visiosoft.module.advs::section.general', 'title' => 'visiosoft.module.advs::section.general',
'fields' => [ 'fields' => [
'market_place',
'iban_numbers', 'iban_numbers',
'google_statistic_code', 'google_statistic_code',
'ogImage', 'ogImage',
'free_currencyconverterapi_key', 'free_currencyconverterapi_key',
'enabled_currencies' 'enabled_currencies',
], ],
], ],
'ads' => [ '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' => [ 'register_email_field' => [
'name' => 'Member Registration Email Requirement', '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 }}"> <img src="{{ img('visiosoft.module.profile::images/social-media.svg').url }}">
<p>{{ trans('visiosoft.module.profile::addon.title') }}</p> <p>{{ trans('visiosoft.module.profile::addon.title') }}</p>
</a> </a>
<a href="{{ url_route('profile::ads') }}" {% set marketPlace = setting_value('visiosoft.module.advs::market_place') %}
class="px-3 link-unstyled{{ app.request.pathinfo == '/profile/ads' ? ' active' : '' }}"> {% if marketPlace %}
<img src="{{ img('visiosoft.module.profile::images/website.svg').url }}"> <a href="{{ url_route('profile::ads') }}"
<p>{{ trans('visiosoft.module.advs::addon.title') }}</p> class="px-3 link-unstyled{{ app.request.pathinfo == '/profile/ads' ? ' active' : '' }}">
</a> <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') }}" <a href="{{ url_route('profile::address') }}"
class="px-3 link-unstyled{{ app.request.pathinfo == '/profile/address' ? ' active' : '' }}"> class="px-3 link-unstyled{{ app.request.pathinfo == '/profile/address' ? ' active' : '' }}">
<img src="{{ img('visiosoft.module.profile::images/location.svg').url }}"> <img src="{{ img('visiosoft.module.profile::images/location.svg').url }}">
<p>{{ trans('visiosoft.module.profile::stream.adress.name') }}</p> <p>{{ trans('visiosoft.module.profile::stream.adress.name') }}</p>
</a> </a>
{{ addBlock('profile/navigation')|raw }} {{ addBlock('profile/navigation',{'marketPlace':marketPlace})|raw }}
</div> </div>
<div class="overlay"></div> <div class="overlay"></div>