Simple Custom CSS and JS - Version 3.7

Version Description

Download this release

Release Info

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

Code changes from version 2.10 to 3.7

assets/ccj_admin.js CHANGED
@@ -56,5 +56,53 @@ jQuery(document).ready( function($) {
56
  });
57
  }
58
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
59
  });
60
 
56
  });
57
  }
58
 
59
+ // Activate/deactivate codes with AJAX
60
+ $(".ccj_activate_deactivate").click( function(e) {
61
+ var url = $(this).attr('href');
62
+ var code_id = $(this).attr('data-code-id');
63
+ e.preventDefault();
64
+ $.ajax({
65
+ url: url,
66
+ success: function(data){
67
+ if (data === 'yes') {
68
+ ccj_activate_deactivate(code_id, false);
69
+ }
70
+ if (data === 'no') {
71
+ ccj_activate_deactivate(code_id, true);
72
+ }
73
+ }
74
+ });
75
+ });
76
+
77
+ // Toggle the signs for activating/deactivating codes
78
+ function ccj_activate_deactivate(code_id, action) {
79
+ var row = $('tr#post-'+code_id);
80
+ if ( action === true ) {
81
+ row.css('opacity', '1');
82
+ row.find('.row-actions .ccj_activate_deactivate')
83
+ .text(CCJ.deactivate)
84
+ .attr('title', CCJ.active_title);
85
+ row.find('td.active .dashicons')
86
+ .removeClass('dashicons-star-empty')
87
+ .addClass('dashicons-star-filled');
88
+ row.find('td.active .ccj_activate_deactivate')
89
+ .attr('title', CCJ.active_title);
90
+ $('#activate-action span').text(CCJ.active);
91
+ $('#activate-action .ccj_activate_deactivate').text(CCJ.deactivate);
92
+ } else {
93
+ row.css('opacity', '0.4');
94
+ row.find('.row-actions .ccj_activate_deactivate')
95
+ .text(CCJ.activate)
96
+ .attr('title', CCJ.deactive_title);
97
+ row.find('td.active .dashicons')
98
+ .removeClass('dashicons-star-filled')
99
+ .addClass('dashicons-star-empty');
100
+ row.find('td.active .ccj_activate_deactivate')
101
+ .attr('title', CCJ.deactive_title);
102
+ $('#activate-action span').text(CCJ.inactive);
103
+ $('#activate-action .ccj_activate_deactivate').text(CCJ.activate);
104
+ }
105
+ }
106
+
107
  });
108
 
custom-css-js.php CHANGED
@@ -3,11 +3,14 @@
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: 2.10
7
  * Author: Diana Burduja
8
  * Author URI: https://www.silkypress.com/
9
  * License: GPL2
10
  *
 
 
 
11
  */
12
 
13
  if ( ! defined( 'ABSPATH' ) ) {
@@ -15,19 +18,14 @@ if ( ! defined( 'ABSPATH' ) ) {
15
  }
16
 
17
  if ( ! class_exists( 'CustomCSSandJS' ) ) :
18
- define( 'CCJ_VERSION', '2.10' );
19
  /**
20
  * Main CustomCSSandJS Class
21
  *
22
  * @class CustomCSSandJS
23
  */
24
  final class CustomCSSandJS {
25
- public $plugins_url = '';
26
- public $plugin_dir_path = '';
27
- public $plugin_file = __FILE__;
28
  public $search_tree = false;
29
- public $upload_dir = '';
30
- public $upload_url = '';
31
  protected static $_instance = null;
32
 
33
 
@@ -50,14 +48,14 @@ final class CustomCSSandJS {
50
  * Cloning is forbidden.
51
  */
52
  public function __clone() {
53
- _doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?' ), '1.0' );
54
  }
55
 
56
  /**
57
  * Unserializing instances of this class is forbidden.
58
  */
59
  public function __wakeup() {
60
- _doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?' ), '1.0' );
61
  }
62
 
63
  /**
@@ -66,17 +64,16 @@ final class CustomCSSandJS {
66
  */
67
  public function __construct() {
68
  add_action( 'init', array( $this, 'register_post_type' ) );
69
- $this->plugins_url = plugins_url( '/', __FILE__ );
70
- $this->plugin_dir_path = plugin_dir_path( __FILE__ );
71
- $wp_upload_dir = wp_upload_dir();
72
- $this->upload_dir = $wp_upload_dir['basedir'] . '/custom-css-js';
73
- $this->upload_url = $wp_upload_dir['baseurl'] . '/custom-css-js';
74
- if ( is_admin() ) {
75
  include_once( 'includes/admin-screens.php' );
76
  include_once( 'includes/admin-addons.php' );
77
  include_once( 'includes/admin-warnings.php' );
78
  include_once( 'includes/admin-notices.php' );
79
- }
80
 
81
  $this->search_tree = get_option( 'custom-css-js-tree' );
82
 
@@ -98,6 +95,9 @@ final class CustomCSSandJS {
98
  if ( strpos( $_key, 'admin' ) !== false ) {
99
  $action = 'admin_';
100
  }
 
 
 
101
  if ( strpos( $_key, 'header' ) !== false ) {
102
  $action .= 'head';
103
  } else {
@@ -145,7 +145,7 @@ final class CustomCSSandJS {
145
 
146
  foreach( $args as $_post_id ) {
147
  if ( strstr( $_post_id, 'css' ) || strstr( $_post_id, 'js' ) ) {
148
- @include_once( $this->upload_dir . '/' . $_post_id );
149
  } else {
150
  $post = get_post( $_post_id );
151
  echo $before . $post->post_content . $after;
@@ -162,14 +162,14 @@ final class CustomCSSandJS {
162
 
163
  if ( strpos( $function, 'js' ) !== false ) {
164
  foreach( $args as $_filename ) {
165
- echo PHP_EOL . "<script type='text/javascript' src='".$this->upload_url . '/' . $_filename."'></script>" . PHP_EOL;
166
  }
167
  }
168
 
169
  if ( strpos( $function, 'css' ) !== false ) {
170
  foreach( $args as $_filename ) {
171
  $shortfilename = preg_replace( '@\.css\?v=.*$@', '', $_filename );
172
- echo PHP_EOL . "<link rel='stylesheet' id='".$shortfilename ."-css' href='".$this->upload_url . '/' . $_filename ."' type='text/css' media='all' />" . PHP_EOL;
173
  }
174
  }
175
  }
@@ -185,50 +185,182 @@ final class CustomCSSandJS {
185
  }
186
  }
187
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
188
  /**
189
  * Create the custom-css-js post type
190
  */
191
  public function register_post_type() {
192
  $labels = array(
193
- 'name' => _x( 'Custom Code', 'post type general name'),
194
- 'singular_name' => _x( 'Custom Code', 'post type singular name'),
195
- 'menu_name' => _x( 'Custom CSS & JS', 'admin menu'),
196
- 'name_admin_bar' => _x( 'Custom Code', 'add new on admin bar'),
197
- 'add_new' => _x( 'Add Custom Code', 'add new'),
198
- 'add_new_item' => __( 'Add Custom Code'),
199
- 'new_item' => __( 'New Custom Code'),
200
- 'edit_item' => __( 'Edit Custom Code'),
201
- 'view_item' => __( 'View Custom Code'),
202
- 'all_items' => __( 'All Custom Code'),
203
- 'search_items' => __( 'Search Custom Code'),
204
- 'parent_item_colon' => __( 'Parent Custom Code:'),
205
- 'not_found' => __( 'No Custom Code found.'),
206
- 'not_found_in_trash' => __( 'No Custom Code found in Trash.')
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
207
  );
208
 
209
  $args = array(
210
- 'labels' => $labels,
211
- 'description' => __( 'Custom CSS and JS code' ),
212
- 'public' => false,
213
- 'publicly_queryable' => false,
214
- 'show_ui' => true,
215
- 'show_in_menu' => true,
216
- 'menu_position' => 100,
217
- 'menu_icon' => 'dashicons-plus-alt',
218
- 'query_var' => false,
219
- 'rewrite' => array( 'slug' => 'custom-css-js' ),
220
- 'capability_type' => 'post',
221
- 'has_archive' => true,
222
- 'hierarchical' => false,
223
- 'exclude_from_search' => true,
224
- 'menu_position' => null,
225
- 'can_export' => false,
226
- 'supports' => array( 'title' )
 
227
  );
228
 
229
  register_post_type( 'custom-css-js', $args );
230
  }
231
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
232
 
233
  }
234
 
@@ -252,9 +384,11 @@ CustomCSSandJS();
252
  function custom_css_js_plugin_action_links( $links ) {
253
 
254
  $settings_link = '<a href="edit.php?post_type=custom-css-js">' .
255
- esc_html( __('Settings' ) ) . '</a>';
256
 
257
  return array_merge( array( $settings_link), $links );
258
 
259
  }
260
  add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), 'custom_css_js_plugin_action_links' );
 
 
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.7
7
  * Author: Diana Burduja
8
  * Author URI: https://www.silkypress.com/
9
  * License: GPL2
10
  *
11
+ * Text Domain: custom-css-js
12
+ * Domain Path: /languages/
13
+ *
14
  */
15
 
16
  if ( ! defined( 'ABSPATH' ) ) {
18
  }
19
 
20
  if ( ! class_exists( 'CustomCSSandJS' ) ) :
 
21
  /**
22
  * Main CustomCSSandJS Class
23
  *
24
  * @class CustomCSSandJS
25
  */
26
  final class CustomCSSandJS {
27
+
 
 
28
  public $search_tree = false;
 
 
29
  protected static $_instance = null;
30
 
31
 
48
  * Cloning is forbidden.
49
  */
50
  public function __clone() {
51
+ _doing_it_wrong( __FUNCTION__, __( 'Cheatin&#8217; huh?', 'custom-css-js' ), '1.0' );
52
  }
53
 
54
  /**
55
  * Unserializing instances of this class is forbidden.
56
  */
57
  public function __wakeup() {
58
+ _doing_it_wrong( __FUNCTION__, __( 'Cheatin&#8217; huh?', 'custom-css-js' ), '1.0' );
59
  }
60
 
61
  /**
64
  */
65
  public function __construct() {
66
  add_action( 'init', array( $this, 'register_post_type' ) );
67
+ $this->set_constants();
68
+
69
+ if ( is_admin() ) {
70
+ $this->load_plugin_textdomain();
71
+ add_action('admin_init', array($this, 'create_roles'));
 
72
  include_once( 'includes/admin-screens.php' );
73
  include_once( 'includes/admin-addons.php' );
74
  include_once( 'includes/admin-warnings.php' );
75
  include_once( 'includes/admin-notices.php' );
76
+ }
77
 
78
  $this->search_tree = get_option( 'custom-css-js-tree' );
79
 
95
  if ( strpos( $_key, 'admin' ) !== false ) {
96
  $action = 'admin_';
97
  }
98
+ if ( strpos( $_key, 'login' ) !== false ) {
99
+ $action = 'login_';
100
+ }
101
  if ( strpos( $_key, 'header' ) !== false ) {
102
  $action .= 'head';
103
  } else {
145
 
146
  foreach( $args as $_post_id ) {
147
  if ( strstr( $_post_id, 'css' ) || strstr( $_post_id, 'js' ) ) {
148
+ @include_once( CCJ_UPLOAD_DIR . '/' . $_post_id );
149
  } else {
150
  $post = get_post( $_post_id );
151
  echo $before . $post->post_content . $after;
162
 
163
  if ( strpos( $function, 'js' ) !== false ) {
164
  foreach( $args as $_filename ) {
165
+ echo PHP_EOL . "<script type='text/javascript' src='".CCJ_UPLOAD_URL. '/' . $_filename."'></script>" . PHP_EOL;
166
  }
167
  }
168
 
169
  if ( strpos( $function, 'css' ) !== false ) {
170
  foreach( $args as $_filename ) {
171
  $shortfilename = preg_replace( '@\.css\?v=.*$@', '', $_filename );
172
+ echo PHP_EOL . "<link rel='stylesheet' id='".$shortfilename ."-css' href='".CCJ_UPLOAD_URL. '/' . $_filename ."' type='text/css' media='all' />" . PHP_EOL;
173
  }
174
  }
175
  }
185
  }
186
  }
187
 
188
+
189
+ /**
190
+ * Set constants for later use
191
+ */
192
+ function set_constants() {
193
+ $dir = wp_upload_dir();
194
+ $constants = array(
195
+ 'CCJ_VERSION' => '3.7',
196
+ 'CCJ_UPLOAD_DIR' => $dir['basedir'] . '/custom-css-js',
197
+ 'CCJ_UPLOAD_URL' => $dir['baseurl'] . '/custom-css-js',
198
+ 'CCJ_PLUGIN_FILE' => __FILE__,
199
+ );
200
+ foreach( $constants as $_key => $_value ) {
201
+ if (!defined($_key)) {
202
+ define( $_key, $_value );
203
+ }
204
+ }
205
+ }
206
+
207
+
208
  /**
209
  * Create the custom-css-js post type
210
  */
211
  public function register_post_type() {
212
  $labels = array(
213
+ 'name' => _x( 'Custom Code', 'post type general name', 'custom-css-js'),
214
+ 'singular_name' => _x( 'Custom Code', 'post type singular name', 'custom-css-js'),
215
+ 'menu_name' => _x( 'Custom CSS & JS', 'admin menu', 'custom-css-js'),
216
+ 'name_admin_bar' => _x( 'Custom Code', 'add new on admin bar', 'custom-css-js'),
217
+ 'add_new' => _x( 'Add Custom Code', 'add new', 'custom-css-js'),
218
+ 'add_new_item' => __( 'Add Custom Code', 'custom-css-js'),
219
+ 'new_item' => __( 'New Custom Code', 'custom-css-js'),
220
+ 'edit_item' => __( 'Edit Custom Code', 'custom-css-js'),
221
+ 'view_item' => __( 'View Custom Code', 'custom-css-js'),
222
+ 'all_items' => __( 'All Custom Code', 'custom-css-js'),
223
+ 'search_items' => __( 'Search Custom Code', 'custom-css-js'),
224
+ 'parent_item_colon' => __( 'Parent Custom Code:', 'custom-css-js'),
225
+ 'not_found' => __( 'No Custom Code found.', 'custom-css-js'),
226
+ 'not_found_in_trash' => __( 'No Custom Code found in Trash.', 'custom-css-js')
227
+ );
228
+
229
+ $capability_type = 'custom_css';
230
+ $capabilities = array(
231
+ 'edit_post' => "edit_{$capability_type}",
232
+ 'read_post' => "read_{$capability_type}",
233
+ 'delete_post' => "delete_{$capability_type}",
234
+ 'edit_posts' => "edit_{$capability_type}s",
235
+ 'edit_others_posts' => "edit_others_{$capability_type}s",
236
+ 'publish_posts' => "publish_{$capability_type}s",
237
+ 'read' => "read",
238
+ 'delete_posts' => "delete_{$capability_type}s",
239
+ 'delete_published_posts' => "delete_published_{$capability_type}s",
240
+ 'delete_others_posts' => "delete_others_{$capability_type}s",
241
+ 'edit_published_posts' => "edit_published_{$capability_type}s",
242
+ 'create_posts' => "edit_{$capability_type}s",
243
  );
244
 
245
  $args = array(
246
+ 'labels' => $labels,
247
+ 'description' => __( 'Custom CSS and JS code', 'custom-css-js' ),
248
+ 'public' => false,
249
+ 'publicly_queryable' => false,
250
+ 'show_ui' => true,
251
+ 'show_in_menu' => true,
252
+ 'menu_position' => 100,
253
+ 'menu_icon' => 'dashicons-plus-alt',
254
+ 'query_var' => false,
255
+ 'rewrite' => array( 'slug' => 'custom-css-js' ),
256
+ 'capability_type' => $capability_type,
257
+ 'capabilities' => $capabilities,
258
+ 'has_archive' => true,
259
+ 'hierarchical' => false,
260
+ 'exclude_from_search' => true,
261
+ 'menu_position' => null,
262
+ 'can_export' => false,
263
+ 'supports' => array( 'title' )
264
  );
265
 
266
  register_post_type( 'custom-css-js', $args );
267
  }
268
 
269
+
270
+ /**
271
+ * Create roles and capabilities.
272
+ */
273
+ function create_roles() {
274
+ global $wp_roles;
275
+
276
+
277
+ if ( !current_user_can('update_plugins') )
278
+ return;
279
+
280
+ if ( ! class_exists( 'WP_Roles' ) ) {
281
+ return;
282
+ }
283
+
284
+ if ( ! isset( $wp_roles ) ) {
285
+ $wp_roles = new WP_Roles();
286
+ }
287
+
288
+ if ( isset($wp_roles->roles['css_js_designer']))
289
+ return;
290
+
291
+ // Add Web Designer role
292
+ add_role( 'css_js_designer', __( 'Web Designer', 'custom-css-js'), array(
293
+ 'level_9' => true,
294
+ 'level_8' => true,
295
+ 'level_7' => true,
296
+ 'level_6' => true,
297
+ 'level_5' => true,
298
+ 'level_4' => true,
299
+ 'level_3' => true,
300
+ 'level_2' => true,
301
+ 'level_1' => true,
302
+ 'level_0' => true,
303
+ 'read' => true,
304
+ 'read_private_pages' => true,
305
+ 'read_private_posts' => true,
306
+ 'edit_users' => true,
307
+ 'edit_posts' => true,
308
+ 'edit_pages' => true,
309
+ 'edit_published_posts' => true,
310
+ 'edit_published_pages' => true,
311
+ 'edit_private_pages' => true,
312
+ 'edit_private_posts' => true,
313
+ 'edit_others_posts' => true,
314
+ 'edit_others_pages' => true,
315
+ 'publish_posts' => true,
316
+ 'publish_pages' => true,
317
+ 'delete_posts' => true,
318
+ 'delete_pages' => true,
319
+ 'delete_private_pages' => true,
320
+ 'delete_private_posts' => true,
321
+ 'delete_published_pages' => true,
322
+ 'delete_published_posts' => true,
323
+ 'delete_others_posts' => true,
324
+ 'delete_others_pages' => true,
325
+ 'manage_categories' => true,
326
+ 'moderate_comments' => true,
327
+ 'unfiltered_html' => true,
328
+ 'upload_files' => true,
329
+ ) );
330
+
331
+ $capabilities = array();
332
+
333
+ $capability_types = array( 'custom_css' );
334
+
335
+ foreach ( $capability_types as $capability_type ) {
336
+
337
+ $capabilities[ $capability_type ] = array(
338
+ // Post type
339
+ "edit_{$capability_type}",
340
+ "read_{$capability_type}",
341
+ "delete_{$capability_type}",
342
+ "edit_{$capability_type}s",
343
+ "edit_others_{$capability_type}s",
344
+ "publish_{$capability_type}s",
345
+ "delete_{$capability_type}s",
346
+ "delete_published_{$capability_type}s",
347
+ "delete_others_{$capability_type}s",
348
+ "edit_published_{$capability_type}s",
349
+ );
350
+ }
351
+
352
+ foreach ( $capabilities as $cap_group ) {
353
+ foreach ( $cap_group as $cap ) {
354
+ $wp_roles->add_cap( 'css_js_designer', $cap );
355
+ $wp_roles->add_cap( 'administrator', $cap );
356
+ }
357
+ }
358
+ }
359
+
360
+
361
+ public function load_plugin_textdomain() {
362
+ load_plugin_textdomain( 'custom-css-js', false, plugin_basename( dirname( __FILE__ ) ) . '/languages' );
363
+ }
364
 
365
  }
366
 
384
  function custom_css_js_plugin_action_links( $links ) {
385
 
386
  $settings_link = '<a href="edit.php?post_type=custom-css-js">' .
387
+ esc_html( __('Settings', 'custom-css-js' ) ) . '</a>';
388
 
389
  return array_merge( array( $settings_link), $links );
390
 
391
  }
392
  add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), 'custom_css_js_plugin_action_links' );
393
+
394
+
includes/admin-addons.php CHANGED
@@ -39,7 +39,7 @@ class CustomCSSandJS_Addons {
39
  ?>
40
  <div class="ccj_only_premium ccj_only_premium-first">
41
  <div>
42
- <a href="https://www.silkypress.com/simple-custom-css-js-pro/?utm_source=wordpress&utm_campaign=ccj_free&utm_medium=banner" target="_blank">Available only in <br />Simple Custom CSS and JS Pro</a>
43
  </div>
44
  </div>
45
  <?php
@@ -51,9 +51,9 @@ class CustomCSSandJS_Addons {
51
  */
52
  function add_meta_boxes() {
53
 
54
- add_meta_box( 'previewdiv', __('Preview'), array( $this, 'previews_meta_box_callback' ), 'custom-css-js', 'normal' );
55
- add_meta_box( 'url-rules', __('Apply only on these URLs'), array( $this, 'url_rules_meta_box_callback' ), 'custom-css-js', 'normal' );
56
- add_meta_box( 'revisionsdiv', __('Code Revisions'), array( $this, 'revisions_meta_box_callback' ), 'custom-css-js', 'normal' );
57
  }
58
 
59
 
@@ -64,8 +64,8 @@ class CustomCSSandJS_Addons {
64
  ?>
65
  <div id="preview-action">
66
  <div>
67
- <input type="text" name="preview_url" id="ccj-preview_url" placeholder="Full URL on which to preview the changes ..." disabled="disabled" />
68
- <a class="preview button button-primary button-large" id="ccj-preview">Preview Changes</a>
69
  </div>
70
  </div>
71
  <?php
@@ -79,14 +79,14 @@ class CustomCSSandJS_Addons {
79
  function url_rules_meta_box_callback( $post ) {
80
 
81
  $filters = array(
82
- 'all' => __('All Website'),
83
- 'first-page' => __('First page'),
84
- 'contains' => __('Contains'),
85
- 'not-contains' => __('Not contains'),
86
- 'equal-to' => __('Is equal to'),
87
- 'not-equal-to' => __('Not equal to'),
88
- 'begins-with' => __('Starts with'),
89
- 'ends-by' => __('Ends by'),
90
  );
91
  $filters_html = '';
92
  foreach( $filters as $_key => $_value ) {
@@ -97,10 +97,10 @@ class CustomCSSandJS_Addons {
97
 
98
  ?>
99
  <input type="hidden" name="scan_anchor_filters" id="wplnst-scan-anchor-filters" value='<?php echo $applied_filters; ?>' />
100
- <table id="wplnst-elist-anchor-filters" class="wplnst-elist" cellspacing="0" cellpadding="0" border="0" data-editable="true" data-label="<?php _e('URL'); ?>"></table>
101
- <?php _e('URL'); ?> <select id="wplnst-af-new-type"><?php echo $filters_html ?></select>&nbsp;
102
- <input id="wplnst-af-new" type="text" class="regular-text" value="" placeholder="<?php _e('Text filter'); ?>" />&nbsp;
103
- <input class="button button-primary" type="button" id="wplnst-af-new-add" value="<?php _e('Add'); ?>" /></td>
104
 
105
  <?php
106
  }
@@ -133,11 +133,11 @@ class CustomCSSandJS_Addons {
133
  ?>
134
  <table class="revisions">
135
  <thead><tr>
136
- <th class="revisions-compare">Compare</th>
137
- <th>Revision</th>
138
- <th>Author</th>
139
- <th><input type="checkbox" name="delete[]" value="all" id="ccj-delete-checkbox" /> Delete</th>
140
- <th>Restore</th>
141
  </tr></thead>
142
  <tbody>
143
  <?php foreach( $revisions as $revision ) : ?>
@@ -160,17 +160,17 @@ class CustomCSSandJS_Addons {
160
  <input type="checkbox" name="delete[]" value="<?php echo $revision['ID']; ?>" <?php echo $delete_disabled . $delete_tooltip; ?>/>
161
  </td>
162
  <td class="revisions-restore">
163
- <a href="<?php echo $restore_url; ?>"><?php _e('Restore'); ?></a>
164
  </td>
165
  </tr>
166
  <?php endforeach; ?>
167
  <tr>
168
  <td>
169
- <input type="button" class="button-secondary" value="<?php esc_attr_e('Compare'); ?>" id="revisions-compare-button" />
170
  </td>
171
  <td colspan="2"> &nbsp;</td>
172
  <td>
173
- <input type="button" class="button-secondary" value="<?php esc_attr_e('Delete'); ?>" id="revisions-delete-button" />
174
  </td>
175
  <td> &nbsp; </td>
176
  </tr>
39
  ?>
40
  <div class="ccj_only_premium ccj_only_premium-first">
41
  <div>
42
+ <a href="https://www.silkypress.com/simple-custom-css-js-pro/?utm_source=wordpress&utm_campaign=ccj_free&utm_medium=banner" target="_blank"><?php _e('Available only in <br />Simple Custom CSS and JS Pro', 'custom-css-js'); ?></a>
43
  </div>
44
  </div>
45
  <?php
51
  */
52
  function add_meta_boxes() {
53
 
54
+ add_meta_box( 'previewdiv', __('Preview', 'custom-css-js'), array( $this, 'previews_meta_box_callback' ), 'custom-css-js', 'normal' );
55
+ add_meta_box( 'url-rules', __('Apply only on these URLs', 'custom-css-js'), array( $this, 'url_rules_meta_box_callback' ), 'custom-css-js', 'normal' );
56
+ add_meta_box( 'revisionsdiv', __('Code Revisions', 'custom-css-js'), array( $this, 'revisions_meta_box_callback' ), 'custom-css-js', 'normal' );
57
  }
58
 
59
 
64
  ?>
65
  <div id="preview-action">
66
  <div>
67
+ <input type="text" name="preview_url" id="ccj-preview_url" placeholder="<?php _e('Full URL on which to preview the changes ...', 'custom-css-js'); ?>" disabled="disabled" />
68
+ <a class="preview button button-primary button-large" id="ccj-preview"><?php _e('Preview Changes', 'custom-css-js'); ?></a>
69
  </div>
70
  </div>
71
  <?php
79
  function url_rules_meta_box_callback( $post ) {
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'),
87
+ 'not-equal-to' => __('Not equal to', 'custom-css-js'),
88
+ 'begins-with' => __('Starts with', 'custom-css-js'),
89
+ 'ends-by' => __('Ends by', 'custom-css-js'),
90
  );
91
  $filters_html = '';
92
  foreach( $filters as $_key => $_value ) {
97
 
98
  ?>
99
  <input type="hidden" name="scan_anchor_filters" id="wplnst-scan-anchor-filters" value='<?php echo $applied_filters; ?>' />
100
+ <table id="wplnst-elist-anchor-filters" class="wplnst-elist" cellspacing="0" cellpadding="0" border="0" data-editable="true" data-label="<?php _e('URL', 'custom-css-js'); ?>"></table>
101
+ <?php _e('URL', 'custom-css-js'); ?> <select id="wplnst-af-new-type"><?php echo $filters_html ?></select>&nbsp;
102
+ <input id="wplnst-af-new" type="text" class="regular-text" value="" placeholder="<?php _e('Text filter', 'custom-css-js'); ?>" />&nbsp;
103
+ <input class="button button-primary" type="button" id="wplnst-af-new-add" value="<?php _e('Add', 'custom-css-js'); ?>" /></td>
104
 
105
  <?php
106
  }
133
  ?>
134
  <table class="revisions">
135
  <thead><tr>
136
+ <th class="revisions-compare"><?php _e('Compare', 'custom-css-js'); ?></th>
137
+ <th><?php _e('Revision', 'custom-css-js'); ?></th>
138
+ <th><?php _e('Author', 'custom-css-js'); ?></th>
139
+ <th><input type="checkbox" name="delete[]" value="all" id="ccj-delete-checkbox" /> <?php _e('Delete', 'custom-css-js'); ?></th>
140
+ <th><?php _e('Restore', 'custom-css-js'); ?></th>
141
  </tr></thead>
142
  <tbody>
143
  <?php foreach( $revisions as $revision ) : ?>
160
  <input type="checkbox" name="delete[]" value="<?php echo $revision['ID']; ?>" <?php echo $delete_disabled . $delete_tooltip; ?>/>
161
  </td>
162
  <td class="revisions-restore">
163
+ <a href="<?php echo $restore_url; ?>"><?php _e('Restore', 'custom-css-js'); ?></a>
164
  </td>
165
  </tr>
166
  <?php endforeach; ?>
167
  <tr>
168
  <td>
169
+ <input type="button" class="button-secondary" value="<?php esc_attr_e('Compare', 'custom-css-js'); ?>" id="revisions-compare-button" />
170
  </td>
171
  <td colspan="2"> &nbsp;</td>
172
  <td>
173
+ <input type="button" class="button-secondary" value="<?php esc_attr_e('Delete', 'custom-css-js'); ?>" id="revisions-delete-button" />
174
  </td>
175
  <td> &nbsp; </td>
176
  </tr>
includes/admin-notices.php CHANGED
@@ -44,7 +44,7 @@ class CustomCSSandJS_Notices {
44
 
45
  if ( !isset($screen->post_type) || $screen->post_type !== 'custom-css-js' )
46
  return;
47
-
48
  if ( ! $notice = $this->choose_notice() )
49
  return;
50
 
@@ -86,18 +86,18 @@ class CustomCSSandJS_Notices {
86
  $days_passed = ceil( ( $now - $this->activation_time ) / 86400 );
87
 
88
  switch ( $days_passed ) {
89
- case 1 : return '1_day';
90
- case 2 : return '2_day';
91
- case 3 : break; //return '3_day';
 
92
  case 4 : break;
93
  case 5 : break;
94
- case 6 : break;
95
- case 7 : break; // return '7_day';
96
  case 8 : break;
97
  case 9 : break;
98
  case 10 : break;
99
- case 11 : break;
100
- case 12 : break; //return '12_day';
101
  }
102
  }
103
 
@@ -122,7 +122,7 @@ class CustomCSSandJS_Notices {
122
  $link = 'https://www.silkypress.com/simple-custom-css-js-pro/?a=' . $this->convert_numbers_letters( $this->activation_time ) . '&utm_source=wordpress&utm_campaign=ccj_free&utm_medium=banner';
123
  }
124
 
125
- $lower_part = sprintf( '<div style="margin-top: 7px;"><a href="%s" target="_blank">%s</a> | <a href="#" class="dismiss_notice" target="_parent">%s</a></div>', $link, 'Get your discount now', 'Dismiss this notice' );
126
 
127
  switch ( $notice ) {
128
  case '1_day' :
44
 
45
  if ( !isset($screen->post_type) || $screen->post_type !== 'custom-css-js' )
46
  return;
47
+
48
  if ( ! $notice = $this->choose_notice() )
49
  return;
50
 
86
  $days_passed = ceil( ( $now - $this->activation_time ) / 86400 );
87
 
88
  switch ( $days_passed ) {
89
+ case 0 : return '1_day';
90
+ case 1 : return '2_day';
91
+ case 2 : break; //return '3_day';
92
+ case 3 : break;
93
  case 4 : break;
94
  case 5 : break;
95
+ case 6 : break; // return '7_day';
96
+ case 7 : break;
97
  case 8 : break;
98
  case 9 : break;
99
  case 10 : break;
100
+ case 11 : break; //return '12_day';
 
101
  }
102
  }
103
 
122
  $link = 'https://www.silkypress.com/simple-custom-css-js-pro/?a=' . $this->convert_numbers_letters( $this->activation_time ) . '&utm_source=wordpress&utm_campaign=ccj_free&utm_medium=banner';
123
  }
124
 
125
+ $lower_part = sprintf( '<div style="margin-top: 7px;"><a href="%s" target="_blank">%s</a> | <a href="#" class="dismiss_notice" target="_parent">%s</a></div>', $link, __('Get your discount now', 'custom-css-js'), __('Dismiss this notice', 'custom-css-js') );
126
 
127
  switch ( $notice ) {
128
  case '1_day' :
includes/admin-screens.php CHANGED
@@ -13,11 +13,6 @@ if ( ! defined( 'ABSPATH' ) ) {
13
  */
14
  class CustomCSSandJS_Admin {
15
 
16
- /**
17
- * An instance of the CustomCSSandJS class
18
- */
19
- private $main = '';
20
-
21
  /**
22
  * Default options for a new page
23
  */
@@ -40,8 +35,6 @@ class CustomCSSandJS_Admin {
40
  public function __construct() {
41
 
42
  $this->add_functions();
43
-
44
- $this->main = CustomCSSandJS();
45
  }
46
 
47
  /**
@@ -59,26 +52,27 @@ class CustomCSSandJS_Admin {
59
 
60
  // Add actions
61
  $actions = array(
62
- 'admin_menu' => 'admin_menu',
63
- 'admin_enqueue_scripts' => 'admin_enqueue_scripts',
64
- 'current_screen' => 'current_screen',
65
- 'admin_notices' => 'create_uploads_directory',
66
- 'edit_form_after_title' => 'codemirror_editor',
67
- 'add_meta_boxes' => 'add_meta_boxes',
68
- 'save_post' => 'options_save_meta_box_data',
69
- 'trashed_post' => 'trash_post',
70
- 'untrashed_post' => 'trash_post',
71
- 'admin_post_ccj-autosave' => 'ajax_autosave',
72
- 'wp_loaded' => 'compatibility_shortcoder',
73
- 'wp_ajax_ccj_active_code' => 'wp_ajax_ccj_active_code',
74
  );
75
  foreach( $actions as $_key => $_value ) {
76
  add_action( $_key, array( $this, $_value ) );
77
  }
78
 
79
 
80
- // Add some custom actions
81
  add_action( 'manage_custom-css-js_posts_custom_column', array( $this, 'manage_posts_columns' ), 10, 2 );
 
82
  }
83
 
84
 
@@ -89,16 +83,17 @@ class CustomCSSandJS_Admin {
89
  $menu_slug = 'edit.php?post_type=custom-css-js';
90
  $submenu_slug = 'post-new.php?post_type=custom-css-js';
91
 
92
- $title = __('Add Custom CSS');
93
- add_submenu_page( $menu_slug, $title, $title, 'manage_options', $submenu_slug .'&language=css');
94
 
95
- $title = __('Add Custom JS');
96
- add_submenu_page( $menu_slug, $title, $title, 'manage_options', $submenu_slug . '&language=js');
97
 
98
- $title = __('Add Custom HTML');
99
- add_submenu_page( $menu_slug, $title, $title, 'manage_options', $submenu_slug . '&language=html');
 
 
 
100
 
101
- remove_submenu_page( $menu_slug, $submenu_slug);
102
  }
103
 
104
 
@@ -114,7 +109,7 @@ class CustomCSSandJS_Admin {
114
  return false;
115
 
116
  // Some handy variables
117
- $a = plugins_url( '/', $this->main->plugin_file ). 'assets';
118
  $cm = $a . '/codemirror';
119
  $v = CCJ_VERSION;
120
 
@@ -160,7 +155,13 @@ class CustomCSSandJS_Admin {
160
  public function cm_localize() {
161
 
162
  $vars = array(
163
- 'scroll' => '1'
 
 
 
 
 
 
164
  );
165
 
166
  if ( ! function_exists( 'is_plugin_active' ) ) {
@@ -173,6 +174,7 @@ class CustomCSSandJS_Admin {
173
  'advanced-ads-code-highlighter/advanced-ads-code-highlighter.php',
174
  'wp-custom-backend-css/wp-custom-backend-css.php',
175
  'custom-css-whole-site-and-per-post/h5ab-custom-styling.php',
 
176
  );
177
 
178
  foreach( $conflicting_plugins as $_plugin ) {
@@ -185,7 +187,7 @@ class CustomCSSandJS_Admin {
185
  }
186
 
187
  public function add_meta_boxes() {
188
- add_meta_box('custom-code-options', __('Options'), array( $this, 'custom_code_options_meta_box_callback'), 'custom-css-js', 'side', 'low');
189
 
190
  remove_meta_box( 'slugdiv', 'custom-css-js', 'normal' );
191
  }
@@ -245,9 +247,9 @@ class CustomCSSandJS_Admin {
245
  }
246
  ?>
247
  <div class="updated buttons">
248
- <a href="post-new.php?post_type=custom-css-js&language=css" class="custom-btn custom-css-btn">Add CSS code</a>
249
- <a href="post-new.php?post_type=custom-css-js&language=js" class="custom-btn custom-js-btn">Add JS code</a>
250
- <a href="post-new.php?post_type=custom-css-js&language=html" class="custom-btn custom-js-btn">Add HTML code</a>
251
  <!-- a href="post-new.php?post_type=custom-css-js&language=php" class="custom-btn custom-php-btn">Add PHP code</a -->
252
  </div>
253
  <?php
@@ -260,13 +262,13 @@ class CustomCSSandJS_Admin {
260
  */
261
  function manage_custom_posts_columns( $columns ) {
262
  return array(
263
- 'cb' => '<input type="checkbox" />',
264
- 'active' => '<span class="ccj-dashicons dashicons dashicons-star-empty" title="Active"></span>',
265
- 'type' => 'Type',
266
- 'title' => 'Title',
267
- 'author' => 'Author',
268
- 'date' => 'Date',
269
- 'modified' => 'Modified',
270
  );
271
  }
272
 
@@ -304,15 +306,17 @@ class CustomCSSandJS_Admin {
304
  }
305
 
306
  if ( $column == 'active' ) {
307
- $url = wp_nonce_url( admin_url( 'admin-ajax.php?action=ccj_active_code&code_id=' . $post_id ), 'ccj-active-code' );
308
- echo '<a href="' . esc_url( $url ) . '" title="'. __( 'Toggle active' ) . '">';
309
  if ( $this->is_active( $post_id ) ) {
310
- echo '<span class="dashicons dashicons-star-filled" title="The code is active. Click to inactivate it"></span>';
 
311
  } else {
312
- echo '<span class="dashicons dashicons-star-empty ccj_row" title="The code is inactive. Click to activate it"></span>';
 
313
  }
314
- echo '</a>';
315
-
 
316
  }
317
  }
318
 
@@ -324,21 +328,24 @@ class CustomCSSandJS_Admin {
324
  function wp_ajax_ccj_active_code() {
325
  if ( ! isset( $_GET['code_id'] ) ) die();
326
 
327
- if ( check_admin_referer( 'ccj-active-code' ) ) {
328
- $code_id = absint( $_GET['code_id'] );
 
 
329
 
330
  if ( 'custom-css-js' === get_post_type( $code_id ) ) {
331
  $active = get_post_meta($code_id, '_active', true );
332
  if ( $active === false || $active === '' ) {
333
  $active = 'yes';
334
  }
 
335
  update_post_meta( $code_id, '_active', $active === 'yes' ? 'no' : 'yes' );
336
 
337
  $this->build_search_tree();
338
  }
339
  }
 
340
 
341
- wp_safe_redirect( wp_get_referer() ? remove_query_arg( array( 'trashed', 'untrashed', 'deleted', 'ids' ), wp_get_referer() ) : admin_url( 'edit.php?post_type=custom-css-js' ) );
342
  die();
343
  }
344
 
@@ -359,10 +366,10 @@ class CustomCSSandJS_Admin {
359
  <script type="text/javascript">
360
  /* <![CDATA[ */
361
  jQuery(window).ready(function($){
362
- var h1 = 'Custom Code ';
363
- h1 += '<a href="post-new.php?post_type=custom-css-js&language=css" class="page-title-action">Add CSS Code</a>';
364
- h1 += '<a href="post-new.php?post_type=custom-css-js&language=js" class="page-title-action">Add JS Code</a>';
365
- h1 += '<a href="post-new.php?post_type=custom-css-js&language=html" class="page-title-action">Add HTML Code</a>';
366
  $("#wpbody-content h1").html(h1);
367
  });
368
 
@@ -371,29 +378,38 @@ class CustomCSSandJS_Admin {
371
  }
372
 
373
 
374
-
375
  /**
376
  * Reformat the `post` screen
377
  */
378
  function current_screen_post() {
379
 
380
  $this->remove_unallowed_metaboxes();
 
 
 
 
 
 
 
 
 
381
 
382
  if ( isset( $_GET['post'] ) ) {
383
  $action = 'Edit';
384
- $language = $this->get_options( $_GET['post'] );
385
- $language = $language['language'];
386
  } else {
387
  $action = 'Add';
388
- $language = isset( $_GET['language'] ) ? $_GET['language'] : 'css';
389
  }
 
390
 
391
- $title = $action . ' ' . strtoupper( $language ) . ' code';
 
392
 
393
  if ( $action == 'Edit' ) {
394
- $title .= ' <a href="post-new.php?post_type=custom-css-js&language=css" class="page-title-action">Add CSS Code</a> ';
395
- $title .= '<a href="post-new.php?post_type=custom-css-js&language=js" class="page-title-action">Add JS Code</a>';
396
- $title .= '<a href="post-new.php?post_type=custom-css-js&language=html" class="page-title-action">Add HTML Code</a>';
397
  }
398
 
399
  ?>
@@ -401,7 +417,7 @@ class CustomCSSandJS_Admin {
401
  /* <![CDATA[ */
402
  jQuery(window).ready(function($){
403
  $("#wpbody-content h1").html('<?php echo $title; ?>');
404
- $("#message.updated.notice").html('<p>Code updated</p>');
405
 
406
  var from_top = -$("#normal-sortables").height();
407
  if ( from_top != 0 ) {
@@ -432,6 +448,7 @@ class CustomCSSandJS_Admin {
432
  function remove_unallowed_metaboxes() {
433
  global $wp_meta_boxes;
434
 
 
435
  $allowed = array( 'submitdiv', 'custom-code-options' );
436
 
437
  $allowed = apply_filters( 'custom-css-js-meta-boxes', $allowed );
@@ -443,6 +460,22 @@ class CustomCSSandJS_Admin {
443
  }
444
  }
445
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
446
  }
447
 
448
 
@@ -459,18 +492,18 @@ class CustomCSSandJS_Admin {
459
 
460
  if ( empty( $post->title ) && empty( $post->post_content ) ) {
461
  $new_post = true;
462
- $language = isset( $_GET['language'] ) ? $_GET['language'] : 'css';
463
  } else {
464
  $new_post = false;
465
  if ( ! isset( $_GET['post'] ) ) $_GET['post'] = $post->id;
466
- $language = $this->get_options( $_GET['post'] );
467
- $language = $language['language'];
468
  }
 
469
 
470
  switch ( $language ) {
471
  case 'js' :
472
  if ( $new_post ) {
473
- $post->post_content = '/* Add your JavaScript code here.
474
 
475
  If you are using the jQuery library, then don\'t forget to wrap your code inside jQuery.ready() as follows:
476
 
@@ -478,7 +511,13 @@ jQuery(document).ready(function( $ ){
478
  // Your code in here
479
  });
480
 
481
- End of comment */ ' . PHP_EOL . PHP_EOL;
 
 
 
 
 
 
482
  }
483
  $code_mirror_mode = 'text/javascript';
484
  $code_mirror_before = '<script type="text/javascript">';
@@ -486,7 +525,7 @@ End of comment */ ' . PHP_EOL . PHP_EOL;
486
  break;
487
  case 'html' :
488
  if ( $new_post ) {
489
- $post->post_content = '<!-- Add HTML code to the header or the footer.
490
 
491
  For example, you can use the following code for loading the jQuery library from Google CDN:
492
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
@@ -494,7 +533,7 @@ For example, you can use the following code for loading the jQuery library from
494
  or the following one for loading the Bootstrap library from MaxCDN:
495
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
496
 
497
- -- End of the comment --> ' . PHP_EOL . PHP_EOL;
498
  }
499
  $code_mirror_mode = 'html';
500
  $code_mirror_before = '';
@@ -512,7 +551,7 @@ or the following one for loading the Bootstrap library from MaxCDN:
512
  break;
513
  default :
514
  if ( $new_post ) {
515
- $post->post_content = '/* Add your CSS code here.
516
 
517
  For example:
518
  .example {
@@ -521,7 +560,7 @@ For example:
521
 
522
  For brushing up on your CSS knowledge, check out http://www.w3schools.com/css/css_syntax.asp
523
 
524
- End of comment */ ' . PHP_EOL . PHP_EOL;
525
 
526
  }
527
  $code_mirror_mode = 'text/css';
@@ -534,7 +573,7 @@ End of comment */ ' . PHP_EOL . PHP_EOL;
534
  <form style="position: relative; margin-top: .5em;">
535
 
536
  <div class="code-mirror-before"><div><?php echo htmlentities( $code_mirror_before );?></div></div>
537
- <textarea class="wp-editor-area" id="content" mode="<?php echo htmlentities($code_mirror_mode); ?>" name="content"><?php echo htmlentities($post->post_content); ?></textarea>
538
  <div class="code-mirror-after"><div><?php echo htmlentities( $code_mirror_after );?></div></div>
539
 
540
  <input type="hidden" id="update-post_<?php echo $post->ID ?>" value="<?php echo wp_create_nonce('update-post_'. $post->ID ); ?>" />
@@ -556,7 +595,7 @@ End of comment */ ' . PHP_EOL . PHP_EOL;
556
 
557
 
558
  if ( isset( $_GET['language'] ) ) {
559
- $options['language'] = $_GET['language'];
560
  }
561
 
562
  $meta = $this->get_options_meta();
@@ -611,7 +650,7 @@ End of comment */ ' . PHP_EOL . PHP_EOL;
611
 
612
  <div class="ccj_only_premium ccj_only_premium-right">
613
  <div>
614
- <a href="https://www.silkypress.com/simple-custom-css-js-pro/?utm_source=wordpress&utm_campaign=ccj_free&utm_medium=banner" target="_blank">Available only in <br />Simple Custom CSS and JS Pro</a>
615
  </div>
616
  </div>
617
 
@@ -626,81 +665,85 @@ End of comment */ ' . PHP_EOL . PHP_EOL;
626
  function get_options_meta() {
627
  $options = array(
628
  'linking' => array(
629
- 'title' => 'Linking type',
630
  'type' => 'radio',
631
  'default' => 'internal',
632
  'values' => array(
633
  'external' => array(
634
- 'title' => 'External File',
635
  'dashicon' => 'media-code',
636
  ),
637
  'internal' => array(
638
- 'title' => 'Internal',
639
  'dashicon' => 'editor-alignleft',
640
  ),
641
  ),
642
  ),
643
  'type' => array(
644
- 'title' => 'Where on page',
645
  'type' => 'radio',
646
  'default' => 'header',
647
  'values' => array(
648
  'header' => array(
649
- 'title' => 'Header',
650
  'dashicon' => 'arrow-up-alt2',
651
  ),
652
  'footer' => array(
653
- 'title' => 'Footer',
654
  'dashicon' => 'arrow-down-alt2',
655
  ),
656
  ),
657
  ),
658
  'side' => array(
659
- 'title' => 'Where in site',
660
  'type' => 'radio',
661
  'default' => 'frontend',
662
  'values' => array(
663
  'frontend' => array(
664
- 'title' => 'In Frontend',
665
  'dashicon' => 'tagcloud',
666
  ),
667
  'admin' => array(
668
- 'title' => 'In Admin',
669
  'dashicon' => 'id',
670
  ),
 
 
 
 
671
  ),
672
  ),
673
  'preprocessor' => array(
674
- 'title' => 'CSS Preprocessor',
675
  'type' => 'radio',
676
  'default' => 'none',
677
  'values' => array(
678
  'none' => array(
679
- 'title' => 'None',
680
  ),
681
  'less' => array(
682
- 'title' => 'Less',
683
  ),
684
  'sass' => array(
685
- 'title' => 'SASS (only SCSS syntax)',
686
  ),
687
  ),
688
  'disabled' => true,
689
  ),
690
  'minify' => array(
691
- 'title' => 'Minify the code',
692
  'type' => 'checkbox',
693
  'default' => false,
694
  'dashicon' => 'editor-contract',
695
  'disabled' => true,
696
  ),
697
  'priority' => array(
698
- 'title' => 'Priority',
699
  'type' => 'select',
700
  'default' => 5,
701
  'dashicon' => 'sort',
702
  'values' => array(
703
- 1 => '1 (highest)',
704
  2 => '2',
705
  3 => '3',
706
  4 => '4',
@@ -709,7 +752,7 @@ End of comment */ ' . PHP_EOL . PHP_EOL;
709
  7 => '7',
710
  8 => '8',
711
  9 => '9',
712
- 10 => '10 (lowest)',
713
  ),
714
  'disabled' => true,
715
  ),
@@ -725,63 +768,63 @@ End of comment */ ' . PHP_EOL . PHP_EOL;
725
  function get_options_meta_html() {
726
  $options = array(
727
  'type' => array(
728
- 'title' => 'Where on page',
729
  'type' => 'radio',
730
  'default' => 'header',
731
  'values' => array(
732
  'header' => array(
733
- 'title' => 'Header',
734
  'dashicon' => 'arrow-up-alt2',
735
  ),
736
  'footer' => array(
737
- 'title' => 'Footer',
738
  'dashicon' => 'arrow-down-alt2',
739
  ),
740
  ),
741
  ),
742
  'side' => array(
743
- 'title' => 'Where in site',
744
  'type' => 'radio',
745
  'default' => 'frontend',
746
  'values' => array(
747
  'frontend' => array(
748
- 'title' => 'In Frontend',
749
  'dashicon' => 'tagcloud',
750
  ),
751
  'admin' => array(
752
- 'title' => 'In Admin',
753
  'dashicon' => 'id',
754
  ),
755
  ),
756
  ),
757
  'linking' => array(
758
- 'title' => 'On which device',
759
  'type' => 'radio',
760
  'default' => 'both',
761
  'dashicon' => '',
762
  'values' => array(
763
  'desktop' => array(
764
- 'title' => 'Desktop',
765
  'dashicon' => 'desktop',
766
  ),
767
  'mobile' => array(
768
- 'title' => 'Mobile',
769
  'dashicon' => 'smartphone',
770
  ),
771
  'both' => array(
772
- 'title' => 'Both',
773
  'dashicon' => 'tablet',
774
  ),
775
  ),
776
  'disabled' => true,
777
  ),
778
  'priority' => array(
779
- 'title' => 'Priority',
780
  'type' => 'select',
781
  'default' => 5,
782
  'dashicon' => 'sort',
783
  'values' => array(
784
- 1 => '1 (highest)',
785
  2 => '2',
786
  3 => '3',
787
  4 => '4',
@@ -790,7 +833,7 @@ End of comment */ ' . PHP_EOL . PHP_EOL;
790
  7 => '7',
791
  8 => '8',
792
  9 => '9',
793
- 10 => '10 (lowest)',
794
  ),
795
  'disabled' => true,
796
  ),
@@ -843,7 +886,7 @@ End of comment */ ' . PHP_EOL . PHP_EOL;
843
  }
844
 
845
  foreach( $defaults as $_field => $_default ) {
846
- $options[ $_field ] = isset( $_POST['custom_code_'.$_field] ) ? $_POST['custom_code_'.$_field] : $_default;
847
  }
848
 
849
  update_post_meta( $post_id, 'options', $options );
@@ -877,10 +920,10 @@ End of comment */ ' . PHP_EOL . PHP_EOL;
877
  'Saved: '.date('M d Y | H:i:s').' */' . PHP_EOL;
878
  }
879
 
880
- if ( wp_is_writable( $this->main->upload_dir ) ) {
881
  $file_name = $post_id . '.' . $options['language'];
882
  $file_content = $before . stripslashes($_POST['content']) . $after;
883
- @file_put_contents( $this->main->upload_dir . '/' . $file_name , $file_content );
884
  }
885
 
886
 
@@ -902,7 +945,7 @@ End of comment */ ' . PHP_EOL . PHP_EOL;
902
  return false;
903
  }
904
 
905
- $dir = $this->main->upload_dir;
906
 
907
  // Create the dir if it doesn't exist
908
  if ( ! file_exists( $dir ) ) {
@@ -912,8 +955,8 @@ End of comment */ ' . PHP_EOL . PHP_EOL;
912
  // Show a message if it couldn't create the dir
913
  if ( ! file_exists( $dir ) ) : ?>
914
  <div class="notice notice-error is-dismissible">
915
- <p>The <b>custom-css-js</b> directory could not be created</p>
916
- <p>Please run the following commands in order to make the directory: <br /><strong>mkdir <?php echo $dir; ?>; </strong><br /><strong>chmod 777 <?php echo $dir; ?>;</strong></p>
917
  </div>
918
  <?php return; endif;
919
 
@@ -921,8 +964,8 @@ End of comment */ ' . PHP_EOL . PHP_EOL;
921
  // Show a message if the dir is not writable
922
  if ( ! wp_is_writable( $dir ) ) : ?>
923
  <div class="notice notice-error is-dismissible">
924
- <p>The <b><?php echo $dir; ?></b> directory is not writable, therefore the CSS and JS files cannot be saved.</p>
925
- <p>Please run the following command to make the directory writable:<br /><strong>chmod 777 <?php echo $dir; ?> </strong></p>
926
  </div>
927
  <?php return; endif;
928
 
@@ -1048,6 +1091,76 @@ End of comment */ ' . PHP_EOL . PHP_EOL;
1048
  }
1049
 
1050
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1051
  }
1052
 
1053
  return new CustomCSSandJS_Admin();
13
  */
14
  class CustomCSSandJS_Admin {
15
 
 
 
 
 
 
16
  /**
17
  * Default options for a new page
18
  */
35
  public function __construct() {
36
 
37
  $this->add_functions();
 
 
38
  }
39
 
40
  /**
52
 
53
  // Add actions
54
  $actions = array(
55
+ 'admin_menu' => 'admin_menu',
56
+ 'admin_enqueue_scripts' => 'admin_enqueue_scripts',
57
+ 'current_screen' => 'current_screen',
58
+ 'admin_notices' => 'create_uploads_directory',
59
+ 'edit_form_after_title' => 'codemirror_editor',
60
+ 'add_meta_boxes' => 'add_meta_boxes',
61
+ 'save_post' => 'options_save_meta_box_data',
62
+ 'trashed_post' => 'trash_post',
63
+ 'untrashed_post' => 'trash_post',
64
+ 'wp_loaded' => 'compatibility_shortcoder',
65
+ 'wp_ajax_ccj_active_code' => 'wp_ajax_ccj_active_code',
66
+ 'post_submitbox_start' => 'post_submitbox_start',
67
  );
68
  foreach( $actions as $_key => $_value ) {
69
  add_action( $_key, array( $this, $_value ) );
70
  }
71
 
72
 
73
+ // Add some custom actions/filters
74
  add_action( 'manage_custom-css-js_posts_custom_column', array( $this, 'manage_posts_columns' ), 10, 2 );
75
+ add_filter( 'post_row_actions', array( $this, 'post_row_actions' ), 10, 2 );
76
  }
77
 
78
 
83
  $menu_slug = 'edit.php?post_type=custom-css-js';
84
  $submenu_slug = 'post-new.php?post_type=custom-css-js';
85
 
86
+ remove_submenu_page( $menu_slug, $submenu_slug);
 
87
 
88
+ $title = __('Add Custom CSS', 'custom-css-js');
89
+ add_submenu_page( $menu_slug, $title, $title, 'publish_custom_csss', $submenu_slug .'&language=css');
90
 
91
+ $title = __('Add Custom JS', 'custom-css-js');
92
+ add_submenu_page( $menu_slug, $title, $title, 'publish_custom_csss', $submenu_slug . '&language=js');
93
+
94
+ $title = __('Add Custom HTML', 'custom-css-js');
95
+ add_submenu_page( $menu_slug, $title, $title, 'publish_custom_csss', $submenu_slug . '&language=html');
96
 
 
97
  }
98
 
99
 
109
  return false;
110
 
111
  // Some handy variables
112
+ $a = plugins_url( '/', CCJ_PLUGIN_FILE). 'assets';
113
  $cm = $a . '/codemirror';
114
  $v = CCJ_VERSION;
115
 
155
  public function cm_localize() {
156
 
157
  $vars = array(
158
+ 'scroll' => '1',
159
+ 'active' => __('Active', 'custom-css-js'),
160
+ 'inactive' => __('Inactive', 'custom-css-js'),
161
+ 'activate' => __('Activate', 'custom-css-js'),
162
+ 'deactivate' => __('Deactivate', 'custom-css-js'),
163
+ 'active_title' => __('The code is active. Click to deactivate it', 'custom-css-js'),
164
+ 'deactive_title' => __('The code is inactive. Click to activate it', 'custom-css-js'),
165
  );
166
 
167
  if ( ! function_exists( 'is_plugin_active' ) ) {
174
  'advanced-ads-code-highlighter/advanced-ads-code-highlighter.php',
175
  'wp-custom-backend-css/wp-custom-backend-css.php',
176
  'custom-css-whole-site-and-per-post/h5ab-custom-styling.php',
177
+ 'html-editor-syntax-highlighter/html-editor-syntax-highlighter.php',
178
  );
179
 
180
  foreach( $conflicting_plugins as $_plugin ) {
187
  }
188
 
189
  public function add_meta_boxes() {
190
+ add_meta_box('custom-code-options', __('Options', 'custom-css-js'), array( $this, 'custom_code_options_meta_box_callback'), 'custom-css-js', 'side', 'low');
191
 
192
  remove_meta_box( 'slugdiv', 'custom-css-js', 'normal' );
193
  }
247
  }
248
  ?>
249
  <div class="updated buttons">
250
+ <a href="post-new.php?post_type=custom-css-js&language=css" class="custom-btn custom-css-btn"><?php _e('Add CSS code', 'custom-css-js'); ?></a>
251
+ <a href="post-new.php?post_type=custom-css-js&language=js" class="custom-btn custom-js-btn"><?php _e('Add JS code', 'custom-css-js'); ?></a>
252
+ <a href="post-new.php?post_type=custom-css-js&language=html" class="custom-btn custom-js-btn"><?php _e('Add HTML code', 'custom-css-js'); ?></a>
253
  <!-- a href="post-new.php?post_type=custom-css-js&language=php" class="custom-btn custom-php-btn">Add PHP code</a -->
254
  </div>
255
  <?php
262
  */
263
  function manage_custom_posts_columns( $columns ) {
264
  return array(
265
+ 'cb' => '<input type="checkbox" />',
266
+ 'active' => '<span class="ccj-dashicons dashicons dashicons-star-empty" title="'.__('Active', 'custom-css-js') .'"></span>',
267
+ 'type' => __('Type', 'custom-css-js'),
268
+ 'title' => __('Title', 'custom-css-js'),
269
+ 'author' => __('Author', 'custom-css-js'),
270
+ 'date' => __('Date', 'custom-css-js'),
271
+ 'modified' => __('Modified', 'custom-css-js'),
272
  );
273
  }
274
 
306
  }
307
 
308
  if ( $column == 'active' ) {
309
+ $url = wp_nonce_url( admin_url( 'admin-ajax.php?action=ccj_active_code&code_id=' . $post_id ), 'ccj-active-code-' .$post_id );
 
310
  if ( $this->is_active( $post_id ) ) {
311
+ $active_title = __('The code is active. Click to deactivate it', 'custom-css-js');
312
+ $active_icon = 'dashicons-star-filled';
313
  } else {
314
+ $active_title = __('The code is inactive. Click to activate it', 'custom-css-js');
315
+ $active_icon = 'dashicons-star-empty ccj_row';
316
  }
317
+ echo '<a href="' . esc_url( $url ) . '" class="ccj_activate_deactivate" data-code-id="'.$post_id.'" title="'.$active_title . '">' .
318
+ '<span class="dashicons '.$active_icon.'"></span>'.
319
+ '</a>';
320
  }
321
  }
322
 
328
  function wp_ajax_ccj_active_code() {
329
  if ( ! isset( $_GET['code_id'] ) ) die();
330
 
331
+ $code_id = absint( $_GET['code_id'] );
332
+
333
+ $response = 'error';
334
+ if ( check_admin_referer( 'ccj-active-code-' . $code_id) ) {
335
 
336
  if ( 'custom-css-js' === get_post_type( $code_id ) ) {
337
  $active = get_post_meta($code_id, '_active', true );
338
  if ( $active === false || $active === '' ) {
339
  $active = 'yes';
340
  }
341
+ $response = $active;
342
  update_post_meta( $code_id, '_active', $active === 'yes' ? 'no' : 'yes' );
343
 
344
  $this->build_search_tree();
345
  }
346
  }
347
+ echo $response;
348
 
 
349
  die();
350
  }
351
 
366
  <script type="text/javascript">
367
  /* <![CDATA[ */
368
  jQuery(window).ready(function($){
369
+ var h1 = '<?php _e('Custom Code', 'custom-css-js'); ?> ';
370
+ h1 += '<a href="post-new.php?post_type=custom-css-js&language=css" class="page-title-action"><?php _e('Add CSS Code', 'custom-css-js'); ?></a>';
371
+ h1 += '<a href="post-new.php?post_type=custom-css-js&language=js" class="page-title-action"><?php _e('Add JS Code', 'custom-css-js'); ?></a>';
372
+ h1 += '<a href="post-new.php?post_type=custom-css-js&language=html" class="page-title-action"><?php _e('Add HTML Code', 'custom-css-js'); ?></a>';
373
  $("#wpbody-content h1").html(h1);
374
  });
375
 
378
  }
379
 
380
 
 
381
  /**
382
  * Reformat the `post` screen
383
  */
384
  function current_screen_post() {
385
 
386
  $this->remove_unallowed_metaboxes();
387
+
388
+ $strings = array(
389
+ 'Add CSS Code' => __('Add CSS Code', 'custom-css-js'),
390
+ 'Add JS Code' => __('Add JS Code', 'custom-css-js'),
391
+ 'Add HTML Code' => __('Add HTML Code', 'custom-css-js'),
392
+ 'Edit CSS Code' => __('Edit CSS Code', 'custom-css-js'),
393
+ 'Edit JS Code' => __('Edit JS Code', 'custom-css-js'),
394
+ 'Edit HTML Code' => __('Edit HTML Code', 'custom-css-js'),
395
+ );
396
 
397
  if ( isset( $_GET['post'] ) ) {
398
  $action = 'Edit';
399
+ $post_id = esc_attr($_GET['post']);
 
400
  } else {
401
  $action = 'Add';
402
+ $post_id = false;
403
  }
404
+ $language = $this->get_language($post_id);
405
 
406
+ $title = $action . ' ' . strtoupper( $language ) . ' Code';
407
+ $title = (isset($strings[$title])) ? $strings[$title] : $strings['Add CSS Code'];
408
 
409
  if ( $action == 'Edit' ) {
410
+ $title .= ' <a href="post-new.php?post_type=custom-css-js&language=css" class="page-title-action">'.__('Add CSS Code', 'custom-css-js') .'</a> ';
411
+ $title .= '<a href="post-new.php?post_type=custom-css-js&language=js" class="page-title-action">'.__('Add JS Code', 'custom-css-js') .'</a>';
412
+ $title .= '<a href="post-new.php?post_type=custom-css-js&language=html" class="page-title-action">'.__('Add HTML Code', 'custom-css-js') .'</a>';
413
  }
414
 
415
  ?>
417
  /* <![CDATA[ */
418
  jQuery(window).ready(function($){
419
  $("#wpbody-content h1").html('<?php echo $title; ?>');
420
+ $("#message.updated.notice").html('<p><?php _e('Code updated', 'custom-css-js'); ?></p>');
421
 
422
  var from_top = -$("#normal-sortables").height();
423
  if ( from_top != 0 ) {
448
  function remove_unallowed_metaboxes() {
449
  global $wp_meta_boxes;
450
 
451
+ // Side boxes
452
  $allowed = array( 'submitdiv', 'custom-code-options' );
453
 
454
  $allowed = apply_filters( 'custom-css-js-meta-boxes', $allowed );
460
  }
461
  }
462
  }
463
+
464
+ // Normal boxes
465
+ $allowed = array( 'slugdiv', 'previewdiv', 'url-rules', 'revisionsdiv' );
466
+
467
+ $allowed = apply_filters( 'custom-css-js-meta-boxes-normal', $allowed );
468
+
469
+ foreach( $wp_meta_boxes['custom-css-js']['normal'] as $_priority => $_boxes ) {
470
+ foreach( $_boxes as $_key => $_value ) {
471
+ if ( ! in_array( $_key, $allowed ) ) {
472
+ unset( $wp_meta_boxes['custom-css-js']['normal'][$_priority][$_key] );
473
+ }
474
+ }
475
+ }
476
+
477
+
478
+ unset($wp_meta_boxes['custom-css-js']['advanced']);
479
  }
480
 
481
 
492
 
493
  if ( empty( $post->title ) && empty( $post->post_content ) ) {
494
  $new_post = true;
495
+ $post_id = false;
496
  } else {
497
  $new_post = false;
498
  if ( ! isset( $_GET['post'] ) ) $_GET['post'] = $post->id;
499
+ $post_id = esc_attr($_GET['post']);
 
500
  }
501
+ $language = $this->get_language($post_id);
502
 
503
  switch ( $language ) {
504
  case 'js' :
505
  if ( $new_post ) {
506
+ $post->post_content = __('/* Add your JavaScript code here.
507
 
508
  If you are using the jQuery library, then don\'t forget to wrap your code inside jQuery.ready() as follows:
509
 
511
  // Your code in here
512
  });
513
 
514
+ --
515
+
516
+ If you want to link a JavaScript file that resides on another server (similar to
517
+ <script src="https://example.com/your-js-file.js"></script>), then please use
518
+ the "Add HTML Code" page, as this is a HTML code that links a JavaScript file.
519
+
520
+ End of comment */ ', 'custom-css-js') . PHP_EOL . PHP_EOL;
521
  }
522
  $code_mirror_mode = 'text/javascript';
523
  $code_mirror_before = '<script type="text/javascript">';
525
  break;
526
  case 'html' :
527
  if ( $new_post ) {
528
+ $post->post_content = __('<!-- Add HTML code to the header or the footer.
529
 
530
  For example, you can use the following code for loading the jQuery library from Google CDN:
531
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
533
  or the following one for loading the Bootstrap library from MaxCDN:
534
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
535
 
536
+ -- End of the comment --> ', 'custom-css-js') . PHP_EOL . PHP_EOL;
537
  }
538
  $code_mirror_mode = 'html';
539
  $code_mirror_before = '';
551
  break;
552
  default :
553
  if ( $new_post ) {
554
+ $post->post_content = __('/* Add your CSS code here.
555
 
556
  For example:
557
  .example {
560
 
561
  For brushing up on your CSS knowledge, check out http://www.w3schools.com/css/css_syntax.asp
562
 
563
+ End of comment */ ', 'custom-css-js') . PHP_EOL . PHP_EOL;
564
 
565
  }
566
  $code_mirror_mode = 'text/css';
573
  <form style="position: relative; margin-top: .5em;">
574
 
575
  <div class="code-mirror-before"><div><?php echo htmlentities( $code_mirror_before );?></div></div>
576
+ <textarea class="wp-editor-area" id="content" mode="<?php echo htmlentities($code_mirror_mode); ?>" name="content"><?php echo $post->post_content; ?></textarea>
577
  <div class="code-mirror-after"><div><?php echo htmlentities( $code_mirror_after );?></div></div>
578
 
579
  <input type="hidden" id="update-post_<?php echo $post->ID ?>" value="<?php echo wp_create_nonce('update-post_'. $post->ID ); ?>" />
595
 
596
 
597
  if ( isset( $_GET['language'] ) ) {
598
+ $options['language'] = $this->get_language();
599
  }
600
 
601
  $meta = $this->get_options_meta();
650
 
651
  <div class="ccj_only_premium ccj_only_premium-right">
652
  <div>
653
+ <a href="https://www.silkypress.com/simple-custom-css-js-pro/?utm_source=wordpress&utm_campaign=ccj_free&utm_medium=banner" target="_blank"><?php _e('Available only in <br />Simple Custom CSS and JS Pro', 'custom-css-js'); ?></a>
654
  </div>
655
  </div>
656
 
665
  function get_options_meta() {
666
  $options = array(
667
  'linking' => array(
668
+ 'title' => __('Linking type', 'custom-css-js'),
669
  'type' => 'radio',
670
  'default' => 'internal',
671
  'values' => array(
672
  'external' => array(
673
+ 'title' => __('External File', 'custom-css-js'),
674
  'dashicon' => 'media-code',
675
  ),
676
  'internal' => array(
677
+ 'title' => __('Internal', 'custom-css-js'),
678
  'dashicon' => 'editor-alignleft',
679
  ),
680
  ),
681
  ),
682
  'type' => array(
683
+ 'title' => __('Where on page', 'custom-css-js'),
684
  'type' => 'radio',
685
  'default' => 'header',
686
  'values' => array(
687
  'header' => array(
688
+ 'title' => __('Header', 'custom-css-js'),
689
  'dashicon' => 'arrow-up-alt2',
690
  ),
691
  'footer' => array(
692
+ 'title' => __('Footer', 'custom-css-js'),
693
  'dashicon' => 'arrow-down-alt2',
694
  ),
695
  ),
696
  ),
697
  'side' => array(
698
+ 'title' => __('Where in site', 'custom-css-js'),
699
  'type' => 'radio',
700
  'default' => 'frontend',
701
  'values' => array(
702
  'frontend' => array(
703
+ 'title' => __('In Frontend', 'custom-css-js'),
704
  'dashicon' => 'tagcloud',
705
  ),
706
  'admin' => array(
707
+ 'title' => __('In Admin', 'custom-css-js'),
708
  'dashicon' => 'id',
709
  ),
710
+ 'login' => array(
711
+ 'title' => __('On Login Page', 'custom-css-js'),
712
+ 'dashicon' => 'admin-network',
713
+ ),
714
  ),
715
  ),
716
  'preprocessor' => array(
717
+ 'title' => __('CSS Preprocessor', 'custom-css-js'),
718
  'type' => 'radio',
719
  'default' => 'none',
720
  'values' => array(
721
  'none' => array(
722
+ 'title' => __('None', 'custom-css-js'),
723
  ),
724
  'less' => array(
725
+ 'title' => __('Less', 'custom-css-js'),
726
  ),
727
  'sass' => array(
728
+ 'title' => __('SASS (only SCSS syntax)', 'custom-css-js'),
729
  ),
730
  ),
731
  'disabled' => true,
732
  ),
733
  'minify' => array(
734
+ 'title' => __('Minify the code', 'custom-css-js'),
735
  'type' => 'checkbox',
736
  'default' => false,
737
  'dashicon' => 'editor-contract',
738
  'disabled' => true,
739
  ),
740
  'priority' => array(
741
+ 'title' => __('Priority', 'custom-css-js'),
742
  'type' => 'select',
743
  'default' => 5,
744
  'dashicon' => 'sort',
745
  'values' => array(
746
+ 1 => _x('1 (highest)', '1 is the highest priority', 'custom-css-js'),
747
  2 => '2',
748
  3 => '3',
749
  4 => '4',
752
  7 => '7',
753
  8 => '8',
754
  9 => '9',
755
+ 10 => _x('10 (lowest)', '10 is the lowest priority', 'custom-css-js'),
756
  ),
757
  'disabled' => true,
758
  ),
768
  function get_options_meta_html() {
769
  $options = array(
770
  'type' => array(
771
+ 'title' => __('Where on page', 'custom-css-js'),
772
  'type' => 'radio',
773
  'default' => 'header',
774
  'values' => array(
775
  'header' => array(
776
+ 'title' => __('Header', 'custom-css-js'),
777
  'dashicon' => 'arrow-up-alt2',
778
  ),
779
  'footer' => array(
780
+ 'title' => __('Footer', 'custom-css-js'),
781
  'dashicon' => 'arrow-down-alt2',
782
  ),
783
  ),
784
  ),
785
  'side' => array(
786
+ 'title' => __('Where in site', 'custom-css-js'),
787
  'type' => 'radio',
788
  'default' => 'frontend',
789
  'values' => array(
790
  'frontend' => array(
791
+ 'title' => __('In Frontend', 'custom-css-js'),
792
  'dashicon' => 'tagcloud',
793
  ),
794
  'admin' => array(
795
+ 'title' => __('In Admin', 'custom-css-js'),
796
  'dashicon' => 'id',
797
  ),
798
  ),
799
  ),
800
  'linking' => array(
801
+ 'title' => __('On which device', 'custom-css-js'),
802
  'type' => 'radio',
803
  'default' => 'both',
804
  'dashicon' => '',
805
  'values' => array(
806
  'desktop' => array(
807
+ 'title' => __('Desktop', 'custom-css-js'),
808
  'dashicon' => 'desktop',
809
  ),
810
  'mobile' => array(
811
+ 'title' => __('Mobile', 'custom-css-js'),
812
  'dashicon' => 'smartphone',
813
  ),
814
  'both' => array(
815
+ 'title' => __('Both', 'custom-css-js'),
816
  'dashicon' => 'tablet',
817
  ),
818
  ),
819
  'disabled' => true,
820
  ),
821
  'priority' => array(
822
+ 'title' => __('Priority', 'custom-css-js'),
823
  'type' => 'select',
824
  'default' => 5,
825
  'dashicon' => 'sort',
826
  'values' => array(
827
+ 1 => _x('1 (highest)', '1 is the highest priority', 'custom-css-js'),
828
  2 => '2',
829
  3 => '3',
830
  4 => '4',
833
  7 => '7',
834
  8 => '8',
835
  9 => '9',
836
+ 10 => _x('10 (lowest)', '10 is the lowest priority', 'custom-css-js'),
837
  ),
838
  'disabled' => true,
839
  ),
886
  }
887
 
888
  foreach( $defaults as $_field => $_default ) {
889
+ $options[ $_field ] = isset( $_POST['custom_code_'.$_field] ) ? esc_attr($_POST['custom_code_'.$_field]) : $_default;
890
  }
891
 
892
  update_post_meta( $post_id, 'options', $options );
920
  'Saved: '.date('M d Y | H:i:s').' */' . PHP_EOL;
921
  }
922
 
923
+ if ( wp_is_writable( CCJ_UPLOAD_DIR ) ) {
924
  $file_name = $post_id . '.' . $options['language'];
925
  $file_content = $before . stripslashes($_POST['content']) . $after;
926
+ @file_put_contents( CCJ_UPLOAD_DIR . '/' . $file_name , $file_content );
927
  }
928
 
929
 
945
  return false;
946
  }
947
 
948
+ $dir = CCJ_UPLOAD_DIR;
949
 
950
  // Create the dir if it doesn't exist
951
  if ( ! file_exists( $dir ) ) {
955
  // Show a message if it couldn't create the dir
956
  if ( ! file_exists( $dir ) ) : ?>
957
  <div class="notice notice-error is-dismissible">
958
+ <p><?php printf(__('The %s directory could not be created', 'custom-css-js'), '<b>custom-css-js</b>'); ?></p>
959
+ <p><?php _e('Please run the following commands in order to make the directory', 'custom-css-js'); ?>: <br /><strong>mkdir <?php echo $dir; ?>; </strong><br /><strong>chmod 777 <?php echo $dir; ?>;</strong></p>
960
  </div>
961
  <?php return; endif;
962
 
964
  // Show a message if the dir is not writable
965
  if ( ! wp_is_writable( $dir ) ) : ?>
966
  <div class="notice notice-error is-dismissible">
967
+ <p><?php printf(__('The %s directory is not writable, therefore the CSS and JS files cannot be saved.', 'custom-css-js'), '<b>'.$dir.'</b>'); ?></p>
968
+ <p><?php _e('Please run the following command to make the directory writable', 'custom-css-js'); ?>:<br /><strong>chmod 777 <?php echo $dir; ?> </strong></p>
969
  </div>
970
  <?php return; endif;
971
 
1091
  }
1092
 
1093
 
1094
+ /**
1095
+ * Get the language for the current post
1096
+ */
1097
+ function get_language( $post_id = false ) {
1098
+ if( $post_id !== false ) {
1099
+ $options = $this->get_options( $post_id );
1100
+ $language = $options['language'];
1101
+ } else {
1102
+ $language = isset( $_GET['language'] ) ? esc_attr(strtolower($_GET['language'])) : 'css';
1103
+ }
1104
+ if ( !in_array($language, array('css', 'js', 'html'))) $language = 'css';
1105
+
1106
+ return $language;
1107
+ }
1108
+
1109
+
1110
+ /**
1111
+ * Show the activate/deactivate link in the row's action area
1112
+ */
1113
+ function post_row_actions($actions, $post) {
1114
+ if ( 'custom-css-js' !== $post->post_type ) {
1115
+ return $actions;
1116
+ }
1117
+
1118
+ $url = wp_nonce_url( admin_url( 'admin-ajax.php?action=ccj_active_code&code_id=' . $post->ID), 'ccj-active-code-'. $post->ID );
1119
+ if ( $this->is_active( $post->ID) ) {
1120
+ $active_title = __('The code is active. Click to deactivate it', 'custom-css-js');
1121
+ $active_text = __('Deactivate', 'custom-css-js');
1122
+ } else {
1123
+ $active_title = __('The code is inactive. Click to activate it', 'custom-css-js');
1124
+ $active_text = __('Activate', 'custom-css-js');
1125
+ }
1126
+ $actions['activate'] = '<a href="' . esc_url( $url ) . '" title="'. $active_title . '" class="ccj_activate_deactivate" data-code-id="'.$post->ID.'">' . $active_text . '</a>';
1127
+
1128
+ return $actions;
1129
+ }
1130
+
1131
+
1132
+ /**
1133
+ * Show the activate/deactivate link in admin.
1134
+ */
1135
+ public function post_submitbox_start() {
1136
+ global $post;
1137
+
1138
+ if ( ! is_object( $post ) ) return;
1139
+
1140
+ if ( 'custom-css-js' !== $post->post_type ) return;
1141
+
1142
+ if ( !isset( $_GET['post'] ) ) return;
1143
+
1144
+ $url = wp_nonce_url( admin_url( 'admin-ajax.php?action=ccj_active_code&code_id=' . $post->ID), 'ccj-active-code-'. $post->ID );
1145
+
1146
+
1147
+ if ( $this->is_active( $post->ID) ) {
1148
+ $text = __('Active', 'custom-css-js');
1149
+ $action = __('Deactivate', 'custom-css-js');
1150
+ } else {
1151
+ $text = __('Inactive', 'custom-css-js');
1152
+ $action = __('Activate', 'custom-css-js');
1153
+ }
1154
+ ?>
1155
+ <div id="activate-action"><span style="font-weight: bold;"><?php echo $text; ?></span>
1156
+ (<a class="ccj_activate_deactivate" data-code-id="<?php echo $post->ID; ?>" href="<?php echo esc_url( $url ); ?>"><?php echo $action ?></a>)
1157
+ </div>
1158
+ <?php
1159
+ }
1160
+
1161
+
1162
+
1163
+
1164
  }
1165
 
1166
  return new CustomCSSandJS_Admin();
includes/admin-warnings.php CHANGED
@@ -52,7 +52,7 @@ class CustomCSSandJS_Warnings {
52
  function check_qtranslate_notice() {
53
  $id = 'ccj_dismiss_qtranslate';
54
  $class = 'notice notice-warning is-dismissible';
55
- $message = __( 'Please remove the <b>custom-css-js</b> post type from the <b>qTranslate settings</b> in order to avoid some malfunctions in the Simple Custom CSS & JS plugin. Check out <a href="https://www.silkypress.com/wp-content/uploads/2016/08/ccj_qtranslate_compatibility.png" target="_blank">this screenshot</a> for more details on how to do that.' );
56
 
57
  printf( '<div class="%1$s" id="%2$s"><p>%3$s</p></div>', $class, $id, $message );
58
 
52
  function check_qtranslate_notice() {
53
  $id = 'ccj_dismiss_qtranslate';
54
  $class = 'notice notice-warning is-dismissible';
55
+ $message = sprintf(__( 'Please remove the <b>custom-css-js</b> post type from the <b>qTranslate settings</b> in order to avoid some malfunctions in the Simple Custom CSS & JS plugin. Check out <a href="%s" target="_blank">this screenshot</a> for more details on how to do that.', 'custom-css-js'), 'https://www.silkypress.com/wp-content/uploads/2016/08/ccj_qtranslate_compatibility.png' );
56
 
57
  printf( '<div class="%1$s" id="%2$s"><p>%3$s</p></div>', $class, $id, $message );
58
 
languages/custom-css-js-fr_FR.mo ADDED
Binary file
languages/custom-css-js-fr_FR.po ADDED
@@ -0,0 +1,501 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Translation of Plugins - Simple Custom CSS and JS - Stable (latest release) in French (France)
2
+ # This file is distributed under the same license as the Plugins - Simple Custom CSS and JS - Stable (latest release) package.
3
+ msgid ""
4
+ msgstr ""
5
+ "PO-Revision-Date: +0000\n"
6
+ "MIME-Version: 1.0\n"
7
+ "Content-Type: text/plain; charset=UTF-8\n"
8
+ "Content-Transfer-Encoding: 8bit\n"
9
+ "Plural-Forms: nplurals=2; plural=n > 1;\n"
10
+ "X-Generator: GlotPress/2.4.0-alpha\n"
11
+ "Language: fr\n"
12
+ "Project-Id-Version: Plugins - Simple Custom CSS and JS - Stable (latest release)\n"
13
+
14
+ #: includes/admin-screens.php:496
15
+ msgid ""
16
+ "/* Add your JavaScript code here.\n"
17
+ " \n"
18
+ "If you are using the jQuery library, then don't forget to wrap your code inside jQuery.ready() as follows:\n"
19
+ "\n"
20
+ "jQuery(document).ready(function( $ ){\n"
21
+ " // Your code in here \n"
22
+ "});\n"
23
+ "\n"
24
+ "--\n"
25
+ "\n"
26
+ "If you want to link a JavaScript file that resides on another server (similar to \n"
27
+ "<script src=\"https://example.com/your-js-file.js\"></script>), then please use \n"
28
+ "the \"Add HTML Code\" page, as this is a HTML code that links a JavaScript file.\n"
29
+ "\n"
30
+ "End of comment */ "
31
+ msgstr ""
32
+ "/* Ajoutez votre code JavaScript ici.\n"
33
+ " \n"
34
+ "Si vous utilisez la bibliotheque jQuery library, noubliez pas de wrapper votre code dans le jQuery.ready() comme ceci :\n"
35
+ "\n"
36
+ "jQuery(document).ready(function( $ ){\n"
37
+ " // Votre code ici \n"
38
+ "});\n"
39
+ "\n"
40
+ "--\n"
41
+ "\n"
42
+ "Si vous voulez lier un fichier JavaScript qui se trouve sur un autre serveur (similaire a \n"
43
+ "<script src=\"https://example.com/your-js-file.js\"></script>), utilisez \n"
44
+ "la page \"Ajouter du code HTML\", car c'est du code HTML qui appelle un fichier JavaScript.\n"
45
+ "\n"
46
+ "Fin du commentaire */ "
47
+
48
+ #: includes/admin-screens.php:162 includes/admin-screens.php:1111
49
+ #: includes/admin-screens.php:1139
50
+ msgid "Deactivate"
51
+ msgstr "Désactiver"
52
+
53
+ #: includes/admin-screens.php:161 includes/admin-screens.php:1114
54
+ #: includes/admin-screens.php:1142
55
+ msgid "Activate"
56
+ msgstr "Activer"
57
+
58
+ #: includes/admin-screens.php:160 includes/admin-screens.php:1141
59
+ msgid "Inactive"
60
+ msgstr "Inactif"
61
+
62
+ #: includes/admin-screens.php:701
63
+ msgid "On Login Page"
64
+ msgstr "Sur la page de Login"
65
+
66
+ #. Author URI of the plugin/theme
67
+ msgid "https://www.silkypress.com/"
68
+ msgstr "https://www.silkypress.com/"
69
+
70
+ #. Author of the plugin/theme
71
+ msgid "Diana Burduja"
72
+ msgstr "Diana Burduja"
73
+
74
+ #. Description of the plugin/theme
75
+ msgid "Easily add Custom CSS or JS to your website with an awesome editor."
76
+ msgstr "Ajoutez facilement du code CSS et JS à votre site avec ce puissant éditeur."
77
+
78
+ #. Plugin URI of the plugin/theme
79
+ msgid "https://wordpress.org/plugins/custom-css-js/"
80
+ msgstr "https://wordpress.org/plugins/custom-css-js/"
81
+
82
+ #. Plugin Name of the plugin/theme
83
+ msgid "Simple Custom CSS and JS"
84
+ msgstr "Simple Custom CSS and JS"
85
+
86
+ #: includes/admin-warnings.php:55
87
+ msgid "Please remove the <b>custom-css-js</b> post type from the <b>qTranslate settings</b> in order to avoid some malfunctions in the Simple Custom CSS & JS plugin. Check out <a href=\"%s\" target=\"_blank\">this screenshot</a> for more details on how to do that."
88
+ msgstr "Veuillez retirer le post type <b>custom-css-js</b> de la configuration de <b>qTranslate</b> pour éviter certains effets néfastes avec Simple Custom CSS & JS plugin. Reportez vous à <a href=\"%s\" target=\"_blank\">cette image</a> pour plus de détail sur la façon de faire."
89
+
90
+ #: includes/admin-screens.php:958
91
+ msgid "Please run the following command to make the directory writable"
92
+ msgstr "Veuillez exécuter la commande suivante pour rendre le répertoire modifiable."
93
+
94
+ #: includes/admin-screens.php:957
95
+ msgid "The %s directory is not writable, therefore the CSS and JS files cannot be saved."
96
+ msgstr "Le répertoire %s n'est pas modifiable, les fichiers CSS et JS ne peuvent être sauvegardés."
97
+
98
+ #: includes/admin-screens.php:949
99
+ msgid "Please run the following commands in order to make the directory"
100
+ msgstr "Veuillez exécuter les commandes suivantes pour créer le répertoire "
101
+
102
+ #: includes/admin-screens.php:948
103
+ msgid "The %s directory could not be created"
104
+ msgstr "Le répertoire %s ne peut pas être créé"
105
+
106
+ #: includes/admin-screens.php:805
107
+ msgid "Both"
108
+ msgstr "Les deux"
109
+
110
+ #: includes/admin-screens.php:801
111
+ msgid "Mobile"
112
+ msgstr "Mobile"
113
+
114
+ #: includes/admin-screens.php:797
115
+ msgid "Desktop"
116
+ msgstr "Ordinateur"
117
+
118
+ #: includes/admin-screens.php:791
119
+ msgid "On which device"
120
+ msgstr "Sur quel appareil"
121
+
122
+ #: includes/admin-screens.php:745 includes/admin-screens.php:826
123
+ msgctxt "10 is the lowest priority"
124
+ msgid "10 (lowest)"
125
+ msgstr "10 (la plus basse)"
126
+
127
+ #: includes/admin-screens.php:736 includes/admin-screens.php:817
128
+ msgctxt "1 is the highest priority"
129
+ msgid "1 (highest)"
130
+ msgstr "1 (la plus haute)"
131
+
132
+ #: includes/admin-screens.php:731 includes/admin-screens.php:812
133
+ msgid "Priority"
134
+ msgstr "Priorité"
135
+
136
+ #: includes/admin-screens.php:724
137
+ msgid "Minify the code"
138
+ msgstr "Minifier le code"
139
+
140
+ #: includes/admin-screens.php:718
141
+ msgid "SASS (only SCSS syntax)"
142
+ msgstr "SASS (syntaxe SCSS seulement)"
143
+
144
+ #: includes/admin-screens.php:715
145
+ msgid "Less"
146
+ msgstr "Less"
147
+
148
+ #: includes/admin-screens.php:712
149
+ msgid "None"
150
+ msgstr "aucun"
151
+
152
+ #: includes/admin-screens.php:707
153
+ msgid "CSS Preprocessor"
154
+ msgstr "Préprocesseur CSS"
155
+
156
+ #: includes/admin-screens.php:697 includes/admin-screens.php:785
157
+ msgid "In Admin"
158
+ msgstr "Dans l'administration"
159
+
160
+ #: includes/admin-screens.php:693 includes/admin-screens.php:781
161
+ msgid "In Frontend"
162
+ msgstr "Sur le site"
163
+
164
+ #: includes/admin-screens.php:688 includes/admin-screens.php:776
165
+ msgid "Where in site"
166
+ msgstr "Où dans le site"
167
+
168
+ #: includes/admin-screens.php:682 includes/admin-screens.php:770
169
+ msgid "Footer"
170
+ msgstr "Pied de page"
171
+
172
+ #: includes/admin-screens.php:678 includes/admin-screens.php:766
173
+ msgid "Header"
174
+ msgstr "En-tête de page"
175
+
176
+ #: includes/admin-screens.php:673 includes/admin-screens.php:761
177
+ msgid "Where on page"
178
+ msgstr "Où dans la page"
179
+
180
+ #: includes/admin-screens.php:667
181
+ msgid "Internal"
182
+ msgstr "Interne"
183
+
184
+ #: includes/admin-screens.php:663
185
+ msgid "External File"
186
+ msgstr "Fichier externe"
187
+
188
+ #: includes/admin-screens.php:658
189
+ msgid "Linking type"
190
+ msgstr "Type de liaison"
191
+
192
+ #: includes/admin-screens.php:544
193
+ msgid ""
194
+ "/* Add your CSS code here.\n"
195
+ " \n"
196
+ "For example:\n"
197
+ ".example {\n"
198
+ " color: red;\n"
199
+ "}\n"
200
+ "\n"
201
+ "For brushing up on your CSS knowledge, check out http://www.w3schools.com/css/css_syntax.asp\n"
202
+ "\n"
203
+ "End of comment */ "
204
+ msgstr ""
205
+ "/* Ajouter votre code CSS ici.\n"
206
+ " \n"
207
+ "Par exemple:\n"
208
+ ".exemple {\n"
209
+ " color: red;\n"
210
+ "}\n"
211
+ "\n"
212
+ "Pour améliorer vos connaissances en CSS, visitez http://www.w3schools.com/css/css_syntax.asp\n"
213
+ "\n"
214
+ "Fin du commentaire */ "
215
+
216
+ #: includes/admin-screens.php:518
217
+ msgid ""
218
+ "<!-- Add HTML code to the header or the footer. \n"
219
+ "\n"
220
+ "For example, you can use the following code for loading the jQuery library from Google CDN:\n"
221
+ "<script src=\"https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js\"></script>\n"
222
+ "\n"
223
+ "or the following one for loading the Bootstrap library from MaxCDN:\n"
224
+ "<link rel=\"stylesheet\" href=\"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css\" integrity=\"sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u\" crossorigin=\"anonymous\">\n"
225
+ "\n"
226
+ "-- End of the comment --> "
227
+ msgstr ""
228
+ "<!-- Ajoutez du code HTML dans l'en-tete ou le pied. \n"
229
+ "\n"
230
+ "Par exemple, utilisez le code suivant pour charger la bibliotheque jQuery depuis le CDN de Google :\n"
231
+ "<script src=\"https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js\"></script>\n"
232
+ "\n"
233
+ "ou celui-ci pour charger la bibliotheque Bootstrap depuis MaxCDN:\n"
234
+ "<link rel=\"stylesheet\" href=\"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css\" integrity=\"sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u\" crossorigin=\"anonymous\">\n"
235
+ "\n"
236
+ "-- Fin du commentaire --> "
237
+
238
+ #: includes/admin-screens.php:410
239
+ msgid "Code updated"
240
+ msgstr "Code mis à jour"
241
+
242
+ #: includes/admin-screens.php:372 includes/admin-screens.php:402
243
+ msgid "Add HTML Code"
244
+ msgstr "Ajouter du code HTML"
245
+
246
+ #: includes/admin-screens.php:371 includes/admin-screens.php:401
247
+ msgid "Add JS Code"
248
+ msgstr "Ajouter du code JS"
249
+
250
+ #: includes/admin-screens.php:370 includes/admin-screens.php:400
251
+ msgid "Add CSS Code"
252
+ msgstr "Ajouter du code CSS"
253
+
254
+ #: includes/admin-screens.php:369
255
+ msgid "Custom Code"
256
+ msgstr "Code personnalisé"
257
+
258
+ #: includes/admin-screens.php:164 includes/admin-screens.php:314
259
+ #: includes/admin-screens.php:1113
260
+ msgid "The code is inactive. Click to activate it"
261
+ msgstr "Le code est inactif. Cliquez pour l'activer"
262
+
263
+ #: includes/admin-screens.php:163 includes/admin-screens.php:311
264
+ #: includes/admin-screens.php:1110
265
+ msgid "The code is active. Click to deactivate it"
266
+ msgstr "Le code est actif. Cliquez pour le désactiver "
267
+
268
+ #: includes/admin-screens.php:302
269
+ msgid "Y/m/d"
270
+ msgstr "Y/m/d"
271
+
272
+ #: includes/admin-screens.php:300
273
+ msgid "%s ago"
274
+ msgstr "Il y a %s"
275
+
276
+ #: includes/admin-screens.php:271
277
+ msgid "Modified"
278
+ msgstr "Modifié"
279
+
280
+ #: includes/admin-screens.php:270
281
+ msgid "Date"
282
+ msgstr "Date"
283
+
284
+ #: includes/admin-screens.php:268
285
+ msgid "Title"
286
+ msgstr "Titre"
287
+
288
+ #: includes/admin-screens.php:267
289
+ msgid "Type"
290
+ msgstr "Type"
291
+
292
+ #: includes/admin-screens.php:159 includes/admin-screens.php:266
293
+ #: includes/admin-screens.php:1138
294
+ msgid "Active"
295
+ msgstr "Actif"
296
+
297
+ #: includes/admin-screens.php:252
298
+ msgid "Add HTML code"
299
+ msgstr "Ajouter du code HTML"
300
+
301
+ #: includes/admin-screens.php:251
302
+ msgid "Add JS code"
303
+ msgstr "Ajouter du code JS"
304
+
305
+ #: includes/admin-screens.php:250
306
+ msgid "Add CSS code"
307
+ msgstr "Ajouter du code CSS"
308
+
309
+ #: includes/admin-screens.php:190
310
+ msgid "Options"
311
+ msgstr "Options"
312
+
313
+ #: includes/admin-screens.php:94
314
+ msgid "Add Custom HTML"
315
+ msgstr "Ajouter du HTML personnalisé"
316
+
317
+ #: includes/admin-screens.php:91
318
+ msgid "Add Custom JS"
319
+ msgstr "Ajouter du JS personnalisé"
320
+
321
+ #: includes/admin-screens.php:88
322
+ msgid "Add Custom CSS"
323
+ msgstr "Ajouter du CSS personnalisé"
324
+
325
+ #: includes/admin-notices.php:125 includes/admin-notices.php:190
326
+ msgid "Dismiss this notice"
327
+ msgstr "Effacer cette notification"
328
+
329
+ #: includes/admin-notices.php:125
330
+ msgid "Get your discount now"
331
+ msgstr "Obtenez votre remise maintenant"
332
+
333
+ #: includes/admin-addons.php:140 includes/admin-addons.php:163
334
+ msgid "Restore"
335
+ msgstr "Restaurer"
336
+
337
+ #: includes/admin-addons.php:139 includes/admin-addons.php:173
338
+ msgid "Delete"
339
+ msgstr "Effacer"
340
+
341
+ #: includes/admin-addons.php:138 includes/admin-screens.php:269
342
+ msgid "Author"
343
+ msgstr "Auteur"
344
+
345
+ #: includes/admin-addons.php:137
346
+ msgid "Revision"
347
+ msgstr "Révision"
348
+
349
+ #: includes/admin-addons.php:136 includes/admin-addons.php:169
350
+ msgid "Compare"
351
+ msgstr "Comparer"
352
+
353
+ #: includes/admin-addons.php:114
354
+ msgctxt "revision date format"
355
+ msgid "F j, Y @ H:i:s"
356
+ msgstr "F j, Y @ H:i:s"
357
+
358
+ #: includes/admin-addons.php:103
359
+ msgid "Add"
360
+ msgstr "Ajouter"
361
+
362
+ #: includes/admin-addons.php:102
363
+ msgid "Text filter"
364
+ msgstr "Filtre de texte"
365
+
366
+ #: includes/admin-addons.php:100 includes/admin-addons.php:101
367
+ msgid "URL"
368
+ msgstr "URL"
369
+
370
+ #: includes/admin-addons.php:89
371
+ msgid "Ends by"
372
+ msgstr "Se termine par"
373
+
374
+ #: includes/admin-addons.php:88
375
+ msgid "Starts with"
376
+ msgstr "Commence par"
377
+
378
+ #: includes/admin-addons.php:87
379
+ msgid "Not equal to"
380
+ msgstr "Différent de"
381
+
382
+ #: includes/admin-addons.php:86
383
+ msgid "Is equal to"
384
+ msgstr "Egal à"
385
+
386
+ #: includes/admin-addons.php:85
387
+ msgid "Not contains"
388
+ msgstr "Ne contient pas"
389
+
390
+ #: includes/admin-addons.php:84
391
+ msgid "Contains"
392
+ msgstr "Contient"
393
+
394
+ #: includes/admin-addons.php:83
395
+ msgid "First page"
396
+ msgstr "Première page"
397
+
398
+ #: includes/admin-addons.php:82
399
+ msgid "All Website"
400
+ msgstr "Tout le site"
401
+
402
+ #: includes/admin-addons.php:68
403
+ msgid "Preview Changes"
404
+ msgstr "Prévisualiser"
405
+
406
+ #: includes/admin-addons.php:67
407
+ msgid "Full URL on which to preview the changes ..."
408
+ msgstr "URL où prévisualiser les modifications ..."
409
+
410
+ #: includes/admin-addons.php:56
411
+ msgid "Code Revisions"
412
+ msgstr "Révisions du code"
413
+
414
+ #: includes/admin-addons.php:55
415
+ msgid "Apply only on these URLs"
416
+ msgstr "Appliquer seulement à ces URLs"
417
+
418
+ #: includes/admin-addons.php:54
419
+ msgid "Preview"
420
+ msgstr "Prévisualiser"
421
+
422
+ #: includes/admin-addons.php:42 includes/admin-screens.php:643
423
+ msgid "Available only in <br />Simple Custom CSS and JS Pro"
424
+ msgstr "Uniquement disponible dans <br />Simple Custom CSS and JS Pro"
425
+
426
+ #: custom-css-js.php:387
427
+ msgid "Settings"
428
+ msgstr "Configuration"
429
+
430
+ #: custom-css-js.php:292
431
+ msgid "Web Designer"
432
+ msgstr "Designer Web"
433
+
434
+ #: custom-css-js.php:247
435
+ msgid "Custom CSS and JS code"
436
+ msgstr "Code CSS et JS personnalisé "
437
+
438
+ #: custom-css-js.php:226
439
+ msgid "No Custom Code found in Trash."
440
+ msgstr "Aucun code personnalisé trouvé dans la corbeille."
441
+
442
+ #: custom-css-js.php:225
443
+ msgid "No Custom Code found."
444
+ msgstr "Aucun code personnalisé trouvé."
445
+
446
+ #: custom-css-js.php:224
447
+ msgid "Parent Custom Code:"
448
+ msgstr "Code personnalisé parent :"
449
+
450
+ #: custom-css-js.php:223
451
+ msgid "Search Custom Code"
452
+ msgstr "Rechercher du code personnalisé"
453
+
454
+ #: custom-css-js.php:222
455
+ msgid "All Custom Code"
456
+ msgstr "Tous les codes personnalisés"
457
+
458
+ #: custom-css-js.php:221
459
+ msgid "View Custom Code"
460
+ msgstr "Voir le code personnalisé"
461
+
462
+ #: custom-css-js.php:220
463
+ msgid "Edit Custom Code"
464
+ msgstr "Modifier le code personnalisé"
465
+
466
+ #: custom-css-js.php:219
467
+ msgid "New Custom Code"
468
+ msgstr "Nouveau code personnalisé"
469
+
470
+ #: custom-css-js.php:218
471
+ msgid "Add Custom Code"
472
+ msgstr "Ajouter du code personnalisé "
473
+
474
+ #: custom-css-js.php:217
475
+ msgctxt "add new"
476
+ msgid "Add Custom Code"
477
+ msgstr "Ajouter du code personnalisé"
478
+
479
+ #: custom-css-js.php:216
480
+ msgctxt "add new on admin bar"
481
+ msgid "Custom Code"
482
+ msgstr "Code personnalisé"
483
+
484
+ #: custom-css-js.php:215
485
+ msgctxt "admin menu"
486
+ msgid "Custom CSS & JS"
487
+ msgstr "CSS et JS personnalisés"
488
+
489
+ #: custom-css-js.php:214
490
+ msgctxt "post type singular name"
491
+ msgid "Custom Code"
492
+ msgstr "Code personnalisé"
493
+
494
+ #: custom-css-js.php:213
495
+ msgctxt "post type general name"
496
+ msgid "Custom Code"
497
+ msgstr "Code personnalisé"
498
+
499
+ #: custom-css-js.php:51 custom-css-js.php:58
500
+ msgid "Cheatin&#8217; huh?"
501
+ msgstr "Cheatin&#8217; huh?"
languages/custom-css-js-pl_PL.mo ADDED
Binary file
languages/custom-css-js-pl_PL.po ADDED
@@ -0,0 +1,450 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Translation of Plugins - Simple Custom CSS and JS - Stable (latest release) in Polish
2
+ # This file is distributed under the same license as the Plugins - Simple Custom CSS and JS - Stable (latest release) package.
3
+ msgid ""
4
+ msgstr ""
5
+ "PO-Revision-Date: +0000\n"
6
+ "MIME-Version: 1.0\n"
7
+ "Content-Type: text/plain; charset=UTF-8\n"
8
+ "Content-Transfer-Encoding: 8bit\n"
9
+ "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
10
+ "X-Generator: GlotPress/2.4.0-alpha\n"
11
+ "Language: pl\n"
12
+ "Project-Id-Version: Plugins - Simple Custom CSS and JS - Stable (latest release)\n"
13
+
14
+ #. Author URI of the plugin/theme
15
+ msgid "https://www.silkypress.com/"
16
+ msgstr "https://www.silkypress.com/"
17
+
18
+ #. Author of the plugin/theme
19
+ msgid "Diana Burduja"
20
+ msgstr "Diana Burduja"
21
+
22
+ #. Description of the plugin/theme
23
+ msgid "Easily add Custom CSS or JS to your website with an awesome editor."
24
+ msgstr "Dodawaj wstawki z własnym kodem CSS lub JS do swojej strony w łatwy sposób z użyciem wygodnego edytora."
25
+
26
+ #. Plugin URI of the plugin/theme
27
+ msgid "https://wordpress.org/plugins/custom-css-js/"
28
+ msgstr "https://pl.wordpress.org/plugins/custom-css-js/"
29
+
30
+ #. Plugin Name of the plugin/theme
31
+ msgid "Simple Custom CSS and JS"
32
+ msgstr "Simple Custom CSS and JS"
33
+
34
+ #: includes/admin-warnings.php:55
35
+ msgid "Please remove the <b>custom-css-js</b> post type from the <b>qTranslate settings</b> in order to avoid some malfunctions in the Simple Custom CSS & JS plugin. Check out <a href=\"%s\" target=\"_blank\">this screenshot</a> for more details on how to do that."
36
+ msgstr "Proszę usuń typ postu <b>custom-css-js</b> z <b>ustawień qTranslate</b>, aby uniknąć problemów z zapisywaniem wstawek we wtyczce Simple Custom CSS & JS. Zobacz <a href=\"%s\" target=\"_blank\">ten zrzut ekranu</a> by dowiedzieć się, jak to zrobić."
37
+
38
+ #: includes/admin-screens.php:958
39
+ msgid "Please run the following command to make the directory writable"
40
+ msgstr "Proszę wykonaj poniższą komendę, aby uczynić katalog zapisywalnym"
41
+
42
+ #: includes/admin-screens.php:957
43
+ msgid "The %s directory is not writable, therefore the CSS and JS files cannot be saved."
44
+ msgstr "Katalog %s nie umożliwia zapisu, dlatego pliki CSS oraz JS nie mogą zostać zapisane."
45
+
46
+ #: includes/admin-screens.php:949
47
+ msgid "Please run the following commands in order to make the directory"
48
+ msgstr "Uruchom proszę poniższe komendy aby utworzyć folder"
49
+
50
+ #: includes/admin-screens.php:948
51
+ msgid "The %s directory could not be created"
52
+ msgstr "Folder %s nie mógł zostać utworzony"
53
+
54
+ #: includes/admin-screens.php:805
55
+ msgid "Both"
56
+ msgstr "Oba urządzenia"
57
+
58
+ #: includes/admin-screens.php:801
59
+ msgid "Mobile"
60
+ msgstr "Urządzenia mobilne"
61
+
62
+ #: includes/admin-screens.php:797
63
+ msgid "Desktop"
64
+ msgstr "Komputer stacjonarny"
65
+
66
+ #: includes/admin-screens.php:791
67
+ msgid "On which device"
68
+ msgstr "Na jakim urządzeniu"
69
+
70
+ #: includes/admin-screens.php:745 includes/admin-screens.php:826
71
+ msgctxt "10 is the lowest priority"
72
+ msgid "10 (lowest)"
73
+ msgstr "10 (najniższy)"
74
+
75
+ #: includes/admin-screens.php:736 includes/admin-screens.php:817
76
+ msgctxt "1 is the highest priority"
77
+ msgid "1 (highest)"
78
+ msgstr "1 (najwyższy)"
79
+
80
+ #: includes/admin-screens.php:731 includes/admin-screens.php:812
81
+ msgid "Priority"
82
+ msgstr "Priorytet"
83
+
84
+ #: includes/admin-screens.php:724
85
+ msgid "Minify the code"
86
+ msgstr "Zredukuj kod"
87
+
88
+ #: includes/admin-screens.php:718
89
+ msgid "SASS (only SCSS syntax)"
90
+ msgstr "SASS (tylko składnia SCSS)"
91
+
92
+ #: includes/admin-screens.php:715
93
+ msgid "Less"
94
+ msgstr "Less"
95
+
96
+ #: includes/admin-screens.php:712
97
+ msgid "None"
98
+ msgstr "Brak"
99
+
100
+ #: includes/admin-screens.php:707
101
+ msgid "CSS Preprocessor"
102
+ msgstr "Preprocesor CSS"
103
+
104
+ #: includes/admin-screens.php:697 includes/admin-screens.php:785
105
+ msgid "In Admin"
106
+ msgstr "Panel admina"
107
+
108
+ #: includes/admin-screens.php:693 includes/admin-screens.php:781
109
+ msgid "In Frontend"
110
+ msgstr "Witryna"
111
+
112
+ #: includes/admin-screens.php:688 includes/admin-screens.php:776
113
+ msgid "Where in site"
114
+ msgstr "Gdzie na stronie"
115
+
116
+ #: includes/admin-screens.php:682 includes/admin-screens.php:770
117
+ msgid "Footer"
118
+ msgstr "Stopka"
119
+
120
+ #: includes/admin-screens.php:678 includes/admin-screens.php:766
121
+ msgid "Header"
122
+ msgstr "Nagłówek"
123
+
124
+ #: includes/admin-screens.php:673 includes/admin-screens.php:761
125
+ msgid "Where on page"
126
+ msgstr "Gdzie w kodzie strony"
127
+
128
+ #: includes/admin-screens.php:667
129
+ msgid "Internal"
130
+ msgstr "Wewnętrzne"
131
+
132
+ #: includes/admin-screens.php:663
133
+ msgid "External File"
134
+ msgstr "Zewnętrzny plik"
135
+
136
+ #: includes/admin-screens.php:658
137
+ msgid "Linking type"
138
+ msgstr "Linkowanie"
139
+
140
+ #: includes/admin-screens.php:544
141
+ msgid ""
142
+ "/* Add your CSS code here.\n"
143
+ " \n"
144
+ "For example:\n"
145
+ ".example {\n"
146
+ " color: red;\n"
147
+ "}\n"
148
+ "\n"
149
+ "For brushing up on your CSS knowledge, check out http://www.w3schools.com/css/css_syntax.asp\n"
150
+ "\n"
151
+ "End of comment */ "
152
+ msgstr ""
153
+ "/* Dodaj swój kod CSS tutaj.\n"
154
+ " \n"
155
+ "Na przykład:\n"
156
+ ".przyklad {\n"
157
+ " color: red;\n"
158
+ "}\n"
159
+ "\n"
160
+ "Sprawdź poniższą stronę, jeśli chcesz poszerzyć swoją wiedzę nt. CSS:\n"
161
+ "http://www.w3schools.com/css/css_syntax.asp\n"
162
+ "\n"
163
+ "Koniec komentarza */ "
164
+
165
+ #: includes/admin-screens.php:518
166
+ msgid ""
167
+ "<!-- Add HTML code to the header or the footer. \n"
168
+ "\n"
169
+ "For example, you can use the following code for loading the jQuery library from Google CDN:\n"
170
+ "<script src=\"https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js\"></script>\n"
171
+ "\n"
172
+ "or the following one for loading the Bootstrap library from MaxCDN:\n"
173
+ "<link rel=\"stylesheet\" href=\"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css\" integrity=\"sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u\" crossorigin=\"anonymous\">\n"
174
+ "\n"
175
+ "-- End of the comment --> "
176
+ msgstr ""
177
+ "<!-- Dodaj swój kod HTML do nagłówka lub stopki. \n"
178
+ "\n"
179
+ "Na przykład możesz użyć poniższego kodu aby załadować bibliotekę jQuery z Google CDN:\n"
180
+ "<script src=\"https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js\"></script>\n"
181
+ "\n"
182
+ "lub poniższego kodu do załadowania biblioteki Bootstrap z MaxCDN:\n"
183
+ "<link rel=\"stylesheet\" href=\"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css\" integrity=\"sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u\" crossorigin=\"anonymous\">\n"
184
+ "\n"
185
+ "-- Koniec komentarza --> "
186
+
187
+ #: includes/admin-screens.php:410
188
+ msgid "Code updated"
189
+ msgstr "Kod wstawki zaktualizowany"
190
+
191
+ #: includes/admin-screens.php:372 includes/admin-screens.php:402
192
+ msgid "Add HTML Code"
193
+ msgstr "Dodaj kod HTML"
194
+
195
+ #: includes/admin-screens.php:371 includes/admin-screens.php:401
196
+ msgid "Add JS Code"
197
+ msgstr "Dodaj kod JS"
198
+
199
+ #: includes/admin-screens.php:370 includes/admin-screens.php:400
200
+ msgid "Add CSS Code"
201
+ msgstr "Dodaj kod CSS"
202
+
203
+ #: includes/admin-screens.php:369
204
+ msgid "Custom Code"
205
+ msgstr "Wstawki kodu"
206
+
207
+ #: includes/admin-screens.php:164 includes/admin-screens.php:314
208
+ #: includes/admin-screens.php:1113
209
+ msgid "The code is inactive. Click to activate it"
210
+ msgstr "Kod jest nieaktywny. Kliknij tutaj, aby go aktywować"
211
+
212
+ #: includes/admin-screens.php:163 includes/admin-screens.php:311
213
+ #: includes/admin-screens.php:1110
214
+ msgid "The code is active. Click to deactivate it"
215
+ msgstr "Kod jest aktywny. Kliknij tutaj, aby go dezaktywować"
216
+
217
+ #: includes/admin-screens.php:302
218
+ msgid "Y/m/d"
219
+ msgstr "Y/m/d"
220
+
221
+ #: includes/admin-screens.php:300
222
+ msgid "%s ago"
223
+ msgstr "%s temu"
224
+
225
+ #: includes/admin-screens.php:271
226
+ msgid "Modified"
227
+ msgstr "Data modyfikacji"
228
+
229
+ #: includes/admin-screens.php:270
230
+ msgid "Date"
231
+ msgstr "Data utworzenia"
232
+
233
+ #: includes/admin-screens.php:268
234
+ msgid "Title"
235
+ msgstr "Tytuł"
236
+
237
+ #: includes/admin-screens.php:267
238
+ msgid "Type"
239
+ msgstr "Typ kodu"
240
+
241
+ #: includes/admin-screens.php:159 includes/admin-screens.php:266
242
+ #: includes/admin-screens.php:1138
243
+ msgid "Active"
244
+ msgstr "Czy kod jest aktywny?"
245
+
246
+ #: includes/admin-screens.php:252
247
+ msgid "Add HTML code"
248
+ msgstr "Dodaj kod HTML"
249
+
250
+ #: includes/admin-screens.php:251
251
+ msgid "Add JS code"
252
+ msgstr "Dodaj kod JS"
253
+
254
+ #: includes/admin-screens.php:250
255
+ msgid "Add CSS code"
256
+ msgstr "Dodaj kod CSS"
257
+
258
+ #: includes/admin-screens.php:190
259
+ msgid "Options"
260
+ msgstr "Opcje"
261
+
262
+ #: includes/admin-screens.php:94
263
+ msgid "Add Custom HTML"
264
+ msgstr "Dodaj wstawkę HTML"
265
+
266
+ #: includes/admin-screens.php:91
267
+ msgid "Add Custom JS"
268
+ msgstr "Dodaj wstawkę JS"
269
+
270
+ #: includes/admin-screens.php:88
271
+ msgid "Add Custom CSS"
272
+ msgstr "Dodaj wstawkę CSS"
273
+
274
+ #: includes/admin-notices.php:125 includes/admin-notices.php:190
275
+ msgid "Dismiss this notice"
276
+ msgstr "Odrzuć wiadomość"
277
+
278
+ #: includes/admin-notices.php:125
279
+ msgid "Get your discount now"
280
+ msgstr "Uzyskaj rabat"
281
+
282
+ #: includes/admin-addons.php:140 includes/admin-addons.php:163
283
+ msgid "Restore"
284
+ msgstr "Przywróć wersję"
285
+
286
+ #: includes/admin-addons.php:139 includes/admin-addons.php:173
287
+ msgid "Delete"
288
+ msgstr "Usuń wersję"
289
+
290
+ #: includes/admin-addons.php:138 includes/admin-screens.php:269
291
+ msgid "Author"
292
+ msgstr "Autor"
293
+
294
+ #: includes/admin-addons.php:137
295
+ msgid "Revision"
296
+ msgstr "Wersja"
297
+
298
+ #: includes/admin-addons.php:136 includes/admin-addons.php:169
299
+ msgid "Compare"
300
+ msgstr "Porównaj wersje"
301
+
302
+ #: includes/admin-addons.php:114
303
+ msgctxt "revision date format"
304
+ msgid "F j, Y @ H:i:s"
305
+ msgstr "F j, Y @ H:i:s"
306
+
307
+ #: includes/admin-addons.php:103
308
+ msgid "Add"
309
+ msgstr "Dodaj"
310
+
311
+ #: includes/admin-addons.php:102
312
+ msgid "Text filter"
313
+ msgstr "Filtr tekstowy"
314
+
315
+ #: includes/admin-addons.php:100 includes/admin-addons.php:101
316
+ msgid "URL"
317
+ msgstr "Adres URL"
318
+
319
+ #: includes/admin-addons.php:89
320
+ msgid "Ends by"
321
+ msgstr "Kończy się na"
322
+
323
+ #: includes/admin-addons.php:88
324
+ msgid "Starts with"
325
+ msgstr "Zaczyna się na"
326
+
327
+ #: includes/admin-addons.php:87
328
+ msgid "Not equal to"
329
+ msgstr "Nie jest równe"
330
+
331
+ #: includes/admin-addons.php:86
332
+ msgid "Is equal to"
333
+ msgstr "Jest równe"
334
+
335
+ #: includes/admin-addons.php:85
336
+ msgid "Not contains"
337
+ msgstr "Nie zawiera"
338
+
339
+ #: includes/admin-addons.php:84
340
+ msgid "Contains"
341
+ msgstr "Zawiera"
342
+
343
+ #: includes/admin-addons.php:83
344
+ msgid "First page"
345
+ msgstr "Pierwsza strona"
346
+
347
+ #: includes/admin-addons.php:82
348
+ msgid "All Website"
349
+ msgstr "Cała strona"
350
+
351
+ #: includes/admin-addons.php:68
352
+ msgid "Preview Changes"
353
+ msgstr "Podejrzyj zmiany"
354
+
355
+ #: includes/admin-addons.php:67
356
+ msgid "Full URL on which to preview the changes ..."
357
+ msgstr "Pełen adres URL na którym chcesz podejrzeć zmiany ..."
358
+
359
+ #: includes/admin-addons.php:56
360
+ msgid "Code Revisions"
361
+ msgstr "Wersje kodu"
362
+
363
+ #: includes/admin-addons.php:55
364
+ msgid "Apply only on these URLs"
365
+ msgstr "Zastosuj tylko dla tych adresów URL"
366
+
367
+ #: includes/admin-addons.php:54
368
+ msgid "Preview"
369
+ msgstr "Podejrzyj"
370
+
371
+ #: includes/admin-addons.php:42 includes/admin-screens.php:643
372
+ msgid "Available only in <br />Simple Custom CSS and JS Pro"
373
+ msgstr "Dostępne tylko w <br />Simple Custom CSS and JS Pro"
374
+
375
+ #: custom-css-js.php:387
376
+ msgid "Settings"
377
+ msgstr "Ustawienia"
378
+
379
+ #: custom-css-js.php:292
380
+ msgid "Web Designer"
381
+ msgstr "Web Designer"
382
+
383
+ #: custom-css-js.php:247
384
+ msgid "Custom CSS and JS code"
385
+ msgstr "Wstawki kodu CSS i JS"
386
+
387
+ #: custom-css-js.php:226
388
+ msgid "No Custom Code found in Trash."
389
+ msgstr "Nie znaleziono wstawek w Koszu"
390
+
391
+ #: custom-css-js.php:225
392
+ msgid "No Custom Code found."
393
+ msgstr "Nie znaleziono wstawek"
394
+
395
+ #: custom-css-js.php:224
396
+ msgid "Parent Custom Code:"
397
+ msgstr "Kod macierzysty:"
398
+
399
+ #: custom-css-js.php:223
400
+ msgid "Search Custom Code"
401
+ msgstr "Szukaj wstawek"
402
+
403
+ #: custom-css-js.php:222
404
+ msgid "All Custom Code"
405
+ msgstr "Wszystkie wstawki"
406
+
407
+ #: custom-css-js.php:221
408
+ msgid "View Custom Code"
409
+ msgstr "Zobacz kod"
410
+
411
+ #: custom-css-js.php:220
412
+ msgid "Edit Custom Code"
413
+ msgstr "Edytuj kod"
414
+
415
+ #: custom-css-js.php:219
416
+ msgid "New Custom Code"
417
+ msgstr "Nowa wstawka"
418
+
419
+ #: custom-css-js.php:218
420
+ msgid "Add Custom Code"
421
+ msgstr "Dodaj wstawkę"
422
+
423
+ #: custom-css-js.php:217
424
+ msgctxt "add new"
425
+ msgid "Add Custom Code"
426
+ msgstr "Dodaj nową wstawkę"
427
+
428
+ #: custom-css-js.php:216
429
+ msgctxt "add new on admin bar"
430
+ msgid "Custom Code"
431
+ msgstr "Wstawki kodu"
432
+
433
+ #: custom-css-js.php:215
434
+ msgctxt "admin menu"
435
+ msgid "Custom CSS & JS"
436
+ msgstr "Custom CSS & JS"
437
+
438
+ #: custom-css-js.php:214
439
+ msgctxt "post type singular name"
440
+ msgid "Custom Code"
441
+ msgstr "Wstawki kodu"
442
+
443
+ #: custom-css-js.php:213
444
+ msgctxt "post type general name"
445
+ msgid "Custom Code"
446
+ msgstr "Wstawki kodu"
447
+
448
+ #: custom-css-js.php:51 custom-css-js.php:58
449
+ msgid "Cheatin&#8217; huh?"
450
+ msgstr "Kantujesz, co nie? :)"
languages/custom-css-js-tr_TR.mo ADDED
Binary file
languages/custom-css-js-tr_TR.po ADDED
@@ -0,0 +1,501 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2017 Simple Custom CSS and JS
2
+ # This file is distributed under the same license as the Simple Custom CSS and JS package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Simple Custom CSS and JS 3.0\n"
6
+ "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/custom-css-js-"
7
+ "svn\n"
8
+ "POT-Creation-Date: 2017-05-13 18:45:06+00:00\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "PO-Revision-Date: 2017-08-07 22:47+0300\n"
13
+ "Language-Team: \n"
14
+ "X-Generator: Poedit 2.0.3\n"
15
+ "Last-Translator: Adnan Uludag <auludag@mac.com>\n"
16
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
17
+ "Language: tr_TR\n"
18
+
19
+ #: custom-css-js.php:56 custom-css-js.php:63
20
+ msgid "Cheatin&#8217; huh?"
21
+ msgstr "Kandırıkçılık ha?"
22
+
23
+ #: custom-css-js.php:198
24
+ msgctxt "post type general name"
25
+ msgid "Custom Code"
26
+ msgstr "Özel Kod"
27
+
28
+ #: custom-css-js.php:199
29
+ msgctxt "post type singular name"
30
+ msgid "Custom Code"
31
+ msgstr "Özel Kod"
32
+
33
+ #: custom-css-js.php:200
34
+ msgctxt "admin menu"
35
+ msgid "Custom CSS & JS"
36
+ msgstr "Özel CSS & JS"
37
+
38
+ #: custom-css-js.php:201
39
+ msgctxt "add new on admin bar"
40
+ msgid "Custom Code"
41
+ msgstr "Özel Kod"
42
+
43
+ #: custom-css-js.php:202
44
+ msgctxt "add new"
45
+ msgid "Add Custom Code"
46
+ msgstr "Özel Kod Ekle"
47
+
48
+ #: custom-css-js.php:203
49
+ msgid "Add Custom Code"
50
+ msgstr "Özel Kod Ekle"
51
+
52
+ #: custom-css-js.php:204
53
+ msgid "New Custom Code"
54
+ msgstr "Yeni Özel Kod"
55
+
56
+ #: custom-css-js.php:205
57
+ msgid "Edit Custom Code"
58
+ msgstr "Özel Kodu Düzenle"
59
+
60
+ #: custom-css-js.php:206
61
+ msgid "View Custom Code"
62
+ msgstr "Özel Kodu Görüntüle"
63
+
64
+ #: custom-css-js.php:207
65
+ msgid "All Custom Code"
66
+ msgstr "Tüm Özel Kodlar"
67
+
68
+ #: custom-css-js.php:208
69
+ msgid "Search Custom Code"
70
+ msgstr "Özel Kod ara"
71
+
72
+ #: custom-css-js.php:209
73
+ msgid "Parent Custom Code:"
74
+ msgstr "Ana Özel Kod:"
75
+
76
+ #: custom-css-js.php:210
77
+ msgid "No Custom Code found."
78
+ msgstr "Özel Kod bulunmadı."
79
+
80
+ #: custom-css-js.php:211
81
+ msgid "No Custom Code found in Trash."
82
+ msgstr "Çöp kutusunda özel kod bulunmadı."
83
+
84
+ #: custom-css-js.php:232
85
+ msgid "Custom CSS and JS code"
86
+ msgstr "Özel CSS ve JS Kodu"
87
+
88
+ #: custom-css-js.php:277
89
+ msgid "Web Designer"
90
+ msgstr "Web Tasarımcı"
91
+
92
+ #: custom-css-js.php:372
93
+ msgid "Settings"
94
+ msgstr "Ayarlar"
95
+
96
+ #: includes/admin-addons.php:42 includes/admin-screens.php:631
97
+ msgid "Available only in <br />Simple Custom CSS and JS Pro"
98
+ msgstr "Sadece <br />Simple Custom CSS and JS Pro<br />versiyonunda mevcut"
99
+
100
+ #: includes/admin-addons.php:54
101
+ msgid "Preview"
102
+ msgstr "Öngörünüm"
103
+
104
+ #: includes/admin-addons.php:55
105
+ msgid "Apply only on these URLs"
106
+ msgstr "Sadece bu URL lere uygula"
107
+
108
+ #: includes/admin-addons.php:56
109
+ msgid "Code Revisions"
110
+ msgstr "Kod revizyonları"
111
+
112
+ #: includes/admin-addons.php:67
113
+ msgid "Full URL on which to preview the changes ..."
114
+ msgstr "Değişikliklerin öngörünümünü istediğiniz URL in tam adresi …"
115
+
116
+ #: includes/admin-addons.php:68
117
+ msgid "Preview Changes"
118
+ msgstr "Değişiklikleri ön izle"
119
+
120
+ #: includes/admin-addons.php:82
121
+ 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
129
+ msgid "Contains"
130
+ msgstr "içeriyor"
131
+
132
+ #: includes/admin-addons.php:85
133
+ msgid "Not contains"
134
+ msgstr "içermiyor"
135
+
136
+ #: includes/admin-addons.php:86
137
+ msgid "Is equal to"
138
+ msgstr "eşit"
139
+
140
+ #: includes/admin-addons.php:87
141
+ msgid "Not equal to"
142
+ msgstr "eşit değil"
143
+
144
+ #: includes/admin-addons.php:88
145
+ msgid "Starts with"
146
+ msgstr "Şunla başlıyor"
147
+
148
+ #: includes/admin-addons.php:89
149
+ msgid "Ends by"
150
+ msgstr "şunla bitiyor"
151
+
152
+ #: includes/admin-addons.php:100 includes/admin-addons.php:101
153
+ msgid "URL"
154
+ msgstr "URL"
155
+
156
+ #: includes/admin-addons.php:102
157
+ msgid "Text filter"
158
+ msgstr "Tekst süzgeci"
159
+
160
+ #: includes/admin-addons.php:103
161
+ msgid "Add"
162
+ msgstr "Ekle"
163
+
164
+ #: includes/admin-addons.php:114
165
+ msgctxt "revision date format"
166
+ msgid "F j, Y @ H:i:s"
167
+ msgstr "F j, Y @ H:i:s"
168
+
169
+ #: includes/admin-addons.php:136 includes/admin-addons.php:169
170
+ msgid "Compare"
171
+ msgstr "Karşılaştır"
172
+
173
+ #: includes/admin-addons.php:137
174
+ msgid "Revision"
175
+ msgstr "Revizyon"
176
+
177
+ #: includes/admin-addons.php:138 includes/admin-screens.php:268
178
+ msgid "Author"
179
+ msgstr "Yazar"
180
+
181
+ #: includes/admin-addons.php:139 includes/admin-addons.php:173
182
+ msgid "Delete"
183
+ msgstr "Sil"
184
+
185
+ #: includes/admin-addons.php:140 includes/admin-addons.php:163
186
+ msgid "Restore"
187
+ msgstr "Geri yükle"
188
+
189
+ #: includes/admin-notices.php:125
190
+ msgid "Get your discount now"
191
+ msgstr "Şimdi indirimi al"
192
+
193
+ #: includes/admin-notices.php:125 includes/admin-notices.php:190
194
+ msgid "Dismiss this notice"
195
+ msgstr "Bu uyarıyı yoksay"
196
+
197
+ #: includes/admin-screens.php:94
198
+ msgid "Add Custom CSS"
199
+ msgstr "Özel CSS Ekle"
200
+
201
+ #: includes/admin-screens.php:97
202
+ msgid "Add Custom JS"
203
+ msgstr "Özel JS Ekle"
204
+
205
+ #: includes/admin-screens.php:100
206
+ msgid "Add Custom HTML"
207
+ msgstr "Özel HTML Ekle"
208
+
209
+ #: includes/admin-screens.php:189
210
+ msgid "Options"
211
+ msgstr "Seçenekler"
212
+
213
+ #: includes/admin-screens.php:249
214
+ msgid "Add CSS code"
215
+ msgstr "CSS Kodu ekle"
216
+
217
+ #: includes/admin-screens.php:250
218
+ msgid "Add JS code"
219
+ msgstr "JS Kodu ekle"
220
+
221
+ #: includes/admin-screens.php:251
222
+ msgid "Add HTML code"
223
+ msgstr "HTML Kodu ekle"
224
+
225
+ #: includes/admin-screens.php:265
226
+ msgid "Active"
227
+ msgstr "Aktif"
228
+
229
+ #: includes/admin-screens.php:266
230
+ msgid "Type"
231
+ msgstr "Çeşidi"
232
+
233
+ #: includes/admin-screens.php:267
234
+ msgid "Title"
235
+ msgstr "Başlık"
236
+
237
+ #: includes/admin-screens.php:269
238
+ msgid "Date"
239
+ msgstr "Tarih"
240
+
241
+ #: includes/admin-screens.php:270
242
+ msgid "Modified"
243
+ msgstr "Değiştirilme"
244
+
245
+ #: includes/admin-screens.php:299
246
+ msgid "%s ago"
247
+ msgstr "%s önce"
248
+
249
+ #: includes/admin-screens.php:301
250
+ msgid "Y/m/d"
251
+ msgstr "Y/m/d"
252
+
253
+ #: includes/admin-screens.php:309
254
+ msgid "Toggle active"
255
+ msgstr "Aktiflik durumunu değiştir"
256
+
257
+ #: includes/admin-screens.php:311
258
+ msgid "The code is active. Click to deactivate it"
259
+ msgstr "Bu kod faal. Devre dışı bırakmak için tıklayınız"
260
+
261
+ #: includes/admin-screens.php:314
262
+ msgid "The code is inactive. Click to activate it"
263
+ msgstr "Bu kod faal değil. Faal hale getirmek için tıklayınız"
264
+
265
+ #: includes/admin-screens.php:365
266
+ msgid "Custom Code"
267
+ msgstr "Özel Kod"
268
+
269
+ #: includes/admin-screens.php:366 includes/admin-screens.php:397
270
+ msgid "Add CSS Code"
271
+ msgstr "CSS Kodu Ekle"
272
+
273
+ #: includes/admin-screens.php:367 includes/admin-screens.php:398
274
+ msgid "Add JS Code"
275
+ msgstr "JS Kodu Ekle"
276
+
277
+ #: includes/admin-screens.php:368 includes/admin-screens.php:399
278
+ msgid "Add HTML Code"
279
+ msgstr "HTML Kodu Ekle"
280
+
281
+ #: includes/admin-screens.php:407
282
+ msgid "Code updated"
283
+ msgstr "Kod güncellendi"
284
+
285
+ #: includes/admin-screens.php:490
286
+ msgid ""
287
+ "/* Add your JavaScript code here.\n"
288
+ " \n"
289
+ "If you are using the jQuery library, then don't forget to wrap your code "
290
+ "inside jQuery.ready() as follows:\n"
291
+ "\n"
292
+ "jQuery(document).ready(function( $ ){\n"
293
+ " // Your code in here \n"
294
+ "});\n"
295
+ "\n"
296
+ "End of comment */ "
297
+ msgstr ""
298
+ "/* Javascript kodunuzu buraya ekleyiniz..\n"
299
+ " \n"
300
+ "Eğer jQuery kutuphanesi kullaniyorsaniz, kodunuzu asagidaki gibi jQuery."
301
+ "ready() icine koymayi unutmayiniz:\n"
302
+ "\n"
303
+ "jQuery(document).ready(function( $ ){\n"
304
+ " //Kodunuz buraya gelecek \n"
305
+ "});\n"
306
+ "\n"
307
+ "Yorum sonu */ "
308
+
309
+ #: includes/admin-screens.php:506
310
+ msgid ""
311
+ "<!-- Add HTML code to the header or the footer. \n"
312
+ "\n"
313
+ "For example, you can use the following code for loading the jQuery library "
314
+ "from Google CDN:\n"
315
+ "<script src=\"https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min."
316
+ "js\"></script>\n"
317
+ "\n"
318
+ "or the following one for loading the Bootstrap library from MaxCDN:\n"
319
+ "<link rel=\"stylesheet\" href=\"https://maxcdn.bootstrapcdn.com/"
320
+ "bootstrap/3.3.7/css/bootstrap.min.css\" integrity=\"sha384-"
321
+ "BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u\" "
322
+ "crossorigin=\"anonymous\">\n"
323
+ "\n"
324
+ "-- End of the comment --> "
325
+ msgstr ""
326
+ "<!-- HTML kodunu sayfa üstbaşlığına (header) veya sayfa altbaşlığına "
327
+ "ekler. \n"
328
+ "\n"
329
+ "Örnegin, Google CDN den jQuery kutuphanesini cagirmak icin asagidaki kodu "
330
+ "kullanabilirsiniz:\n"
331
+ "<script src=“https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min."
332
+ "js”></script>\n"
333
+ "\n"
334
+ "veya MaxCDN den Bootstrap kutuphanesini cagirmak icin asagidakini "
335
+ "kullanabilirsiniz:\n"
336
+ "<link rel=“stylesheet” href=“https://maxcdn.bootstrapcdn.com/"
337
+ "bootstrap/3.3.7/css/bootstrap.min.css” integrity=“sha384-"
338
+ "BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u” "
339
+ "crossorigin=“anonymous”>\n"
340
+ "\n"
341
+ " -- Yorum Sonu --> "
342
+
343
+ #: includes/admin-screens.php:532
344
+ msgid ""
345
+ "/* Add your CSS code here.\n"
346
+ " \n"
347
+ "For example:\n"
348
+ ".example {\n"
349
+ " color: red;\n"
350
+ "}\n"
351
+ "\n"
352
+ "For brushing up on your CSS knowledge, check out http://www.w3schools.com/"
353
+ "css/css_syntax.asp\n"
354
+ "\n"
355
+ "End of comment */ "
356
+ msgstr ""
357
+ "/* CSS kodunuzu buraya ekleyiniz.\n"
358
+ " \n"
359
+ "Ornegin :\n"
360
+ ".ornek {\n"
361
+ " color: red;\n"
362
+ "}\n"
363
+ "\n"
364
+ "CSS bilgilerinizi parlatmak icin, suraya bakiniz: http://www.w3schools.com/"
365
+ "css/css_syntax.asp\n"
366
+ "\n"
367
+ "yorum sonu*/ "
368
+
369
+ #: includes/admin-screens.php:646
370
+ msgid "Linking type"
371
+ msgstr "Linkleme çeşidi"
372
+
373
+ #: includes/admin-screens.php:651
374
+ msgid "External File"
375
+ msgstr "Harici Dosya"
376
+
377
+ #: includes/admin-screens.php:655
378
+ msgid "Internal"
379
+ msgstr "Dahili"
380
+
381
+ #: includes/admin-screens.php:661 includes/admin-screens.php:745
382
+ msgid "Where on page"
383
+ msgstr "Sayfanın neresinde"
384
+
385
+ #: includes/admin-screens.php:666 includes/admin-screens.php:750
386
+ msgid "Header"
387
+ msgstr "Üstbaşlık (Header)"
388
+
389
+ #: includes/admin-screens.php:670 includes/admin-screens.php:754
390
+ msgid "Footer"
391
+ msgstr "Altbaşlık (Footer)"
392
+
393
+ #: includes/admin-screens.php:676 includes/admin-screens.php:760
394
+ msgid "Where in site"
395
+ msgstr "Sitede nerede"
396
+
397
+ #: includes/admin-screens.php:681 includes/admin-screens.php:765
398
+ msgid "In Frontend"
399
+ msgstr "Önyüzde"
400
+
401
+ #: includes/admin-screens.php:685 includes/admin-screens.php:769
402
+ msgid "In Admin"
403
+ msgstr "Yönetici panelinde"
404
+
405
+ #: includes/admin-screens.php:691
406
+ msgid "CSS Preprocessor"
407
+ msgstr "CSS Önişleyici"
408
+
409
+ #: includes/admin-screens.php:696
410
+ msgid "None"
411
+ msgstr "Yok"
412
+
413
+ #: includes/admin-screens.php:699
414
+ msgid "Less"
415
+ msgstr "Less"
416
+
417
+ #: includes/admin-screens.php:702
418
+ msgid "SASS (only SCSS syntax)"
419
+ msgstr "SASS (sadece SCSS yazımı)"
420
+
421
+ #: includes/admin-screens.php:708
422
+ msgid "Minify the code"
423
+ msgstr "Kodu küçült"
424
+
425
+ #: includes/admin-screens.php:715 includes/admin-screens.php:796
426
+ msgid "Priority"
427
+ msgstr "Öncelik"
428
+
429
+ #: includes/admin-screens.php:720 includes/admin-screens.php:801
430
+ msgctxt "1 is the highest priority"
431
+ msgid "1 (highest)"
432
+ msgstr "1 (En yüksek)"
433
+
434
+ #: includes/admin-screens.php:729 includes/admin-screens.php:810
435
+ msgctxt "10 is the lowest priority"
436
+ msgid "10 (lowest)"
437
+ msgstr "10 (en düşük)"
438
+
439
+ #: includes/admin-screens.php:775
440
+ msgid "On which device"
441
+ msgstr "Hangi cihazlarda"
442
+
443
+ #: includes/admin-screens.php:781
444
+ msgid "Desktop"
445
+ msgstr "Masaüstü"
446
+
447
+ #: includes/admin-screens.php:785
448
+ msgid "Mobile"
449
+ msgstr "Mobil"
450
+
451
+ #: includes/admin-screens.php:789
452
+ msgid "Both"
453
+ msgstr "Her ikisi"
454
+
455
+ #: includes/admin-screens.php:932
456
+ msgid "The %s directory could not be created"
457
+ msgstr "%s klasörü oluşturulamadı"
458
+
459
+ #: includes/admin-screens.php:933
460
+ msgid "Please run the following commands in order to make the directory"
461
+ msgstr "Klasör oluşturmak için lütfen aşağıdaki komutları çalıştırın"
462
+
463
+ #: includes/admin-screens.php:941
464
+ msgid ""
465
+ "The %s directory is not writable, therefore the CSS and JS files cannot be "
466
+ "saved."
467
+ msgstr ""
468
+ "%s klasörü yazılabilir değil, o yüzden CSS ve JS dosyaları kaydedilemedi."
469
+
470
+ #: includes/admin-screens.php:942
471
+ msgid "Please run the following command to make the directory writable"
472
+ msgstr "Lütfen klasörü yazılabilir yapmak için aşağıdaki komutu çalıştırın"
473
+
474
+ #: includes/admin-warnings.php:55
475
+ msgid ""
476
+ "Please remove the <b>custom-css-js</b> post type from the <b>qTranslate "
477
+ "settings</b> in order to avoid some malfunctions in the Simple Custom CSS & "
478
+ "JS plugin. Check out <a href=\"%s\" target=\"_blank\">this screenshot</a> "
479
+ "for more details on how to do that."
480
+ msgstr ""
481
+ "Simple Custom CSS & JS eklentisinde işlev bozukluklarından kaçınmak için "
482
+ "lütfen <b>qTranslate ayarlarından </b> <b>custom-css-js</b> yazı tipini "
483
+ "kaldırınız. Bunu nasıl yapacağınızın detayları hakkında <a href=“%s” "
484
+ "target=“_blank”>bu ekran görüntüsüne </a> bakınız."
485
+
486
+ #. Plugin URI of the plugin/theme
487
+ msgid "https://wordpress.org/plugins/custom-css-js/"
488
+ msgstr "https://wordpress.org/plugins/custom-css-js/"
489
+
490
+ #. Description of the plugin/theme
491
+ msgid "Easily add Custom CSS or JS to your website with an awesome editor."
492
+ msgstr ""
493
+ "Websitenize harika bir düzenleyici ile özel CSS veya JS i kolayca ekleyin."
494
+
495
+ #. Author of the plugin/theme
496
+ msgid "Diana Burduja"
497
+ msgstr "Diana Burduja"
498
+
499
+ #. Author URI of the plugin/theme
500
+ msgid "https://www.silkypress.com/"
501
+ msgstr "https://www.silkypress.com/"
languages/custom-css-js.pot ADDED
@@ -0,0 +1,500 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2017 Simple Custom CSS and JS
2
+ # This file is distributed under the same license as the Simple Custom CSS and JS package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Simple Custom CSS and JS 3.6\n"
6
+ "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/custom-css-js-"
7
+ "svn\n"
8
+ "POT-Creation-Date: 2017-09-28 11:58:14+00:00\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "PO-Revision-Date: 2017-MO-DA HO:MI+ZONE\n"
13
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
+ "Language-Team: LANGUAGE <LL@li.org>\n"
15
+
16
+ #: custom-css-js.php:51 custom-css-js.php:58
17
+ msgid "Cheatin&#8217; huh?"
18
+ msgstr ""
19
+
20
+ #: custom-css-js.php:213
21
+ msgctxt "post type general name"
22
+ msgid "Custom Code"
23
+ msgstr ""
24
+
25
+ #: custom-css-js.php:214
26
+ msgctxt "post type singular name"
27
+ msgid "Custom Code"
28
+ msgstr ""
29
+
30
+ #: custom-css-js.php:215
31
+ msgctxt "admin menu"
32
+ msgid "Custom CSS & JS"
33
+ msgstr ""
34
+
35
+ #: custom-css-js.php:216
36
+ msgctxt "add new on admin bar"
37
+ msgid "Custom Code"
38
+ msgstr ""
39
+
40
+ #: custom-css-js.php:217
41
+ msgctxt "add new"
42
+ msgid "Add Custom Code"
43
+ msgstr ""
44
+
45
+ #: custom-css-js.php:218
46
+ msgid "Add Custom Code"
47
+ msgstr ""
48
+
49
+ #: custom-css-js.php:219
50
+ msgid "New Custom Code"
51
+ msgstr ""
52
+
53
+ #: custom-css-js.php:220
54
+ msgid "Edit Custom Code"
55
+ msgstr ""
56
+
57
+ #: custom-css-js.php:221
58
+ msgid "View Custom Code"
59
+ msgstr ""
60
+
61
+ #: custom-css-js.php:222
62
+ msgid "All Custom Code"
63
+ msgstr ""
64
+
65
+ #: custom-css-js.php:223
66
+ msgid "Search Custom Code"
67
+ msgstr ""
68
+
69
+ #: custom-css-js.php:224
70
+ msgid "Parent Custom Code:"
71
+ msgstr ""
72
+
73
+ #: custom-css-js.php:225
74
+ msgid "No Custom Code found."
75
+ msgstr ""
76
+
77
+ #: custom-css-js.php:226
78
+ msgid "No Custom Code found in Trash."
79
+ msgstr ""
80
+
81
+ #: custom-css-js.php:247
82
+ msgid "Custom CSS and JS code"
83
+ msgstr ""
84
+
85
+ #: custom-css-js.php:292
86
+ msgid "Web Designer"
87
+ msgstr ""
88
+
89
+ #: custom-css-js.php:387
90
+ msgid "Settings"
91
+ msgstr ""
92
+
93
+ #: includes/admin-addons.php:42 includes/admin-screens.php:653
94
+ msgid "Available only in <br />Simple Custom CSS and JS Pro"
95
+ msgstr ""
96
+
97
+ #: includes/admin-addons.php:54
98
+ msgid "Preview"
99
+ msgstr ""
100
+
101
+ #: includes/admin-addons.php:55
102
+ msgid "Apply only on these URLs"
103
+ msgstr ""
104
+
105
+ #: includes/admin-addons.php:56
106
+ msgid "Code Revisions"
107
+ msgstr ""
108
+
109
+ #: includes/admin-addons.php:67
110
+ msgid "Full URL on which to preview the changes ..."
111
+ msgstr ""
112
+
113
+ #: includes/admin-addons.php:68
114
+ msgid "Preview Changes"
115
+ msgstr ""
116
+
117
+ #: includes/admin-addons.php:82
118
+ 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
126
+ msgid "Contains"
127
+ msgstr ""
128
+
129
+ #: includes/admin-addons.php:85
130
+ msgid "Not contains"
131
+ msgstr ""
132
+
133
+ #: includes/admin-addons.php:86
134
+ msgid "Is equal to"
135
+ msgstr ""
136
+
137
+ #: includes/admin-addons.php:87
138
+ msgid "Not equal to"
139
+ msgstr ""
140
+
141
+ #: includes/admin-addons.php:88
142
+ msgid "Starts with"
143
+ msgstr ""
144
+
145
+ #: includes/admin-addons.php:89
146
+ msgid "Ends by"
147
+ msgstr ""
148
+
149
+ #: includes/admin-addons.php:100 includes/admin-addons.php:101
150
+ msgid "URL"
151
+ msgstr ""
152
+
153
+ #: includes/admin-addons.php:102
154
+ msgid "Text filter"
155
+ msgstr ""
156
+
157
+ #: includes/admin-addons.php:103
158
+ msgid "Add"
159
+ msgstr ""
160
+
161
+ #: includes/admin-addons.php:114
162
+ msgctxt "revision date format"
163
+ msgid "F j, Y @ H:i:s"
164
+ msgstr ""
165
+
166
+ #: includes/admin-addons.php:136 includes/admin-addons.php:169
167
+ msgid "Compare"
168
+ msgstr ""
169
+
170
+ #: includes/admin-addons.php:137
171
+ msgid "Revision"
172
+ msgstr ""
173
+
174
+ #: includes/admin-addons.php:138 includes/admin-screens.php:269
175
+ msgid "Author"
176
+ msgstr ""
177
+
178
+ #: includes/admin-addons.php:139 includes/admin-addons.php:173
179
+ msgid "Delete"
180
+ msgstr ""
181
+
182
+ #: includes/admin-addons.php:140 includes/admin-addons.php:163
183
+ msgid "Restore"
184
+ msgstr ""
185
+
186
+ #: includes/admin-notices.php:125
187
+ msgid "Get your discount now"
188
+ msgstr ""
189
+
190
+ #: includes/admin-notices.php:125 includes/admin-notices.php:190
191
+ msgid "Dismiss this notice"
192
+ msgstr ""
193
+
194
+ #: includes/admin-screens.php:88
195
+ msgid "Add Custom CSS"
196
+ msgstr ""
197
+
198
+ #: includes/admin-screens.php:91
199
+ msgid "Add Custom JS"
200
+ msgstr ""
201
+
202
+ #: includes/admin-screens.php:94
203
+ msgid "Add Custom HTML"
204
+ msgstr ""
205
+
206
+ #: includes/admin-screens.php:159 includes/admin-screens.php:266
207
+ #: includes/admin-screens.php:1148
208
+ msgid "Active"
209
+ msgstr ""
210
+
211
+ #: includes/admin-screens.php:160 includes/admin-screens.php:1151
212
+ msgid "Inactive"
213
+ msgstr ""
214
+
215
+ #: includes/admin-screens.php:161 includes/admin-screens.php:1124
216
+ #: includes/admin-screens.php:1152
217
+ msgid "Activate"
218
+ msgstr ""
219
+
220
+ #: includes/admin-screens.php:162 includes/admin-screens.php:1121
221
+ #: includes/admin-screens.php:1149
222
+ msgid "Deactivate"
223
+ msgstr ""
224
+
225
+ #: includes/admin-screens.php:163 includes/admin-screens.php:311
226
+ #: includes/admin-screens.php:1120
227
+ msgid "The code is active. Click to deactivate it"
228
+ msgstr ""
229
+
230
+ #: includes/admin-screens.php:164 includes/admin-screens.php:314
231
+ #: includes/admin-screens.php:1123
232
+ msgid "The code is inactive. Click to activate it"
233
+ msgstr ""
234
+
235
+ #: includes/admin-screens.php:190
236
+ msgid "Options"
237
+ msgstr ""
238
+
239
+ #: includes/admin-screens.php:250
240
+ msgid "Add CSS code"
241
+ msgstr ""
242
+
243
+ #: includes/admin-screens.php:251
244
+ msgid "Add JS code"
245
+ msgstr ""
246
+
247
+ #: includes/admin-screens.php:252
248
+ msgid "Add HTML code"
249
+ msgstr ""
250
+
251
+ #: includes/admin-screens.php:267
252
+ msgid "Type"
253
+ msgstr ""
254
+
255
+ #: includes/admin-screens.php:268
256
+ msgid "Title"
257
+ msgstr ""
258
+
259
+ #: includes/admin-screens.php:270
260
+ msgid "Date"
261
+ msgstr ""
262
+
263
+ #: includes/admin-screens.php:271
264
+ msgid "Modified"
265
+ msgstr ""
266
+
267
+ #: includes/admin-screens.php:300
268
+ msgid "%s ago"
269
+ msgstr ""
270
+
271
+ #: includes/admin-screens.php:302
272
+ msgid "Y/m/d"
273
+ msgstr ""
274
+
275
+ #: includes/admin-screens.php:369
276
+ msgid "Custom Code"
277
+ msgstr ""
278
+
279
+ #: includes/admin-screens.php:370 includes/admin-screens.php:389
280
+ #: includes/admin-screens.php:410
281
+ msgid "Add CSS Code"
282
+ msgstr ""
283
+
284
+ #: includes/admin-screens.php:371 includes/admin-screens.php:390
285
+ #: includes/admin-screens.php:411
286
+ msgid "Add JS Code"
287
+ msgstr ""
288
+
289
+ #: includes/admin-screens.php:372 includes/admin-screens.php:391
290
+ #: includes/admin-screens.php:412
291
+ msgid "Add HTML Code"
292
+ msgstr ""
293
+
294
+ #: includes/admin-screens.php:392
295
+ msgid "Edit CSS Code"
296
+ msgstr ""
297
+
298
+ #: includes/admin-screens.php:393
299
+ msgid "Edit JS Code"
300
+ msgstr ""
301
+
302
+ #: includes/admin-screens.php:394
303
+ msgid "Edit HTML Code"
304
+ msgstr ""
305
+
306
+ #: includes/admin-screens.php:420
307
+ msgid "Code updated"
308
+ msgstr ""
309
+
310
+ #: includes/admin-screens.php:506
311
+ msgid ""
312
+ "/* Add your JavaScript code here.\n"
313
+ " \n"
314
+ "If you are using the jQuery library, then don't forget to wrap your code "
315
+ "inside jQuery.ready() as follows:\n"
316
+ "\n"
317
+ "jQuery(document).ready(function( $ ){\n"
318
+ " // Your code in here \n"
319
+ "});\n"
320
+ "\n"
321
+ "--\n"
322
+ "\n"
323
+ "If you want to link a JavaScript file that resides on another server "
324
+ "(similar to \n"
325
+ "<script src=\"https://example.com/your-js-file.js\"></script>), then please "
326
+ "use \n"
327
+ "the \"Add HTML Code\" page, as this is a HTML code that links a JavaScript "
328
+ "file.\n"
329
+ "\n"
330
+ "End of comment */ "
331
+ msgstr ""
332
+
333
+ #: includes/admin-screens.php:528
334
+ msgid ""
335
+ "<!-- Add HTML code to the header or the footer. \n"
336
+ "\n"
337
+ "For example, you can use the following code for loading the jQuery library "
338
+ "from Google CDN:\n"
339
+ "<script src=\"https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min."
340
+ "js\"></script>\n"
341
+ "\n"
342
+ "or the following one for loading the Bootstrap library from MaxCDN:\n"
343
+ "<link rel=\"stylesheet\" href=\"https://maxcdn.bootstrapcdn.com/"
344
+ "bootstrap/3.3.7/css/bootstrap.min.css\" integrity=\"sha384-"
345
+ "BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u\" "
346
+ "crossorigin=\"anonymous\">\n"
347
+ "\n"
348
+ "-- End of the comment --> "
349
+ msgstr ""
350
+
351
+ #: includes/admin-screens.php:554
352
+ msgid ""
353
+ "/* Add your CSS code here.\n"
354
+ " \n"
355
+ "For example:\n"
356
+ ".example {\n"
357
+ " color: red;\n"
358
+ "}\n"
359
+ "\n"
360
+ "For brushing up on your CSS knowledge, check out http://www.w3schools.com/"
361
+ "css/css_syntax.asp\n"
362
+ "\n"
363
+ "End of comment */ "
364
+ msgstr ""
365
+
366
+ #: includes/admin-screens.php:668
367
+ msgid "Linking type"
368
+ msgstr ""
369
+
370
+ #: includes/admin-screens.php:673
371
+ msgid "External File"
372
+ msgstr ""
373
+
374
+ #: includes/admin-screens.php:677
375
+ msgid "Internal"
376
+ msgstr ""
377
+
378
+ #: includes/admin-screens.php:683 includes/admin-screens.php:771
379
+ msgid "Where on page"
380
+ msgstr ""
381
+
382
+ #: includes/admin-screens.php:688 includes/admin-screens.php:776
383
+ msgid "Header"
384
+ msgstr ""
385
+
386
+ #: includes/admin-screens.php:692 includes/admin-screens.php:780
387
+ msgid "Footer"
388
+ msgstr ""
389
+
390
+ #: includes/admin-screens.php:698 includes/admin-screens.php:786
391
+ msgid "Where in site"
392
+ msgstr ""
393
+
394
+ #: includes/admin-screens.php:703 includes/admin-screens.php:791
395
+ msgid "In Frontend"
396
+ msgstr ""
397
+
398
+ #: includes/admin-screens.php:707 includes/admin-screens.php:795
399
+ msgid "In Admin"
400
+ msgstr ""
401
+
402
+ #: includes/admin-screens.php:711
403
+ msgid "On Login Page"
404
+ msgstr ""
405
+
406
+ #: includes/admin-screens.php:717
407
+ msgid "CSS Preprocessor"
408
+ msgstr ""
409
+
410
+ #: includes/admin-screens.php:722
411
+ msgid "None"
412
+ msgstr ""
413
+
414
+ #: includes/admin-screens.php:725
415
+ msgid "Less"
416
+ msgstr ""
417
+
418
+ #: includes/admin-screens.php:728
419
+ msgid "SASS (only SCSS syntax)"
420
+ msgstr ""
421
+
422
+ #: includes/admin-screens.php:734
423
+ msgid "Minify the code"
424
+ msgstr ""
425
+
426
+ #: includes/admin-screens.php:741 includes/admin-screens.php:822
427
+ msgid "Priority"
428
+ msgstr ""
429
+
430
+ #: includes/admin-screens.php:746 includes/admin-screens.php:827
431
+ msgctxt "1 is the highest priority"
432
+ msgid "1 (highest)"
433
+ msgstr ""
434
+
435
+ #: includes/admin-screens.php:755 includes/admin-screens.php:836
436
+ msgctxt "10 is the lowest priority"
437
+ msgid "10 (lowest)"
438
+ msgstr ""
439
+
440
+ #: includes/admin-screens.php:801
441
+ msgid "On which device"
442
+ msgstr ""
443
+
444
+ #: includes/admin-screens.php:807
445
+ msgid "Desktop"
446
+ msgstr ""
447
+
448
+ #: includes/admin-screens.php:811
449
+ msgid "Mobile"
450
+ msgstr ""
451
+
452
+ #: includes/admin-screens.php:815
453
+ msgid "Both"
454
+ msgstr ""
455
+
456
+ #: includes/admin-screens.php:958
457
+ msgid "The %s directory could not be created"
458
+ msgstr ""
459
+
460
+ #: includes/admin-screens.php:959
461
+ msgid "Please run the following commands in order to make the directory"
462
+ msgstr ""
463
+
464
+ #: includes/admin-screens.php:967
465
+ msgid ""
466
+ "The %s directory is not writable, therefore the CSS and JS files cannot be "
467
+ "saved."
468
+ msgstr ""
469
+
470
+ #: includes/admin-screens.php:968
471
+ msgid "Please run the following command to make the directory writable"
472
+ msgstr ""
473
+
474
+ #: includes/admin-warnings.php:55
475
+ msgid ""
476
+ "Please remove the <b>custom-css-js</b> post type from the <b>qTranslate "
477
+ "settings</b> in order to avoid some malfunctions in the Simple Custom CSS & "
478
+ "JS plugin. Check out <a href=\"%s\" target=\"_blank\">this screenshot</a> "
479
+ "for more details on how to do that."
480
+ msgstr ""
481
+
482
+ #. Plugin Name of the plugin/theme
483
+ msgid "Simple Custom CSS and JS"
484
+ msgstr ""
485
+
486
+ #. Plugin URI of the plugin/theme
487
+ msgid "https://wordpress.org/plugins/custom-css-js/"
488
+ msgstr ""
489
+
490
+ #. Description of the plugin/theme
491
+ msgid "Easily add Custom CSS or JS to your website with an awesome editor."
492
+ msgstr ""
493
+
494
+ #. Author of the plugin/theme
495
+ msgid "Diana Burduja"
496
+ msgstr ""
497
+
498
+ #. Author URI of the plugin/theme
499
+ msgid "https://www.silkypress.com/"
500
+ msgstr ""
readme.txt CHANGED
@@ -1,12 +1,12 @@
1
  === Simple Custom CSS and JS ===
2
  Created: 06/12/2015
3
  Contributors: diana_burduja
4
- Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=diana.burduja@gmail.com&lc=AT&item_name=Diana%20Burduja&item_number=WP%2dImage%2dZoooom%2dplugin&currency_code=EUR&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted
5
  Email: diana@burduja.eu
6
  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
7
  Requires at least: 3.0.1
8
- Tested up to: 4.7
9
- Stable tag: 2.10
10
  License: GPLv3
11
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
12
 
@@ -24,46 +24,6 @@ Customize your WordPress site's appearance by easily adding custom CSS and JS co
24
  * Add as many codes as you want
25
  * Keep your changes also when you change the theme
26
 
27
- = Frequently Asked Questions =
28
-
29
- * **What if I want to add multiple external CSS codes?**
30
- If you write multiple codes of the same type (for example: two external CSS codes), then all of them will be printed one after another
31
-
32
- * **Will this plugin affect the loading time?**
33
- When you click the `Save` button the codes will be cached in files, so there are no tedious database queries.
34
-
35
- * **Does the plugin modify the code I write in the editor?**
36
- No, the code is printed exactly as in the editor. It is not modified/checked/validated in any way. You take the full responsability for what is written in there.
37
-
38
- * **My code doesn't show on the website**
39
- Try one of the following:
40
- 1. If you are using any caching plugin (like "W3 Total Cache" or "WP Fastest Cache"), then don't forget to delete the cache before seing the code printed on the website.
41
- 2. Make sure the code is in **Published** state (not **Draft** or **in Trash**).
42
- 3. Check if the `wp-content/uploads/custom-css-js` folder exists and is writable
43
-
44
- * **Does it work with a Multisite Network?**
45
- Yes.
46
-
47
- * **What if I change the theme?**
48
- The CSS and JS are independent of the theme and they will persist through a theme change. This is particularly useful if you apply CSS and JS for modifying a plugin's output.
49
-
50
- * **Can I use a CSS preprocesor like LESS or Sass?**
51
- For the moment only plain CSS is supported, but you can check out the [Pro version](https://www.silkypress.com/simple-custom-css-js-pro/?utm_source=wordpress&utm_campaign=ccj_free&utm_medium=banner) in case you need a CSS preprocessor.
52
-
53
- * **Can I upload images for use with my CSS?**
54
- Yes. You can upload an image to your Media Library, then refer to it by its direct URL from within the CSS stylesheet. For example:
55
- `div#content {
56
- background-image: url('http://example.com/wp-content/uploads/2015/12/image.jpg');
57
- }`
58
-
59
- * **Can I use CSS rules like @import and @font-face?**
60
- Yes.
61
-
62
- * **CSS Help.**
63
- If you are just starting with CSS, then here you'll find some resources:
64
- * [codecademy.com - Learn HTML & CSS](https://www.codecademy.com/learn/web)
65
- * [Wordpress.org - Finding Your CSS Styles](https://codex.wordpress.org/Finding_Your_CSS_Styles)
66
-
67
  == Installation ==
68
 
69
  * From the WP admin panel, click "Plugins" -> "Add new".
@@ -93,16 +53,56 @@ OR...
93
  = Requirements =
94
  PHP >= 5.3
95
 
96
- = Browser requirements =
97
  * Firefox - version 4 and up
98
  * Chrome - any version
99
  * Safari - version 5.2 and up
100
  * Internet Explorer - version 8 and up
101
  * Opera - version 9 and up
102
 
103
- = Small incompatibilities =
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
104
  * If the [qTranslate X](https://wordpress.org/plugins/qtranslate-x/) plugin is adding some `[:]` or `[:en]` characters to your code, then you need to remove the `custom-css-js` post type from the qTranslate settings. Check out [this screenshot](https://www.silkypress.com/wp-content/uploads/2016/08/ccj_qtranslate_compatibility.png) on how to do that.
105
 
 
 
 
 
106
  == Screenshots ==
107
 
108
  1. Manage Custom Codes
@@ -115,8 +115,44 @@ $. Add/Edit HTML
115
 
116
  == Changelog ==
117
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
118
  = 2.10 =
119
- * 02/05/2016
120
  * Feature: circumvent external file caching by adding a GET parameter
121
  * Add special offer for Simple Custom CSS and JS pro
122
 
1
  === Simple Custom CSS and JS ===
2
  Created: 06/12/2015
3
  Contributors: diana_burduja
4
+ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=diana.burduja@gmail.com&lc=AT&item_name=Diana%20Burduja&item_number=Simple%2dCustom%2dCSS%2dand%2dJS%2dplugin&currency_code=EUR&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted
5
  Email: diana@burduja.eu
6
  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
7
  Requires at least: 3.0.1
8
+ Tested up to: 4.8
9
+ Stable tag: 3.7
10
  License: GPLv3
11
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
12
 
24
  * Add as many codes as you want
25
  * Keep your changes also when you change the theme
26
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
  == Installation ==
28
 
29
  * From the WP admin panel, click "Plugins" -> "Add new".
53
  = Requirements =
54
  PHP >= 5.3
55
 
56
+ **Browser requirements**
57
  * Firefox - version 4 and up
58
  * Chrome - any version
59
  * Safari - version 5.2 and up
60
  * Internet Explorer - version 8 and up
61
  * Opera - version 9 and up
62
 
63
+ = What if I want to add multiple external CSS codes? =
64
+ If you write multiple codes of the same type (for example: two external CSS codes), then all of them will be printed one after another
65
+
66
+ = Will this plugin affect the loading time? =
67
+ When you click the `Save` button the codes will be cached in files, so there are no tedious database queries.
68
+
69
+ = Does the plugin modify the code I write in the editor? =
70
+ No, the code is printed exactly as in the editor. It is not modified/checked/validated in any way. You take the full responsability for what is written in there.
71
+
72
+ = My code doesn't show on the website =
73
+ Try one of the following:
74
+ 1. If you are using any caching plugin (like "W3 Total Cache" or "WP Fastest Cache"), then don't forget to delete the cache before seing the code printed on the website.
75
+ 2. Make sure the code is in **Published** state (not **Draft** or **in Trash**).
76
+ 3. Check if the `wp-content/uploads/custom-css-js` folder exists and is writable
77
+
78
+ = Does it work with a Multisite Network? =
79
+ Yes.
80
+
81
+ = What if I change the theme? =
82
+ The CSS and JS are independent of the theme and they will persist through a theme change. This is particularly useful if you apply CSS and JS for modifying a plugin's output.
83
+
84
+ = Can I use a CSS preprocesor like LESS or Sass? =
85
+ For the moment only plain CSS is supported, but you can check out the [Pro version](https://www.silkypress.com/simple-custom-css-js-pro/?utm_source=wordpress&utm_campaign=ccj_free&utm_medium=banner) in case you need a CSS preprocessor.
86
+
87
+ = Can I upload images for use with my CSS? =
88
+ Yes. You can upload an image to your Media Library, then refer to it by its direct URL from within the CSS stylesheet. For example:
89
+ `div#content {
90
+ background-image: url('http://example.com/wp-content/uploads/2015/12/image.jpg');
91
+ }`
92
+
93
+ = Can I use CSS rules like @import and @font-face? =
94
+ Yes.
95
+
96
+ = Who can publish/edit/delete Custom Codes? =
97
+ By default only the Administrator will be able to publish/edit/delete Custom Codes. Check out [this article](https://www.silkypress.com/simple_custom_css_js/user-capabilities-simple-custom-css-js-plugin/) for more details on roles and user capabilities customizations.
98
+
99
+ = Compatibility with qTranslate X plugin =
100
  * If the [qTranslate X](https://wordpress.org/plugins/qtranslate-x/) plugin is adding some `[:]` or `[:en]` characters to your code, then you need to remove the `custom-css-js` post type from the qTranslate settings. Check out [this screenshot](https://www.silkypress.com/wp-content/uploads/2016/08/ccj_qtranslate_compatibility.png) on how to do that.
101
 
102
+ = My website has HTTPS urls, but the codes are linked as HTTP =
103
+ The URL for the linked Codes is built just like the URL for other media (from Media Library) by using the WordPress Address option found on the WP Admin -> Settings -> General page, as shown in [this screenshot](https://www.silkypress.com/wp-content/uploads/2016/12/ccj-siteurl.png). If the WordPress Address has HTTPS in the url, then the Custom Codes and all the other media will have HTTPS in the url.
104
+
105
+
106
  == Screenshots ==
107
 
108
  1. Manage Custom Codes
115
 
116
  == Changelog ==
117
 
118
+ = 3.7
119
+ * 10/06/2017
120
+ * Add French and Polish translation
121
+
122
+ = 3.6 =
123
+ * 09/07/2017
124
+ * Fix: compatibility with the CSS Plus plugin
125
+
126
+ = 3.5 =
127
+ * 08/25/2017
128
+ * Code refactoring
129
+ * Add activate/deactivate link to row actions and in Publish box
130
+ * Make the activate/deactivate links work with AJAX
131
+ * Add Turkish translation
132
+
133
+ = 3.4 =
134
+ * 07/11/2017
135
+ * Security fix according to VN: JVN#31459091 / TN: JPCERT#91837758
136
+
137
+ = 3.3 =
138
+ * 06/23/2017
139
+ * Feature: option for adding Codes to the Login Page
140
+
141
+ = 3.2 =
142
+ * 06/13/2017
143
+ * Fix: compatibility issue with the HTML Editor Syntax Highlighter plugin
144
+
145
+ = 3.1 =
146
+ * 05/14/2017
147
+ * Feature: prepare the plugin for translation
148
+
149
+ = 3.0 =
150
+ * 04/12/2017
151
+ * Feature: create the Web Designer role
152
+ * Feature: allow Custom Codes to be managed only by users with the right capabilities
153
+
154
  = 2.10 =
155
+ * 02/05/2017
156
  * Feature: circumvent external file caching by adding a GET parameter
157
  * Add special offer for Simple Custom CSS and JS pro
158
 
screenshot-1.jpg DELETED
Binary file
screenshot-2.jpg DELETED
Binary file
screenshot-3.jpg DELETED
Binary file
screenshot-4.jpg DELETED
Binary file