diff --git a/addons/default/visiosoft/advs-module/resources/config/settings/sections.php b/addons/default/visiosoft/advs-module/resources/config/settings/sections.php index 92d4a8d3c..8ac2928e0 100644 --- a/addons/default/visiosoft/advs-module/resources/config/settings/sections.php +++ b/addons/default/visiosoft/advs-module/resources/config/settings/sections.php @@ -37,6 +37,8 @@ return [ 'create_ad' => [ 'title' => 'visiosoft.module.advs::section.create_ad', 'fields' => [ + 'steps_color', + 'create_ad_button_color', 'hide_standard_price_field', 'hide_options_field', 'hide_village_field', diff --git a/addons/default/visiosoft/advs-module/resources/config/settings/settings.php b/addons/default/visiosoft/advs-module/resources/config/settings/settings.php index d3c42dd98..70cb3439a 100644 --- a/addons/default/visiosoft/advs-module/resources/config/settings/settings.php +++ b/addons/default/visiosoft/advs-module/resources/config/settings/settings.php @@ -350,4 +350,16 @@ return [ 'bind' => 'override_text', 'env' => 'OVERRIDE_TEXT', ], + 'steps_color' => [ + "type" => "anomaly.field_type.colorpicker", + "config" => [ + "default_value" => '#209579', + ] + ], + 'create_ad_button_color' => [ + "type" => "anomaly.field_type.colorpicker", + "config" => [ + "default_value" => '#00a651', + ] + ], ]; diff --git a/addons/default/visiosoft/advs-module/resources/css/post-category.css b/addons/default/visiosoft/advs-module/resources/css/post-category.css index e3b8d8645..62a146a6d 100644 --- a/addons/default/visiosoft/advs-module/resources/css/post-category.css +++ b/addons/default/visiosoft/advs-module/resources/css/post-category.css @@ -52,8 +52,9 @@ display: none; } -.next-stap img { +.next-stap svg { width: 60px; + height: 60px; } .next-stap p { @@ -62,7 +63,7 @@ } .btn-1 { - background-color: #00a651; + background-color: {{ setting_value('visiosoft.module.advs::create_ad_button_color') }}; padding: 5px 30px 7px; color: #fff; border: 1px solid #dadada; diff --git a/addons/default/visiosoft/advs-module/resources/css/step.scss b/addons/default/visiosoft/advs-module/resources/css/step.scss index b898317a4..fd08b6c4d 100644 --- a/addons/default/visiosoft/advs-module/resources/css/step.scss +++ b/addons/default/visiosoft/advs-module/resources/css/step.scss @@ -6,16 +6,10 @@ min-width: 0; &.current { - &::after { - background: linear-gradient(to right, #209579 50%, #dfdfdf 50%); - } - .bullet { - color: #209579; background-color: #fff; - border: .2rem solid #209579; @media only screen and (min-width: 768px) { - border: .3rem solid #209579; + border-width: .3rem; } } @@ -43,7 +37,6 @@ left: 0; z-index: -1; width: 100%; - background-color: #209579; @media only screen and (min-width: 768px) { height: .3rem; top: 1.4rem; @@ -58,7 +51,6 @@ display: inline-block; position: relative; line-height: 20px; - background-color: #209579; @media only screen and (min-width: 768px) { height: 3rem; width: 3rem; diff --git a/addons/default/visiosoft/advs-module/resources/css/step2.css b/addons/default/visiosoft/advs-module/resources/css/step2.css new file mode 100644 index 000000000..8cc7f023c --- /dev/null +++ b/addons/default/visiosoft/advs-module/resources/css/step2.css @@ -0,0 +1,18 @@ +{% set stepsColor = setting_value('visiosoft.module.advs::steps_color') %} + +#stepProgressBar .step.current .bullet { + color: {{ stepsColor }}; + border: 0.2rem solid {{ stepsColor }}; +} + +#stepProgressBar .step .bullet { + background-color: {{ stepsColor }}; +} + +#stepProgressBar .step.current::after { + background: linear-gradient(to right, {{ stepsColor }} 50%, #dfdfdf 50%); +} + +#stepProgressBar .step::after { + background-color: {{ stepsColor }}; +} diff --git a/addons/default/visiosoft/advs-module/resources/js/cats.js b/addons/default/visiosoft/advs-module/resources/js/cats.js index 2b0536cac..0879d9127 100644 --- a/addons/default/visiosoft/advs-module/resources/js/cats.js +++ b/addons/default/visiosoft/advs-module/resources/js/cats.js @@ -26,7 +26,7 @@ $(document).ready(function () { success: function (response) { hideLoader(); if(response['title'] != undefined){ - response['success'] ? $('.cross-icon').hide() : $('.check-icon').hide(); + response['success'] ? $('.post-icon > svg:last-of-type').hide() : $('.post-icon > svg:first-of-type').hide(); let btn = ''; if (response['link']) { diff --git a/addons/default/visiosoft/advs-module/resources/lang/en/setting.php b/addons/default/visiosoft/advs-module/resources/lang/en/setting.php index c773d2cce..ab4017740 100644 --- a/addons/default/visiosoft/advs-module/resources/lang/en/setting.php +++ b/addons/default/visiosoft/advs-module/resources/lang/en/setting.php @@ -211,4 +211,12 @@ return [ 'name' => 'Override Text', 'instructions' => 'Old Value:New Value' ], + 'steps_color' => [ + 'name' => 'Steps Color', + 'instructions' => 'Changes the progressive steps color.' + ], + 'create_ad_button_color' => [ + 'name' => 'Create Ad Button Color', + 'instructions' => 'Changes the button that shows up when the new ad category selection is finished.' + ], ]; diff --git a/addons/default/visiosoft/advs-module/resources/views/new-ad/partials/steps.twig b/addons/default/visiosoft/advs-module/resources/views/new-ad/partials/steps.twig index 92757a6ff..24285d9fe 100644 --- a/addons/default/visiosoft/advs-module/resources/views/new-ad/partials/steps.twig +++ b/addons/default/visiosoft/advs-module/resources/views/new-ad/partials/steps.twig @@ -1,4 +1,5 @@ diff --git a/addons/default/visiosoft/advs-module/resources/views/new-ad/post-cat.twig b/addons/default/visiosoft/advs-module/resources/views/new-ad/post-cat.twig index 330d1154c..7bbde4831 100644 --- a/addons/default/visiosoft/advs-module/resources/views/new-ad/post-cat.twig +++ b/addons/default/visiosoft/advs-module/resources/views/new-ad/post-cat.twig @@ -47,9 +47,9 @@