PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 5.4.4
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v5.4.4
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 / frm-forms / new-form-overlay.php

new-form-overlay.php in Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More 5.4.4, at classes/views/frm-forms/new-form-overlay.php

170 lines 7.3 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_new_form_modal" class="frm_hidden frm-modal frm_common_modal <?php echo esc_attr( $modal_class ); ?>" frm-page="create">
7 <div class="metabox-holder">
8 <div class="postbox">
9 <div class="frm_modal_top">
10 <div class="frm-modal-title">
11 <span role="button" class="frm-modal-back" title="<?php esc_html_e( 'Back', 'formidable' ); ?>">
12 <svg class="frmsvg">
13 <use xlink:href="#frm_back"></use>
14 </svg>
15 </span>
16 <span id="frm-create-title">
17 <span frm-type="form"><?php esc_html_e( 'Create new form', 'formidable' ); ?></span>
18 <span frm-type="template"><?php esc_html_e( 'Create new template', 'formidable' ); ?></span>
19 </span>
20 <span id="frm-upgrade-title">
21 <?php esc_html_e( 'Upgrade your account', 'formidable' ); ?>
22 </span>
23 <span id="frm-preview-title"></span>
24 <span id="frm-email-title">
25 <?php esc_html_e( 'Leave your email address', 'formidable' ); ?>
26 </span>
27 <span id="frm-renew-title">
28 <?php esc_html_e( 'Renew your account', 'formidable' ); ?>
29 </span>
30 </div>
31 <div>
32 <a href="#" class="dismiss">
33 <?php esc_html_e( 'Cancel', 'formidable' ); ?>
34 </a>
35 </div>
36 </div>
37 <div class="inside" id="frm-create-block">
38 <div class="cta-inside frmcenter">
39 <?php FrmFormsController::list_templates(); ?>
40 </div>
41 </div>
42 <div class="inside" id="frm-preview-block"></div>
43 <div class="inside" id="frm-details-block">
44 <form name="frm-new-template" id="frm-new-template" method="post" class="field-group">
45 <p>
46 <label for="frm_template_name" id="frm_new_name" data-template="<?php esc_attr_e( 'Template Name', 'formidable' ); ?>" data-form="<?php esc_html_e( 'Form Name', 'formidable' ); ?>">
47 <?php esc_html_e( 'Form Name', 'formidable' ); ?>
48 </label><br/>
49 <input type="text" name="template_name" id="frm_template_name" class="frm_long_input" />
50 </p>
51
52 <input type="hidden" name="template_desc" id="frm_template_desc" />
53 <input type="hidden" name="link" id="frm_link" value="" />
54 <input type="hidden" name="type" id="frm_action_type" value="frm_install_template" />
55
56 <button type="submit" class="button-primary frm-button-primary">
57 <?php esc_html_e( 'Create', 'formidable' ); ?>
58 </button>
59 </form>
60 </div>
61 <?php if ( in_array( 'upgrade', $blocks_to_render, true ) ) { ?>
62 <div class="inside" id="frm-upgrade-block">
63 <?php require $view_path . 'upgrade-body.php'; ?>
64 </div>
65 <?php } ?>
66 <?php if ( in_array( 'email', $blocks_to_render, true ) ) { ?>
67 <div class="inside" id="frm-email-block">
68 <?php require $view_path . 'leave-email.php'; ?>
69 </div>
70 <?php } ?>
71 <?php if ( in_array( 'code', $blocks_to_render, true ) ) { ?>
72 <div class="inside" id="frm-code-block">
73 <?php require $view_path . 'code-from-email.php'; ?>
74 </div>
75 <?php } ?>
76 <?php if ( in_array( 'renew', $blocks_to_render, true ) ) { ?>
77 <div class="inside" id="frm-renew-block">
78 <?php require $view_path . 'renew-account.php'; ?>
79 </div>
80 <?php } ?>
81 <?php do_action( 'frm_overlay_footer', array( 'type' => 'form' ) ); ?>
82
83 <div id="frm-preview-footer" class="frm_modal_footer">
84 <a href="#" class="button button-secondary frm-button-secondary frm-back-to-all-templates">
85 <?php esc_html_e( 'Back to all templates', 'formidable' ); ?>
86 </a>
87 <a href="#" class="button button-primary frm-button-primary frm-use-this-template">
88 <?php esc_html_e( 'Use this template', 'formidable' ); ?>
89 </a>
90 </div>
91 <div id="frm-details-footer" class="frm_modal_footer">
92 <a href="#" class="button button-secondary frm-modal-cancel frm-back-to-all-templates align-left">
93 <?php esc_html_e( 'Cancel', 'formidable' ); ?>
94 </a>
95 <a href="#" class="button button-primary frm-button-primary frm-submit-new-template">
96 <?php esc_html_e( 'Create', 'formidable' ); ?>
97 </a>
98 </div>
99 <?php if ( in_array( 'upgrade', $blocks_to_render, true ) ) { ?>
100 <div id="frm-upgrade-footer" class="frm_modal_footer">
101 <a href="#" class="button button-secondary frm-modal-cancel frm-back-to-all-templates align-left">
102 <?php esc_html_e( 'Cancel', 'formidable' ); ?>
103 </a>
104 <a href="<?php echo esc_url( $upgrade_link ); ?>" class="button button-primary frm-button-primary" target="_blank" rel="noopener">
105 <?php esc_html_e( 'Upgrade Now', 'formidable' ); ?>
106 </a>
107 </div>
108 <?php } ?>
109 <?php if ( in_array( 'email', $blocks_to_render, true ) ) { ?>
110 <div id="frm-email-footer" class="frm_modal_footer">
111 <a href="#" class="button button-secondary frm-button-secondary frm-modal-cancel align-left">
112 <?php esc_html_e( 'Cancel', 'formidable' ); ?>
113 </a>
114 <a id="frm-add-my-email-address" href="#" class="button button-primary frm-button-primary">
115 <?php esc_html_e( 'Get Code', 'formidable' ); ?>
116 </a>
117 </div>
118 <?php } ?>
119 <?php if ( in_array( 'code', $blocks_to_render, true ) ) { ?>
120 <div id="frm-code-footer" class="frm_modal_footer">
121 <a href="#" class="button button-secondary frm-button-secondary frm-modal-cancel align-left">
122 <?php esc_html_e( 'Cancel', 'formidable' ); ?>
123 </a>
124 <a href="#" class="button button-primary frm-button-primary frm-confirm-email-address">
125 <?php esc_html_e( 'Save Code', 'formidable' ); ?>
126 </a>
127 </div>
128 <?php } ?>
129 <?php if ( in_array( 'renew', $blocks_to_render, true ) ) { ?>
130 <div id="frm-renew-footer" class="frm_modal_footer">
131 <a href="#" class="button button-secondary frm-button-secondary frm-modal-cancel align-left">
132 <?php esc_html_e( 'Cancel', 'formidable' ); ?>
133 </a>
134 <a href="<?php echo esc_url( $renew_link ); ?>" class="button button-primary frm-button-primary" target="_blank" rel="noopener">
135 <?php esc_html_e( 'Renew my account', 'formidable' ); ?>
136 </a>
137 </div>
138 <?php } ?>
139 </div>
140 </div>
141 </div>
142 <div class="frm_hidden">
143 <?php
144 FrmAppHelper::icon_by_class( 'frmfont frm_eye_simple' );
145 FrmAppHelper::icon_by_class( 'frmfont frm_plus_icon' );
146 FrmAppHelper::icon_by_class( 'frmfont frm_back' );
147 FrmAppHelper::icon_by_class( 'frmfont frm_lock_simple' );
148 FrmAppHelper::icon_by_class( 'frmfont frm_unlock_simple' );
149 ?>
150 <div id="frm-hover-icons-template" class="frm-hover-icons">
151 <a role="button" href="#" class="frm-delete-form" aria-label="<?php esc_attr_e( 'Delete form', 'formidable' ); ?>" title="<?php esc_attr_e( 'Delete form', 'formidable' ); ?>">
152 <svg class="frmsvg">
153 <use xlink:href="#frm_delete_solid_icon"></use>
154 </svg>
155 </a><a role="button" href="#" class="frm-preview-form" aria-label="<?php esc_attr_e( 'Preview form', 'formidable' ); ?>" title="<?php esc_attr_e( 'Preview form', 'formidable' ); ?>">
156 <svg class="frmsvg">
157 <use xlink:href="#frm_eye_simple"></use>
158 </svg>
159 </a><a role="button" href="#" class="frm-create-form" aria-label="<?php esc_attr_e( 'Create form', 'formidable' ); ?>" title="<?php esc_attr_e( 'Create form', 'formidable' ); ?>">
160 <svg class="frmsvg">
161 <use xlink:href="#frm_plus_icon"></use>
162 </svg>
163 </a><a role="button" href="#" class="frm-unlock-form" aria-label="<?php esc_html_e( 'Unlock form', 'formidable' ); ?>" title="<?php esc_html_e( 'Unlock form', 'formidable' ); ?>">
164 <svg class="frmsvg">
165 <use xlink:href="#frm_unlock_simple"></use>
166 </svg>
167 </a>
168 </div>
169 </div>
170