| @@ -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 | |