PluginProbe
Depicter — Popup & Slider Builder / 1.2.0
Depicter — Popup & Slider Builder v1.2.0
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.2.0, at views/admin/notices/slider-draft-notice.php

103 lines 2.8 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 jQuery(".depicter-notice-wrapper .close-icon").on( "click", function () {
20 jQuery(this).parents(".depicter-notice-wrapper").hide();
21 });
22
23 jQuery(".depicter-notice-wrapper a").on( "click", function () {
24 window.open(this.href);
25 });
26 </script>
27
28 <style>
29 .depicter-notice-wrapper{
30 position: absolute !important;
31 top: 20px !important;
32 left: 20px !important;
33 display: flex !important;
34 align-items: flex-start !important;
35 background-color: #F7BA19 !important;
36 border-radius: 5px !important;
37 padding: 10px !important;
38 box-shadow: 5px 10px 30px #00000026 !important;
39 max-width: 600px !important;
40 z-index: 1 !important;
41 }
42
43 .depicter-notice-wrapper span {
44 color: black !important;
45 font-size: 12px !important;
46 line-height: 17px !important;
47 font-weight: 600 !important;
48 }
49
50 .depicter-notice-wrapper span.notice-icon {
51 background-color: #fff !important;
52 color: #F7BA19 !important;
53 padding: 2px 8px !important;
54 font-size: 14px !important;
55 border-radius: 50% !important;
56 margin-right: 7px !important;
57 }
58
59 .depicter-notice-wrapper a {
60 color: #0A00FF !important;
61 text-decoration: underline !important;
62 }
63
64 .depicter-notice-wrapper .close-icon {
65 width: 10px !important;
66 height: 10px !important;
67 margin-left: 10px !important;
68 cursor: pointer !important;
69 }
70
71 .depicter-notice-wrapper .close-icon:before,
72 .depicter-notice-wrapper .close-icon:after {
73 width: 2px !important;
74 height: 10px !important;
75 background-color: #fff !important;
76 display: block !important;
77 content: " " !important;
78 position: absolute !important;
79 }
80
81 .depicter-notice-wrapper .close-icon:before {
82 transform: rotate(45deg) !important;
83 }
84 .depicter-notice-wrapper .close-icon:after {
85 transform: rotate(-45deg) !important;
86 }
87
88 </style>
89
90 <div class="depicter-notice-wrapper">
91 <span class="notice-icon">!</span>
92
93 <?php
94 echo '<span>';
95 if ( $isNotPublished ) {
96 echo esc_html__('This slider is not published yet and will not be visible to the visitors.', 'depicter' ) . '<br>';
97 } else {
98 echo esc_html__('This slider has unpublished changes. Publish the changes to see the final result.', 'depicter' ) . '<br>';
99 }
100 echo '<a href="' . esc_url( $editUrl ) . '" target="_blank">' . esc_html__( 'Open the editor', 'depicter' ) . '</a> ' . esc_html__( 'and publish now.', 'depicter' ) . ' ';
101 echo esc_html__( 'This notice is only visible to you.', 'depicter' ) . '</span><span class="close-icon"></span>';
102 ?>
103 </div>