| 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> |