# depicter/1.3.0/views/admin/notices/builders-draft-notice.php

Depicter — Popup &amp; Slider Builder, version 1.3.0. 48 lines.

- Page: https://pluginprobe.com/plugins/depicter/1.3.0/code/views/admin/notices/builders-draft-notice.php
- Raw: https://pluginprobe.com/plugins/depicter/1.3.0/raw/views/admin/notices/builders-draft-notice.php
- Modified: 2022-09-05T06:15:34+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/depicter/1.3.0/code/views/admin/notices/builders-draft-notice.php#L10-L20`.

```php
<?php
/**
 * Blank canvas.
 *
 * @package Depicter
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

// $view_args is required to be passed

global $wp_version;
extract( $view_args );

$disabled = 'disabled';
$published = __( 'Published', 'depicter' );
$noticeText = '';

if ( $isNotPublished ) {
    $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' );
} elseif ( $documentStatus == 'draft' ) {
    $noticeText = __( 'This slider has unpublished changes. Publish the changes to see the final result.', 'depicter' );
}
?>
<div class="depicter-editor-notice">
    <?php
    if ( $documentStatus == 'draft' ) {
        $disabled = '';
        $published = __( 'Publish Slider', 'depicter' );
        ?>
        <div class="depicter-notice-txts">
            <span class="depicter-notice-icon">!</span>
            <span><?php echo esc_html( $noticeText );?></span>
        </div>
        <?php
    }
    ?>

    <div class="depicter-notice-btns">
        <button class="depicter-edit-slider elementor-button"><?php echo esc_html__( 'Edit Slider', 'depicter' );?></button>
        <button class="depicter-publish-slider elementor-button elementor-button-success" <?php echo esc_attr( $disabled );?>>
            <span class="btn-label"> <?php echo esc_html( $published );?></span>
            <span class="depicter-state-icon" style="display: none;"></span>
        </button>
    </div>
</div>
```
