PluginProbe
Depicter — Popup & Slider Builder / 1.5.2
Depicter — Popup & Slider Builder v1.5.2
4.8.1 trunk 1.0.0 1.1.0 1.1.2 1.1.4 1.1.6 1.1.7 1.1.8 1.1.9 1.2.0 1.3.0 1.3.1 1.3.2 1.3.3 1.3.5 1.3.8 1.5.0 1.5.1 1.5.2 1.5.5 1.6.0 1.6.1 1.6.2 1.7.0 All 76 releases
depicter / views / admin / notices / slider-draft-notice.php

slider-draft-notice.php in Depicter — Popup & Slider Builder 1.5.2, at views/admin/notices/slider-draft-notice.php

118 lines 3.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Blank canvas.
4 *
5 * @package Depicter
6 */
7
8 if ( ! defined( 'ABSPATH' ) ) {
9 exit; // Exit if accessed directly.
10 }
11
12 // $view_args is required to be passed
13
14 global $wp_version;
15 extract( $view_args );
16 ?>
17
18 <script type="text/javascript">
19 (function () {
20 var init = function () {
21 document.querySelectorAll(".depicter-notice-wrapper").forEach(function( element ) {
22 if (!element.dataset.hasEvent) {
23 element.dataset.hasEvent = true;
24 element
25 .querySelector(".close-icon")
26 .addEventListener("click", function() {
27 element.remove();
28 });
29 }
30 });
31 };
32
33 if (document.readyState === "complete") {
34 init();
35 } else {
36 document.addEventListener("DOMContentLoaded", init);
37 }
38 })();
39 </script>
40
41 <style>
42 .depicter-notice-wrapper{
43 position: absolute !important;
44 top: 20px !important;
45 left: 20px !important;
46 display: flex !important;
47 align-items: flex-start !important;
48 background-color: #F7BA19 !important;
49 border-radius: 5px !important;
50 padding: 10px !important;
51 box-shadow: 5px 10px 30px #00000026 !important;
52 max-width: 600px !important;
53 z-index: 11 !important;
54 }
55
56 .depicter-notice-wrapper span {
57 color: black !important;
58 font-size: 12px !important;
59 line-height: 17px !important;
60 font-weight: 600 !important;
61 font-family: sans-serif;
62 }
63
64 .depicter-notice-wrapper span.notice-icon {
65 background-color: #fff !important;
66 color: #F7BA19 !important;
67 padding: 2px 8px !important;
68 font-size: 14px !important;
69 border-radius: 50% !important;
70 margin-right: 7px !important;
71 }
72
73 .depicter-notice-wrapper a {
74 color: #0A00FF !important;
75 text-decoration: underline !important;
76 }
77
78 .depicter-notice-wrapper .close-icon {
79 width: 10px !important;
80 height: 10px !important;
81 margin-left: 10px !important;
82 cursor: pointer !important;
83 }
84
85 .depicter-notice-wrapper .close-icon:before,
86 .depicter-notice-wrapper .close-icon:after {
87 width: 2px !important;
88 height: 10px !important;
89 background-color: #fff !important;
90 display: block !important;
91 content: " " !important;
92 position: absolute !important;
93 }
94
95 .depicter-notice-wrapper .close-icon:before {
96 transform: rotate(45deg) !important;
97 }
98 .depicter-notice-wrapper .close-icon:after {
99 transform: rotate(-45deg) !important;
100 }
101
102 </style>
103
104 <div class="depicter-notice-wrapper">
105 <span class="notice-icon">!</span>
106
107 <?php
108 echo '<span>';
109 if ( ! $isPublishedBefore ) {
110 echo esc_html__('This slider is not published yet and is not visible to visitors.', 'depicter' ) . '<br>';
111 } else {
112 echo esc_html__('This slider has unpublished changes. Publish the changes to see the final result.', 'depicter' ) . '<br>';
113 }
114 echo '<a href="' . esc_url( $editUrl ) . '" target="_blank">' . esc_html__( 'Open the editor', 'depicter' ) . '</a> ' . esc_html__( 'and publish now.', 'depicter' ) . ' ';
115 echo esc_html__( 'This notice is only visible to you.', 'depicter' ) . '</span><span class="close-icon"></span>';
116 ?>
117 </div>
118