| @@ -4,9 +4,8 @@ | ||
| 4 | 4 | |
| 5 | 5 | public function __construct() |
| 6 | 6 | { |
| 7 | 7 | add_action( 'wp_head', array( $this, 'dropdown_filters_css' ), 19 ); |
| 8 | - add_action( 'wp_head', array( $this, 'css' ) ); | |
| 9 | 8 | add_action( 'wp_head', array( $this, 'custom_css' ), 20 ); |
| 10 | 9 | } |
| 11 | 10 | |
| 12 | 11 | public function dropdown_filters_css() |
| @@ -32,17 +31,8 @@ | ||
| 32 | 31 | |
| 33 | 32 | // Highlight colors |
| 34 | 33 | echo '.select2wpupg-results__option--highlighted { color: '.$text_highlight_color.'!important; background-color: '.$background_highlight_color.'!important; }'; |
| 35 | 34 | |
| 36 | - echo '</style>'; | |
| 37 | - } | |
| 38 | - } | |
| 39 | - | |
| 40 | - public function css() | |
| 41 | - { | |
| 42 | - if( WPUltimatePostGrid::option( 'grid_container_animation_speed', '0.8' ) != '0' ) { | |
| 43 | - echo '<style type="text/css">'; | |
| 44 | - echo '.wpupg-grid { transition: height ' . WPUltimatePostGrid::option( 'grid_container_animation_speed', '0.8' ) . 's; }'; | |
| 45 | 35 | echo '</style>'; |
| 46 | 36 | } |
| 47 | 37 | } |
| 48 | 38 | |