PluginProbe ʕ •ᴥ•ʔ
Everest Forms – Contact Form, Payment Form, Quiz, Survey & Custom Form Builder with AI / 2.0.3
Everest Forms – Contact Form, Payment Form, Quiz, Survey & Custom Form Builder with AI v2.0.3
3.5.2 3.5.1 3.5.0 3.4.8 3.4.7 3.4.6 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.5.1 1.1.6 1.1.7 1.1.8 1.1.9 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 1.4.9 1.5.0 1.5.1 1.5.10 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.5.9 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 1.6.6.1 1.6.7 1.7.0 1.7.0.1 1.7.0.2 1.7.0.3 1.7.1 1.7.2 1.7.2.1 1.7.2.2 1.7.3 1.7.4 1.7.5 1.7.5.1 1.7.5.2 1.7.6 1.7.7 1.7.7.1 1.7.7.2 1.7.8 1.7.9 1.8.0 1.8.0.1 1.8.1 1.8.2 1.8.2.1 1.8.2.2 1.8.2.3 1.8.3 1.8.4 1.8.5 1.8.6 1.8.7 1.8.8 1.8.9 1.9.0 1.9.0.1 1.9.1 1.9.2 1.9.3 1.9.4 1.9.4.1 1.9.5 1.9.6 1.9.7 1.9.8 1.9.9 2.0.0 2.0.0.1 2.0.1 2.0.2 2.0.3 2.0.3.1 2.0.4 2.0.4.1 2.0.5 2.0.6 2.0.7 2.0.8 2.0.8.1 2.0.9 3.0.0 3.0.0.1 3.0.1 3.0.2 3.0.3 3.0.3.1 3.0.4 3.0.4.1 3.0.4.2 3.0.5 3.0.5.1 3.0.5.2 3.0.6 3.0.6.1 3.0.7.1 3.0.8 3.0.8.1 3.0.9 3.0.9.1 3.0.9.2 3.0.9.3 3.0.9.4 3.0.9.5 3.1.0 3.1.1 3.1.2 3.2.0 3.2.1 3.2.2 3.2.3 3.2.4 3.2.5 3.2.6 3.3.0 3.4.0 3.4.1 3.4.2 3.4.2.1 3.4.3 3.4.4 3.4.5 trunk 1.0 1.0.1 1.0.2 1.0.3
everest-forms / includes / admin / views / html-admin-page-form-templates.php
everest-forms / includes / admin / views Last commit date
html-admin-page-addons.php 2 years ago html-admin-page-builder.php 4 years ago html-admin-page-entries-view.php 3 years ago html-admin-page-export.php 3 years ago html-admin-page-form-templates.php 3 years ago html-admin-page-import.php 3 years ago html-admin-page-tools-logs.php 4 years ago html-admin-page-tools.php 5 years ago html-admin-settings.php 7 years ago html-deactivation-popup.php 3 years ago html-notice-allow-usage.php 2 years ago html-notice-custom.php 6 years ago html-notice-php-deprecation.php 3 years ago html-notice-review.php 2 years ago html-notice-survey.php 4 years ago html-notice-update.php 6 years ago html-notice-updated.php 6 years ago html-notice-updating.php 6 years ago
html-admin-page-form-templates.php
185 lines
1 <?php
2 /**
3 * Admin View: Builder setup
4 *
5 * @package EverestForms/Admin/Builder
6 *
7 * @var string $view
8 * @var object $templates
9 */
10
11 defined( 'ABSPATH' ) || exit;
12
13 ?>
14 <div class ="wrap everest-forms">
15 <div class="everest-forms-loader-overlay" style="display:none">
16 <div class="evf-loading evf-loading-active"></div>
17 </div>
18 <div class="everest-forms-setup everest-forms-setup--form everest-forms-form-template-wrapper" >
19 <div class="everest-forms-setup-header">
20 <div class="everest-forms-logo">
21 <svg xmlns="http://www.w3.org/2000/svg" height="32" width="32" viewBox="0 0 24 24"><path fill="#7e3bd0" d="M21.23,10H17.79L16.62,8h3.46ZM17.77,4l1.15,2H15.48L14.31,4Zm-15,16L12,4l5.77,10H10.85L12,12h2.31L12,8,6.23,18H20.08l1.16,2Z"/></svg>
22 </div>
23 <h4><?php esc_html_e( 'Add New Form', 'everest-forms' ); ?></h4>
24 <?php if ( apply_filters( 'everest_forms_refresh_templates', true ) ) : ?>
25 <a href="<?php echo esc_url( $refresh_url ); ?>" class="everest-forms-btn page-title-action"><?php esc_html_e( 'Refresh Templates', 'everest-forms' ); ?></a>
26 <?php endif; ?>
27 <nav class="everest-forms-tab">
28 <ul>
29 <li class="everest-forms-tab-nav active">
30 <a href="#" id="evf-form-all" class="everest-forms-tab-nav-link" data-plan="all"><?php esc_html_e( 'All', 'everest-forms' ); ?></a>
31 </li>
32 <li class="everest-forms-tab-nav">
33 <a href="#" id="evf-form-basic" class="everest-forms-tab-nav-link" data-plan="free"><?php esc_html_e( 'Free', 'everest-forms' ); ?></a>
34 </li>
35 <li class="everest-forms-tab-nav">
36 <a href="#" id="evf-form-pro" class="everest-forms-tab-nav-link" data-plan="premium"><?php esc_html_e( 'Premium', 'everest-forms' ); ?></a>
37 </li>
38 </ul>
39 </nav>
40 </div>
41 <?php
42 if ( 'false' === filter_input( INPUT_GET, 'evf-templates-fetch' ) ) {
43 echo '<div id="message" class="notice notice-warning is-dismissible"><p>' . esc_html__( 'Couldn\'t connect to templates server. Please reload again.', 'everest-forms' ) . '</p><button type="button" class="notice-dismiss"><span class="screen-reader-text">x</span></button></div>';
44 }
45 ?>
46 <div class="everest-forms-form-template evf-setup-templates" data-license-type="<?php echo esc_attr( $license_plan ); ?>">
47 <?php
48 if ( empty( $templates ) ) {
49 echo '<div id="message" class="error"><p>' . esc_html__( 'Something went wrong. Please refresh your templates.', 'everest-forms' ) . '</p></div>';
50 } else {
51 foreach ( $templates as $template ) :
52 $badge = '';
53 $upgrade_class = 'evf-template-select';
54 $preview_link = isset( $template->preview_link ) ? $template->preview_link : '';
55 $click_class = '';
56 if ( ! in_array( 'free', $template->plan, true ) ) {
57 if ( in_array( 'personal', $template->plan, true ) ) {
58 $badge_text = esc_html( 'Personal' );
59 } elseif ( in_array( 'plus', $template->plan, true ) ) {
60 $badge_text = esc_html( 'Plus' );
61 } elseif ( in_array( 'professional', $template->plan, true ) ) {
62 $badge_text = esc_html( 'Professional' );
63 } else {
64 $badge_text = esc_html( 'Agency' );
65 }
66 $badge = '<span class="everest-forms-badge everest-forms-badge--success">' . $badge_text . '</span>';
67 }
68
69 if ( 'blank' === $template->slug ) {
70 $click_class = 'evf-template-select';
71 }
72
73 // Upgrade checks.
74 if ( empty( $license_plan ) && ! in_array( 'free', $template->plan, true ) ) {
75 $upgrade_class = 'upgrade-modal';
76 } elseif ( ! in_array( str_replace( '-lifetime', '', $license_plan ), $template->plan, true ) && ! in_array( 'free', $template->plan, true ) ) {
77 $upgrade_class = 'upgrade-modal';
78 }
79
80 // License Plan check.
81 $license_plan_string = 'free';
82 if ( empty( $license_plan ) && ! in_array( 'free', $template->plan, true ) ) {
83 $license_plan_string = 'premium';
84 } elseif ( ! empty( $license_plan ) && ! in_array( 'free', $template->plan, true ) ) {
85 $license_plan_string = 'premium';
86 }
87
88 /* translators: %s: Template title */
89 $template_name = sprintf( esc_attr_x( '%s template', 'Template name', 'everest-forms' ), esc_attr( $template->title ) );
90 ?>
91 <div class="everest-forms-template-wrap evf-template" id="everest-forms-template-<?php echo esc_attr( $template->slug ); ?>" data-plan="<?php echo esc_attr( $license_plan_string ); ?>">
92 <figure class="everest-forms-screenshot <?php echo esc_attr( $click_class ); ?>" data-template-name-raw="<?php echo esc_attr( $template->title ); ?>" data-template="<?php echo esc_attr( $template->slug ); ?>" data-template-name="<?php echo esc_attr( $template_name ); ?>">
93 <img src="<?php echo esc_url( $template->image ); ?>" alt="<?php echo esc_attr( $template->title ); ?>"/>
94 <?php echo wp_kses_post( $badge ); ?>
95 <?php if ( 'blank' !== $template->slug ) : ?>
96 <div class="form-action">
97 <a href="#" class="everest-forms-btn everest-forms-btn-primary <?php echo esc_attr( $upgrade_class ); ?>" data-licence-plan="<?php echo esc_attr( $license_plan ); ?>" data-template-name-raw="<?php echo esc_attr( $template->title ); ?>" data-template-name="<?php echo esc_attr( $template_name ); ?>" data-template="<?php echo esc_attr( $template->slug ); ?>"><?php esc_html_e( 'Get Started', 'everest-forms' ); ?></a>
98 <a href="<?php echo esc_url( $preview_link ); ?>" target="_blank" class="everest-forms-btn everest-forms-btn-secondary evf-template-preview"><?php esc_html_e( 'Preview', 'everest-forms' ); ?></a>
99 </div>
100 <?php endif; ?>
101 </figure>
102 <div class="everest-forms-form-id-container">
103 <a class="everest-forms-template-name <?php echo esc_attr( $upgrade_class ); ?>" href="#" data-licence-plan="<?php echo esc_attr( $license_plan ); ?>" data-template-name-raw="<?php echo esc_attr( $template->title ); ?>" data-template="<?php echo esc_attr( $template->slug ); ?>" data-template-name="<?php echo esc_attr( $template_name ); ?>"><?php echo esc_html( $template->title ); ?></a>
104 </div>
105 </div>
106 <?php
107 endforeach;
108 }
109 ?>
110 </div>
111 </div>
112 </div>
113 <?php
114 /**
115 * Prints the JavaScript templates for install admin notices.
116 *
117 * Template takes one argument with four values:
118 *
119 * param {object} data {
120 * Arguments for admin notice.
121 *
122 * @type string id ID of the notice.
123 * @type string className Class names for the notice.
124 * @type string message The notice's message.
125 * @type string type The type of update the notice is for. Either 'plugin' or 'theme'.
126 * }
127 *
128 * @since 1.6.0
129 */
130 function everest_forms_print_admin_notice_templates() {
131 ?>
132 <script id="tmpl-wp-installs-admin-notice" type="text/html">
133 <div <# if ( data.id ) { #>id="{{ data.id }}"<# } #> class="notice {{ data.className }}"><p>{{{ data.message }}}</p></div>
134 </script>
135 <script id="tmpl-wp-bulk-installs-admin-notice" type="text/html">
136 <div id="{{ data.id }}" class="{{ data.className }} notice <# if ( data.errors ) { #>notice-error<# } else { #>notice-success<# } #>">
137 <p>
138 <# if ( data.successes ) { #>
139 <# if ( 1 === data.successes ) { #>
140 <# if ( 'plugin' === data.type ) { #>
141 <?php
142 /* translators: %s: Number of plugins */
143 printf( esc_html__( '%s plugin successfully installed.', 'everest-forms' ), '{{ data.successes }}' );
144 ?>
145 <# } #>
146 <# } else { #>
147 <# if ( 'plugin' === data.type ) { #>
148 <?php
149 /* translators: %s: Number of plugins */
150 printf( esc_html__( '%s plugins successfully installed.', 'everest-forms' ), '{{ data.successes }}' );
151 ?>
152 <# } #>
153 <# } #>
154 <# } #>
155 <# if ( data.errors ) { #>
156 <button class="button-link bulk-action-errors-collapsed" aria-expanded="false">
157 <# if ( 1 === data.errors ) { #>
158 <?php
159 /* translators: %s: Number of failed installs */
160 printf( esc_html__( '%s install failed.', 'everest-forms' ), '{{ data.errors }}' );
161 ?>
162 <# } else { #>
163 <?php
164 /* translators: %s: Number of failed installs */
165 printf( esc_html__( '%s installs failed.', 'everest-forms' ), '{{ data.errors }}' );
166 ?>
167 <# } #>
168 <span class="screen-reader-text"><?php esc_html_e( 'Show more details', 'everest-forms' ); ?></span>
169 <span class="toggle-indicator" aria-hidden="true"></span>
170 </button>
171 <# } #>
172 </p>
173 <# if ( data.errors ) { #>
174 <ul class="bulk-action-errors hidden">
175 <# _.each( data.errorMessages, function( errorMessage ) { #>
176 <li>{{ errorMessage }}</li>
177 <# } ); #>
178 </ul>
179 <# } #>
180 </div>
181 </script>
182 <?php
183 }
184 everest_forms_print_admin_notice_templates();
185