From b403c1250b9f6cf4c072a03ae0e5836cdad32085 Mon Sep 17 00:00:00 2001 From: vedatakd Date: Tue, 27 Apr 2021 14:01:31 +0300 Subject: [PATCH 1/3] added sale notification for adv-configuration --- composer.json | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 6ea064e89..61fe01aa7 100644 --- a/composer.json +++ b/composer.json @@ -95,16 +95,20 @@ "symfony/dom-crawler": "3.1.*", "anomaly/installer-module": "~2.4.0" }, - "repositories": [ - { + "repositories": { + "repo-name": { + "type": "composer", + "url": "https://repo.openclassify.com" + }, + "0": { "type": "composer", "url": "https://packages.pyrocms.com" }, - { + "1": { "type": "composer", "url": "https://community.pyrocms.com" } - ], + }, "autoload": { "classmap": [ "database" From 13718021bb52352b62573b18a40cdf97e0fcabcf Mon Sep 17 00:00:00 2001 From: vedatakd Date: Mon, 3 May 2021 14:49:55 +0300 Subject: [PATCH 2/3] #3835 add optional --- .../advs-module/resources/views/list/partials/ads.twig | 5 +---- .../profile-module/resources/config/settings/sections.php | 1 + .../profile-module/resources/config/settings/settings.php | 6 ++++++ .../profile-module/resources/lang/en/setting.php | 7 ++++++- .../profile-module/resources/lang/tr/setting.php | 8 +++++++- .../profile-module/resources/views/profile/ads.twig | 2 +- 6 files changed, 22 insertions(+), 7 deletions(-) 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 @@ - + {% if listLocation %} {% endif %} - {% if setting_value('visiosoft.module.advs::market_place') %} - - {% endif %} 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') }} From 25f45808ebb558ca671c9fa584cbb3eed64e5cf8 Mon Sep 17 00:00:00 2001 From: vedatakd Date: Mon, 3 May 2021 14:51:24 +0300 Subject: [PATCH 3/3] Revert "added sale notification for adv-configuration" This reverts commit b403c125 --- composer.json | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/composer.json b/composer.json index 61fe01aa7..6ea064e89 100644 --- a/composer.json +++ b/composer.json @@ -95,20 +95,16 @@ "symfony/dom-crawler": "3.1.*", "anomaly/installer-module": "~2.4.0" }, - "repositories": { - "repo-name": { - "type": "composer", - "url": "https://repo.openclassify.com" - }, - "0": { + "repositories": [ + { "type": "composer", "url": "https://packages.pyrocms.com" }, - "1": { + { "type": "composer", "url": "https://community.pyrocms.com" } - }, + ], "autoload": { "classmap": [ "database"
{{ trans('visiosoft.module.advs::field.ad_title') }}{{ trans('visiosoft.module.advs::field.ad_title') }} {{ trans('visiosoft.module.advs::field.city.name') }} / {{ trans('visiosoft.module.advs::field.district.name') }} {{ trans('visiosoft.module.advs::field.listing_date') }}{{ trans('visiosoft.module.advs::field.price.name') }}