Simple Custom CSS and JS - Version 3.24

Version Description

  • 04/05/2019
  • Fix: remove the editor scrollbar
  • Tweak: rename "First Page" to "Homepage" to avoid misunderstandings
Download this release

Release Info

Developer diana_burduja
Plugin Icon 128x128 Simple Custom CSS and JS
Version 3.24
Comparing to
See all releases

Code changes from version 3.23 to 3.24

assets/ccj_admin-url_rules.js CHANGED
@@ -44,7 +44,7 @@ if (!String.prototype.capitalize) {
44
  'begins-with' : 'Starts with',
45
  'ends-by' : 'Ends by',
46
  'all' : 'All Website',
47
- 'first-page' : 'First page'
48
  };
49
 
50
  for (n in names) {
44
  'begins-with' : 'Starts with',
45
  'ends-by' : 'Ends by',
46
  'all' : 'All Website',
47
+ 'first-page' : 'Homepage'
48
  };
49
 
50
  for (n in names) {
assets/ccj_admin.js CHANGED
@@ -20,10 +20,6 @@ jQuery(document).ready( function($) {
20
  "Ctrl-F": "findPersistent",
21
  },
22
  };
23
- if ( typeof CCJ !== 'undefined' && CCJ.scroll !== '0' ) {
24
- options['scrollbarStyle'] = "simple";
25
- }
26
-
27
 
28
  var cm_width = $('#title').width() + 16;
29
  var cm_height = 500;
20
  "Ctrl-F": "findPersistent",
21
  },
22
  };
 
 
 
 
23
 
24
  var cm_width = $('#title').width() + 16;
25
  var cm_height = 500;
custom-css-js.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Simple Custom CSS and JS
4
  * Plugin URI: https://wordpress.org/plugins/custom-css-js/
5
  * Description: Easily add Custom CSS or JS to your website with an awesome editor.
6
- * Version: 3.23
7
  * Author: SilkyPress.com
8
  * Author URI: https://www.silkypress.com
9
  * License: GPL2
@@ -202,7 +202,7 @@ final class CustomCSSandJS {
202
  function set_constants() {
203
  $dir = wp_upload_dir();
204
  $constants = array(
205
- 'CCJ_VERSION' => '3.23',
206
  'CCJ_UPLOAD_DIR' => $dir['basedir'] . '/custom-css-js',
207
  'CCJ_UPLOAD_URL' => $dir['baseurl'] . '/custom-css-js',
208
  'CCJ_PLUGIN_FILE' => __FILE__,
3
  * Plugin Name: Simple Custom CSS and JS
4
  * Plugin URI: https://wordpress.org/plugins/custom-css-js/
5
  * Description: Easily add Custom CSS or JS to your website with an awesome editor.
6
+ * Version: 3.24
7
  * Author: SilkyPress.com
8
  * Author URI: https://www.silkypress.com
9
  * License: GPL2
202
  function set_constants() {
203
  $dir = wp_upload_dir();
204
  $constants = array(
205
+ 'CCJ_VERSION' => '3.24',
206
  'CCJ_UPLOAD_DIR' => $dir['basedir'] . '/custom-css-js',
207
  'CCJ_UPLOAD_URL' => $dir['baseurl'] . '/custom-css-js',
208
  'CCJ_PLUGIN_FILE' => __FILE__,
includes/admin-addons.php CHANGED
@@ -80,7 +80,7 @@ class CustomCSSandJS_Addons {
80
 
81
  $filters = array(
82
  'all' => __('All Website', 'custom-css-js'),
83
- 'first-page' => __('First page', 'custom-css-js'),
84
  'contains' => __('Contains', 'custom-css-js'),
85
  'not-contains' => __('Not contains', 'custom-css-js'),
86
  'equal-to' => __('Is equal to', 'custom-css-js'),
80
 
81
  $filters = array(
82
  'all' => __('All Website', 'custom-css-js'),
83
+ 'first-page' => __('Homepage', 'custom-css-js'),
84
  'contains' => __('Contains', 'custom-css-js'),
85
  'not-contains' => __('Not contains', 'custom-css-js'),
86
  'equal-to' => __('Is equal to', 'custom-css-js'),
includes/admin-screens.php CHANGED
@@ -134,8 +134,6 @@ class CustomCSSandJS_Admin {
134
  wp_enqueue_script( 'ccj-codemirror', $cm . '/lib/codemirror.js', array( 'jquery' ), $v, false);
135
  wp_enqueue_style( 'ccj-codemirror', $cm . '/lib/codemirror.css', array(), $v );
136
  wp_enqueue_script( 'ccj-admin_url_rules', $a . '/ccj_admin-url_rules.js', array('jquery'), $v, false );
137
- wp_enqueue_script( 'ccj-scrollbars', $cm . '/addon/scroll/simplescrollbars.js', array('ccj-codemirror'), $v, false );
138
- wp_enqueue_style( 'ccj-scrollbars', $cm . '/addon/scroll/simplescrollbars.css', array(), $v );
139
 
140
  // Add the language modes
141
  $cmm = $cm . '/mode/';
@@ -176,7 +174,6 @@ class CustomCSSandJS_Admin {
176
  public function cm_localize() {
177
 
178
  $vars = array(
179
- 'scroll' => '1',
180
  'active' => __('Active', 'custom-css-js'),
181
  'inactive' => __('Inactive', 'custom-css-js'),
182
  'activate' => __('Activate', 'custom-css-js'),
@@ -185,25 +182,6 @@ class CustomCSSandJS_Admin {
185
  'deactive_title' => __('The code is inactive. Click to activate it', 'custom-css-js'),
186
  );
187
 
188
- if ( ! function_exists( 'is_plugin_active' ) ) {
189
- require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
190
- }
191
-
192
- // Plugins which conflict with the CodeMirror editor
193
- $conflicting_plugins = array(
194
- 'types/wpcf.php',
195
- 'advanced-ads-code-highlighter/advanced-ads-code-highlighter.php',
196
- 'wp-custom-backend-css/wp-custom-backend-css.php',
197
- 'custom-css-whole-site-and-per-post/h5ab-custom-styling.php',
198
- 'html-editor-syntax-highlighter/html-editor-syntax-highlighter.php',
199
- );
200
-
201
- foreach( $conflicting_plugins as $_plugin ) {
202
- if ( is_plugin_active( $_plugin ) ) {
203
- $vars['scroll'] = '0';
204
- }
205
- }
206
-
207
  return $vars;
208
  }
209
 
134
  wp_enqueue_script( 'ccj-codemirror', $cm . '/lib/codemirror.js', array( 'jquery' ), $v, false);
135
  wp_enqueue_style( 'ccj-codemirror', $cm . '/lib/codemirror.css', array(), $v );
136
  wp_enqueue_script( 'ccj-admin_url_rules', $a . '/ccj_admin-url_rules.js', array('jquery'), $v, false );
 
 
137
 
138
  // Add the language modes
139
  $cmm = $cm . '/mode/';
174
  public function cm_localize() {
175
 
176
  $vars = array(
 
177
  'active' => __('Active', 'custom-css-js'),
178
  'inactive' => __('Inactive', 'custom-css-js'),
179
  'activate' => __('Activate', 'custom-css-js'),
182
  'deactive_title' => __('The code is inactive. Click to activate it', 'custom-css-js'),
183
  );
184
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
185
  return $vars;
186
  }
187
 
languages/custom-css-js-fr_FR.po CHANGED
@@ -123,7 +123,7 @@ msgid "All Website"
123
  msgstr "Tout le site"
124
 
125
  #: includes/admin-addons.php:83
126
- msgid "First page"
127
  msgstr "Première page"
128
 
129
  #: includes/admin-addons.php:84
123
  msgstr "Tout le site"
124
 
125
  #: includes/admin-addons.php:83
126
+ msgid "Homepage"
127
  msgstr "Première page"
128
 
129
  #: includes/admin-addons.php:84
languages/custom-css-js-pl_PL.po CHANGED
@@ -124,7 +124,7 @@ msgid "All Website"
124
  msgstr "Cała strona"
125
 
126
  #: includes/admin-addons.php:83
127
- msgid "First page"
128
  msgstr "Pierwsza strona"
129
 
130
  #: includes/admin-addons.php:84
124
  msgstr "Cała strona"
125
 
126
  #: includes/admin-addons.php:83
127
+ msgid "Homepage"
128
  msgstr "Pierwsza strona"
129
 
130
  #: includes/admin-addons.php:84
languages/custom-css-js-tr_TR.po CHANGED
@@ -122,7 +122,7 @@ msgid "All Website"
122
  msgstr "Tüm Web Siteleri"
123
 
124
  #: includes/admin-addons.php:83
125
- msgid "First page"
126
  msgstr "İlk Sayfa"
127
 
128
  #: includes/admin-addons.php:84
122
  msgstr "Tüm Web Siteleri"
123
 
124
  #: includes/admin-addons.php:83
125
+ msgid "Homepage"
126
  msgstr "İlk Sayfa"
127
 
128
  #: includes/admin-addons.php:84
languages/custom-css-js.pot CHANGED
@@ -119,7 +119,7 @@ msgid "All Website"
119
  msgstr ""
120
 
121
  #: includes/admin-addons.php:83
122
- msgid "First page"
123
  msgstr ""
124
 
125
  #: includes/admin-addons.php:84
119
  msgstr ""
120
 
121
  #: includes/admin-addons.php:83
122
+ msgid "Homepage"
123
  msgstr ""
124
 
125
  #: includes/admin-addons.php:84
readme.txt CHANGED
@@ -5,7 +5,7 @@ Email: diana@burduja.eu
5
  Tags: CSS, JS, javascript, custom CSS, custom JS, custom style, site css, add style, customize theme, custom code, external css, css3, style, styles, stylesheet, theme, editor, design, admin
6
  Requires at least: 3.0.1
7
  Tested up to: 5.1
8
- Stable tag: 3.23
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
  Requires PHP: 5.2.4
@@ -105,6 +105,11 @@ $. Add/Edit HTML
105
 
106
  == Changelog ==
107
 
 
 
 
 
 
108
  = 3.23 =
109
  * 03/15/2019
110
  * Fix: avoid conflicts with other plugins that use CodeMirror as their editor
5
  Tags: CSS, JS, javascript, custom CSS, custom JS, custom style, site css, add style, customize theme, custom code, external css, css3, style, styles, stylesheet, theme, editor, design, admin
6
  Requires at least: 3.0.1
7
  Tested up to: 5.1
8
+ Stable tag: 3.24
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
  Requires PHP: 5.2.4
105
 
106
  == Changelog ==
107
 
108
+ = 3.24 =
109
+ * 04/05/2019
110
+ * Fix: remove the editor scrollbar
111
+ * Tweak: rename "First Page" to "Homepage" to avoid misunderstandings
112
+
113
  = 3.23 =
114
  * 03/15/2019
115
  * Fix: avoid conflicts with other plugins that use CodeMirror as their editor