PluginProbe ʕ •ᴥ•ʔ
Kirki – Freeform Page Builder, Website Builder & Customizer / 6.1.1
Kirki – Freeform Page Builder, Website Builder & Customizer v6.1.1
6.1.1 6.1.0 6.0.14 6.0.13 6.0.12 6.0.11 6.0.10 6.0.9 6.0.8 6.0.7 6.0.6 6.0.5 6.0.4 6.0.3 6.0.2 6.0.1 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.1.8 3.1.9 4.0.19 4.0.20 4.0.21 4.0.22 4.0.23 4.0.24 4.1 4.2.0 5.0.0 5.1.0 5.1.1 5.2.0 5.2.1 5.2.2 5.2.3 6.0.0 trunk 3.0.40 3.0.41 3.0.42 3.0.43 3.0.44 3.0.45 3.1.0 3.1.1 3.1.2
kirki / includes / Frontend / views / editor.php
kirki / includes / Frontend / views Last commit date
template 1 week ago editor.php 3 days ago
editor.php
108 lines
1 <?php
2
3 /**
4 * Editor template php file.
5 *
6 * @package kirki
7 */
8
9 if (! defined('ABSPATH')) {
10 exit;
11 }
12
13 use Kirki\HelperFunctions;
14
15 $load_iframe_url = HelperFunctions::get_post_url_arr_from_post_id(HelperFunctions::get_post_id_if_possible_from_url(), array('iframe_url' => true))['iframe_url'];
16 ?>
17 <!DOCTYPE html>
18 <html <?php language_attributes(); ?>>
19
20 <head>
21 <meta charset="utf-8" />
22 <meta name="viewport" content="width=device-width, initial-scale=1.0" />
23 <title>
24 <?php echo esc_html_e('Kirki', 'kirki') . ' | ' . esc_html(get_the_title(HelperFunctions::get_post_id_if_possible_from_url())); ?>
25 </title>
26 <?php wp_head(); ?>
27 </head>
28
29 <body class="kirki-tool">
30 <div id="kirki-root"></div>
31 <div id="kirki-editor-wrapper">
32 <div id="kirki-top-bar"></div>
33 <div id="kirki-left-bar"></div>
34 <div id="kirki-content-bar">
35 <div id="kirki-responsive-devices"></div>
36 <div id="kirki-front-overlay"></div>
37 <div id="kirki-class-editing-backdrop"></div>
38 </div>
39 <div id="kirki-right-bar"></div>
40 <div id="kirki-footer-bar"></div>
41 <div id="kirki-floating-elems">
42 <div id="kirki-alert-dialog-anchor-ele"></div>
43 </div>
44 </div>
45
46 <div id="kirki-loadingDiv"
47 style="position: fixed; top: 0; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; overflow: hidden; z-index: 9;">
48 <div class="kirki-loading-left-side" style="background: var(--kirki-surface-1); flex: 0 0 304px;">
49 <div style="border-right: 1px solid var(--kirki-border-secondary); height: 100%; width: 48px;"></div>
50 </div>
51 <div style="flex: 1; display: flex; background: var(--kirki-surface-2); justify-content: center; align-items: center;">
52 <div class="kirki-loading-wrapper"
53 style="width: 256px; height: 62px; display: flex ; justify-content: center; flex-direction: column; align-items: center; gap: 24px; overflow: hidden; margin-top: -5px;">
54
55 <img src="<?php echo esc_url(KIRKI_PLUGIN_URL . '/assets/images/kirki-loading.svg'); ?>" alt="Kirki" style="height: 32px;">
56
57 <div class="kirki-loading"
58 style="height: 8px; border-radius: 10px; width: 100%; background: var(--kirki-surface-3); position: relative">
59 <div class="kirki-loading-overlay"
60 style="width: 2%; position: absolute; left: 0; top: 0; bottom: 0; background: var(--kirki-on-surface-3); transition: width 3s ease; border-radius: 10px;">
61
62 </div>
63 </div>
64 </div>
65 </div>
66 <div class="kirki-loading-right-side" style="background: var(--kirki-surface-1); flex: 0 0 256px;"></div>
67 </div>
68 <script>
69 const loadingOverlay = document.querySelector('.kirki-loading-overlay');
70 let loadingDiv = document.getElementById("kirki-loadingDiv");
71
72 const loading = (parentage) => {
73 loadingOverlay.style.width = parentage + '%';
74 }
75 window.loading = loading;
76 window.removeLoading = () => {
77 setTimeout(() => {
78 loadingDiv?.remove();
79 }, 2000);
80 }
81
82 const loadingInterval = setInterval(() => {
83 let parentage = parseInt(loadingOverlay.style.width);
84 let random = Math.floor(Math.random() * 5) + 1;
85
86 if (parentage < 85) {
87 loading(parentage + random);
88 } else {
89 clearInterval(loadingInterval);
90 }
91 }, 50);
92
93 let mode = localStorage.getItem(`kirkiMode`) || 'dark';
94 document.documentElement.setAttribute('data-mode', mode);
95
96
97 if (mode === 'dark') {
98 loadingDiv.style.backgroundColor = '#1d1d1d';
99 } else {
100 loadingDiv.style.backgroundColor = '#FFFFFF';
101 }
102 </script>
103 </div>
104
105 <?php wp_footer(); ?>
106 </body>
107
108 </html>