| @@ -4,8 +4,9 @@ | ||
| 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' ) ); | |
| 8 | 9 | add_action( 'wp_head', array( $this, 'custom_css' ), 20 ); |
| 9 | 10 | } |
| 10 | 11 | |
| 11 | 12 | public function dropdown_filters_css() |
| @@ -31,8 +32,17 @@ | ||
| 31 | 32 | |
| 32 | 33 | // Highlight colors |
| 33 | 34 | echo '.select2wpupg-results__option--highlighted { color: '.$text_highlight_color.'!important; background-color: '.$background_highlight_color.'!important; }'; |
| 34 | 35 | |
| 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; }'; | |
| 35 | 45 | echo '</style>'; |
| 36 | 46 | } |
| 37 | 47 | } |
| 38 | 48 | |