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 | classes/views/shared/upgrade_overlay.php +35 -32 6.5.2 → trunk View file →
@@ -9,32 +9,28 @@
9 9 <a href="#" class="dismiss alignright" title="<?php esc_attr_e( 'Dismiss this message', 'formidable' ); ?>">
10 10 <?php FrmAppHelper::icon_by_class( 'frmfont frm_close_icon', array( 'aria-label' => 'Dismiss' ) ); ?>
11 11 </a>
12 12 <div class="inside">
13 + <div class="frm-circled-icon frm-flex-center frm-mb-sm">
14 + <?php FrmAppHelper::icon_by_class( 'frmfont frm_filled_lock_icon frm_locked', array( 'aria-hidden' => 'true' ) ); ?>
15 + </div>
13 16
14 - <?php FrmAppHelper::icon_by_class( 'frmfont frm_lock_icon frm_locked', array( 'aria-hidden' => 'true' ) ); ?>
15 17 <h2>
16 18 <?php
17 19 printf(
18 - /* translators: %$1s: Feature name, %$2s: open span tag, %$3s: close span tag. */
19 - esc_html__( '%1$s %2$sare not installed%3$s', 'formidable' ),
20 + /* translators: %$1s: Feature name, %$2s: open span tag, %$3s: close span tag, %$4s: open prefix span tag, %$5s: close prefix span tag, %$6s: open suffix span tag, %$7s: close suffix span tag. */
21 + esc_html__( '%4$sActivate the %5$s%1$s %2$sare not available%3$s%6$s are now activated%7$s', 'formidable' ),
20 22 '<span class="frm_feature_label"></span>',
21 - '<span class="frm_are_not_installed">',
23 + '<span class="frm_are_not_installed" data-default="' . esc_attr_x( 'are not available', 'upgrade modal', 'formidable' ) . '">',
24 + '</span>',
25 + '<span class="frm-upgrade-modal-title-prefix">',
26 + '</span>',
27 + '<span class="frm-upgrade-modal-title-suffix">',
22 28 '</span>'
23 29 );
24 30 ?>
25 31 </h2>
26 32 <div class="cta-inside">
27 -
28 - <p class="frm-oneclick frm_hidden">
29 - <?php esc_html_e( 'That add-on is not installed. Would you like to install it now?', 'formidable' ); ?>
30 - </p>
31 - <p class="frm-addon-status"></p>
32 -
33 - <a class="button button-primary frm-button-primary frm_hidden frm-oneclick-button">
34 - <?php esc_html_e( 'Install', 'formidable' ); ?>
35 - </a>
36 -
37 33 <?php
38 34 if ( $is_pro ) {
39 35 /* translators: %s: Feature name */
40 36 $message = __( '%s are not available on your plan. Please upgrade or renew your license to unlock more awesome features.', 'formidable' );
@@ -41,15 +37,16 @@
41 37 } else {
42 38 /* translators: %s: Feature name */
43 39 $message = __( '%s are not available on your plan. Did you know you can upgrade to PRO to unlock more awesome features?', 'formidable' );
44 40 }
41 +
45 42 $message = sprintf( esc_html( $message ), '<span class="frm_feature_label"></span>' );
46 43 ?>
47 - <p class="frm-upgrade-message" data-default="<?php echo esc_attr( $message ); ?>">
48 - <?php echo FrmAppHelper::kses( $message, array( 'span' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
44 + <p class="frm-upgrade-message frm-my-xs" data-default="<?php echo esc_attr( $message ); ?>">
45 + <?php FrmAppHelper::kses_echo( $message, array( 'span' ) ); ?>
49 46 </p>
50 47 <?php if ( $is_pro ) { ?>
51 - <a href="<?php echo esc_url( $default_link ); ?>" class="button button-primary frm-button-primary frm-upgrade-link" data-default="<?php echo esc_url( $default_link ); ?>">
48 + <a href="<?php echo esc_url( $default_link ); ?>" class="button button-primary frm-button-primary frm-upgrade-link" target="_blank" rel="noopener" data-default="<?php echo esc_url( $default_link ); ?>">
52 49 <?php
53 50 if ( FrmAddonsController::is_license_expired() ) {
54 51 esc_html_e( 'Renew', 'formidable' );
55 52 } else {
@@ -61,24 +58,30 @@
61 58 }
62 59 ?>
63 60 </a>
64 61 <?php } else { ?>
65 - <a href="<?php echo esc_url( $default_link ); ?>" class="button button-primary frm-button-primary frm-upgrade-link" target="_blank" rel="noopener noreferrer" data-default="<?php echo esc_url( $default_link ); ?>">
66 - <?php
67 - printf(
68 - /* translators: %s: Plan name */
69 - esc_html__( 'Upgrade to %s', 'formidable' ),
70 - '<span class="license-level">Pro</span>'
71 - );
72 - ?>
73 - </a>
74 -
75 - <p>
76 - <a href="<?php echo esc_url( FrmAppHelper::admin_upgrade_link( $upgrade_link, 'knowledgebase/install-formidable-forms/' ) ); ?>" target="_blank" class="frm-link-secondary">
77 - <?php esc_html_e( 'Already purchased?', 'formidable' ); ?>
62 + <div class="frm-upgrade-modal-actions frm-flex-center frm-gap-xs frm-mt-xs frm-mb-md">
63 + <a href="<?php echo esc_url( $default_link ); ?>" class="button button-primary frm-button-primary frm-upgrade-link" target="_blank" rel="noopener noreferrer" data-default="<?php echo esc_url( $default_link ); ?>">
64 + <?php
65 + printf(
66 + /* translators: %s: Plan name */
67 + esc_html__( 'Upgrade to %s', 'formidable' ),
68 + '<span class="license-level">Pro</span>'
69 + );
70 + ?>
78 71 </a>
79 - </p>
80 - <?php } ?>
72 + <a href="#" class="button button-secondary frm-button-secondary frm-learn-more" target="_blank" rel="noopener noreferrer">
73 + <?php echo esc_html_x( 'Learn More', 'upgrade overlay', 'formidable' ); ?>
74 + </a>
75 + </div>
76 + <?php
77 + }//end if
78 + ?>
79 + <p class="frm-oneclick frm_hidden"></p>
80 + <p class="frm-addon-status"></p>
81 + <a class="button button-primary frm-button-primary frm_hidden frm-oneclick-button">
82 + <?php esc_html_e( 'Install', 'formidable' ); ?>
83 + </a>
81 84 </div>
82 85 </div>
83 86 </div>
84 87 </div>