| @@ -1,27 +1,17 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /* |
| 3 | 3 | Plugin Name: CSS & JavaScript Toolbox |
| 4 | -Plugin URI: http://css-javascript-toolbox.com/css-javascript-toolbox-free | |
| 4 | +Plugin URI: http://css-javascript-toolbox.com/ | |
| 5 | 5 | Description: CJT Plugin for WordPress to easily add custom CSS and JavaScript to individual pages |
| 6 | -Version: 6.0 | |
| 6 | +Version: 8.0.3 | |
| 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 | -Copyright (c) 2011, Wipeout Media. | |
| 11 | -This program is free software; you can redistribute it and/or | |
| 12 | -modify it under the terms of the GNU General Public License | |
| 13 | -as published by the Free Software Foundation; either version 2 | |
| 14 | -of the License, or (at your option) any later version. | |
| 11 | +The Software is package as a WordPress¨ plugin. The PHP code associated with the Software is licensed under the GPL version 2.0 license (as found at http://www.gnu.org/licenses/gpl-2.0.txt GNU/GPLv2 or "GPLv2"). You may redistribute, repackage, and modify the PHP code as you see fit and as consistent with GPLv2. | |
| 15 | 12 | |
| 16 | -This program is distributed in the hope that it will be useful, | |
| 17 | -but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 18 | -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 19 | -GNU General Public License for more details. | |
| 20 | - | |
| 21 | -You should have received a copy of the GNU General Public License | |
| 22 | -along with this program; if not, write to the Free Software | |
| 23 | -Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
| 13 | +The remaining portions of the Software ("Proprietary Portion"), which includes all images, cascading style sheets, and JavaScript are NOT licensed under GPLv2 and are considered proprietary to Licensor and are solely licensed under the remaining terms of this Agreement. The Proprietary Portion may not be redistributed, repackaged, or otherwise modified. | |
| 24 | 14 | */ |
| 25 | 15 | |
| 26 | 16 | // Disallow direct access. |
| 27 | 17 | defined('ABSPATH') or die("Access denied"); |
| @@ -35,9 +25,9 @@ | ||
| 35 | 25 | /** CJT Name */ |
| 36 | 26 | define('CJTOOLBOX_NAME', plugin_basename(dirname(__FILE__))); |
| 37 | 27 | |
| 38 | 28 | /** CJT Text Domain used for localize texts */ |
| 39 | -define('CJTOOLBOX_TEXT_DOMAIN', CJTOOLBOX_NAME); | |
| 29 | +define('CJTOOLBOX_TEXT_DOMAIN', CJTOOLBOX_NAME); | |
| 40 | 30 | |
| 41 | 31 | /** */ |
| 42 | 32 | define('CJTOOLBOX_LANGUAGES', CJTOOLBOX_NAME . '/locals/languages/'); |
| 43 | 33 | |
| @@ -52,8 +42,11 @@ | ||
| 52 | 42 | |
| 53 | 43 | /** Frmaework path */ |
| 54 | 44 | define('CJTOOLBOX_FRAMEWORK', CJTOOLBOX_INCLUDE_PATH); // Alias to include path! |
| 55 | 45 | |
| 46 | +// Class Autoload Added @since 6.2. | |
| 47 | +require 'autoload.inc.php'; | |
| 48 | + | |
| 56 | 49 | // Import dependencies |
| 57 | 50 | require_once CJTOOLBOX_FRAMEWORK . '/php/includes.class.php'; |
| 58 | 51 | require_once CJTOOLBOX_FRAMEWORK . '/events/definition.class.php'; |
| 59 | 52 | require_once CJTOOLBOX_FRAMEWORK . '/events/events.class.php'; |
| @@ -85,18 +78,23 @@ | ||
| 85 | 78 | |
| 86 | 79 | /** |
| 87 | 80 | * |
| 88 | 81 | */ |
| 89 | - const DB_VERSION = '1.0-CE'; | |
| 82 | + const DB_VERSION = '1.6'; | |
| 90 | 83 | |
| 91 | 84 | /** |
| 92 | 85 | * |
| 93 | 86 | */ |
| 94 | - const VERSION = '6.0 CE' ; | |
| 87 | + const FW_Version = '4.0'; | |
| 95 | 88 | |
| 96 | 89 | /** |
| 97 | 90 | * |
| 98 | 91 | */ |
| 92 | + const VERSION = '8.0.3' ; | |
| 93 | + | |
| 94 | + /** | |
| 95 | + * | |
| 96 | + */ | |
| 99 | 97 | const DB_VERSION_OPTION_NAME = 'cjtoolbox_db_version'; |
| 100 | 98 | |
| 101 | 99 | /** |
| 102 | 100 | * |
| @@ -168,9 +166,16 @@ | ||
| 168 | 166 | |
| 169 | 167 | /** |
| 170 | 168 | * put your comment there... |
| 171 | 169 | * |
| 170 | + * @var mixed | |
| 172 | 171 | */ |
| 172 | + protected $onload = array('parameters' => array('instance')); | |
| 173 | + | |
| 174 | + /** | |
| 175 | + * put your comment there... | |
| 176 | + * | |
| 177 | + */ | |
| 173 | 178 | protected function __construct() { |
| 174 | 179 | // Hookable! |
| 175 | 180 | parent::__construct(); |
| 176 | 181 | // Allow access points to utilize from CJTPlugin functionality |
| @@ -189,9 +194,9 @@ | ||
| 189 | 194 | /** |
| 190 | 195 | * put your comment there... |
| 191 | 196 | * |
| 192 | 197 | */ |
| 193 | - public function extensions() { | |
| 198 | + public function & extensions() { | |
| 194 | 199 | return $this->extensions; |
| 195 | 200 | } |
| 196 | 201 | |
| 197 | 202 | /** |
| @@ -281,12 +286,14 @@ | ||
| 281 | 286 | * |
| 282 | 287 | * @return $this |
| 283 | 288 | */ |
| 284 | 289 | protected function main() { |
| 290 | + // Fire laod event | |
| 291 | + $this->onload($this); | |
| 285 | 292 | // Access point base class is a dependency! |
| 286 | 293 | require_once 'framework/access-points/access-point.class.php'; |
| 287 | 294 | // Run Main Acces Point! |
| 288 | - require_once 'access.points/main.accesspoint.php'; | |
| 295 | + include_once 'access.points/main.accesspoint.php'; | |
| 289 | 296 | $this->mainAC = new CJTMainAccessPoint(); |
| 290 | 297 | $this->mainAC->listen(); |
| 291 | 298 | } |
| 292 | 299 | |