diff --git a/addons/default/visiosoft/advs-module/resources/views/list/partials/ads.twig b/addons/default/visiosoft/advs-module/resources/views/list/partials/ads.twig
index bda048385..869151e08 100644
--- a/addons/default/visiosoft/advs-module/resources/views/list/partials/ads.twig
+++ b/addons/default/visiosoft/advs-module/resources/views/list/partials/ads.twig
@@ -5,16 +5,13 @@
- | {{ trans('visiosoft.module.advs::field.ad_title') }} |
+ {{ trans('visiosoft.module.advs::field.ad_title') }} |
{% if listLocation %}
{{ trans('visiosoft.module.advs::field.city.name') }}
/ {{ trans('visiosoft.module.advs::field.district.name') }}
|
{% endif %}
- {% if setting_value('visiosoft.module.advs::market_place') %}
- {{ trans('visiosoft.module.advs::field.listing_date') }} |
- {% endif %}
{{ trans('visiosoft.module.advs::field.price.name') }} |
diff --git a/addons/default/visiosoft/profile-module/resources/config/settings/sections.php b/addons/default/visiosoft/profile-module/resources/config/settings/sections.php
index bddef91f7..6a16c2c00 100644
--- a/addons/default/visiosoft/profile-module/resources/config/settings/sections.php
+++ b/addons/default/visiosoft/profile-module/resources/config/settings/sections.php
@@ -7,6 +7,7 @@ return [
'general_setting' => [
'title' => 'visiosoft.module.profile::section.general_setting',
'fields' => [
+ 'show_extends_actions',
'required_district',
'show_my_ads',
'upload_avatar',
diff --git a/addons/default/visiosoft/profile-module/resources/config/settings/settings.php b/addons/default/visiosoft/profile-module/resources/config/settings/settings.php
index a31fc1386..a22ba779e 100644
--- a/addons/default/visiosoft/profile-module/resources/config/settings/settings.php
+++ b/addons/default/visiosoft/profile-module/resources/config/settings/settings.php
@@ -76,4 +76,10 @@ return [
'default_value' => false,
]
],
+ 'show_extends_actions' => [
+ 'type' => 'anomaly.field_type.boolean',
+ 'config' => [
+ 'default_value' => true,
+ ]
+ ],
];
\ No newline at end of file
diff --git a/addons/default/visiosoft/profile-module/resources/lang/en/setting.php b/addons/default/visiosoft/profile-module/resources/lang/en/setting.php
index 66f1d2099..ee70f40bf 100644
--- a/addons/default/visiosoft/profile-module/resources/lang/en/setting.php
+++ b/addons/default/visiosoft/profile-module/resources/lang/en/setting.php
@@ -48,6 +48,11 @@ return [
'instructions' => 'Hides the register type field in the profile edit page.',
],
'required_district' => [
- 'name' => 'Required District'
+ 'name' => 'Required District',
+ 'instructions' => 'Adding an address represents the district obligation.',
+ ],
+ 'show_extends_actions' => [
+ 'name' => 'Show Extends Actions',
+ 'instructions' => 'Represents the Extends options available on the my profile Ads page.',
],
];
diff --git a/addons/default/visiosoft/profile-module/resources/lang/tr/setting.php b/addons/default/visiosoft/profile-module/resources/lang/tr/setting.php
index d1ba032d1..6fad618e5 100644
--- a/addons/default/visiosoft/profile-module/resources/lang/tr/setting.php
+++ b/addons/default/visiosoft/profile-module/resources/lang/tr/setting.php
@@ -48,6 +48,12 @@ return [
'instructions' => 'Profil düzenleme sayfasındaki kayıt türü alanını gizler.',
],
'required_district' => [
- 'name' => 'Zorunlu Bölge'
+ 'name' => 'İlçe Zorunluluğu',
+ 'instructions' => 'Adres kayıtta ilçe zorunluluğunu temsil eder.',
+ ],
+
+ 'show_extends_actions' => [
+ 'name' => 'Süre Uzatma Seçeneklerini Göster',
+ 'instructions' => 'Profilim İlanlar sayfasında bulunan Süre uzatma seçeneklerini temsil eder.',
],
];
diff --git a/addons/default/visiosoft/profile-module/resources/views/profile/ads.twig b/addons/default/visiosoft/profile-module/resources/views/profile/ads.twig
index 2eba3e346..2f96c5a49 100644
--- a/addons/default/visiosoft/profile-module/resources/views/profile/ads.twig
+++ b/addons/default/visiosoft/profile-module/resources/views/profile/ads.twig
@@ -31,7 +31,7 @@
{{ trans("visiosoft.theme.base::button.post_ad.name") }}
- {% if auth_user().hasRole('admin') %}
+ {% if auth_user().hasRole('admin') and setting_value('visiosoft.module.profile::show_extends_actions') %}
{{ trans('visiosoft.module.profile::button.extend_all') }}