PluginProbe ʕ •ᴥ•ʔ
Everest Forms – Contact Form, Payment Form, Quiz, Survey & Custom Form Builder with AI / 3.5.2
Everest Forms – Contact Form, Payment Form, Quiz, Survey & Custom Form Builder with AI v3.5.2
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-header-skeleton.php 4 weeks ago html-admin-page-addons.php 1 year ago html-admin-page-builder.php 4 months ago html-admin-page-dashboard.php 2 years ago html-admin-page-entries-view.php 4 weeks ago html-admin-page-export.php 1 year ago html-admin-page-form-migrator.php 2 years ago html-admin-page-form-templates.php 4 months ago html-admin-page-import.php 1 year ago html-admin-page-payments.php 4 weeks ago html-admin-page-setting.php 2 years ago html-admin-page-smart-smtp-setup.php 4 weeks ago html-admin-page-tools-logs.php 2 months ago html-admin-page-tools.php 3 months ago html-admin-settings.php 4 weeks ago html-deactivation-popup.php 3 years ago html-notice-allow-usage.php 2 months ago html-notice-custom.php 3 months ago html-notice-email-failed-notice.php 3 months ago html-notice-php-deprecation.php 3 months ago html-notice-review.php 3 months ago html-notice-survey.php 3 months ago html-notice-update.php 3 months ago html-notice-updated.php 3 months ago html-notice-updating.php 3 months ago
html-admin-page-form-templates.php
181 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" fill="none" viewBox="0 0 40 40"><path fill="#5317aa" d="M30.517 6.188h-6.69l2.05 3.453h6.69zm4.209 6.906h-6.69l2.157 3.453h6.69zm-.108 17.266H9.15l10.683-17.482L24.258 20h-4.424l-2.05 3.453h12.625L19.834 6.403 3 33.813h33.776z"/></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( 'Pro' );
59 } else {
60 $badge_text = esc_html( 'Agency' );
61 }
62 $badge = '<span class="everest-forms-badge everest-forms-badge--success">' . $badge_text . '</span>';
63 }
64
65 if ( 'blank' === $template->slug ) {
66 $click_class = 'evf-template-select';
67 }
68
69 // Upgrade checks.
70 if ( empty( $license_plan ) && ! in_array( 'free', $template->plan, true ) ) {
71 $upgrade_class = 'upgrade-modal';
72 } elseif ( ! in_array( trim( str_replace( 'lifetime', '', str_replace( '-lifetime', '', $license_plan ) ) ), $template->plan, true ) && ! in_array( 'free', $template->plan, true ) ) {
73 $upgrade_class = 'upgrade-modal';
74 }
75
76 // License Plan check.
77 $license_plan_string = 'free';
78 if ( empty( $license_plan ) && ! in_array( 'free', $template->plan, true ) ) {
79 $license_plan_string = 'premium';
80 } elseif ( ! empty( $license_plan ) && ! in_array( 'free', $template->plan, true ) ) {
81 $license_plan_string = 'premium';
82 }
83
84 /* translators: %s: Template title */
85 $template_name = sprintf( esc_attr_x( '%s template', 'Template name', 'everest-forms' ), esc_attr( $template->title ) );
86 ?>
87 <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 ); ?>">
88 <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 ); ?>">
89 <img src="<?php echo esc_url( $template->image ); ?>" alt="<?php echo esc_attr( $template->title ); ?>"/>
90 <?php echo wp_kses_post( $badge ); ?>
91 <?php if ( 'blank' !== $template->slug ) : ?>
92 <div class="form-action">
93 <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>
94 <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>
95 </div>
96 <?php endif; ?>
97 </figure>
98 <div class="everest-forms-form-id-container">
99 <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>
100 </div>
101 </div>
102 <?php
103 endforeach;
104 }
105 ?>
106 </div>
107 </div>
108 </div>
109 <?php
110 /**
111 * Prints the JavaScript templates for install admin notices.
112 *
113 * Template takes one argument with four values:
114 *
115 * param {object} data {
116 * Arguments for admin notice.
117 *
118 * @type string id ID of the notice.
119 * @type string className Class names for the notice.
120 * @type string message The notice's message.
121 * @type string type The type of update the notice is for. Either 'plugin' or 'theme'.
122 * }
123 *
124 * @since 1.6.0
125 */
126 function everest_forms_print_admin_notice_templates() {
127 ?>
128 <script id="tmpl-wp-installs-admin-notice" type="text/html">
129 <div <# if ( data.id ) { #>id="{{ data.id }}"<# } #> class="notice {{ data.className }}"><p>{{{ data.message }}}</p></div>
130 </script>
131 <script id="tmpl-wp-bulk-installs-admin-notice" type="text/html">
132 <div id="{{ data.id }}" class="{{ data.className }} notice <# if ( data.errors ) { #>notice-error<# } else { #>notice-success<# } #>">
133 <p>
134 <# if ( data.successes ) { #>
135 <# if ( 1 === data.successes ) { #>
136 <# if ( 'plugin' === data.type ) { #>
137 <?php
138 /* translators: %s: Number of plugins */
139 printf( esc_html__( '%s plugin successfully installed.', 'everest-forms' ), '{{ data.successes }}' );
140 ?>
141 <# } #>
142 <# } else { #>
143 <# if ( 'plugin' === data.type ) { #>
144 <?php
145 /* translators: %s: Number of plugins */
146 printf( esc_html__( '%s plugins successfully installed.', 'everest-forms' ), '{{ data.successes }}' );
147 ?>
148 <# } #>
149 <# } #>
150 <# } #>
151 <# if ( data.errors ) { #>
152 <button class="button-link bulk-action-errors-collapsed" aria-expanded="false">
153 <# if ( 1 === data.errors ) { #>
154 <?php
155 /* translators: %s: Number of failed installs */
156 printf( esc_html__( '%s install failed.', 'everest-forms' ), '{{ data.errors }}' );
157 ?>
158 <# } else { #>
159 <?php
160 /* translators: %s: Number of failed installs */
161 printf( esc_html__( '%s installs failed.', 'everest-forms' ), '{{ data.errors }}' );
162 ?>
163 <# } #>
164 <span class="screen-reader-text"><?php esc_html_e( 'Show more details', 'everest-forms' ); ?></span>
165 <span class="toggle-indicator" aria-hidden="true"></span>
166 </button>
167 <# } #>
168 </p>
169 <# if ( data.errors ) { #>
170 <ul class="bulk-action-errors hidden">
171 <# _.each( data.errorMessages, function( errorMessage ) { #>
172 <li>{{ errorMessage }}</li>
173 <# } ); #>
174 </ul>
175 <# } #>
176 </div>
177 </script>
178 <?php
179 }
180 everest_forms_print_admin_notice_templates();
181