PluginProbe
CSS & JavaScript Toolbox / 8.2
CSS & JavaScript Toolbox v8.2
trunk 0.3 0.8 10 10.1 11 11.2 11.3 11.4 11.5 11.6 11.7 11.8 11.9 11.9.1 12 12.0 12.0.1 12.0.3 12.0.4 12.0.5 12.0.6 12.0.7 6.0 6.0.11 All 60 releases
← All changes | views/extensions/plugins-list/view.php +23 -23 11.58.2 View file →
@@ -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,22 +6,22 @@
6 6 // Disallow direct access.
7 7 defined('ABSPATH') or die("Access denied");
8 8
9 9 /**
10 -*
10 +*
11 11 */
12 12 class CJTExtensionsPluginsListView extends CJTView {
13 -
13 +
14 14 /**
15 15 * put your comment there...
16 - *
16 + *
17 17 * @var mixed
18 18 */
19 19 protected $extensions;
20 -
20 +
21 21 /**
22 22 * put your comment there...
23 - *
23 + *
24 24 * @var mixed
25 25 */
26 26 protected $listTypeName;
27 27
@@ -26,16 +26,16 @@
26 26 protected $listTypeName;
27 27
28 28 /**
29 29 * put your comment there...
30 - *
30 + *
31 31 * @var mixed
32 32 */
33 33 protected $securityToken;
34 -
34 +
35 35 /**
36 36 * put your comment there...
37 - *
37 + *
38 38 * @param mixed $info
39 39 * @return CJTInstallerNoticeView
40 40 */
41 41 public function __construct($info) {
@@ -44,16 +44,16 @@
44 44 // Enqueue Styles & Scripts.
45 45 add_action('admin_print_styles', array(__CLASS__, 'enqueueStyles'));
46 46 add_action('admin_print_scripts', array(__CLASS__, 'enqueueScripts'));
47 47 }
48 -
48 +
49 49 /**
50 50 * put your comment there...
51 - *
51 + *
52 52 * @param mixed $parent
53 53 */
54 54 public function activateExtensionsMenuItem($parent) {
55 - // Hack Wordpress menu to select CSS & JavaScript root menu item
55 + // Hack Wordpress menu to select CSS & Javascript root menu item
56 56 // and the Extensions child menu item!
57 57 // We just hack get_admin_page_parent() function!
58 58 $GLOBALS['typenow'] = CJTPlugin::PLUGIN_REQUEST_ID;
59 59 $GLOBALS['pagenow'] = CJTPlugin::PLUGIN_REQUEST_ID;
@@ -60,12 +60,12 @@
60 60 $GLOBALS['plugin_page'] = $GLOBALS['submenu'][CJTPlugin::PLUGIN_REQUEST_ID][CJTExtensionsAccessPoint::MENU_POSITION_INDEX][2];
61 61 // We use this filter as (ACTION) not change in the return value!
62 62 return $parent;
63 63 }
64 -
64 +
65 65 /**
66 66 * put your comment there...
67 - *
67 + *
68 68 * @param mixed $links
69 69 */
70 70 public function addExtensionActions($links, $file) {
71 71 $pluginsFilesMap =& $this->extensions->getFiles2ClassesMap();
@@ -88,14 +88,14 @@
88 88 // Get action Markup!
89 89 $links['license-key'] = $this->getTemplate('default_setup_action', array('component' => $component));
90 90 }
91 91 }
92 - return $links;
92 + return $links;
93 93 }
94 -
94 +
95 95 /**
96 96 * put your comment there...
97 - *
97 + *
98 98 * @param mixed $tpl
99 99 */
100 100 public function display($tpl = null) {
101 101 // Get model object!
@@ -113,12 +113,12 @@
113 113 // Add SETUP Link inside the Plugins (only CJT extensions) row!
114 114 add_filter('plugin_action_links', array(&$this, 'addExtensionActions'), 10 , 2);
115 115
116 116 }
117 -
117 +
118 118 /**
119 119 * put your comment there...
120 - *
120 + *
121 121 */
122 122 public static function enqueueScripts() {
123 123 $listTypeName = CJTModel::getInstance('extensions')->getListTypeName();
124 124 // Use related scripts.
@@ -130,12 +130,12 @@
130 130 'views:extensions:plugins-list:public:js:{CJTExtensionsPluginsListView-}default',
131 131 "views:extensions:plugins-list:public:js:{CJTExtensionsPluginsListView-}{$listTypeName}"
132 132 );
133 133 }
134 -
134 +
135 135 /**
136 136 * put your comment there...
137 - *
137 + *
138 138 */
139 139 public static function enqueueStyles() {
140 140 $listTypeName = CJTModel::getInstance('extensions')->getListTypeName();
141 141 // Use related scripts.
@@ -143,13 +143,13 @@
143 143 'thickbox',
144 144 "views:extensions:plugins-list:public:css:{CJTExtensionsPluginsListView-}{$listTypeName}"
145 145 );
146 146 }
147 -
147 +
148 148 /**
149 149 * put your comment there...
150 - *
150 + *
151 151 */
152 152 public function outputCommonMarkups() {
153 153 echo $this->getTemplate('default');
154 154 }
155 155 } // End class.