diff --git a/classes/views/shared/payment-connect-mode-box.php b/classes/views/shared/payment-connect-mode-box.php new file mode 100644 index 0000000000..2c6257c1f4 --- /dev/null +++ b/classes/views/shared/payment-connect-mode-box.php @@ -0,0 +1,67 @@ + +
+
+
+ + + +
+ 'width: 10px; position: relative; top: 2px; margin-right: 5px;' ) ); + esc_html_e( 'Connected', 'formidable' ); + } else { + esc_html_e( 'Not configured', 'formidable' ); + } + ?> +
+
+
+ +
+ +
+ + + + + + + + + +
+
+
diff --git a/paypal/helpers/FrmPayPalLiteConnectHelper.php b/paypal/helpers/FrmPayPalLiteConnectHelper.php index 0a7039b05a..7da325c64f 100644 --- a/paypal/helpers/FrmPayPalLiteConnectHelper.php +++ b/paypal/helpers/FrmPayPalLiteConnectHelper.php @@ -276,8 +276,12 @@ private static function render_error( $message, $email = '', $merchant_id = '' ) * @return void */ public static function render_settings_for_mode( $mode ) { - $connected = (bool) self::get_merchant_id( $mode ); - include FrmPayPalLiteAppHelper::plugin_path() . '/views/settings/connect-settings-box.php'; + $connected = (bool) self::get_merchant_id( $mode ); + $column_class = 'frm6'; + $gateway_slug = 'paypal'; + $icon_font_class = 'frm_icon_font'; + $extra_content_callback = array( 'FrmPayPalLiteConnectHelper', 'render_seller_status_placeholder' ); + include FrmAppHelper::plugin_path() . '/classes/views/shared/payment-connect-mode-box.php'; } /** diff --git a/paypal/views/settings/connect-settings-box.php b/paypal/views/settings/connect-settings-box.php deleted file mode 100644 index c9fdc6e991..0000000000 --- a/paypal/views/settings/connect-settings-box.php +++ /dev/null @@ -1,47 +0,0 @@ - -
-
-
- - - -
- 'width: 10px; position: relative; top: 2px; margin-right: 5px;' ) ); - esc_html_e( 'Connected', 'formidable' ); - } else { - esc_html_e( 'Not configured', 'formidable' ); - } - ?> -
-
-
- -
- -
- - - - - - - - - -
-
-
diff --git a/square/helpers/FrmSquareLiteConnectHelper.php b/square/helpers/FrmSquareLiteConnectHelper.php index a4c349c17d..6e43b64d0d 100644 --- a/square/helpers/FrmSquareLiteConnectHelper.php +++ b/square/helpers/FrmSquareLiteConnectHelper.php @@ -69,56 +69,12 @@ public static function render_settings_container() { * @return void */ private static function render_settings_for_mode( $mode ) { - // phpcs:disable Generic.WhiteSpace.ScopeIndent - ?> -
-
-
- - - - -
- 'width: 10px; position: relative; top: 2px; margin-right: 5px;' ) ); - echo 'Connected'; - } else { - echo 'Not configured'; - } - ?> -
-
-
- -
-
- - - - - - - - - -
-
-
-