| @@ -1,7 +1,7 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | -* | |
| 3 | +* | |
| 4 | 4 | */ |
| 5 | 5 | |
| 6 | 6 | // No direct access. |
| 7 | 7 | defined('ABSPATH') or die('Access denied'); |
| @@ -6,63 +6,29 @@ | ||
| 6 | 6 | // No direct access. |
| 7 | 7 | defined('ABSPATH') or die('Access denied'); |
| 8 | 8 | |
| 9 | 9 | /** |
| 10 | -* | |
| 10 | +* | |
| 11 | 11 | */ |
| 12 | 12 | class CJTPackagesInstallView extends CJTView { |
| 13 | - | |
| 13 | + | |
| 14 | 14 | /** |
| 15 | 15 | * put your comment there... |
| 16 | - * | |
| 17 | - * @var mixed | |
| 18 | - */ | |
| 19 | - protected $moduleParamName; | |
| 20 | - | |
| 21 | - /** | |
| 22 | - * put your comment there... | |
| 23 | - * | |
| 24 | - * @var mixed | |
| 25 | - */ | |
| 26 | - protected $uploaderModuleName; | |
| 27 | - | |
| 28 | - /** | |
| 29 | - * put your comment there... | |
| 30 | - * | |
| 31 | - * @var mixed | |
| 32 | - */ | |
| 33 | - protected $uploaderActionName; | |
| 34 | - | |
| 35 | - /** | |
| 36 | - * put your comment there... | |
| 37 | - * | |
| 38 | - * @var mixed | |
| 39 | - */ | |
| 40 | - protected $uploaderControllerName; | |
| 41 | - | |
| 42 | - /** | |
| 43 | - * put your comment there... | |
| 44 | - * | |
| 16 | + * | |
| 45 | 17 | * @param mixed $tpl |
| 46 | 18 | */ |
| 47 | 19 | public function display($tpl = null) { |
| 48 | - // Get uploader parameters. | |
| 49 | - $this->uploaderControllerName = $this->getRequestParameter('uploaderControllerName'); | |
| 50 | - $this->uploaderActionName = $this->getRequestParameter('uploaderActionName'); | |
| 51 | - $this->uploaderModuleName = $this->getRequestParameter('uploaderModuleName'); | |
| 52 | - $this->moduleParamName = 'cjtajaxmodule'; | |
| 53 | - // Display form. | |
| 54 | 20 | echo $this->getTemplate($tpl); |
| 55 | 21 | } |
| 56 | - | |
| 22 | + | |
| 57 | 23 | /** |
| 58 | - * Output JavaScript files requirred to Add-New-Block view to run. | |
| 59 | - * | |
| 24 | + * Output Javascript files requirred to Add-New-Block view to run. | |
| 25 | + * | |
| 60 | 26 | * @return void |
| 61 | 27 | */ |
| 62 | 28 | public function enququeScripts() { |
| 63 | 29 | // Use related scripts. |
| 64 | - self::useScripts(__CLASS__, | |
| 30 | + self::useScripts(__CLASS__, | |
| 65 | 31 | 'jquery', |
| 66 | 32 | 'thickbox', |
| 67 | 33 | 'jquery-serialize-object', |
| 68 | 34 | 'framework:js:misc:{CJT-}simple-error-dialog', |
| @@ -68,12 +34,12 @@ | ||
| 68 | 34 | 'framework:js:misc:{CJT-}simple-error-dialog', |
| 69 | 35 | 'views:packages:install:public:js:{CJT-}install' |
| 70 | 36 | ); |
| 71 | 37 | } |
| 72 | - | |
| 38 | + | |
| 73 | 39 | /** |
| 74 | 40 | * Output CSS files required to Add-New-Block view. |
| 75 | - * | |
| 41 | + * | |
| 76 | 42 | * @return void |
| 77 | 43 | */ |
| 78 | 44 | public function enququeStyles() { |
| 79 | 45 | // Use related styles. |
| @@ -83,9 +49,9 @@ | ||
| 83 | 49 | 'framework:css:{CJT-}error-dialog', |
| 84 | 50 | 'views:packages:install:public:css:{CJT-}install' |
| 85 | 51 | ); |
| 86 | 52 | } |
| 87 | - | |
| 53 | + | |
| 88 | 54 | } // End class. |
| 89 | 55 | |
| 90 | 56 | // Hookable!! |
| 91 | 57 | CJTPackagesInstallView::define('CJTPackagesInstallView', array('hookType' => CJTWordpressEvents::HOOK_FILTER)); |