wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



apply_block_core_search_border_styles › WordPress Function

Odn/a
Przestarzałyn/a
apply_block_core_search_border_styles ( $attributes, $property, $wrapper_styles, $button_styles, $input_styles )
Parametry: (5)
  • (array) $attributes The block attributes.
    Wymagane: Tak
  • (string) $property Border property to generate rule for e.g. width or color.
    Wymagane: Tak
  • (array) $wrapper_styles Current collection of wrapper styles.
    Wymagane: Tak
  • (array) $button_styles Current collection of button styles.
    Wymagane: Tak
  • (array) $input_styles Current collection of input styles.
    Wymagane: Tak
Zdefiniowane na:
Codex:

This adds CSS rules for a given border property e.g. width or color. It injects rules into the provided wrapper, button and input style arrays for uniform "flat" borders or those with individual sides configured.



Źródło

function apply_block_core_search_border_styles( $attributes, $property, &$wrapper_styles, &$button_styles, &$input_styles ) {
	apply_block_core_search_border_style( $attributes, $property, null, $wrapper_styles, $button_styles, $input_styles );
	apply_block_core_search_border_style( $attributes, $property, 'top', $wrapper_styles, $button_styles, $input_styles );
	apply_block_core_search_border_style( $attributes, $property, 'right', $wrapper_styles, $button_styles, $input_styles );
	apply_block_core_search_border_style( $attributes, $property, 'bottom', $wrapper_styles, $button_styles, $input_styles );
	apply_block_core_search_border_style( $attributes, $property, 'left', $wrapper_styles, $button_styles, $input_styles );
}