| @@ -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,36 +6,36 @@ | ||
| 6 | 6 | // No direct access. |
| 7 | 7 | defined('ABSPATH') or die('Access denied'); |
| 8 | 8 | |
| 9 | 9 | /** |
| 10 | -* | |
| 10 | +* | |
| 11 | 11 | */ |
| 12 | 12 | class CJTTemplatesTemplateView extends CJTView { |
| 13 | - | |
| 13 | + | |
| 14 | 14 | /** |
| 15 | 15 | * put your comment there... |
| 16 | - * | |
| 16 | + * | |
| 17 | 17 | * @var mixed |
| 18 | 18 | */ |
| 19 | 19 | protected $isNew; |
| 20 | - | |
| 20 | + | |
| 21 | 21 | /** |
| 22 | 22 | * put your comment there... |
| 23 | - * | |
| 23 | + * | |
| 24 | 24 | * @var mixed |
| 25 | 25 | */ |
| 26 | 26 | public $item; |
| 27 | - | |
| 27 | + | |
| 28 | 28 | /** |
| 29 | 29 | * put your comment there... |
| 30 | - * | |
| 30 | + * | |
| 31 | 31 | * @var mixed |
| 32 | 32 | */ |
| 33 | 33 | protected $onprepareitem = array('parameters' => array('item', 'isNew')); |
| 34 | - | |
| 34 | + | |
| 35 | 35 | /** |
| 36 | 36 | * put your comment there... |
| 37 | - * | |
| 37 | + * | |
| 38 | 38 | * @param mixed $tpl |
| 39 | 39 | */ |
| 40 | 40 | public function display($tpl = null) { |
| 41 | 41 | // Is it a new template or just editing exists one? |
| @@ -61,17 +61,17 @@ | ||
| 61 | 61 | } |
| 62 | 62 | $this->item = $this->onprepareitem($this->item, $this->isNew); |
| 63 | 63 | echo $this->getTemplate($tpl) ; |
| 64 | 64 | } |
| 65 | - | |
| 65 | + | |
| 66 | 66 | /** |
| 67 | - * Output JavaScript files requirred to Add-New-Block view to run. | |
| 68 | - * | |
| 67 | + * Output Javascript files requirred to Add-New-Block view to run. | |
| 68 | + * | |
| 69 | 69 | * @return void |
| 70 | 70 | */ |
| 71 | 71 | public function enququeScripts() { |
| 72 | 72 | // Use related scripts. |
| 73 | - self::useScripts(__CLASS__, | |
| 73 | + self::useScripts(__CLASS__, | |
| 74 | 74 | 'jquery', |
| 75 | 75 | 'thickbox', |
| 76 | 76 | 'jquery-serialize-object', |
| 77 | 77 | 'jquery-ui-tabs', |
| @@ -80,12 +80,12 @@ | ||
| 80 | 80 | 'framework:js:ace:{CJT-}pluggable', |
| 81 | 81 | 'views:templates:template:public:js:{CJT-}template' |
| 82 | 82 | ); |
| 83 | 83 | } |
| 84 | - | |
| 84 | + | |
| 85 | 85 | /** |
| 86 | 86 | * Output CSS files required to Add-New-Block view. |
| 87 | - * | |
| 87 | + * | |
| 88 | 88 | * @return void |
| 89 | 89 | */ |
| 90 | 90 | public function enququeStyles() { |
| 91 | 91 | // Use related styles. |
| @@ -96,9 +96,9 @@ | ||
| 96 | 96 | 'framework:css:{CJT-}error-dialog', |
| 97 | 97 | 'views:templates:template:public:css:{CJT-}default' |
| 98 | 98 | ); |
| 99 | 99 | } |
| 100 | - | |
| 100 | + | |
| 101 | 101 | } // End class. |
| 102 | 102 | |
| 103 | 103 | // Hookable!! |
| 104 | 104 | CJTTemplatesTemplateView::define('CJTTemplatesTemplateView', array('hookType' => CJTWordpressEvents::HOOK_FILTER)); |