CSS & JavaScript Toolbox - Version 8.3.2

Version Description

  • Warning: Add CJT Plugin "not longer supported" notice
Download this release

Release Info

Developer xpointer
Plugin Icon 128x128 CSS & JavaScript Toolbox
Version 8.3.2
Comparing to
See all releases

Code changes from version 8.3.1 to 8.3.2

access.points/main.accesspoint.php CHANGED
@@ -10,76 +10,117 @@ defined('ABSPATH') or die("Access denied");
10
  *
11
  */
12
  class CJTMainAccessPoint extends CJTAccessPoint {
13
-
14
- /**
15
- * put your comment there...
16
- *
17
- * @var mixed
18
- */
19
- protected static $instance;
20
-
21
- /**
22
- * put your comment there...
23
- *
24
- */
25
- public function __construct() {
26
- // Initialize Access Point base!
27
- parent::__construct();
28
- // Set access point name!
29
- $this->name = 'main';
30
- // Needed for calling from nuinstall static method!
31
- self::$instance = $this;
32
- }
33
 
34
- /**
35
- * put your comment there...
36
- *
37
- */
38
- protected function doListen() {
39
- // Register uninstall hook!
40
- if (CJTPlugin::getInstance()->isInstalled()) {
41
- // Wordpress need STATIC method!
42
- register_uninstall_hook(CJTOOLBOX_PLUGIN_FILE, array(__CLASS__, 'uninstall'));
43
- }
44
- // If not in uninstall state then plugins_loaded hook
45
- // used to run the plugin!
46
- add_action('plugins_loaded', array(&$this, 'main'));
47
- }
48
-
49
- /**
50
- * put your comment there...
51
- *
52
- */
53
- public function main() {
54
- // Run the coupling only if installed!
55
- if (CJTPlugin::getInstance()->isInstalled()) {
56
- $this->controllerName = 'blocks-coupling';
57
- $this->route(false);
58
- }
59
- // Run all the aother access points!
60
- CJTPlugin::getInstance()->listen();
61
- }
62
-
63
- /**
64
- * put your comment there...
65
- *
66
- */
67
- public static function uninstall() {
68
- // For the uninstaller to be run eraseData setting must be enabled.
69
- cssJSToolbox::import('models:settings:uninstall.php');
70
- $settings = new CJTSettingsUninstallPage();
71
- if ($settings->eraseData) {
72
- // Get the only instance we've for the main access point!
73
- $mainAccessPointObject = self::$instance;
74
- // Load default controller!
75
- $mainAccessPointObject->controllerName = 'default';
76
- $controller = $mainAccessPointObject->route(false)
77
- // Fire uninstall action!
78
- ->setAction('uninstall')
79
- ->_doAction();
80
- }
81
- }
82
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
83
  } // End class.
84
 
85
  // Hookable!
10
  *
11
  */
12
  class CJTMainAccessPoint extends CJTAccessPoint {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
 
14
+ /**
15
+ * put your comment there...
16
+ *
17
+ * @var mixed
18
+ */
19
+ protected static $instance;
20
+
21
+ /**
22
+ * put your comment there...
23
+ *
24
+ */
25
+ public function __construct() {
26
+ // Initialize Access Point base!
27
+ parent::__construct();
28
+ // Set access point name!
29
+ $this->name = 'main';
30
+ // Needed for calling from nuinstall static method!
31
+ self::$instance = $this;
32
+ }
33
+
34
+ /**
35
+ * put your comment there...
36
+ *
37
+ */
38
+ public function _OnCJTDeadNotice()
39
+ {
40
+ require CJTOOLBOX_PATH . DIRECTORY_SEPARATOR . 'includes' .
41
+ DIRECTORY_SEPARATOR . 'html' .
42
+ DIRECTORY_SEPARATOR . 'CJTDeadNotice.html.php';
43
+ }
44
+
45
+ /**
46
+ * put your comment there...
47
+ *
48
+ */
49
+ public function _OnDismissCJTDeadNotice()
50
+ {
51
+
52
+ update_option('cjt-dead-notice-dismissed', true);
53
+
54
+ die();
55
+ }
56
+
57
+ /**
58
+ * put your comment there...
59
+ *
60
+ */
61
+ protected function doListen()
62
+ {
63
+
64
+ // Register uninstall hook!
65
+ if (CJTPlugin::getInstance()->isInstalled())
66
+ {
67
+ // Wordpress need STATIC method!
68
+ register_uninstall_hook(CJTOOLBOX_PLUGIN_FILE, array(__CLASS__, 'uninstall'));
69
+ }
70
+
71
+ // If not in uninstall state then plugins_loaded hook
72
+ // used to run the plugin!
73
+ add_action('plugins_loaded', array(&$this, 'main'));
74
+ }
75
+
76
+ /**
77
+ * put your comment there...
78
+ *
79
+ */
80
+ public function main()
81
+ {
82
+
83
+ if (!get_option('cjt-dead-notice-dismissed'))
84
+ {
85
+
86
+ add_action('wp_ajax_cjt-dead-notice', array($this, '_OnDismissCJTDeadNotice'));
87
+
88
+ add_action('admin_notices', array($this, '_OnCJTDeadNotice'));
89
+ add_action('network_admin_notices', array($this, '_OnCJTDeadNotice'));
90
+ }
91
+
92
+
93
+ // Run the coupling only if installed!
94
+ if (CJTPlugin::getInstance()->isInstalled())
95
+ {
96
+ $this->controllerName = 'blocks-coupling';
97
+ $this->route(false);
98
+ }
99
+
100
+ // Run all the aother access points!
101
+ CJTPlugin::getInstance()->listen();
102
+ }
103
+
104
+ /**
105
+ * put your comment there...
106
+ *
107
+ */
108
+ public static function uninstall() {
109
+ // For the uninstaller to be run eraseData setting must be enabled.
110
+ cssJSToolbox::import('models:settings:uninstall.php');
111
+ $settings = new CJTSettingsUninstallPage();
112
+ if ($settings->eraseData) {
113
+ // Get the only instance we've for the main access point!
114
+ $mainAccessPointObject = self::$instance;
115
+ // Load default controller!
116
+ $mainAccessPointObject->controllerName = 'default';
117
+ $controller = $mainAccessPointObject->route(false)
118
+ // Fire uninstall action!
119
+ ->setAction('uninstall')
120
+ ->_doAction();
121
+ }
122
+ }
123
+
124
  } // End class.
125
 
126
  // Hookable!
css-js-toolbox.php CHANGED
@@ -2,8 +2,8 @@
2
  /*
3
  Plugin Name: CSS & JavaScript Toolbox
4
  Plugin URI: http://css-javascript-toolbox.com/
5
- Description: CJT Plugin for WordPress to easily add custom CSS and JavaScript to individual pages
6
- Version: 8.3.1
7
  Author: Wipeout Media
8
  Author URI: http://css-javascript-toolbox.com
9
  License:
@@ -98,7 +98,7 @@ class CJTPlugin extends CJTHookableClass
98
  /**
99
  *
100
  */
101
- const VERSION = '8.3.1' ;
102
 
103
  /**
104
  *
2
  /*
3
  Plugin Name: CSS & JavaScript Toolbox
4
  Plugin URI: http://css-javascript-toolbox.com/
5
+ Description: The CSS & JavaScript Toolbox plugin on WordPress.org is no longer supported. This has been replaced by our new code management plugin also on WordPress.org called <a href="https://wordpress.org/plugins/easy-code-manager">Easy Code Manager</a>.
6
+ Version: 8.3.2
7
  Author: Wipeout Media
8
  Author URI: http://css-javascript-toolbox.com
9
  License:
98
  /**
99
  *
100
  */
101
+ const VERSION = '8.3.2' ;
102
 
103
  /**
104
  *
includes/html/CJTDeadNotice.html.php ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ */
5
+
6
+ defined('ABSPATH') or die(-1);
7
+
8
+ ?>
9
+ <div id="cjt-dead-notice" class="notice">
10
+ <h1>IMPORTANT NOTE</h1>
11
+ <p>The CSS & JavaScript Toolbox plugin on WordPress.org is no longer supported. This has been replaced by our new code management plugin called Easy Code Manager, which you can download for free here: <a href="https://wordpress.org/plugins/easy-code-manager" target="_blank">Easy Code Manager on WordPress.org</a></p>
12
+ <p>This free version has been fully redesigned and does not have a number of features you would expect in CSS & JavaScript Toolbox. That said, you may wish to stay on CSS & JavaScript Toolbox unless you intend to update to our premium plugin called: <a href="https://easy-code-manager.com" target="_blank">Easy Code Manager PLUS</a>.</p>
13
+
14
+ <br>
15
+ <a style="float: right;" href="#">Dismiss</a>
16
+ <br>
17
+ &nbsp;
18
+ </div>
19
+
20
+ <script type="text/javascript">
21
+
22
+ /**
23
+ *
24
+ */
25
+ (function($)
26
+ {
27
+
28
+ $('#cjt-dead-notice > a').click(
29
+
30
+ function()
31
+ {
32
+
33
+ if (!confirm('By clicking dismiss you force this message to don\'t display again. Are your sure?'))
34
+ {
35
+ return false;
36
+ }
37
+
38
+ $.post(ajaxurl,
39
+ {
40
+ action : 'cjt-dead-notice'
41
+ }
42
+ ).done(
43
+
44
+ function()
45
+ {
46
+ $('#cjt-dead-notice').hide();
47
+ }
48
+ );
49
+
50
+ return false;
51
+ }
52
+
53
+ );
54
+
55
+ })(jQuery);
56
+ </script>
readme.txt CHANGED
@@ -1,56 +1,35 @@
1
  === CSS & JavaScript Toolbox ===
2
  Contributors: wipeoutmedia
3
- Author URL: http://css-javascript-toolbox.com
4
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=EWDWF75JHT9Q6
5
  Tags: post, posts, admin, sidebar, page, pages, widget, image, shortcode, plugin, google, customise, style, scripts, hack, Wordpress, HTML, CSS, JavaScript, HTML5, jQuery, PHP, code, script, scripts, manage, management, display, output, header, footer, apply, requests, match, hook, execute, run
6
  License: GPLv2 or later
7
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
8
  Requires at least: 3.9
9
- Tested up to: 4.6.1
10
- Stable tag: 8.3.1
11
 
12
  Easily add custom CSS, JavaScript, HTML and PHP code to unique CJT code blocks and assign them wherever you want.
13
 
14
  == Description ==
15
- CSS & JavaScript Toolbox (or CJT) is a code management plugin that gives you the tools to customise the functionality and appearance of your website.
16
 
17
- = CJT is great for =
18
- - streamlining development work
19
- - adding free or premium scripts
20
- - creating and testing your own scripts
21
- - adding front-end customisations
22
- - modifying themes
23
- - adding tracking code
24
- - teaching or learning how to code
25
- - and a million more uses
26
 
 
27
 
28
- = Why Upgrade? =
29
- Fully responsive user interface
30
- Works on tablets and even mobile phones so you can code on the go!
31
- Functions are now kept in one place called Panels
32
- Coding has never been easier or more enjoyable
33
- Higher performance and security tweaks
34
- Works flawlessly with the latest version of WordPress
35
- Plenty of premium features and tools
36
 
37
- We want everyone to upgrade so we have created affordable pricing options. [Learn about the new CJT CORE and CJT PLUS](http://css-javascript-toolbox.com/).
 
38
 
39
- = How does it work? =
40
- CJT is extremely flexible and versatile. Since it was designed to be easy, adding scripts and styles can be done in as little as two steps:
41
- - adding your code directly into unique CJT code blocks
42
- - assigning where these code blocks go
43
 
44
- CJT code blocks can be assigned to pages, posts, custom posts, categories, URLs, expressions, and practically anywhere you want on your website. Code block shortcodes can also provide you with further placement accuracy.
 
45
 
46
-
47
- = Support Us =
48
- The CSS & JavaScript Toolbox project is 100% developed and maintained by only two people since the very beginnings in August 2011. We have plenty of feature ideas that we want to introduce and this can only be possible with funding.
49
-
50
- You can also support us by providing a feedback review and rating on WordPress.org, and spreading the word and recommending CJT to others.
51
-
52
- = Follow the Developments =
53
- If you like to know more about the development state, issues and to track future versions code please follow us on GitHub Plugin repository.
54
 
55
  == Installation ==
56
  1. If you're upgrading from older versions its highly recommended to backup your database before upgrading.
@@ -58,82 +37,13 @@ If you like to know more about the development state, issues and to track future
58
  3. Activate the plugin through the 'Plugins' menu in WordPress
59
  4. Click 'CSS & JavaScript Toolbox' link in the main navigation (left side of your Dashboard).
60
 
61
- == Frequently Asked Questions ==
62
- = Why was the CJT plugin developed and what is it used for? =
63
- The CJT plugin was created to help website authors write their own code. The plugin allows you to contribute to your Wordpress installation code via a simple web interface, where you can modify and extend the functionality and appearance of your website by writing code directly into CJT code blocks. A typical example of using the plugin can include changing the the way a specific Wordpress page is displayed, or making a page more interactive by adding some JavaScript (Dynamic HTML).
64
-
65
- = What is a CJT 'code block'? =
66
- The CJT code block is the basic unit for writing code and to associate it with specific Wordpress requests.
67
-
68
- = What is the Assignment Panel? =
69
- The Assignment Panel is a tabs window, which appears on the right side of the code block editor and is used to assign/apply the code block into specific requests.
70
-
71
- = Can you select more than one item from the Assignment Panel? =
72
- Yes. You can select any number of items you need, there is no limitation regarding this.
73
-
74
- = Can you assign multiple blocks to the same items from the Assignment Panel? =
75
- Yes. It's one of the most useful features that CJT supports as it allows you to manage/split your codes into several code blocks, allowing you to override code in a former (or lower ordered) code block.
76
-
77
- = What is Pages, Posts, Categories and Custom Posts tabs? =
78
- These lists with checkboxes represent all of your WordPress Pages, Posts, Categories and Custom Posts that your entire website contains. It also supports subpages and sub-categories, which you will also find in there.
79
-
80
- = What is the Auxiliary tab? =
81
- As there are a number of requests that are not available as normal Wordpress items (e.g. Pages, Posts, etc) but since it's commonly required and most likely be used, you will find them pre-defined in the Auxiliary tab. In the Auxiliary tab you can find pages like: Home, Blog Index, Author, 404 error, Tag, Archive, Entire website, Front-end, Admin backend and much more!
82
-
83
- = Is it better to use the URLs tab, or select items if found through other tabs? =
84
- Pages, Posts, Custom Posts and Categories tabs are created to simplify the assignment process for all types of users. Using URLs is great for fast performance as it requires less time to evaluate/identify the request! However, not all things can be done through the URLs tab. For example, applying a single block to a Category index page and all its sub-categories.
85
-
86
- = What is the Advanced Expressions tab? =
87
- The Advanced Expression tab allows you to fully control what requests to integrate into the code block by using Regular Expressions. In other words, allowing CJT users to define more requests to assign the code block to.
88
-
89
- = Can I move the blocks around? =
90
- Yes by hovering your mouse cursor over the code block title bar until it turns into a four-sided arrow, this allow you to move the blocks. Clicking the block title bar allows you to open and close the blocks.
91
-
92
- = Is block saved after I click 'Create' in 'Create New Code Block' form? =
93
- Yes. The block is created and saved in your database. In order to discard the block, you have to delete it.
94
-
95
- = Is block orders immediately saved after drag-and-drop block box? =
96
- No. In order to save blocks order you need to press 'Save All Changes' button.
97
-
98
- = Is block immediately deleted after removed from the blocks list page? =
99
- No. After delete block you need to click 'Save All Changes' button.
100
-
101
- = I'm using the URLs tab and my code is not working? =
102
- Make sure you have copied and pasted the Page, Post, or Category URL exactly as it appears in the address bar. For example, you may have inadvertently included an extra forward slash at the end of your URL.
103
-
104
- = Why use the Footer switch in Location/Hook? =
105
- Hook location feature gives you control over the location of outputting the CSS/JS code. This is useful in case overriding another plugins' CSS is required. Also sometimes its better to put your JS code in the footer to avoid slowing down your page load.
106
-
107
- = I received a weird error, what do I do now? =
108
- Due to the overwhelming amount of emails we get for users requesting support for our CJT plugins, we cannot provide support for the CJT Free plugin (hosted here on WordPress.org) at this stage unfortunately. If you wish to receive priority support, please visit our CJT website and [purchase a license for any of our products](http://css-javascript-toolbox.com/pricing).
109
-
110
- == Screenshots ==
111
- 1. Add your code, then assign where it goes
112
- 2. Create New Code Block dialog box
113
- 3. Master Admin Toolbar at top, and minimised Code Blocks below
114
- 4. Change editor language for syntax highlighting and error checking
115
- 5. Assigning WordPress Pages and sub-pages
116
- 6. Assigning WordPress Posts
117
- 7. Assigning Custom Posts
118
- 8. Assigning Categories and sub-categories
119
- 9. Auxiliary Assignments
120
- 10. Advanced Assignments (URLs and Regular Expressions)
121
- 11. Change State batch tools (CJT PLUS ONLY)
122
- 12. Change Location/Hook batch tools (CJT PLUS ONLY)
123
- 13. Delete and Backup Tools
124
- 14. Code-Files management within each Code Block (CJT PLUS ONLY)
125
- 15. Templates Manager form to store all of your Code Templates
126
- 16. Templates Lookup form to embed or link Code Templates to Code Blocks
127
- 17. Insert Code Block shortcodes via TinyMCE button (CJT PLUS ONLY)
128
- 18. Metabox Code Block at the Edit Page/Post level
129
- 19. Create backups of all your existing Code Blocks
130
- 20. Create/Restore Code Block revisions (CJT PLUS ONLY)
131
- 21. See Code Block information at a glance (CJT PLUS ONLY)
132
-
133
  == Changelog ==
134
 
 
 
 
135
  = 8.3.1 =
136
- Fix: Development log files created at production
137
 
138
  = 8.3 =
139
  * Enahnce: CJT Won't work and admin notice displayed when PHP version < 5.3
@@ -367,8 +277,8 @@ Fix: Development log files created at production
367
  * This is the very first release.
368
 
369
  == Credits ==
370
-
371
- Copyright © 2015, Wipeout Media.
372
 
373
  This program is free software; you can redistribute it and/or
374
  modify it under the terms of the GNU General Public License
1
  === CSS & JavaScript Toolbox ===
2
  Contributors: wipeoutmedia
3
+ Author URL: https://easy-code-manager.com
4
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=EWDWF75JHT9Q6
5
  Tags: post, posts, admin, sidebar, page, pages, widget, image, shortcode, plugin, google, customise, style, scripts, hack, Wordpress, HTML, CSS, JavaScript, HTML5, jQuery, PHP, code, script, scripts, manage, management, display, output, header, footer, apply, requests, match, hook, execute, run
6
  License: GPLv2 or later
7
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
8
  Requires at least: 3.9
9
+ Tested up to: 4.8.1
10
+ Stable tag: 8.3.2
11
 
12
  Easily add custom CSS, JavaScript, HTML and PHP code to unique CJT code blocks and assign them wherever you want.
13
 
14
  == Description ==
 
15
 
16
+ = IMPORTANT NOTE: =
17
+ The CSS & JavaScript Toolbox plugin on WordPress.org is no longer supported. This has been replaced by our new code management plugin called Easy Code Manager, which you can download for free here: [Easy Code Manager on WordPress.org](https://wordpress.org/plugins/easy-code-manager)
 
 
 
 
 
 
 
18
 
19
+ This free version has been fully redesigned and does not have a number of features you would expect in CSS & JavaScript Toolbox. That said, you may wish to stay on CSS & JavaScript Toolbox unless you intend to update to our premium Easy Code Manager PLUS plugin.
20
 
21
+ = Easy Code Manager PLUS =
22
+ This is our premium plugin that extends the free version of Easy Code Manager - adding an amazing amount of features. Why not take a look to see if it suits your needs. Click here: [Easy Code Manager PLUS](https://easy-code-manager.com)
 
 
 
 
 
 
23
 
24
+ = Compatibility =
25
+ At this stage CSS & JavaScript Toolbox and Easy Code Manager cannot be installed and activated at the same time. It is advised to BACKUP all your CSS & JavaScript Toolbox code blocks, code files and template data, and take note of all your assignments and shortcode placements. This is a precautionary recommendation so you don’t lose your work.
26
 
27
+ Once CSS & JavaScript Toolbox is deactivated, then you should be able to install and activate Easy Code Manager. Currently, both plugins share the same database structure and depending on your current version of CSS & JavaScript Toolbox, you may just see all your original CJT code blocks intact in the Easy Code Manager main dashboard. However, please do not rely on this and BACKUP all of your work before trying to install the Easy Code Manager plugins on your site.
 
 
 
28
 
29
+ = CSS & JavaScript Toolbox premium license holders =
30
+ If you are a premium CSS & JavaScript Toolbox (CJT) license holder with a valid license key that has NOT expired, you will be eligible to receive Easy Code Manager for free with one year of premium updates. Please send us a message along with your valid license key via our Contact page OR via: info (at) easy-code-manager.com
31
 
32
+ Thanks for your support.
 
 
 
 
 
 
 
33
 
34
  == Installation ==
35
  1. If you're upgrading from older versions its highly recommended to backup your database before upgrading.
37
  3. Activate the plugin through the 'Plugins' menu in WordPress
38
  4. Click 'CSS & JavaScript Toolbox' link in the main navigation (left side of your Dashboard).
39
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
  == Changelog ==
41
 
42
+ = 8.3.2 =
43
+ * Warning: Add CJT Plugin "not longer supported" notice
44
+
45
  = 8.3.1 =
46
+ * Fix: Development log files created at production
47
 
48
  = 8.3 =
49
  * Enahnce: CJT Won't work and admin notice displayed when PHP version < 5.3
277
  * This is the very first release.
278
 
279
  == Credits ==
280
+
281
+ Copyright © 2017, Wipeout Media.
282
 
283
  This program is free software; you can redistribute it and/or
284
  modify it under the terms of the GNU General Public License