| 1 |
<?php |
| 2 |
defined('ABSPATH') or die('No direct access permitted'); |
| 3 |
$collectionBlock["preview"] = "previewCollectionBlock"; |
| 4 |
|
| 5 |
class previewCollectionBlock extends collectionBlock |
| 6 |
{ |
| 7 |
protected $blockname = "preview"; |
| 8 |
|
| 9 |
function ajax_update() |
| 10 |
{ |
| 11 |
|
| 12 |
|
| 13 |
} |
| 14 |
|
| 15 |
function admin_fields() |
| 16 |
{ |
| 17 |
|
| 18 |
|
| 19 |
?><div class="mb_tab option-container"> |
| 20 |
<div class="title"> |
| 21 |
<span class="dashicons dashicons-no"></span> |
| 22 |
<span class="title"><?php _e("Preview","maxbuttons"); ?></span> |
| 23 |
</div> |
| 24 |
</div> |
| 25 |
|
| 26 |
<div class='mb-preview-window output'> |
| 27 |
<div class="header"><?php _e("Preview", 'maxbuttons'); ?> |
| 28 |
<span class="close tb-close-icon"></span> |
| 29 |
</div> |
| 30 |
<div class="mb-preview-wrapper shortcode-container"> |
| 31 |
|
| 32 |
<?php |
| 33 |
$args = array( |
| 34 |
"preview" => true |
| 35 |
|
| 36 |
); |
| 37 |
$this->collection->display($args); |
| 38 |
?> |
| 39 |
</div> |
| 40 |
</div> |
| 41 |
|
| 42 |
<?php |
| 43 |
|
| 44 |
|
| 45 |
} |
| 46 |
|
| 47 |
} |
| 48 |
|
| 49 |
?> |
| 50 |
|