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 / form-templates / modals / leave-email-modal.php

leave-email-modal.php in Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More trunk, at classes/views/form-templates/modals/leave-email-modal.php

66 lines 2.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Form Templates - Leave email modal.
4 *
5 * @package Formidable
6 */
7
8 if ( ! defined( 'ABSPATH' ) ) {
9 die( 'You are not allowed to call this page directly.' );
10 }
11
12 $args = $args ?? $leave_email_args ?? array();
13 ?>
14 <div id="frm-leave-email-modal" class="frm_wrap frm-form-templates-modal-item frm_hidden">
15 <?php if ( ! empty( $args['title'] ) ) { ?>
16 <div class="frm_modal_top">
17 <div class="frm-modal-title">
18 <h2><?php echo esc_html( $args['title'] ); ?></h2>
19 </div>
20 </div>
21 <?php } ?>
22
23 <div class="inside frm_grid_container frm-px-md frm-py-0 frm-mt-xs frm-mb-0">
24 <?php if ( ! empty( $args['api_url'] ) ) { ?>
25 <div id="frmapi-email-form" class="frmapi-form frm_hidden" data-url="<?php echo esc_url( $args['api_url'] ); ?>">
26 <span class="frm-wait"></span>
27 </div>
28 <?php } ?>
29
30 <?php if ( ! empty( $args['description'] ) ) { ?>
31 <p class="frm-text-grey-500">
32 <?php echo esc_html( $args['description'] ); ?>
33 </p>
34 <?php } ?>
35
36 <div id="frm_leave_email_wrapper" class="frm-fields frm_form_field">
37 <p class="frm-mt-0 frm-mb-xs">
38 <label class="<?php echo FrmDashboardController::is_dashboard_page() ? 'frm_hidden' : ''; ?>" for="frm_leave_email"><?php esc_html_e( 'Email address', 'formidable' ); ?></label>
39 <input class="frm-input-field" id="frm_leave_email" type="email" placeholder="<?php esc_attr_e( 'Enter your email', 'formidable' ); ?>" value="<?php echo esc_attr( $args['default_email'] ?? $user->user_email ); ?>" />
40 </p>
41
42 <?php
43 FrmAppHelper::print_setting_error(
44 array(
45 'id' => 'frm_leave_email_error',
46 'errors' => array(
47 'invalid' => __( 'Email is invalid', 'formidable' ),
48 'empty' => __( 'Email is empty', 'formidable' ),
49 ),
50 'class' => 'frm-justify-center frm-items-center',
51 )
52 );
53 ?>
54 </div>
55 </div>
56
57 <div class="frm_modal_footer frm-flex-box frm-justify-end frm-pt-sm frm-pb-md">
58 <a href="#" class="button button-secondary frm-button-secondary frm-modal-close dismiss" role="button">
59 <?php echo esc_html( $args['close_button_text'] ?? __( 'Close', 'formidable' ) ); ?>
60 </a>
61 <a href="#" id="frm-get-code-button" class="button button-primary frm-button-primary" role="button">
62 <?php echo esc_html( $args['submit_button_text'] ?? __( 'Subscribe', 'formidable' ) ); ?>
63 </a>
64 </div>
65 </div>
66