CSS & JavaScript Toolbox - Version 6.1.3

Version Description

  • Enhance: UI Compatibility with Wordpress >
Download this release

Release Info

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

Code changes from version 6.1.2 to 6.1.3

css-js-toolbox.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: CSS & JavaScript Toolbox
4
  Plugin URI: http://css-javascript-toolbox.com/css-javascript-toolbox-free
5
  Description: CJT Plugin for WordPress to easily add custom CSS and JavaScript to individual pages
6
- Version: 6.1.2
7
  Author: Wipeout Media
8
  Author URI: http://css-javascript-toolbox.com/
9
  License:
@@ -95,7 +95,7 @@ class CJTPlugin extends CJTHookableClass {
95
  /**
96
  *
97
  */
98
- const VERSION = '6.1.2 CE';
99
 
100
  /**
101
  *
3
  Plugin Name: CSS & JavaScript Toolbox
4
  Plugin URI: http://css-javascript-toolbox.com/css-javascript-toolbox-free
5
  Description: CJT Plugin for WordPress to easily add custom CSS and JavaScript to individual pages
6
+ Version: 6.1.3
7
  Author: Wipeout Media
8
  Author URI: http://css-javascript-toolbox.com/
9
  License:
95
  /**
96
  *
97
  */
98
+ const VERSION = '6.1.3 CE';
99
 
100
  /**
101
  *
framework/wordpress/currentversion.php ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ */
5
+
6
+ /**
7
+ *
8
+ */
9
+ class CJT_Framework_Wordpress_Currentversion {
10
+
11
+ /**
12
+ * put your comment there...
13
+ *
14
+ * @var mixed
15
+ */
16
+ protected $version;
17
+
18
+ /**
19
+ * put your comment there...
20
+ *
21
+ */
22
+ public function __construct() {
23
+ // Read current version.
24
+ $this->version = get_bloginfo('version');
25
+ }
26
+
27
+ /**
28
+ * put your comment there...
29
+ *
30
+ */
31
+ public function getVersion() {
32
+ return $this->version;
33
+ }
34
+
35
+ /**
36
+ * put your comment there...
37
+ *
38
+ * @param mixed $version
39
+ */
40
+ public function isLess($version) {
41
+ return (version_compare($this->getVersion(), $version) == -1);
42
+ }
43
+
44
+ } // End class.
models/blocks.php CHANGED
@@ -117,6 +117,10 @@ class CJTBlocksModel {
117
  * @param mixed $ids
118
  */
119
  public function delete($ids) {
 
 
 
 
120
  // Create Tables objects.
121
  $blocks = new CJTBlocksTable($this->dbDriver);
122
  $pins = new CJTBlockPinsTable($this->dbDriver);
117
  * @param mixed $ids
118
  */
119
  public function delete($ids) {
120
+ // Allow single or multiple Ids to be passed.
121
+ if (!is_array($ids)) {
122
+ $ids = array($ids);
123
+ }
124
  // Create Tables objects.
125
  $blocks = new CJTBlocksTable($this->dbDriver);
126
  $pins = new CJTBlockPinsTable($this->dbDriver);
readme.txt CHANGED
@@ -6,8 +6,8 @@ Tags: Post, posts, admin, sidebar, page, pages, image, plug, plugin, customise,
6
  License: GPLv2 or later
7
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
8
  Requires at least: 3.6
9
- Tested up to: 3.7.1
10
- Stable tag: 6.1.2
11
 
12
  Easily add custom CSS, JavaScript, HTML and PHP code to unique CJT code blocks and assign them wherever you want.
13
 
@@ -128,6 +128,19 @@ Sometimes a bug decides to rear its ugly head and when this happens, this is whe
128
 
129
  == Changelog ==
130
 
 
 
 
 
 
 
 
 
 
 
 
 
 
131
  = 6.1.2 =
132
  * Fix: Break Wordpress frontend page pagination by issuing 301 redirect.
133
 
6
  License: GPLv2 or later
7
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
8
  Requires at least: 3.6
9
+ Tested up to: 3.8.1
10
+ Stable tag: 6.1.3
11
 
12
  Easily add custom CSS, JavaScript, HTML and PHP code to unique CJT code blocks and assign them wherever you want.
13
 
128
 
129
  == Changelog ==
130
 
131
+ = 6.1.3 =
132
+ * Enhance: UI Compatibility with Wordpress >= 3.8.
133
+ * Deprecated: New Block Form Activate, Location Hook and Initial position fields.
134
+ * Deprecated: Block Revisions.
135
+ * Deprecated: Blocks Backup and Restore.
136
+ * Deprecated: Assignment Panel Select-Childs Checkboxes.
137
+ * Deprecated: Minimize and Mazimize All.
138
+ * Deprecated: Batch Process (Delete All and Delete Empty).
139
+ * Deprecated: Output Location Switch (Header and Footer).
140
+ * Deprecated: State Switch (Activate, Deactivate and Invert).
141
+ * Deprecated: Shortcode TinyMCE button (Community users has to write Shortcode manually).
142
+ * Deprecated: Don't load more assignment objects by scroll (Community users has to use the pagination list).
143
+
144
  = 6.1.2 =
145
  * Fix: Break Wordpress frontend page pagination by issuing 301 redirect.
146
 
views/blocks/block/public/css/block-wp-lt-3.8.css ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ .edit-block-name input.block-name {
2
+ top: -6px !important;
3
+ margin-left: -3px !important;
4
+ }
5
+
6
+ .block-toolbox .icons-group a.cjt-tb-link { margin-top: 0px;}
views/blocks/block/public/css/block.css CHANGED
@@ -5,6 +5,7 @@
5
  */
6
  .cjt-block {min-width: 750px;}
7
 
 
8
  #cjtoolbox-admin div.postbox {
9
  display:none
10
  -moz-border-radius: 6px;
@@ -21,6 +22,7 @@
21
  border-top-left-radius: 6px;
22
  border-top-right-radius: 6px;
23
  border-bottom-color: #cccccc;
 
24
  }
25
  #cjtoolbox-admin #poststuff h3, .metabox-holder h3 {padding: 8px 10px;}
26
  /* Editor langauges list */
@@ -59,7 +61,7 @@
59
  width: 24px;
60
  height: 24px;
61
  display: inline-block;
62
- /* margin-top: 3px; */
63
  cursor: pointer;
64
  }
65
  .block-toolbox .icons-group a.il-60x23 {
@@ -94,7 +96,7 @@
94
  padding-left: 23px;
95
  padding-top: 5px;
96
  position: relative;
97
- top: -9px;
98
  width: 37px !important;
99
  height: 18px !important;
100
  }
@@ -110,7 +112,7 @@
110
  padding-left: 23px;
111
  padding-top: 5px;
112
  position: relative;
113
- top: -9px;
114
  width: 45px !important;
115
  height: 18px !important;
116
  margin-right: 10px !important;
@@ -136,6 +138,7 @@
136
  height: 30px;
137
  top: 0px;
138
  display: none;
 
139
  }
140
  .edit-block-name .icons-group {
141
  display: inline-block;
@@ -147,14 +150,11 @@
147
  width: 200px;
148
  margin-right: 10px;
149
  height: 24px;
150
- background-color: #F1F1F1;
151
  position: relative;
152
- top: -6px;
153
- margin-left: -3px;
154
- }
155
- span.block-name {
156
- cursor: pointer;
157
  }
 
158
  .edit-block-name .cancel { background-image: url(../images/edit-block-name/cancel.png); }
159
  .edit-block-name .save { background-image: url(../images/edit-block-name/save.png); }
160
 
5
  */
6
  .cjt-block {min-width: 750px;}
7
 
8
+ #cjtoolbox-admin {font-size: 12px !important;}
9
  #cjtoolbox-admin div.postbox {
10
  display:none
11
  -moz-border-radius: 6px;
22
  border-top-left-radius: 6px;
23
  border-top-right-radius: 6px;
24
  border-bottom-color: #cccccc;
25
+ font-size: 12px;
26
  }
27
  #cjtoolbox-admin #poststuff h3, .metabox-holder h3 {padding: 8px 10px;}
28
  /* Editor langauges list */
61
  width: 24px;
62
  height: 24px;
63
  display: inline-block;
64
+ margin-top: 3px;
65
  cursor: pointer;
66
  }
67
  .block-toolbox .icons-group a.il-60x23 {
96
  padding-left: 23px;
97
  padding-top: 5px;
98
  position: relative;
99
+ top: -7px;
100
  width: 37px !important;
101
  height: 18px !important;
102
  }
112
  padding-left: 23px;
113
  padding-top: 5px;
114
  position: relative;
115
+ top: -7px;
116
  width: 45px !important;
117
  height: 18px !important;
118
  margin-right: 10px !important;
138
  height: 30px;
139
  top: 0px;
140
  display: none;
141
+ font-size: 15px;
142
  }
143
  .edit-block-name .icons-group {
144
  display: inline-block;
150
  width: 200px;
151
  margin-right: 10px;
152
  height: 24px;
 
153
  position: relative;
154
+ top: -3px;
155
+ margin-left: -4px;
 
 
 
156
  }
157
+ span.block-name {cursor: pointer; font-size: 15px;}
158
  .edit-block-name .cancel { background-image: url(../images/edit-block-name/cancel.png); }
159
  .edit-block-name .save { background-image: url(../images/edit-block-name/save.png); }
160
 
views/blocks/block/public/images/toolbox/save.png DELETED
Binary file
views/blocks/block/public/js/jquery.block/jquery.block.js CHANGED
@@ -291,7 +291,6 @@
291
  editName.css('left', ((this.elements.blockName.position().left - 2) + 'px')) ;
292
  // Set input styles
293
  var styles = {
294
- 'background-color' : this.block.box.find('.hndle').css('background-color'),
295
  'font-size' : this.elements.blockName.css('font-size'),
296
  'font-family' : this.elements.blockName.css('font-family')
297
  };
291
  editName.css('left', ((this.elements.blockName.position().left - 2) + 'px')) ;
292
  // Set input styles
293
  var styles = {
 
294
  'font-size' : this.elements.blockName.css('font-size'),
295
  'font-family' : this.elements.blockName.css('font-family')
296
  };
views/blocks/block/view.php CHANGED
@@ -98,11 +98,15 @@ class CJTBlocksBlockView extends CJTView {
98
  *
99
  */
100
  public static function enqueueStyles() {
101
- // Use related styles.
102
- self::useStyles(__CLASS__,
103
- 'thickbox',
104
- 'views:blocks:block:public:css:{CJT-}block'
105
- );
 
 
 
 
106
  }
107
 
108
  /**
98
  *
99
  */
100
  public static function enqueueStyles() {
101
+ // Initialize style.
102
+ $styles = array('thickbox', 'views:blocks:block:public:css:{CJT-}block');
103
+ // IF WP < 3.8 add compatibility CSS file.
104
+ $wpVersion = new CJT_Framework_Wordpress_Currentversion();
105
+ if ($wpVersion->isLess('3.8')) {
106
+ $styles[] = 'views:blocks:block:public:css:{CJT-}block-wp-lt-3.8';
107
+ }
108
+ // Include styles.
109
+ self::useStyles(__CLASS__, $styles);
110
  }
111
 
112
  /**
views/blocks/cjt-block/helpers/wpnavmenuwalker.inc.php DELETED
@@ -1,106 +0,0 @@
1
- <?php
2
- /** Following code copied from WordPress core */
3
-
4
-
5
- /**
6
- * Create HTML list of nav menu input items.
7
- *
8
- * @package WordPress
9
- * @since 3.0.0
10
- * @uses Walker_Nav_Menu
11
- */
12
- class cj_Walker_Nav_Menu_Checklist extends Walker_Nav_Menu {
13
-
14
- /**
15
- * put your comment there...
16
- *
17
- * @param mixed $fields
18
- * @param mixed $boxid
19
- * @param mixed $type
20
- * @param mixed $selected
21
- * @return cj_Walker_Nav_Menu_Checklist
22
- */
23
- function __construct( $fields = false, $boxid = 0, $type = 'page', $selected = array()) {
24
- if ( $fields ) {
25
- $this->db_fields = $fields;
26
- }
27
- $this->boxid = $boxid;
28
- $this->selected = $selected;
29
- $this->type = $type;
30
- }
31
-
32
- /**
33
- * put your comment there...
34
- *
35
- * @param mixed $output
36
- * @param mixed $depth
37
- */
38
- function start_lvl( &$output, $depth = 0, $args = array() ) {
39
- $indent = str_repeat( "\t", $depth );
40
- $output .= "\n$indent<ul class='children'>\n";
41
- }
42
-
43
- /**
44
- * put your comment there...
45
- *
46
- * @param mixed $output
47
- * @param mixed $depth
48
- */
49
- function end_lvl( &$output, $depth = 0, $args = array() ) {
50
- $indent = str_repeat( "\t", $depth );
51
- $output .= "\n$indent</ul>";
52
- }
53
-
54
- /**
55
- * @see Walker::start_el()
56
- * @since 3.0.0
57
- *
58
- * @param string $output Passed by reference. Used to append additional content.
59
- * @param object $item Menu item data object.
60
- * @param int $depth Depth of menu item. Used for padding.
61
- * @param object $args
62
- */
63
- function start_el(&$output, $item, $depth = 0, $args = array(), $id = 0) {
64
- $possible_object_id = $item->object_id;
65
- $indent = ( $depth ) ? str_repeat( "\t", $depth ) : '';
66
- $output .= $indent . '<li>';
67
- // Get display text!
68
- $label = empty( $item->label ) ? esc_html( $item->title ) : esc_html( $item->label );
69
- // Get permalink
70
- if($this->type == 'categories') {
71
- $permalink = get_category_link($item->object_id);
72
- } else {
73
- $permalink = get_permalink($item->object_id);
74
- }
75
- $output .= '<label >';
76
- $output .= '<input type="checkbox" ';
77
- if ( ! empty( $item->_add_to_top ) ) {
78
- $output .= ' add-to-top';
79
- }
80
- $output .= ' name="cjtoolbox['.$this->boxid.']['.$this->type.'][]" value="'. esc_attr( $item->object_id ) .'" ';
81
- if(is_array($this->selected)) {
82
- $output .= in_array($item->object_id, $this->selected) ? 'checked="checked"' : '';
83
- }
84
- $output .= ' />';
85
- if ($this->type == 'categories') {
86
- $args = array(
87
- 'parent' => $item->term_id,
88
- 'hide_empty' => false,
89
- 'fields' => 'ids'
90
- );
91
- //print_r($item);
92
- $childs = get_categories($args);
93
- }
94
- else {
95
- $args = array(
96
- 'post_parent' => $item->ID,
97
- 'post_type' => $item->post_type
98
- );
99
- $childs = get_posts($args);
100
- }
101
- $output .= '</label>';
102
- $output .= !empty($childs) ? '<a href="#" class="select-childs-checkbox-overlay"></a><input type="checkbox" class="select-childs" /> ' : ' ';
103
- $output .= "<span title='{$label}'><a class='extr-link' href='{$permalink}' target='_blank'>{$label}</a></span>";
104
- }
105
-
106
- } // End class.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
views/blocks/cjt-block/helpers/wppageslist.inc.php DELETED
@@ -1,79 +0,0 @@
1
- <?php
2
- /**
3
- *
4
- */
5
-
6
-
7
- /**
8
- *
9
- */
10
- abstract class WPPagesListHelper {
11
-
12
- /**
13
- * Get taxanomy terms checkboxes selection list.
14
- *
15
- * @param string List Id.
16
- * @param array Selected terms list.
17
- */
18
- public static function show_taxonomy_with_checkbox($blockId, $selectedTaxonomies) {
19
- $taxonomy_name = 'category';
20
- $args = array(
21
- 'child_of' => 0,
22
- 'exclude' => '',
23
- 'hide_empty' => false,
24
- 'hierarchical' => 1,
25
- 'include' => '',
26
- 'include_last_update_time' => false,
27
- 'number' => 9999,
28
- 'order' => 'ASC',
29
- 'orderby' => 'name',
30
- 'pad_counts' => false,
31
- );
32
- $terms = get_terms($taxonomy_name, $args);
33
- if (!$terms || is_wp_error($terms)) {
34
- // No items
35
- return;
36
- }
37
- $db_fields = false;
38
- if (is_taxonomy_hierarchical($taxonomy_name)) {
39
- $db_fields = array( 'parent' => 'parent', 'id' => 'term_id' );
40
- }
41
- $walker = new cj_Walker_Nav_Menu_Checklist($db_fields, $blockId, 'categories', $selectedTaxonomies);
42
- $args['walker'] = $walker;
43
- echo walk_nav_menu_tree(array_map('wp_setup_nav_menu_item', $terms), 0, (object) $args);
44
- }
45
-
46
- /**
47
- * Get pages terms checkboxes selection list.
48
- *
49
- * @param string List Id.
50
- * @param array Selected pages list.
51
- */
52
- public static function show_pages_with_checkbox($blockId, $selectedPages, $postType, $name) {
53
- $args = array(
54
- 'order' => 'ASC',
55
- 'orderby' => 'title',
56
- 'posts_per_page' => 9999,
57
- 'post_type' => $postType,
58
- 'suppress_filters' => true,
59
- 'update_post_term_cache' => false,
60
- 'update_post_meta_cache' => false
61
- );
62
- // @todo transient caching of these results with proper invalidation on updating of a post of this type
63
- $get_posts = new WP_Query;
64
- $posts = $get_posts->query($args);
65
- if (!$get_posts->post_count) {
66
- // No items
67
- return;
68
- }
69
- $db_fields = false;
70
- if (is_post_type_hierarchical($postType)) {
71
- $db_fields = array( 'parent' => 'post_parent', 'id' => 'ID' );
72
- }
73
- $walker = new cj_Walker_Nav_Menu_Checklist($db_fields, $blockId, $name, $selectedPages);
74
- $args['walker'] = $walker;
75
- $checkbox_items = walk_nav_menu_tree(array_map('wp_setup_nav_menu_item', $posts), 0, (object) $args);
76
- echo $checkbox_items;
77
- }
78
-
79
- } // End class.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
views/blocks/cjt-block/public/css/block-wp-lt-3.8.css ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ .select-childs {
2
+ left: 2px;
3
+ top: 2px;
4
+ }
5
+ .select-childs-checkbox-overlay {
6
+ width: 12px;
7
+ height: 12px;
8
+ top: 3px;
9
+ left: 3px;
10
+ }
views/blocks/cjt-block/public/css/block.css CHANGED
@@ -1,3 +1,4 @@
 
1
  /** reserve Objects Panel space */
2
  .cjcodeblock {margin-right:317px;}
3
  /* Pages Panel */
@@ -13,9 +14,28 @@
13
  }
14
  /* Wrap long text */
15
  .pagelist a{color: black; text-decoration: none;}
16
- .select-childs {position: relative; left: 2px; top: 2px; margin-left:-12px !important; margin-right: 1px !important; margin-top: 0px !important;}
17
- .select-childs-checkbox-overlay {background-color: #bb5300; position: relative; width: 12px; height: 12px; opacity: 0.3; filter: alpha(opacity = 30); display: inline-block; top: 3px; z-index: 1; left: 3px;}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  .select-childs-checkbox-overlay:hover {opacity: 0.5; filter: alpha(opacity = 50);}
 
19
  .pagelist a:hover{color: #B06D38; font-weight: bold;}
20
  .pagelist>li>span {width: 203px;overflow: hidden; display: inline-block; height: 21px; vertical-align: middle;}
21
  .pagelist li span>a {margin-left: 4px;}
@@ -28,7 +48,7 @@
28
  div.cjpageblock .objects-list-button > a.prog-colored {color: transparent !important;}
29
 
30
  .info-panel {display: none; margin-top: 4px; margin-right: 2px; text-align: right;}
31
- .info-panel .counter {font-size: 14px;}
32
  .info-panel .counter .info-panel-loaded-count {color: #A5581B;}
33
  .info-panel .optional-actions {display: inline-block; width: 80px; height: 12px;}
34
  .info-panel .optional-actions .pagination-list {
@@ -47,9 +67,9 @@ div.cjpageblock .objects-list-button > a.prog-colored {color: transparent !impor
47
  width: 61px;
48
  height: 198px !important;
49
  position: relative;
50
- margin-left: -64px;
51
  margin-top: -179px;
52
- left: -13px;
53
  top: -7px;
54
  color: #A5581B;
55
  font-size: 13px;
@@ -117,7 +137,7 @@ a.acc-header:visited,
117
  .cjpageblock .ui-tabs .ui-tabs-nav { margin: 0;}
118
  .cjpageblock .ui-tabs .ui-tabs-nav li { list-style: none; top: 1px; margin: 0 .2em 1px 0; padding: 0; white-space: nowrap; }
119
  .cjpageblock .ui-tabs .ui-tabs-nav li a { background:#F1F1F1; color:#999999; border-color:#DFDFDF #DFDFDF #CCCCCC; height:18px;margin:5px 5px 0 0;float:right;cursor:pointer;border-width:1px;border-style:solid;-moz-border-radius:3px 3px 0 0;-webkit-border-top-right-radius:3px;-webkit-border-top-left-radius:3px;-khtml-border-top-right-radius:3px;-khtml-border-top-left-radius:3px;border-top-right-radius:3px;border-top-left-radius:3px; border-bottom: 0 !important; }
120
- .cjpageblock .ui-tabs .ui-tabs-nav li a { float: left; padding: .5em 1.4em; text-decoration: none; }
121
  .cjpageblock .ui-tabs .ui-tabs-nav li.ui-tabs-selected { margin-bottom: 0; padding-bottom: 1px; }
122
  .cjpageblock .ui-tabs .ui-tabs-nav li.ui-tabs-selected a, .ui-tabs .ui-tabs-nav li.ui-state-disabled a, .ui-tabs .ui-tabs-nav li.ui-state-processing a { cursor: text; background:#E9E9E9; border-color:#CCCCCC #CCCCCC #E9E9E9; color:#333333; }
123
  .cjpageblock .ui-tabs .ui-tabs-nav li a, .ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a { cursor: pointer; } /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */
1
+ .postbox .inside { margin-right: 6px !important; }
2
  /** reserve Objects Panel space */
3
  .cjcodeblock {margin-right:317px;}
4
  /* Pages Panel */
14
  }
15
  /* Wrap long text */
16
  .pagelist a{color: black; text-decoration: none;}
17
+ .select-childs {
18
+ position: relative;
19
+ left: -1px;
20
+ top: -1px;
21
+ margin-left: -12px !important;
22
+ margin-right: 1px !important;
23
+ margin-top: 0px !important;
24
+ }
25
+ .select-childs-checkbox-overlay {
26
+ background-color: #bb5300;
27
+ position: relative;
28
+ width: 16px;
29
+ height: 16px;
30
+ opacity: 0.3;
31
+ filter: alpha(opacity = 30);
32
+ display: inline-block;
33
+ top: 4px;
34
+ z-index: 1;
35
+ left: 3px;
36
+ }
37
  .select-childs-checkbox-overlay:hover {opacity: 0.5; filter: alpha(opacity = 50);}
38
+
39
  .pagelist a:hover{color: #B06D38; font-weight: bold;}
40
  .pagelist>li>span {width: 203px;overflow: hidden; display: inline-block; height: 21px; vertical-align: middle;}
41
  .pagelist li span>a {margin-left: 4px;}
48
  div.cjpageblock .objects-list-button > a.prog-colored {color: transparent !important;}
49
 
50
  .info-panel {display: none; margin-top: 4px; margin-right: 2px; text-align: right;}
51
+ .info-panel .counter {font-size: 14px; position: relative; top: -4px;}
52
  .info-panel .counter .info-panel-loaded-count {color: #A5581B;}
53
  .info-panel .optional-actions {display: inline-block; width: 80px; height: 12px;}
54
  .info-panel .optional-actions .pagination-list {
67
  width: 61px;
68
  height: 198px !important;
69
  position: relative;
70
+ margin-left: -62px;
71
  margin-top: -179px;
72
+ left: -15px;
73
  top: -7px;
74
  color: #A5581B;
75
  font-size: 13px;
137
  .cjpageblock .ui-tabs .ui-tabs-nav { margin: 0;}
138
  .cjpageblock .ui-tabs .ui-tabs-nav li { list-style: none; top: 1px; margin: 0 .2em 1px 0; padding: 0; white-space: nowrap; }
139
  .cjpageblock .ui-tabs .ui-tabs-nav li a { background:#F1F1F1; color:#999999; border-color:#DFDFDF #DFDFDF #CCCCCC; height:18px;margin:5px 5px 0 0;float:right;cursor:pointer;border-width:1px;border-style:solid;-moz-border-radius:3px 3px 0 0;-webkit-border-top-right-radius:3px;-webkit-border-top-left-radius:3px;-khtml-border-top-right-radius:3px;-khtml-border-top-left-radius:3px;border-top-right-radius:3px;border-top-left-radius:3px; border-bottom: 0 !important; }
140
+ .cjpageblock .ui-tabs .ui-tabs-nav li a { font-size: 12px; float: left; padding: .5em 1.4em; text-decoration: none; }
141
  .cjpageblock .ui-tabs .ui-tabs-nav li.ui-tabs-selected { margin-bottom: 0; padding-bottom: 1px; }
142
  .cjpageblock .ui-tabs .ui-tabs-nav li.ui-tabs-selected a, .ui-tabs .ui-tabs-nav li.ui-state-disabled a, .ui-tabs .ui-tabs-nav li.ui-state-processing a { cursor: text; background:#E9E9E9; border-color:#CCCCCC #CCCCCC #E9E9E9; color:#333333; }
143
  .cjpageblock .ui-tabs .ui-tabs-nav li a, .ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a { cursor: pointer; } /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */
views/blocks/cjt-block/tmpl/templates/objects-panel.html.tmpl DELETED
@@ -1,124 +0,0 @@
1
- <?php
2
- // Import Wordpress pages checkbox list helpers.
3
- $this->importHelper('wpnavmenuwalker');
4
- $this->importHelper('wppageslist');
5
- ?>
6
- <div class="cjpageblock">
7
- <div id="tabs-<?php echo $block->id; ?>" class="cjt-pages-tab">
8
- <ul>
9
- <li><a href="#tabs-<?php echo $block->id; ?>-pages"><?php echo cssJSToolbox::getText('Pages') ?></a></li>
10
- <li><a href="#tabs-<?php echo $block->id; ?>-posts"><?php echo cssJSToolbox::getText('Posts') ?></a></li>
11
- <li><a href="#tabs-<?php echo $block->id; ?>-custom-posts"><?php echo cssJSToolbox::getText('Custom Posts') ?></a></li>
12
- <li><a href="#tabs-<?php echo $block->id; ?>-categories"><?php echo cssJSToolbox::getText('Categories') ?></a></li>
13
- <li><a href="#tabs-<?php echo $block->id; ?>-other"><?php echo cssJSToolbox::getText('Auxiliary') ?></a></li>
14
- <li><a href="#tabs-<?php echo $block->id; ?>-advanced"><?php echo cssJSToolbox::getText('Advanced') ?></a></li>
15
- </ul>
16
- <div id="tabs-<?php echo $block->id; ?>-pages">
17
- <ul class="pagelist">
18
- <?php WPPagesListHelper::show_pages_with_checkbox($block->id, $block->pages, 'page', 'pages'); ?>
19
- </ul>
20
- </div>
21
- <div id="tabs-<?php echo $block->id; ?>-posts">
22
- <ul class="pagelist">
23
- <?php WPPagesListHelper::show_pages_with_checkbox($block->id, $block->posts, 'post', 'posts'); ?>
24
- </ul>
25
- </div>
26
-
27
-
28
- <div id="tabs-<?php echo $block->id; ?>-custom-posts">
29
- <ul class="pagelist">
30
- <?php
31
- // Initialize custom posts tab vars.
32
- $NoCustomPosts = true;
33
- // List all (not-builtin, public) custom posts.
34
- $customPosts = get_post_types(array('public' => 1, '_builtin' => false), 'objects');
35
- foreach ($customPosts as $type => $postType) :
36
- // Get list markups into interanl buffer!
37
- ob_start();
38
- WPPagesListHelper::show_pages_with_checkbox($block->id, $block->posts, $type, 'posts');
39
- $list = ob_get_clean();
40
- // If there is not content on the output buffer then there is no posts inside that type!
41
- if ($list) :
42
- $NoCustomPosts = false;
43
- ?>
44
- <li>
45
- <span class="sub-list" title="<?php echo $postType->description ?>"><?php echo $postType->labels->name ?></span>
46
- <ul><?php echo $list ?></ul>
47
- </li>
48
- <?php
49
- endif;
50
- endforeach;
51
- // If there is no any custom post available
52
- // print message.
53
- if ($NoCustomPosts) :
54
-
55
- ?>
56
- <li>
57
- <div class="list-error">
58
- <span class="message"><?php echo cssJSToolbox::getText('There are no Custom Posts Defined yet!') ?></span>
59
- <br />
60
- <br />
61
- <span class="desc">This message is displayed if there is no Custom Post types defined or there is no Posts Added under Custom Post types!</span>
62
- </div>
63
- </li>
64
- <?php
65
- endif;
66
- ?>
67
- </ul>
68
- </div>
69
-
70
-
71
- <div id="tabs-<?php echo $block->id; ?>-categories">
72
- <ul class="pagelist">
73
- <?php WPPagesListHelper::show_taxonomy_with_checkbox($block->id, $block->categories); ?>
74
- </ul>
75
- </div>
76
- <div id="tabs-<?php echo $block->id; ?>-other">
77
- <ul class="pagelist">
78
- <li>
79
- <label>
80
- <?php echo $this->getPinCheckbox('pinPoint', CJTBlockModel::PINS_PAGES_FRONT_PAGE) ?>
81
- </label>
82
- <span><a href="<?php bloginfo('url') ?>" target="_blank"><?php echo cssJSToolbox::getText('Front Page') ?></a></span>
83
- </li>
84
- <?php
85
- $list = array(
86
- CJTBlockModel::PINS_POSTS_BLOG_INDEX => cssJSToolbox::getText('Blog Index'),
87
- CJTBlockModel::PINS_POSTS_ALL_POSTS => cssJSToolbox::getText('All Posts'),
88
- CJTBlockModel::PINS_PAGES_ALL_PAGES => cssJSToolbox::getText('All Pages'),
89
- CJTBlockModel::PINS_CATEGORIES_ALL_CATEGORIES => cssJSToolbox::getText('All Categories'),
90
- CJTBlockModel::PINS_POSTS_RECENT => cssJSToolbox::getText('Recent Posts'),
91
- CJTBlockModel::PINS_FRONTEND => cssJSToolbox::getText('Entire Website'),
92
- CJTBlockModel::PINS_BACKEND => cssJSToolbox::getText('Website Backend'),
93
- CJTBlockModel::PINS_SEARCH => cssJSToolbox::getText('Search Pages'),
94
- CJTBlockModel::PINS_ARCHIVE => cssJSToolbox::getText('All Archives'),
95
- CJTBlockModel::PINS_TAG => cssJSToolbox::getText('Tag Archives'),
96
- CJTBlockModel::PINS_AUTHOR => cssJSToolbox::getText('Author Archives'),
97
- CJTBlockModel::PINS_ATTACHMENT => cssJSToolbox::getText('Attachment Pages'),
98
- CJTBlockModel::PINS_404_ERROR => cssJSToolbox::getText('404 Error'),
99
- );
100
- foreach ($list as $value => $text) :
101
- ?>
102
- <li>
103
- <label>
104
- <?php echo $this->getPinCheckbox('pinPoint', $value) ?> <?php echo $text ?>
105
- </label>
106
- </li>
107
- <?php endforeach; ?>
108
- </ul>
109
- </div>
110
- <div id="tabs-<?php echo $block->id; ?>-advanced">
111
- <div id="advanced-accordion-<?php echo $block->id ?>" class="advanced-accordion">
112
- <a class="acc-header" href="#" title="<?php echo cssJSToolbox::getText('One URL per line') ?>"><?php echo cssJSToolbox::getText('URLs') ?></a>
113
- <div class="linklist">
114
- <textarea cols="31" rows="9" name="cjtoolbox[<?php echo $block->id; ?>][links]" id="cjcode-links-<?php echo $block->id; ?>"><?php echo $block->links; ?></textarea>
115
- </div>
116
- <a class="acc-header" href="#" title="<?php echo cssJSToolbox::getText('One Expression per line') ?>"><?php echo cssJSToolbox::getText('Expressions') ?></a>
117
- <div class="linklist">
118
- <textarea cols="31" rows="9" name="cjtoolbox[<?php echo $block->id; ?>][expressions]" id="cjcode-expressions-<?php echo $block->id; ?>"><?php echo $block->expressions; ?></textarea>
119
- </div>
120
- </div>
121
- </div>
122
- </div>
123
- <div style="clear:both;"></div>
124
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
views/blocks/cjt-block/view.php CHANGED
@@ -76,9 +76,15 @@ class CJTBlocksCjtBlockView extends CJTView {
76
  public static function enqueueStyles() {
77
  // Import related styles.
78
  CJTBlocksBlockView::enqueueStyles();
79
- self::useStyles(__CLASS__,
80
- 'views:blocks:cjt-block:public:css:{CJT_BLOCKS_PAGE_BLOCK-}block'
81
- );
 
 
 
 
 
 
82
  }
83
 
84
  /**
76
  public static function enqueueStyles() {
77
  // Import related styles.
78
  CJTBlocksBlockView::enqueueStyles();
79
+ // Initialize style.
80
+ $styles = array('views:blocks:cjt-block:public:css:{CJT_BLOCKS_PAGE_BLOCK-}block');
81
+ // IF WP < 3.8 add compatibility CSS file.
82
+ $wpVersion = new CJT_Framework_Wordpress_Currentversion();
83
+ if ($wpVersion->isLess('3.8')) {
84
+ $styles[] = 'views:blocks:cjt-block:public:css:{CJT_BLOCKS_PAGE_BLOCK-}block-wp-lt-3.8';
85
+ }
86
+ // Include styles.
87
+ self::useStyles(__CLASS__, $styles);
88
  }
89
 
90
  /**
views/blocks/manager/public/css/blocks-wp-lt-3.8.css ADDED
@@ -0,0 +1,2 @@
 
 
1
+ .block-name {font-size: 15px;}
2
+ .cjt-toolbox-blocks {background: #f3f3f3;}
views/blocks/manager/public/css/blocks.css CHANGED
@@ -35,15 +35,14 @@
35
  .cjt-toolbox-blocks {
36
  height: 27px;
37
  margin-bottom: 20px;
38
- background: #f3f3f3;
 
 
39
  border: solid #ccc;
40
  border-width: 1px;
41
- padding: 4px 4px 4px 0px;
42
  -moz-border-radius: 6px;
43
  -webkit-border-radius: 6px;
44
- border-radius: 6px;
45
- clear: both;
46
- visibility: hidden;
47
  }
48
  .cjt-toolbox-blocks .cjt-tb-link.cjttbl-admin-tools {position: relative; top:1px}
49
  .cjt-toolbox-blocks .icons-group.left-bar {
35
  .cjt-toolbox-blocks {
36
  height: 27px;
37
  margin-bottom: 20px;
38
+ padding: 4px 4px 4px 0px !important;
39
+ clear: both;
40
+ visibility: hidden;
41
  border: solid #ccc;
42
  border-width: 1px;
 
43
  -moz-border-radius: 6px;
44
  -webkit-border-radius: 6px;
45
+ border-radius: 6px;
 
 
46
  }
47
  .cjt-toolbox-blocks .cjt-tb-link.cjttbl-admin-tools {position: relative; top:1px}
48
  .cjt-toolbox-blocks .icons-group.left-bar {
views/blocks/manager/tmpl/toolbox.html.tmpl CHANGED
@@ -1,4 +1,4 @@
1
- <div class="cjt-toolbox cjt-toolbox-blocks cjtb-position-<?php echo $location ?>">
2
  <div class="icons-group left-bar">
3
  <a class="cjt-tb-link l-127x23 textButton cjttbl-add-block" title="<?php echo cssJSToolbox::getText('Add new code block') ?>"><?php echo cssJSToolbox::getText('New Code Block') ?></a>
4
  <a class="cjt-tb-link l-127x23 textButton cjttbl-save-changes" title="<?php echo cssJSToolbox::getText('Save changes to all code blocks') ?>"><?php echo cssJSToolbox::getText('Save All Changes') ?></a>
1
+ <div class="cjt-toolbox cjt-toolbox-blocks cjtb-position-<?php echo $location ?> widgets-holder-wrap">
2
  <div class="icons-group left-bar">
3
  <a class="cjt-tb-link l-127x23 textButton cjttbl-add-block" title="<?php echo cssJSToolbox::getText('Add new code block') ?>"><?php echo cssJSToolbox::getText('New Code Block') ?></a>
4
  <a class="cjt-tb-link l-127x23 textButton cjttbl-save-changes" title="<?php echo cssJSToolbox::getText('Save changes to all code blocks') ?>"><?php echo cssJSToolbox::getText('Save All Changes') ?></a>
views/blocks/manager/view.php CHANGED
@@ -131,11 +131,15 @@ class CJTBlocksManagerView extends CJTView {
131
  public static function enququeStyles() {
132
  // Enquque single block styles.
133
  CJTBlocksCjtBlockView::enqueueStyles();
134
- // Use blocks page styles.
135
- self::useStyles(__CLASS__,
136
- 'framework:css:{CJT-}toolbox',
137
- 'views:blocks:manager:public:css:{CJT-}blocks'
138
- );
 
 
 
 
139
  }
140
 
141
  } // End class.
131
  public static function enququeStyles() {
132
  // Enquque single block styles.
133
  CJTBlocksCjtBlockView::enqueueStyles();
134
+ // Styles list.
135
+ $styles = array('framework:css:{CJT-}toolbox', 'views:blocks:manager:public:css:{CJT-}blocks');
136
+ // IF WP < 3.8 add compatibility CSS file.
137
+ $wpVersion = new CJT_Framework_Wordpress_Currentversion();
138
+ if ($wpVersion->isLess('3.8')) {
139
+ $styles[] = 'views:blocks:manager:public:css:{CJT-}blocks-wp-lt-3.8';
140
+ }
141
+ // Include styles.
142
+ self::useStyles(__CLASS__, $styles);
143
  }
144
 
145
  } // End class.