From d9e7ad61cc0c7cb3d9c094b734c8e1ac28a529cc Mon Sep 17 00:00:00 2001 From: Narek Zakarian Date: Mon, 18 Mar 2024 17:34:49 +0400 Subject: [PATCH 1/4] Change the placement separator color --- .../resources/css/paylater-configurator.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ppcp-paylater-configurator/resources/css/paylater-configurator.scss b/modules/ppcp-paylater-configurator/resources/css/paylater-configurator.scss index 3e63f2504..6b61e8a2c 100644 --- a/modules/ppcp-paylater-configurator/resources/css/paylater-configurator.scss +++ b/modules/ppcp-paylater-configurator/resources/css/paylater-configurator.scss @@ -46,7 +46,7 @@ hr { margin-right: 16px; - border-top-color: rgb(84, 93, 104); + border-top-color: #B1B7BD; } } From 5d45737fdd05667358aab5eb8d3a1de413d67ba0 Mon Sep 17 00:00:00 2001 From: Narek Zakarian Date: Mon, 18 Mar 2024 17:35:27 +0400 Subject: [PATCH 2/4] Allow legacy values to be passed to the Configurator --- .../ppcp-paylater-configurator/src/Factory/ConfigFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ppcp-paylater-configurator/src/Factory/ConfigFactory.php b/modules/ppcp-paylater-configurator/src/Factory/ConfigFactory.php index f00085ed5..7f66c008b 100644 --- a/modules/ppcp-paylater-configurator/src/Factory/ConfigFactory.php +++ b/modules/ppcp-paylater-configurator/src/Factory/ConfigFactory.php @@ -48,7 +48,7 @@ private function for_location( Settings $settings, string $location ): array { ); } elseif ( $location !== 'woocommerceBlock' ) { $config = array( - 'layout' => 'text', + 'layout' => $this->get_or_default( $settings, "pay_later_{$location}_message_layout", 'text' ), 'logo-position' => $this->get_or_default( $settings, "pay_later_{$location}_message_position", 'left' ), 'logo-type' => $this->get_or_default( $settings, "pay_later_{$location}_message_logo", 'inline' ), 'text-color' => $this->get_or_default( $settings, "pay_later_{$location}_message_color", 'black' ), From be7432a23944ec8d7e280c55f31695a203116da8 Mon Sep 17 00:00:00 2001 From: Narek Zakarian Date: Mon, 18 Mar 2024 18:02:47 +0400 Subject: [PATCH 3/4] Allow legacy values to be passed to the Configurator --- .../ppcp-paylater-configurator/src/Factory/ConfigFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ppcp-paylater-configurator/src/Factory/ConfigFactory.php b/modules/ppcp-paylater-configurator/src/Factory/ConfigFactory.php index 7f66c008b..e5c006a17 100644 --- a/modules/ppcp-paylater-configurator/src/Factory/ConfigFactory.php +++ b/modules/ppcp-paylater-configurator/src/Factory/ConfigFactory.php @@ -42,7 +42,7 @@ private function for_location( Settings $settings, string $location ): array { if ( in_array( $location, array( 'shop', 'home' ), true ) ) { $config = array( - 'layout' => 'flex', + 'layout' => $this->get_or_default( $settings, "pay_later_{$location}_message_layout", 'flex' ), 'color' => $this->get_or_default( $settings, "pay_later_{$location}_message_flex_color", 'black', array( 'black', 'blue', 'white', 'white-no-border' ) ), 'ratio' => $this->get_or_default( $settings, "pay_later_{$location}_message_flex_ratio", '8x1', array( '8x1', '20x1' ) ), ); From 9d7bee940384b80aea0c6a98b137fa6c184eb650 Mon Sep 17 00:00:00 2001 From: Narek Zakarian Date: Mon, 18 Mar 2024 18:11:21 +0400 Subject: [PATCH 4/4] Allow legacy values to be passed to the Configurator --- .../ppcp-paylater-configurator/src/Factory/ConfigFactory.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ppcp-paylater-configurator/src/Factory/ConfigFactory.php b/modules/ppcp-paylater-configurator/src/Factory/ConfigFactory.php index e5c006a17..d36fe91c3 100644 --- a/modules/ppcp-paylater-configurator/src/Factory/ConfigFactory.php +++ b/modules/ppcp-paylater-configurator/src/Factory/ConfigFactory.php @@ -43,8 +43,8 @@ private function for_location( Settings $settings, string $location ): array { if ( in_array( $location, array( 'shop', 'home' ), true ) ) { $config = array( 'layout' => $this->get_or_default( $settings, "pay_later_{$location}_message_layout", 'flex' ), - 'color' => $this->get_or_default( $settings, "pay_later_{$location}_message_flex_color", 'black', array( 'black', 'blue', 'white', 'white-no-border' ) ), - 'ratio' => $this->get_or_default( $settings, "pay_later_{$location}_message_flex_ratio", '8x1', array( '8x1', '20x1' ) ), + 'color' => $this->get_or_default( $settings, "pay_later_{$location}_message_flex_color", 'black' ), + 'ratio' => $this->get_or_default( $settings, "pay_later_{$location}_message_flex_ratio", '8x1' ), ); } elseif ( $location !== 'woocommerceBlock' ) { $config = array(