# css-javascript-toolbox/8.0.2/views/uploader/single/view.php

CSS &amp; JavaScript Toolbox, version 8.0.2. 63 lines.

- Page: https://pluginprobe.com/plugins/css-javascript-toolbox/8.0.2/code/views/uploader/single/view.php
- Raw: https://pluginprobe.com/plugins/css-javascript-toolbox/8.0.2/raw/views/uploader/single/view.php
- Modified: 2014-05-06T16:47:26+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/8.0.2/code/views/uploader/single/view.php#L10-L20`.

```php
<?php
/**
* 
*/

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

/**
* 
*/
class CJTUploaderSingleView extends CJTView {
	
	/**
	* put your comment there...
	* 
	* @var mixed
	*/
	protected $pon;
	
	/**
	* put your comment there...
	* 
	* @var mixed
	*/
	protected $state;
	/**
	* put your comment there...
	* 
	* @param mixed $tpl
	*/
	public function display($tpl = null) {
		// Push vars.
		$this->pon = $this->getRequestParameter('pon');
		$this->state = $this->model->getState('error');
		// Output.
		echo $this->getTemplate($tpl);
	}
	
	/**
	* Output Javascript files requirred to Add-New-Block view to run.
	* 
	* @return void
	*/
	public function enququeScripts() {
		// Use related scripts.
		self::useScripts(__CLASS__, 'jquery', 'views:uploader:single:public:js:{CJT-}uploader');
	}
	
	/**
	* Output CSS files required to Add-New-Block view.
	* 
	* @return void
	*/
	public function enququeStyles() {
		// Use related styles.
		self::useStyles(__CLASS__, 'views:uploader:single:public:css:{CJT-}uploader');
	}
	
} // End class.

// Hookable!!
CJTUploaderSingleView::define('CJTUploaderSingleView', array('hookType' => CJTWordpressEvents::HOOK_FILTER));
```
