astra_addon_adv_search_dynamic_css( string $dynamic_css, string $dynamic_css_filtered = '' )

Dynamic CSS


Description


Parameters

$dynamic_css

(string) (Required) Astra Dynamic CSS.

$dynamic_css_filtered

(string) (Optional) Astra Dynamic CSS Filters.

Default value: ''


Return

(string)


Source

File: addons/advanced-search/classes/dynamic.css.php

function astra_addon_adv_search_dynamic_css( $dynamic_css, $dynamic_css_filtered = '' ) {
	$css = '';
	if ( false === Astra_Icons::is_svg_icons() ) {
		$search_close_btn = array(
			'.ast-search-box.header-cover #close::before, .ast-search-box.full-screen #close::before' => array(
				'font-family' => 'Astra',
				'content'     => '"\e5cd"',
				'display'     => 'inline-block',
				'transition'  => 'transform .3s ease-in-out',
			),
		);

		/* Parse CSS from array() */
		$css .= astra_parse_css( $search_close_btn );
	}

	return $dynamic_css . $css;
}


User Contributed Notes

You must log in before being able to contribute a note or feedback.