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-header-skeleton.php
everest-forms / includes / admin / views Last commit date
html-admin-header-skeleton.php 3 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 3 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 3 weeks ago html-admin-page-setting.php 2 years ago html-admin-page-smart-smtp-setup.php 3 weeks ago html-admin-page-tools-logs.php 2 months ago html-admin-page-tools.php 3 months ago html-admin-settings.php 3 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-header-skeleton.php
159 lines
1 <?php
2 /**
3 * Admin View: Header Skeleton
4 *
5 * Renders a pixel-perfect PHP skeleton of the React header.
6 * Prevents layout shift and flash-of-unstyled-content on page load.
7 *
8 * Included from html-admin-settings.php inside #evf-react-header-root.
9 *
10 * @package EverestForms\Admin\Views
11 * @since 3.4.3
12 */
13
14 defined( 'ABSPATH' ) || exit;
15
16
17 $evf_current_page = isset( $_GET['page'] ) ? sanitize_text_field( wp_unslash( $_GET['page'] ) ) : ''; // phpcs:ignore WordPress.Security.NonceVerification
18
19 $evf_active_nav = 'settings';
20 if ( 'everest-forms' === $evf_current_page ) {
21 $evf_active_nav = 'forms';
22 } elseif ( 'evf-builder' === $evf_current_page ) {
23 $evf_active_nav = 'forms';
24 } elseif ( 'evf-entries' === $evf_current_page ) {
25 $evf_active_nav = 'entries';
26 } elseif ( 'evf-addons' === $evf_current_page ) {
27 $evf_active_nav = 'addons';
28 } elseif ( 'evf-analytics' === $evf_current_page ) {
29 $evf_active_nav = 'analytics';
30 }
31
32 $evf_is_pro = defined( 'EFP_VERSION' ) || defined( 'EVF_PRO_VERSION' );
33 $evf_version = defined( 'EVF_VERSION' ) ? EVF_VERSION : '';
34
35 $evf_left_nav = array(
36 'forms' => array(
37 'label' => __( 'All Forms', 'everest-forms' ),
38 'url' => admin_url( 'admin.php?page=everest-forms' ),
39 ),
40 'entries' => array(
41 'label' => __( 'Entries', 'everest-forms' ),
42 'url' => admin_url( 'admin.php?page=evf-entries' ),
43 ),
44 'settings' => array(
45 'label' => __( 'Settings', 'everest-forms' ),
46 'url' => admin_url( 'admin.php?page=evf-settings' ),
47 ),
48 'addons' => array(
49 'label' => __( 'Addons', 'everest-forms' ),
50 'url' => admin_url( 'admin.php?page=evf-addons' ),
51 ),
52 );
53 ?>
54
55 <div id="evf-react-header-root">
56 <div class="evf-skeleton" id="evf-header-skeleton" role="banner">
57
58 <div class="evf-skeleton__left">
59 <a
60 href="<?php echo esc_url( admin_url( 'admin.php?page=everest-forms' ) ); ?>"
61 class="evf-skeleton__logo"
62 aria-label="<?php esc_attr_e( 'Everest Forms', 'everest-forms' ); ?>"
63 >
64 <svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false">
65 <rect width="40" height="40" rx="8" fill="#7C3AED" fill-opacity="0.08"/>
66 <path d="M20 8L32 30H8L20 8Z" fill="#7C3AED" fill-opacity="0.15"/>
67 <path d="M20 11L30 29H10L20 11Z" fill="none" stroke="#7C3AED" stroke-width="2.2" stroke-linejoin="round"/>
68 <line x1="14.5" y1="23.5" x2="25.5" y2="23.5" stroke="#7C3AED" stroke-width="2" stroke-linecap="round"/>
69 <line x1="16.5" y1="27" x2="23.5" y2="27" stroke="#7C3AED" stroke-width="1.5" stroke-linecap="round"/>
70 </svg>
71 </a>
72
73 <ul class="evf-skeleton__nav" role="navigation" aria-label="<?php esc_attr_e( 'Main navigation', 'everest-forms' ); ?>">
74 <?php foreach ( $evf_left_nav as $evf_key => $evf_item ) : ?>
75 <li class="evf-skeleton__nav-item<?php echo ( $evf_active_nav === $evf_key ) ? ' evf-skeleton__nav-item--active' : ''; ?>">
76 <a
77 href="<?php echo esc_url( $evf_item['url'] ); ?>"
78 class="evf-skeleton__nav-link"
79 <?php echo ( $evf_active_nav === $evf_key ) ? 'aria-current="page"' : ''; ?>
80 >
81 <?php echo esc_html( $evf_item['label'] ); ?>
82 </a>
83 </li>
84 <?php endforeach; ?>
85 </ul>
86 </div>
87
88 <div class="evf-skeleton__right">
89
90 <!-- Right nav: Help -->
91 <nav class="evf-skeleton__right-nav" aria-label="<?php esc_attr_e( 'Secondary navigation', 'everest-forms' ); ?>">
92 <a href="<?php echo esc_url( admin_url( 'admin.php?page=evf-settings&tab=general' ) ); ?>" class="evf-skeleton__right-link">
93 <?php esc_html_e( 'Help', 'everest-forms' ); ?>
94 </a>
95 </nav>
96
97 <!-- Divider -->
98 <div class="evf-skeleton__divider" role="separator" aria-hidden="true"></div>
99
100 <?php if ( ! $evf_is_pro ) : ?>
101 <!-- Upgrade to Pro free users only, mirrors React's !isPro block -->
102 <a
103 href="https://everestforms.net/free-vs-pro/?utm_medium=evf-dashboard&utm_source=evf-free&utm_campaign=header-upgrade-btn&utm_content=Upgrade+to+Pro"
104 target="_blank"
105 rel="noopener noreferrer"
106 class="evf-skeleton__upgrade"
107 >
108 <?php esc_html_e( 'Upgrade To Pro', 'everest-forms' ); ?>
109 <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false">
110 <path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/>
111 <polyline points="15 3 21 3 21 9"/>
112 <line x1="10" y1="14" x2="21" y2="3"/>
113 </svg>
114 </a>
115 <?php endif; ?>
116
117 <?php if ( ! empty( $evf_version ) ) : ?>
118 <span class="evf-skeleton__version" aria-label="<?php echo esc_attr( sprintf( __( 'Version %s', 'everest-forms' ), $evf_version ) ); ?>">
119 v<?php echo esc_html( $evf_version ); ?>
120 </span>
121 <?php endif; ?>
122
123 <div class="evf-skeleton__bell" aria-hidden="true">
124 <div class="evf-skeleton__bell-inner"></div>
125 </div>
126
127 </div>
128 </div>
129 </div>
130
131 <script>
132 /* global document */
133 ( function () {
134 'use strict';
135
136 document.body.classList.add( 'evf-js-loaded' );
137
138 window.evfHeaderReady = function () {
139 var skeleton = document.getElementById( 'evf-header-skeleton' );
140 if ( ! skeleton ) {
141 return;
142 }
143
144 skeleton.classList.add( 'evf-skeleton--hidden' );
145
146 setTimeout( function () {
147 if ( skeleton.parentNode ) {
148 skeleton.parentNode.removeChild( skeleton );
149 }
150
151 var styles = document.getElementById( 'evf-header-skeleton-styles' );
152 if ( styles && styles.parentNode ) {
153 styles.parentNode.removeChild( styles );
154 }
155 }, 200 );
156 };
157 }() );
158 </script>
159