CSS & JavaScript Toolbox - Version 11.2

Version Description

  • Added: New links for CJT PLUS license validation
Download this release

Release Info

Developer wipeoutmedia
Plugin Icon 128x128 CSS & JavaScript Toolbox
Version 11.2
Comparing to
See all releases

Code changes from version 11 to 11.2

css-js-toolbox.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: CSS & JavaScript Toolbox
4
  Plugin URI: https://css-javascript-toolbox.com/
5
  Description: Easily add CSS, JavaScript, HTML and PHP code to unique CJT code blocks and assign them anywhere on your website.
6
- Version: 11
7
  Author: Wipeout Media
8
  Author URI: https://css-javascript-toolbox.com
9
  License:
3
  Plugin Name: CSS & JavaScript Toolbox
4
  Plugin URI: https://css-javascript-toolbox.com/
5
  Description: Easily add CSS, JavaScript, HTML and PHP code to unique CJT code blocks and assign them anywhere on your website.
6
+ Version: 11.2
7
  Author: Wipeout Media
8
  Author URI: https://css-javascript-toolbox.com
9
  License:
includes/html/incompatible_cjtplus_version.html.php CHANGED
@@ -5,19 +5,15 @@
5
 
6
  defined('ABSPATH') or die(-1);
7
 
8
- ?>
9
 
10
- <div style="font-size:14px;font-weight:bold;">
11
- <h3 style="color: #0073aa;margin-top: 5px;font-size: 1.2em">WARNING: CJT Free and CJT PLUS are <span style="text-decoration: underline">NOT COMPATIBLE</span></h3><span style="font-weight:100;font-size:13px;">Since version 11, both CJT Free (on WordPress.org) and CJT PLUS (premium extension) has had a major UI and framework update to include many new Hooks. Clearing out your site or browser cache may resolve some issues, but not all. That’s because you are using an older CJT PLUS (version 10, 9.4 or earlier) with the latest CJT Free version 11 or higher. As a CJT PLUS owner, you have a number of options available as shown below. <a target="_blank" href="https://css-javascript-toolbox.com/welcome-to-cjt-plus-version-11">We also explain everything in this article on the CJT website</a>.</span>
12
- <ul style="list-style-type: circle;padding-left: 27px;font-size: 12px;margin-top:10px;">
13
- <li>You <span style="text-decoration: underline">MUST</span> update CJT PLUS to the latest version 11 or higher.</li>
14
- <li>If it won't let you update, you may need to either: <a class="license-key-alt" href="#">activate your valid license key</a>, or <a target="_blank" href="https://<?php echo cssJSToolbox::CJT_WEB_SITE_DOMAIN ?>/pricing">purchase a new license key</a> if it has expired.</li>
15
- <li>If you do not wish to update CJT PLUS to the latest version, then you will need to manually downgrade CJT Free to version 10: <a target="_blank" href="https://downloads.wordpress.org/plugin/css-javascript-toolbox.10.zip">Click to download</a>.</li>
16
- </ul>
17
- </div>
18
 
19
- <script type="text/javascript">
20
 
 
21
  jQuery('a.license-key-alt').click(jQuery.proxy(function() {
22
  var _req = {
23
  view: 'setup/activation-form',
@@ -35,4 +31,15 @@ defined('ABSPATH') or die(-1);
35
 
36
  }))
37
 
38
- </script>
 
 
 
 
 
 
 
 
 
 
 
5
 
6
  defined('ABSPATH') or die(-1);
7
 
8
+ add_action( 'admin_footer', 'script' );
9
 
10
+ function script() { ?>
11
+ <script src="<?php echo plugin_dir_url( CJTOOLBOX_PLUGIN_FILE ) . 'framework/js/ajax/cjt-server/cjt-server.js'; ?>"></script>
12
+ <script src="<?php echo plugin_dir_url( CJTOOLBOX_PLUGIN_FILE ) . 'framework/js/ajax/cjt-server-queue/cjt-server-queue.js'; ?>"></script>
 
 
 
 
 
13
 
14
+ <input id="cjt-securityToken" type="hidden" value="<?php echo cssJSToolbox::getSecurityToken(); ?>">
15
 
16
+ <script type="text/javascript">
17
  jQuery('a.license-key-alt').click(jQuery.proxy(function() {
18
  var _req = {
19
  view: 'setup/activation-form',
31
 
32
  }))
33
 
34
+ </script>
35
+ <?php }
36
+ ?>
37
+
38
+ <div style="font-size:14px;font-weight:bold;">
39
+ <h3 style="color: #0073aa;margin-top: 5px;font-size: 1.2em">WARNING: CJT Free and CJT PLUS are <span style="text-decoration: underline">NOT COMPATIBLE</span></h3><span style="font-weight:100;font-size:13px;">Since version 11, both CJT Free (on WordPress.org) and CJT PLUS (premium extension) has had a major UI and framework update to include many new Hooks. Clearing out your site or browser cache may resolve some issues, but not all. That’s because you are using an older CJT PLUS (version 10, 9.4 or earlier) with the latest CJT Free version 11 or higher. As a CJT PLUS owner, you have a number of options available as shown below. <a target="_blank" href="https://css-javascript-toolbox.com/welcome-to-cjt-plus-version-11">We also explain everything in this article on the CJT website</a>.</span>
40
+ <ul style="list-style-type: circle;padding-left: 27px;font-size: 12px;margin-top:10px;">
41
+ <li>You <span style="text-decoration: underline">MUST</span> update CJT PLUS to the latest version 11 or higher.</li>
42
+ <li>If it won't let you update, you may need to either: <a class="license-key-alt" href="#">activate your valid license key</a>, or <a target="_blank" href="https://<?php echo cssJSToolbox::CJT_WEB_SITE_DOMAIN ?>/pricing">purchase a new license key</a> if it has expired.</li>
43
+ <li>If you do not wish to update CJT PLUS to the latest version, then you will need to manually downgrade CJT Free to version 10: <a target="_blank" href="https://downloads.wordpress.org/plugin/css-javascript-toolbox.10.zip">Click to download</a>.</li>
44
+ </ul>
45
+ </div>
readme.txt CHANGED
@@ -8,7 +8,7 @@ License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
8
  Requires at least: 4.9 or higher
9
  Requires PHP: 7 or higher
10
  Tested up to: 5.5
11
- Stable tag: 11
12
 
13
  Add CSS, JavaScript, and even HTML and PHP to our unique code blocks, then choose exactly where you want the code to run. Supports Gutenberg.
14
 
@@ -65,9 +65,6 @@ https://www.youtube.com/watch?v=aTq2wH16JNQ
65
  3. Activate the plugin through the 'Plugins' menu in WordPress
66
  4. Click 'CSS & JavaScript Toolbox' link in the main navigation (left side of your Dashboard).
67
 
68
- UPGRADE TO VERSION 11
69
- If you have upgraded to the latest version 11, you will need to clear and refresh your browser cache to pull in the new scripts and stylesheets. This includes, clearing out and purging any caches made by third-party cache plugins. This version now supports PHP versions 7.0 or higher to make it even more compatible with earlier versions.
70
-
71
  == Frequently Asked Questions ==
72
  = Why was the CJT plugin developed and what is it used for? =
73
  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).
@@ -141,6 +138,9 @@ Due to the overwhelming amount of emails we get for users requesting support for
141
  21. See Code Block information at a glance (CJT PLUS ONLY)
142
 
143
  == Changelog ==
 
 
 
144
  = 11.0 =
145
  * Added: 8 More Hooks (Body Open, Before Post Content, After Post Content, Before Post, Excerpt, After Post Excerpt, Before Posts List, After Posts List, Before Post
146
  * Enhancement: Assignments Panel
8
  Requires at least: 4.9 or higher
9
  Requires PHP: 7 or higher
10
  Tested up to: 5.5
11
+ Stable tag: 11.2
12
 
13
  Add CSS, JavaScript, and even HTML and PHP to our unique code blocks, then choose exactly where you want the code to run. Supports Gutenberg.
14
 
65
  3. Activate the plugin through the 'Plugins' menu in WordPress
66
  4. Click 'CSS & JavaScript Toolbox' link in the main navigation (left side of your Dashboard).
67
 
 
 
 
68
  == Frequently Asked Questions ==
69
  = Why was the CJT plugin developed and what is it used for? =
70
  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).
138
  21. See Code Block information at a glance (CJT PLUS ONLY)
139
 
140
  == Changelog ==
141
+ = 11.2 =
142
+ * Added: New links for CJT PLUS license validation
143
+
144
  = 11.0 =
145
  * Added: 8 More Hooks (Body Open, Before Post Content, After Post Content, Before Post, Excerpt, After Post Excerpt, Before Posts List, After Posts List, Before Post
146
  * Enhancement: Assignments Panel
views/blocks/manager/tmpl/blocks.html.tmpl CHANGED
@@ -25,7 +25,7 @@ $isCJTPLUSInstalled = file_exists(WP_PLUGIN_DIR . DIRECTORY_SEPARATOR . 'css-jav
25
  if ( class_exists( 'CJTPlusPluginInterface' ) ) :
26
  $reflector = new \ReflectionClass( 'CJTPlus' );
27
  $CJTPlusVersion = get_plugin_data( str_replace( 'plus.class', 'plus', $reflector->getFileName() ) )['Version'];
28
- $versionText .= ' / CJT PLUS Version: ' . $CJTPlusVersion;
29
  endif; ?>
30
 
31
  <span class="cjt-ver"><?php echo $versionText; ?></span>
@@ -70,4 +70,4 @@ $isCJTPLUSInstalled = file_exists(WP_PLUGIN_DIR . DIRECTORY_SEPARATOR . 'css-jav
70
  </div>
71
  </div>
72
  <div id="cjt-inline-popup"></div>
73
- </div>
25
  if ( class_exists( 'CJTPlusPluginInterface' ) ) :
26
  $reflector = new \ReflectionClass( 'CJTPlus' );
27
  $CJTPlusVersion = get_plugin_data( str_replace( 'plus.class', 'plus', $reflector->getFileName() ) )['Version'];
28
+ $versionText .= ' / CJT PLUS Version: ' . $CJTPlusVersion . ' <a style="margin-left: 20px;"href="#" class="license-key-alt">' . cssJSToolbox::getText('License Key') . '</a>';
29
  endif; ?>
30
 
31
  <span class="cjt-ver"><?php echo $versionText; ?></span>
70
  </div>
71
  </div>
72
  <div id="cjt-inline-popup"></div>
73
+ </div>