| 1 |
<?php |
| 2 |
/** |
| 3 |
* @version view.php |
| 4 |
*/ |
| 5 |
|
| 6 |
/** |
| 7 |
* No direct access. |
| 8 |
*/ |
| 9 |
defined('ABSPATH') or die("Access denied"); |
| 10 |
|
| 11 |
/** |
| 12 |
* Blocks view. |
| 13 |
*/ |
| 14 |
class CJTBlocksRevisionsView extends CJTView { |
| 15 |
|
| 16 |
/** |
| 17 |
* put your comment there... |
| 18 |
* |
| 19 |
* @var mixed |
| 20 |
*/ |
| 21 |
public $blockId = null; |
| 22 |
|
| 23 |
/** |
| 24 |
* put your comment there... |
| 25 |
* |
| 26 |
* @var mixed |
| 27 |
*/ |
| 28 |
public $revisions = array(); |
| 29 |
|
| 30 |
/** |
| 31 |
* Output JavaScript files requirred to Add-New-Block view to run. |
| 32 |
* |
| 33 |
* @return void |
| 34 |
*/ |
| 35 |
public function enququeScripts() { |
| 36 |
// Use related scripts. |
| 37 |
self::useScripts(__CLASS__, |
| 38 |
'jquery', |
| 39 |
'views:blocks:revisions:public:js:{CJT-}revisions' |
| 40 |
); |
| 41 |
} |
| 42 |
|
| 43 |
/** |
| 44 |
* Output CSS files required to Add-New-Block view. |
| 45 |
* |
| 46 |
* @return void |
| 47 |
*/ |
| 48 |
public function enququeStyles() { |
| 49 |
// Use related styles. |
| 50 |
self::useStyles(__CLASS__, |
| 51 |
'framework:css:forms' |
| 52 |
); |
| 53 |
} |
| 54 |
|
| 55 |
/** |
| 56 |
* put your comment there... |
| 57 |
* |
| 58 |
*/ |
| 59 |
public function display() { |
| 60 |
// Display view. |
| 61 |
echo $this->getTemplate('default'); |
| 62 |
} |
| 63 |
|
| 64 |
} // End class. |
| 65 |
|
| 66 |
// Hookable!! |
| 67 |
CJTBlocksRevisionsView::define('CJTBlocksRevisionsView'); |