PluginProbe
CSS & JavaScript Toolbox / 7.2
CSS & JavaScript Toolbox v7.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 | css-js-toolbox.php +30 -7 6.07.2 View file →
@@ -2,11 +2,12 @@
2 2 /*
3 3 Plugin Name: CSS & JavaScript Toolbox
4 4 Plugin URI: http://css-javascript-toolbox.com/css-javascript-toolbox-free
5 5 Description: CJT Plugin for WordPress to easily add custom CSS and JavaScript to individual pages
6 -Version: 6.0
6 +Version: 7.2
7 7 Author: Wipeout Media
8 -Author URI: http://css-javascript-toolbox.com/
8 +Author URI: http://css-javascript-toolbox.com
9 +License:
9 10
10 11 Copyright (c) 2011, Wipeout Media.
11 12 This program is free software; you can redistribute it and/or
12 13 modify it under the terms of the GNU General Public License
@@ -35,9 +36,9 @@
35 36 /** CJT Name */
36 37 define('CJTOOLBOX_NAME', plugin_basename(dirname(__FILE__)));
37 38
38 39 /** CJT Text Domain used for localize texts */
39 -define('CJTOOLBOX_TEXT_DOMAIN', CJTOOLBOX_NAME);
40 +define('CJTOOLBOX_TEXT_DOMAIN', CJTOOLBOX_NAME);
40 41
41 42 /** */
42 43 define('CJTOOLBOX_LANGUAGES', CJTOOLBOX_NAME . '/locals/languages/');
43 44
@@ -52,8 +53,11 @@
52 53
53 54 /** Frmaework path */
54 55 define('CJTOOLBOX_FRAMEWORK', CJTOOLBOX_INCLUDE_PATH); // Alias to include path!
55 56
57 +// Class Autoload Added @since 6.2.
58 +require 'autoload.inc.php';
59 +
56 60 // Import dependencies
57 61 require_once CJTOOLBOX_FRAMEWORK . '/php/includes.class.php';
58 62 require_once CJTOOLBOX_FRAMEWORK . '/events/definition.class.php';
59 63 require_once CJTOOLBOX_FRAMEWORK . '/events/events.class.php';
@@ -85,18 +89,28 @@
85 89
86 90 /**
87 91 *
88 92 */
89 - const DB_VERSION = '1.0-CE';
93 + const DB_VERSION = '1.6';
90 94
91 95 /**
92 96 *
93 97 */
94 - const VERSION = '6.0 CE' ;
98 + const Edition = 'free';
95 99
96 100 /**
97 101 *
98 102 */
103 + const FW_Version = '3.0';
104 +
105 + /**
106 + *
107 + */
108 + const VERSION = '7.2-CE' ;
109 +
110 + /**
111 + *
112 + */
99 113 const DB_VERSION_OPTION_NAME = 'cjtoolbox_db_version';
100 114
101 115 /**
102 116 *
@@ -168,9 +182,16 @@
168 182
169 183 /**
170 184 * put your comment there...
171 185 *
186 + * @var mixed
172 187 */
188 + protected $onload = array('parameters' => array('instance'));
189 +
190 + /**
191 + * put your comment there...
192 + *
193 + */
173 194 protected function __construct() {
174 195 // Hookable!
175 196 parent::__construct();
176 197 // Allow access points to utilize from CJTPlugin functionality
@@ -189,9 +210,9 @@
189 210 /**
190 211 * put your comment there...
191 212 *
192 213 */
193 - public function extensions() {
214 + public function & extensions() {
194 215 return $this->extensions;
195 216 }
196 217
197 218 /**
@@ -281,12 +302,14 @@
281 302 *
282 303 * @return $this
283 304 */
284 305 protected function main() {
306 + // Fire laod event
307 + $this->onload($this);
285 308 // Access point base class is a dependency!
286 309 require_once 'framework/access-points/access-point.class.php';
287 310 // Run Main Acces Point!
288 - require_once 'access.points/main.accesspoint.php';
311 + include_once 'access.points/main.accesspoint.php';
289 312 $this->mainAC = new CJTMainAccessPoint();
290 313 $this->mainAC->listen();
291 314 }
292 315