PluginProbe
CSS & JavaScript Toolbox / 8.0.3
CSS & JavaScript Toolbox v8.0.3
trunk 0.3 0.8 10 10.1 11 11.2 11.3 11.4 11.5 11.6 11.7 11.8 11.9 11.9.1 12 12.0 12.0.1 12.0.3 12.0.4 12.0.5 12.0.6 12.0.7 6.0 6.0.11 All 60 releases
← All changes | views/blocks/manager/view.php +19 -5 6.08.0.3 View file →
@@ -39,8 +39,18 @@
39 39 * put your comment there...
40 40 *
41 41 * @var mixed
42 42 */
43 + protected static $onloadglobalcomponents = array(
44 + 'hookType' => CJTWordpressEvents::HOOK_FILTER,
45 + 'parameters' => array('content')
46 + );
47 +
48 + /**
49 + * put your comment there...
50 + *
51 + * @var mixed
52 + */
43 53 public $order;
44 54
45 55 /**
46 56 * put your comment there...
@@ -130,13 +140,17 @@
130 140 */
131 141 public static function enququeStyles() {
132 142 // Enquque single block styles.
133 143 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 - );
144 + // Styles list.
145 + $styles = array('framework:css:{CJT-}toolbox', 'views:blocks:manager:public:css:{CJT-}blocks');
146 + // IF WP < 3.8 add compatibility CSS file.
147 + $wpVersion = new CJT_Framework_Wordpress_Currentversion();
148 + if ($wpVersion->isLess('3.8')) {
149 + $styles[] = 'views:blocks:manager:public:css:{CJT-}blocks-wp-lt-3.8';
150 + }
151 + // Include styles.
152 + self::useStyles(__CLASS__, $styles);
139 153 }
140 154
141 155 } // End class.
142 156