| @@ -1,7 +1,7 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | -* | |
| 3 | +* | |
| 4 | 4 | */ |
| 5 | 5 | |
| 6 | 6 | // Disallow direct access. |
| 7 | 7 | defined('ABSPATH') or die("Access denied"); |
| @@ -6,15 +6,15 @@ | ||
| 6 | 6 | // Disallow direct access. |
| 7 | 7 | defined('ABSPATH') or die("Access denied"); |
| 8 | 8 | |
| 9 | 9 | /** |
| 10 | -* | |
| 10 | +* | |
| 11 | 11 | */ |
| 12 | 12 | class CJTDashboardMetaboxAccessPoint extends CJTAccessPoint { |
| 13 | - | |
| 13 | + | |
| 14 | 14 | /** |
| 15 | 15 | * put your comment there... |
| 16 | - * | |
| 16 | + * | |
| 17 | 17 | */ |
| 18 | 18 | public function __construct() { |
| 19 | 19 | // Initialize Access Point base! |
| 20 | 20 | parent::__construct(); |
| @@ -23,27 +23,25 @@ | ||
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | /** |
| 26 | 26 | * put your comment there... |
| 27 | - * | |
| 27 | + * | |
| 28 | 28 | */ |
| 29 | 29 | public function createMetabox() { |
| 30 | - if (CJTPlugin::getInstance()->isInstalled()) { | |
| 31 | - wp_add_dashboard_widget('cjt-statistics', cssJSToolbox::getText('CSS & JavaScript Toolbox News'), array($this, 'route')); | |
| 32 | - } | |
| 30 | + wp_add_dashboard_widget('cjt-statistics', cssJSToolbox::getText('CSS & Javascript Toolbox'), array($this, 'route')); | |
| 33 | 31 | } |
| 34 | 32 | |
| 35 | 33 | /** |
| 36 | 34 | * put your comment there... |
| 37 | - * | |
| 35 | + * | |
| 38 | 36 | */ |
| 39 | 37 | protected function doListen() { |
| 40 | 38 | add_action('wp_dashboard_setup', array(&$this, 'createMetabox'), 10, 0); |
| 41 | 39 | } |
| 42 | - | |
| 40 | + | |
| 43 | 41 | /** |
| 44 | 42 | * put your comment there... |
| 45 | - * | |
| 43 | + * | |
| 46 | 44 | */ |
| 47 | 45 | public function route($loadView = false, $request = null) { |
| 48 | 46 | // Load Auto Upgrade controller! |
| 49 | 47 | $this->controllerName = 'default'; |
| @@ -52,6 +50,6 @@ | ||
| 52 | 50 | ->setAction('dashboardMetabox') |
| 53 | 51 | // fire action to enable automatic upgrade! |
| 54 | 52 | ->_doAction(); |
| 55 | 53 | } |
| 56 | - | |
| 54 | + | |
| 57 | 55 | } // End class. |