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
formidable / classes / views / onboarding-wizard / steps / install-addons-step.php

install-addons-step.php in Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More trunk, at classes/views/onboarding-wizard/steps/install-addons-step.php

98 lines 3.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Onboarding Wizard - Install Formidable Add-ons Step.
4 *
5 * @package Formidable
6 */
7
8 if ( ! defined( 'ABSPATH' ) ) {
9 die( 'You are not allowed to call this page directly.' );
10 }
11 ?>
12 <section id="frm-onboarding-install-addons-step" class="frm-onboarding-step frm-card-box frm-has-progress-bar frm_hidden" data-step-name="<?php echo esc_attr( $step ); ?>">
13 <div class="frm-card-box-header">
14 <img class="frm-onboarding-logo" src="<?php echo esc_url( FrmAppHelper::plugin_url() ); ?>/images/logo.svg" alt="<?php esc_attr_e( 'Formidable Onboarding Wizard Logo', 'formidable' ); ?>" />
15 </div>
16
17 <div class="frm-card-box-content frm-fields">
18 <h2 class="frm-card-box-title frmcenter"><?php esc_html_e( 'Install Formidable Add-ons', 'formidable' ); ?></h2>
19 <p class="frm-card-box-text frmcenter">
20 <?php
21 if ( $pro_is_installed ) {
22 esc_html_e( 'Here\'s just a few of our most popular add-ons! You\'ll find even more on the add-ons page.', 'formidable' );
23 } else {
24 esc_html_e( 'A few of our add-ons come with every installation. But more are available on the add-ons page!', 'formidable' );
25 }
26 ?>
27 </p>
28
29 <div class="frm-mt-md">
30 <?php foreach ( $available_addons as $key => $addon ) { ?>
31 <label <?php FrmOnboardingWizardHelper::add_addon_label_attributes( $key, $addon ); ?>>
32 <span class="frm-flex-center frm-gap-xs">
33 <?php echo esc_html( $addon['title'] ); ?>
34 <?php if ( ! empty( $addon['help-text'] ) ) { ?>
35 <span class="frm_help" data-original-title="<?php echo esc_attr( $addon['help-text'] ); ?>">
36 <?php FrmAppHelper::icon_by_class( 'frmfont frm_info_icon' ); ?>
37 </span>
38 <?php } ?>
39 </span>
40 <input <?php FrmOnboardingWizardHelper::add_addon_input_attributes( $key, $addon ); ?>/>
41 </label>
42 <?php } ?>
43 </div>
44
45 <div class="frm-cta frm-cta-border frm-cta-green frm-p-sm frm-mt-sm">
46 <span class="frm-flex frm-banner-title frm-font-semibold">
47 <?php
48 printf(
49 /* translators: %s: The count of add-ons */
50 esc_html__( 'Get access to %s more add-ons', 'formidable' ),
51 esc_html( $addons_count )
52 );
53 ?>
54 </span>
55
56 <span class="frm-banner-text frm-text-xs">
57 <?php
58 if ( $pro_is_installed ) {
59 printf(
60 /* translators: %1$s: Open anchor tag, %2$s: Close anchor tag */
61 esc_html__( 'Check them all out on the %1$sadd-ons%2$s page.', 'formidable' ),
62 '<a href="' . esc_url( admin_url( 'admin.php?page=formidable-addons' ) ) . '" target="_blank">',
63 '</a>'
64 );
65 } else {
66 printf(
67 /* translators: %1$s: Open anchor tag, %2$s: Close anchor tag */
68 esc_html__( '%1$sUpgrade to PRO%2$s and get more out of Formidable Forms', 'formidable' ),
69 '<a href="' . esc_url( $upgrade_link ) . '" target="_blank">',
70 '</a>'
71 );
72 }
73 ?>
74 </span>
75
76 <?php if ( ! $pro_is_installed ) { ?>
77 <div class="frm-cta-footer frm-flex frm-gap-xs frm-text-xs">
78 <span><?php esc_html_e( 'Already have Pro?', 'formidable' ); ?></span>
79
80 <a href="<?php echo esc_url( FrmAddonsController::connect_link() ); ?>" class="frm-link-with-external-icon" target="_blank">
81 <span><?php esc_html_e( 'Connect Account', 'formidable' ); ?></span>
82 <?php FrmAppHelper::icon_by_class( 'frmfont frm_arrowup8_icon' ); ?>
83 </a>
84 </div>
85 <?php } ?>
86 </div>
87 </div>
88
89 <?php
90 FrmOnboardingWizardHelper::print_footer(
91 array(
92 'primary-button-text' => __( 'Install & Finish Setup', 'formidable' ),
93 'primary-button-id' => 'frm-onboarding-install-addons-button',
94 )
95 );
96 ?>
97 </section>
98