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 +18 -7 6.30 → trunk View file →
@@ -103,11 +103,9 @@
103 103 *
104 104 * @return void
105 105 */
106 106 public static function fee_education( $content = 'tip', $gateway = false ) {
107 - $license_type = FrmAddonsController::license_type();
108 -
109 - if ( in_array( $license_type, array( 'elite', 'business' ), true ) ) {
107 + if ( ! FrmAddonsController::payment_fees_apply( 'stripe' ) ) {
110 108 return;
111 109 }
112 110
113 111 $classes = 'frm-light-tip show_stripe';
@@ -137,14 +135,27 @@
137 135 */
138 136 public static function not_connected_warning() {
139 137 // phpcs:disable Generic.WhiteSpace.ScopeIndent
140 138 ?>
141 - <div class="frm_warning_style frm-with-icon">
142 - <?php FrmAppHelper::icon_by_class( 'frmfont frm_alert_icon', array( 'style' => 'width:24px' ) ); ?>
139 + <div class="frm_warning_style">
143 140 <span>
144 141 <?php
145 - /* translators: %1$s: Link HTML, %2$s: End link */
146 - 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 + );
147 158 ?>
148 159 </span>
149 160 </div>
150 161 <?php