PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / trunk
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More vtrunk
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
← All changes | stripe/helpers/FrmStrpLiteAppHelper.php +19 -9 6.29 → trunk View file →
@@ -91,10 +91,9 @@
91 91 *
92 92 * @psalm-return 'live'|'test'
93 93 */
94 94 public static function active_mode() {
95 - $settings = self::get_settings();
96 - return $settings->settings->test_mode ? 'test' : 'live';
95 + return self::get_settings()->settings->test_mode ? 'test' : 'live';
97 96 }
98 97
99 98 /**
100 99 * Add education about Stripe fees.
@@ -104,11 +103,9 @@
104 103 *
105 104 * @return void
106 105 */
107 106 public static function fee_education( $content = 'tip', $gateway = false ) {
108 - $license_type = FrmAddonsController::license_type();
109 -
110 - if ( in_array( $license_type, array( 'elite', 'business' ), true ) ) {
107 + if ( ! FrmAddonsController::payment_fees_apply( 'stripe' ) ) {
111 108 return;
112 109 }
113 110
114 111 $classes = 'frm-light-tip show_stripe';
@@ -138,14 +135,27 @@
138 135 */
139 136 public static function not_connected_warning() {
140 137 // phpcs:disable Generic.WhiteSpace.ScopeIndent
141 138 ?>
142 - <div class="frm_warning_style frm-with-icon">
143 - <?php FrmAppHelper::icon_by_class( 'frmfont frm_alert_icon', array( 'style' => 'width:24px' ) ); ?>
139 + <div class="frm_warning_style">
144 140 <span>
145 141 <?php
146 - /* translators: %1$s: Link HTML, %2$s: End link */
147 - printf( esc_html__( 'Credit Cards will not work without %1$sconnecting Stripe%2$s or %3$sconnecting Square%4$s first.', 'formidable' ), '<a href="?page=formidable-settings&t=stripe_settings" target="_blank">', '</a>', '<a href="?page=formidable-settings&t=square_settings" target="_blank">', '</a>' ); // phpcs:ignore SlevomatCodingStandard.Files.LineLength.LineTooLong
142 + printf(
143 + /* translators: %1$s: Link HTML, %2$s: End link */
144 + esc_html__( 'Credit Cards will not work without connecting %1$sStripe%2$s, %3$sSquare%4$s, or %5$sPayPal%6$s first.', 'formidable' ),
145 + // %1$s
146 + '<a href="' . esc_url( admin_url( 'admin.php?page=formidable-settings&t=stripe_settings' ) ) . '" target="_blank">',
147 + // %2$s
148 + '</a>',
149 + // %3$s
150 + '<a href="' . esc_url( admin_url( 'admin.php?page=formidable-settings&t=square_settings' ) ) . '" target="_blank">',
151 + // %4$s
152 + '</a>',
153 + // %5$s
154 + '<a href="' . esc_url( admin_url( 'admin.php?page=formidable-settings&t=paypal_settings' ) ) . '" target="_blank">',
155 + // %6$s
156 + '</a>'
157 + );
148 158 ?>
149 159 </span>
150 160 </div>
151 161 <?php