# maxbuttons/6.9/collections/preview-block.php

MaxButtons – Create buttons, version 6.9. 50 lines.

- Page: https://pluginprobe.com/plugins/maxbuttons/6.9/code/collections/preview-block.php
- Raw: https://pluginprobe.com/plugins/maxbuttons/6.9/raw/collections/preview-block.php
- Modified: 2015-10-22T14:53:24+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/maxbuttons/6.9/code/collections/preview-block.php#L10-L20`.

```php
<?php
defined('ABSPATH') or die('No direct access permitted');
$collectionBlock["preview"] = "previewCollectionBlock"; 

class previewCollectionBlock extends collectionBlock
{
	protected $blockname = "preview"; 
 
 	function ajax_update()
 	{
 		
 	
 	}
 
	function admin_fields()
	{
 
 
	?><div class="mb_tab option-container"> 
		<div class="title">
			<span class="dashicons dashicons-no"></span>
			<span class="title"><?php _e("Preview","maxbuttons"); ?></span>
		</div>
	</div>
	
	<div class='mb-preview-window output'> 
		<div class="header"><?php _e("Preview", 'maxbuttons'); ?>
			<span class="close tb-close-icon"></span>
		</div>
		<div class="mb-preview-wrapper shortcode-container">

		<?php 
		$args = array(
			"preview" => true
		
		); 
		$this->collection->display($args); 
		?>
		</div>
	</div>
	
	<?php
		
	
	}

}

?>

```
