| 1 |
<?php |
| 2 |
/** |
| 3 |
* |
| 4 |
*/ |
| 5 |
|
| 6 |
// Disallow direct access. |
| 7 |
defined('ABSPATH') or die("Access denied"); |
| 8 |
|
| 9 |
/** |
| 10 |
* |
| 11 |
*/ |
| 12 |
class CJTSetupActivationFormView extends CJTView { |
| 13 |
|
| 14 |
/** |
| 15 |
* put your comment there... |
| 16 |
* |
| 17 |
* @var mixed |
| 18 |
*/ |
| 19 |
protected $cjtWebSite; |
| 20 |
|
| 21 |
/** |
| 22 |
* put your comment there... |
| 23 |
* |
| 24 |
* @var mixed |
| 25 |
*/ |
| 26 |
protected $component; |
| 27 |
|
| 28 |
/** |
| 29 |
* put your comment there... |
| 30 |
* |
| 31 |
* @var mixed |
| 32 |
*/ |
| 33 |
protected $license; |
| 34 |
|
| 35 |
/** |
| 36 |
* put your comment there... |
| 37 |
* |
| 38 |
* @var mixed |
| 39 |
*/ |
| 40 |
protected $licenseTypes; |
| 41 |
|
| 42 |
/** |
| 43 |
* put your comment there... |
| 44 |
* |
| 45 |
* @var mixed |
| 46 |
*/ |
| 47 |
protected $securityToken; |
| 48 |
|
| 49 |
/** |
| 50 |
* put your comment there... |
| 51 |
* |
| 52 |
* @param mixed $tpl |
| 53 |
*/ |
| 54 |
public function display($tpl = null) { |
| 55 |
// Initialize. |
| 56 |
$model =& $this->model; |
| 57 |
// Set vars! |
| 58 |
$this->securityToken = cssJSToolbox::getSecurityToken(); |
| 59 |
$this->component = $this->getRequestParameter('component'); |
| 60 |
$this->cjtWebSite = cssJSToolbox::getCJTWebSiteURL(); |
| 61 |
$this->licenseTypes = $model->getExtensionProductTypes($this->component); |
| 62 |
$this->license = $model->getStateStruct($this->licenseTypes, 'license'); |
| 63 |
// Display view. |
| 64 |
echo $this->getTemplate($tpl); |
| 65 |
} |
| 66 |
|
| 67 |
/** |
| 68 |
* put your comment there... |
| 69 |
* |
| 70 |
*/ |
| 71 |
public static function enqueueScripts() { |
| 72 |
// Use related scripts. |
| 73 |
self::useScripts(__CLASS__, |
| 74 |
'jquery', |
| 75 |
'jquery-serialize-object', |
| 76 |
'thickbox', |
| 77 |
'framework:js:ui:{CJT-}jquery.link-progress', |
| 78 |
'framework:js:ajax:{CJT-}cjt-server', |
| 79 |
'framework:js:misc:{CJT-}simple-error-dialog', |
| 80 |
'views:setup:activation-form:public:js:{CJTSetupActivationFormView-}default' |
| 81 |
); |
| 82 |
} |
| 83 |
|
| 84 |
/** |
| 85 |
* Output CSS files required to Add-New-Block view. |
| 86 |
* |
| 87 |
* @return void |
| 88 |
*/ |
| 89 |
public static function enququeStyles() { |
| 90 |
// Use related styles. |
| 91 |
self::useStyles(__CLASS__, |
| 92 |
'thickbox', |
| 93 |
'framework:css:{CJT-}error-dialog', |
| 94 |
'framework:css:{CJT-}forms', |
| 95 |
'views:setup:activation-form:public:css:{CJTSetupActivationFormView-}default' |
| 96 |
); |
| 97 |
} |
| 98 |
|
| 99 |
} // End class. |