astra_sticky_header_divider_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/sticky-header/classes/dynamic-css/divider-dynamic.css.php

function astra_sticky_header_divider_dynamic_css( $dynamic_css, $dynamic_css_filtered = '' ) {

	$num_of_header_divider = astra_addon_builder_helper()->num_of_header_divider;
	for ( $index = 1; $index <= $num_of_header_divider; $index++ ) {

		if ( ! Astra_Addon_Builder_Helper::is_component_loaded( 'divider-' . $index, 'header' ) ) {
			continue;
		}

		$selector = '.ast-header-sticked .site-header-section .ast-builder-layout-element.ast-header-divider-' . $index;

		$css_output = array(

			$selector . ' .ast-divider-wrapper' => array(
				'border-color' => esc_attr( astra_get_option( 'sticky-header-divider-' . $index . '-color' ) ),
			),
		);

		/* Parse CSS from array() */
		$css_output = astra_parse_css( $css_output );

		$dynamic_css .= $css_output;
	}

	return $dynamic_css;
}


User Contributed Notes

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