# css-javascript-toolbox/6.0.15/views/blocks/revisions/view.php

CSS &amp; JavaScript Toolbox, version 6.0.15. 79 lines.

- Page: https://pluginprobe.com/plugins/css-javascript-toolbox/6.0.15/code/views/blocks/revisions/view.php
- Raw: https://pluginprobe.com/plugins/css-javascript-toolbox/6.0.15/raw/views/blocks/revisions/view.php
- Modified: 2013-03-17T20:09:52+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/css-javascript-toolbox/6.0.15/code/views/blocks/revisions/view.php#L10-L20`.

```php
<?php
/**
* @version view.php
*/

/**
* No direct access.
*/
defined('ABSPATH') or die("Access denied");

/**
* Blocks view.
*/
class CJTBlocksRevisionsView extends CJTView {
	
	/**
	* put your comment there...
	* 
	* @var mixed
	*/
	public $blockId = null;
	
	/**
	* put your comment there...
	* 
	* @var mixed
	*/
	public $revisions = array();
	
	/**
	* put your comment there...
	* 
	*/
	public function __construct($info) {
		// Initialize CJTView base class.
		parent::__construct($info);
		// Initialize.
		$this->enququeScripts();
		$this->enququeStyles();
	}
	
	/**
	* Output Javascript files requirred to Add-New-Block view to run.
	* 
	* @return void
	*/
	public function enququeScripts() {
		// Use related scripts.
		self::useScripts(__CLASS__,
			'jquery',
			'views:blocks:revisions:public:js:{CJT-}revisions'
		);
	}
	
	/**
	* Output CSS files required to Add-New-Block view.
	* 
	* @return void
	*/
	public function enququeStyles() {
		// Use related styles.
		self::useStyles(__CLASS__,
			'framework:css:forms'
		);
	}
	
	/**
	* put your comment there...
	* 
	*/
	public function display() {
		// Display view.
		echo $this->getTemplate('default');
	}
	
} // End class.

// Hookable!!
CJTBlocksRevisionsView::define('CJTBlocksRevisionsView');
```
