| 1 |
<?php |
| 2 |
/** |
| 3 |
* |
| 4 |
*/ |
| 5 |
|
| 6 |
// No direct access. |
| 7 |
defined('ABSPATH') or die('Access denied'); |
| 8 |
|
| 9 |
/** |
| 10 |
* |
| 11 |
*/ |
| 12 |
class CJTPackagesInstallView extends CJTView { |
| 13 |
|
| 14 |
/** |
| 15 |
* put your comment there... |
| 16 |
* |
| 17 |
* @param mixed $tpl |
| 18 |
*/ |
| 19 |
public function display($tpl = null) { |
| 20 |
echo $this->getTemplate($tpl); |
| 21 |
} |
| 22 |
|
| 23 |
/** |
| 24 |
* Output Javascript files requirred to Add-New-Block view to run. |
| 25 |
* |
| 26 |
* @return void |
| 27 |
*/ |
| 28 |
public function enququeScripts() { |
| 29 |
// Use related scripts. |
| 30 |
self::useScripts(__CLASS__, |
| 31 |
'jquery', |
| 32 |
'thickbox', |
| 33 |
'jquery-serialize-object', |
| 34 |
'framework:js:misc:{CJT-}simple-error-dialog', |
| 35 |
'views:packages:install:public:js:{CJT-}install' |
| 36 |
); |
| 37 |
} |
| 38 |
|
| 39 |
/** |
| 40 |
* Output CSS files required to Add-New-Block view. |
| 41 |
* |
| 42 |
* @return void |
| 43 |
*/ |
| 44 |
public function enququeStyles() { |
| 45 |
// Use related styles. |
| 46 |
self::useStyles(__CLASS__, |
| 47 |
'thickbox', |
| 48 |
'framework:css:{CJT-}forms', |
| 49 |
'framework:css:{CJT-}error-dialog', |
| 50 |
'views:packages:install:public:css:{CJT-}install' |
| 51 |
); |
| 52 |
} |
| 53 |
|
| 54 |
} // End class. |
| 55 |
|
| 56 |
// Hookable!! |
| 57 |
CJTPackagesInstallView::define('CJTPackagesInstallView', array('hookType' => CJTWordpressEvents::HOOK_FILTER)); |