PluginProbe ʕ •ᴥ•ʔ
Everest Forms – Contact Form, Payment Form, Quiz, Survey & Custom Form Builder with AI / 1.9.4
Everest Forms – Contact Form, Payment Form, Quiz, Survey & Custom Form Builder with AI v1.9.4
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-builder-setup.php
everest-forms / includes / admin / views Last commit date
html-admin-page-addons.php 4 years ago html-admin-page-builder-setup.php 4 years ago html-admin-page-builder.php 4 years ago html-admin-page-entries-view.php 4 years ago html-admin-page-export.php 4 years ago html-admin-page-import.php 4 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-notice-custom.php 6 years ago html-notice-review.php 5 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-builder-setup.php
177 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">
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"><?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"><?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"><?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 /* translators: %s: Template title */
81 $template_name = sprintf( esc_attr_x( '%s template', 'Template name', 'everest-forms' ), esc_attr( $template->title ) );
82 ?>
83 <div class="everest-forms-template-wrap evf-template" id="everest-forms-template-<?php echo esc_attr( $template->slug ); ?>">
84 <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 ); ?>">
85 <img src="<?php echo esc_url( evf()->plugin_url() . '/assets/' . $template->image ); ?>"/>
86 <?php echo wp_kses_post( $badge ); ?>
87 <?php if ( 'blank' !== $template->slug ) : ?>
88 <div class="form-action">
89 <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>
90 <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>
91 </div>
92 <?php endif; ?>
93 </figure>
94 <div class="everest-forms-form-id-container">
95 <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>
96 </div>
97 </div>
98 <?php
99 endforeach;
100 }
101 ?>
102 </div>
103 </div>
104 </div>
105 <?php
106 /**
107 * Prints the JavaScript templates for install admin notices.
108 *
109 * Template takes one argument with four values:
110 *
111 * param {object} data {
112 * Arguments for admin notice.
113 *
114 * @type string id ID of the notice.
115 * @type string className Class names for the notice.
116 * @type string message The notice's message.
117 * @type string type The type of update the notice is for. Either 'plugin' or 'theme'.
118 * }
119 *
120 * @since 1.6.0
121 */
122 function everest_forms_print_admin_notice_templates() {
123 ?>
124 <script id="tmpl-wp-installs-admin-notice" type="text/html">
125 <div <# if ( data.id ) { #>id="{{ data.id }}"<# } #> class="notice {{ data.className }}"><p>{{{ data.message }}}</p></div>
126 </script>
127 <script id="tmpl-wp-bulk-installs-admin-notice" type="text/html">
128 <div id="{{ data.id }}" class="{{ data.className }} notice <# if ( data.errors ) { #>notice-error<# } else { #>notice-success<# } #>">
129 <p>
130 <# if ( data.successes ) { #>
131 <# if ( 1 === data.successes ) { #>
132 <# if ( 'plugin' === data.type ) { #>
133 <?php
134 /* translators: %s: Number of plugins */
135 printf( esc_html__( '%s plugin successfully installed.', 'everest-forms' ), '{{ data.successes }}' );
136 ?>
137 <# } #>
138 <# } else { #>
139 <# if ( 'plugin' === data.type ) { #>
140 <?php
141 /* translators: %s: Number of plugins */
142 printf( esc_html__( '%s plugins successfully installed.', 'everest-forms' ), '{{ data.successes }}' );
143 ?>
144 <# } #>
145 <# } #>
146 <# } #>
147 <# if ( data.errors ) { #>
148 <button class="button-link bulk-action-errors-collapsed" aria-expanded="false">
149 <# if ( 1 === data.errors ) { #>
150 <?php
151 /* translators: %s: Number of failed installs */
152 printf( esc_html__( '%s install failed.', 'everest-forms' ), '{{ data.errors }}' );
153 ?>
154 <# } else { #>
155 <?php
156 /* translators: %s: Number of failed installs */
157 printf( esc_html__( '%s installs failed.', 'everest-forms' ), '{{ data.errors }}' );
158 ?>
159 <# } #>
160 <span class="screen-reader-text"><?php esc_html_e( 'Show more details', 'everest-forms' ); ?></span>
161 <span class="toggle-indicator" aria-hidden="true"></span>
162 </button>
163 <# } #>
164 </p>
165 <# if ( data.errors ) { #>
166 <ul class="bulk-action-errors hidden">
167 <# _.each( data.errorMessages, function( errorMessage ) { #>
168 <li>{{ errorMessage }}</li>
169 <# } ); #>
170 </ul>
171 <# } #>
172 </div>
173 </script>
174 <?php
175 }
176 everest_forms_print_admin_notice_templates();
177