g The generated CSS. */ public static function styles_parse( $css = [] ) { // Pass our styles from the kirki_styles_array filter. $css = apply_filters( 'kirki_styles_array', $css ); // Process the array of CSS properties and produce the final CSS. $final_css = ''; if ( ! is_array( $css ) || empty( $css ) ) { return ''; } foreach ( $css as $media_query => $styles ) { $final_css .= ( 'global' !== $media_query ) ? $media_query . '{' : ''; foreach ( $styles as $style => $style_array ) { $css_for_style = ''; foreach ( $style_array as $property => $value ) { if ( is_string( $value ) && '' !== $value ) { $css_for_style .= $property . ':' . $value . ';'; } elseif ( is_array( $value ) ) { foreach ( $value as $subvalue ) { if ( is_string( $subvalue ) && '' !== $subvalue ) { $css_for_style .= $property . ':' . $subvalue . ';'; } } } $value = ( is_string( $value ) ) ? $value : ''; } if ( '' !== $css_for_style ) { $final_css .= $style . '{' . $css_for_style . '}'; } } $final_css .= ( 'global' !== $media_query ) ? '}' : ''; } return $final_css; } /** * Add prefixes if necessary. * * @param array $css The CSS definitions array. * @return array */ public static function add_prefixes( $css ) { if ( is_array( $css ) ) { foreach ( $css as $media_query => $elements ) { foreach ( $elements as $element => $style_array ) { foreach ( $style_array as $property => $value ) { // Add -webkit-* and -moz-*. if ( is_string( $property ) && in_array( $property, [ 'border-radius', 'box-shadow', 'box-sizing', 'text-shadow', 'transform', 'background-size', 'transition', 'transition-property', ], true ) ) { unset( $css[ $media_query ][ $element ][ $property ] ); $css[ $media_query ][ $element ][ '-webkit-' . $property ] = $value; $css[ $media_query ][ $element ][ '-moz-' . $property ] = $value; $css[ $media_query ][ $element ][ $property ] = $value; } // Add -ms-* and -o-*. if ( is_string( $property ) && in_array( $property, [ 'transform', 'background-size', 'transition', 'transition-property', ], true ) ) { unset( $css[ $media_query ][ $element ][ $property ] ); $css[ $media_query ][ $element ][ '-ms-' . $property ] = $value; $css[ $media_query ][ $element ][ '-o-' . $property ] = $value; $css[ $media_query ][ $element ][ $property ] = $value; } } } } } return $css; } }
Fatal error: Uncaught Error: Class "Kirki\Compatibility\Scripts" not found in /htdocs/official-pou-plush.com/wp-content/plugins/kirki/inc/bootstrap.php:16 Stack trace: #0 /htdocs/official-pou-plush.com/wp-content/plugins/kirki/kirki.php(44): require_once() #1 /htdocs/official-pou-plush.com/wp-settings.php(526): include_once('/htdocs/officia...') #2 /htdocs/official-pou-plush.com/wp-config.php(98): require_once('/htdocs/officia...') #3 /htdocs/official-pou-plush.com/wp-load.php(50): require_once('/htdocs/officia...') #4 /htdocs/official-pou-plush.com/wp-blog-header.php(13): require_once('/htdocs/officia...') #5 /htdocs/official-pou-plush.com/index.php(17): require('/htdocs/officia...') #6 {main} thrown in /htdocs/official-pou-plush.com/wp-content/plugins/kirki/inc/bootstrap.php on line 16