| @@ -39,18 +39,8 @@ | ||
| 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 | - */ | |
| 53 | 43 | public $order; |
| 54 | 44 | |
| 55 | 45 | /** |
| 56 | 46 | * put your comment there... |
| @@ -140,17 +130,13 @@ | ||
| 140 | 130 | */ |
| 141 | 131 | public static function enququeStyles() { |
| 142 | 132 | // Enquque single block styles. |
| 143 | 133 | CJTBlocksCjtBlockView::enqueueStyles(); |
| 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); | |
| 134 | + // Use blocks page styles. | |
| 135 | + self::useStyles(__CLASS__, | |
| 136 | + 'framework:css:{CJT-}toolbox', | |
| 137 | + 'views:blocks:manager:public:css:{CJT-}blocks' | |
| 138 | + ); | |
| 153 | 139 | } |
| 154 | 140 | |
| 155 | 141 | } // End class. |
| 156 | 142 | |