PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 5.0
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v5.0
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
formidable / classes / views / shared / upgrade_overlay.php

upgrade_overlay.php in Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More 5.0, at classes/views/shared/upgrade_overlay.php

80 lines 3.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) {
3 die( 'You are not allowed to call this page directly.' );
4 }
5 ?>
6 <div id="frm_upgrade_modal" class="frm_hidden settings-lite-cta">
7 <div class="metabox-holder">
8 <div class="postbox">
9 <a href="#" class="dismiss alignright" title="<?php esc_attr_e( 'Dismiss this message', 'formidable' ); ?>">
10 <?php FrmAppHelper::icon_by_class( 'frmfont frm_close_icon', array( 'aria-label' => 'Dismiss' ) ); ?>
11 </a>
12 <div class="inside">
13
14 <?php FrmAppHelper::icon_by_class( 'frmfont frm_lock_icon frm_locked', array( 'aria-hidden' => 'true' ) ); ?>
15 <h2>
16 <?php
17 printf(
18 /* translators: %s: Feature name */
19 esc_html__( '%s are not installed', 'formidable' ),
20 '<span class="frm_feature_label"></span>'
21 );
22 ?>
23 </h2>
24 <div class="cta-inside">
25
26 <p id="frm-oneclick" class="frm_hidden">
27 <?php esc_html_e( 'That add-on is not installed. Would you like to install it now?', 'formidable' ); ?>
28 </p>
29 <p id="frm-addon-status"></p>
30
31 <a class="button button-primary frm-button-primary frm_hidden" id="frm-oneclick-button">
32 <?php esc_html_e( 'Install', 'formidable' ); ?>
33 </a>
34
35 <?php
36 if ( $is_pro ) {
37 /* translators: %s: Feature name */
38 $message = __( '%s are not available on your plan. Please upgrade or renew your license to unlock more awesome features.', 'formidable' );
39 } else {
40 /* translators: %s: Feature name */
41 $message = __( '%s are not available on your plan. Did you know you can upgrade to PRO to unlock more awesome features?', 'formidable' );
42 }
43 $message = sprintf( esc_html( $message ), '<span class="frm_feature_label"></span>' );
44 ?>
45 <p id="frm-upgrade-message" data-default="<?php echo esc_attr( $message ); ?>">
46 <?php echo FrmAppHelper::kses( $message, array( 'span' ) ); // WPCS: XSS ok. ?>
47 </p>
48 <?php if ( $is_pro ) { ?>
49 <a href="<?php echo esc_url( $default_link ); ?>" class="button button-primary frm-button-primary" id="frm-upgrade-modal-link" data-default="<?php echo esc_url( $default_link ); ?>">
50 <?php
51 printf(
52 /* translators: %s: Plan name */
53 esc_html__( 'Upgrade to %s', 'formidable' ),
54 '<span class="license-level">Pro</span>'
55 );
56 ?>
57 </a>
58 <?php } else { ?>
59 <a href="<?php echo esc_url( $default_link ); ?>" class="button button-primary frm-button-primary" target="_blank" rel="noopener noreferrer" id="frm-upgrade-modal-link" data-default="<?php echo esc_url( $default_link ); ?>">
60 <?php
61 printf(
62 /* translators: %s: Plan name */
63 esc_html__( 'Upgrade to %s', 'formidable' ),
64 '<span class="license-level">Pro</span>'
65 );
66 ?>
67 </a>
68
69 <p>
70 <a href="<?php echo esc_url( FrmAppHelper::admin_upgrade_link( $upgrade_link, 'knowledgebase/install-formidable-forms/' ) ); ?>" target="_blank" class="frm-link-secondary">
71 <?php esc_html_e( 'Already purchased?', 'formidable' ); ?>
72 </a>
73 </p>
74 <?php } ?>
75 </div>
76 </div>
77 </div>
78 </div>
79 </div>
80