PluginProbe
WP Ultimate Post Grid / 2.3
WP Ultimate Post Grid v2.3
4.1.1 trunk 1.5 1.6 1.7 1.7.1 1.7.2 1.8 1.9 2.0 2.1 2.2 2.3 2.4.0 2.5.0 2.6.0 2.7.0 2.8.0 2.8.2 3.0.0 3.3.0 3.4.0 3.5.0 3.6.0 3.7.0 All 32 releases
← All changes | helpers/css.php +10 -0 1.82.3 View file →
@@ -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