Merge remote-tracking branch 'origin/master'

This commit is contained in:
vedatakd 2021-07-01 10:23:27 +03:00
commit c3b005f48c
5 changed files with 66 additions and 53 deletions

View File

@ -53,6 +53,7 @@ return [
'create_ad' => [ 'create_ad' => [
'title' => 'visiosoft.module.advs::section.create_ad', 'title' => 'visiosoft.module.advs::section.create_ad',
'fields' => [ 'fields' => [
'hide_contact_created_at',
'show_tax_field', 'show_tax_field',
'detailed_product_options', 'detailed_product_options',
'steps_color', 'steps_color',

View File

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

View File

@ -133,6 +133,9 @@ return [
], ],
'market_place' => [ 'market_place' => [
'name' => 'Market Place', 'name' => 'Market Place',
'instructions' => 'If the marketplace is down, your site will act as ecommerce. For example,
some fields in the profile such as ads, dopings, messages, sale, packages and store are not visible and
removes corporate membership.'
], ],
'price_area_hidden' => [ 'price_area_hidden' => [
'name' => 'Price Area Hidden', 'name' => 'Price Area Hidden',
@ -280,4 +283,7 @@ return [
'name' => 'Show Tax Field', 'name' => 'Show Tax Field',
'instructions' => 'When this option is enabled, you can set the tax rate on the ad creation page.' 'instructions' => 'When this option is enabled, you can set the tax rate on the ad creation page.'
], ],
'hide_contact_created_at' => [
'name' => 'Hide Contact Fields For in Create New Ad'
]
]; ];

View File

@ -1,4 +1,5 @@
<div id="contactInfo" class="mb-3"> {% if (setting_value('visiosoft.module.advs::hide_contact_created_at') != true) %}
<div id="contactInfo" class="mb-3">
<h3>{{ trans('visiosoft.module.advs::field.contact_info') }}</h3> <h3>{{ trans('visiosoft.module.advs::field.contact_info') }}</h3>
<div id="reachInfo"> <div id="reachInfo">
{% set showPhoneNumber = form.fields.show_phone_number.value %} {% set showPhoneNumber = form.fields.show_phone_number.value %}
@ -37,4 +38,5 @@
<span>{{ trans('visiosoft.module.advs::field.update_my_contact_info') }}</span> <span>{{ trans('visiosoft.module.advs::field.update_my_contact_info') }}</span>
</button> </button>
</div> </div>
</div> </div>
{% endif %}

View File

@ -1,11 +1,10 @@
(function (window, document) { /* Offline */
/* Offline */ window.addEventListener('offline', () => {
window.addEventListener('offline', () => {
$('body > *').hide(); $('body > *').hide();
$('#offline').show(); $('#offline').show();
}); });
$('#offline button').click(function () { $('#offline button').click(function () {
$('.spinner-border', this).css('display', 'inline-block') $('.spinner-border', this).css('display', 'inline-block')
setTimeout(() => { setTimeout(() => {
@ -15,6 +14,5 @@
$('.spinner-border', this).hide() $('.spinner-border', this).hide()
} }
}, 250) }, 250)
}) })
/* End Offline */ /* End Offline */
})(window, document);