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 / builders-draft-notice.php

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

48 lines 1.5 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 $disabled = 'disabled';
18 $published = __( 'Published', 'depicter' );
19 $noticeText = '';
20
21 if ( $isNotPublished ) {
22 $noticeText = __( 'This slider is not published yet and will not be visible to the visitors. Open the editor and publish now. This notice is only visible to you.', 'depicter' );
23 } elseif ( $documentStatus == 'draft' ) {
24 $noticeText = __( 'This slider has unpublished changes. Publish the changes to see the final result.', 'depicter' );
25 }
26 ?>
27 <div class="depicter-editor-notice">
28 <?php
29 if ( $documentStatus == 'draft' ) {
30 $disabled = '';
31 $published = __( 'Publish Slider', 'depicter' );
32 ?>
33 <div class="depicter-notice-txts">
34 <span class="depicter-notice-icon">!</span>
35 <span><?php echo esc_html( $noticeText );?></span>
36 </div>
37 <?php
38 }
39 ?>
40
41 <div class="depicter-notice-btns">
42 <button class="depicter-edit-slider elementor-button"><?php echo esc_html__( 'Edit Slider', 'depicter' );?></button>
43 <button class="depicter-publish-slider elementor-button elementor-button-success" <?php echo esc_attr( $disabled );?>>
44 <span class="btn-label"> <?php echo esc_html( $published );?></span>
45 <span class="depicter-state-icon" style="display: none;"></span>
46 </button>
47 </div>
48 </div>