apply_block_core_search_border_styles
函数
apply_block_core_search_border_styles ( $attributes, $property, $wrapper_styles, $button_styles, $input_styles )
- 参数
-
-
(array)
$attributes
The block attributes.- Required: 是
-
(string)
$property
Border property to generate rule for e.g. width or color.- Required: 是
-
(array)
$wrapper_styles
Current collection of wrapper styles.- Required: 是
-
(array)
$button_styles
Current collection of button styles.- Required: 是
-
(array)
$input_styles
Current collection of input styles.- Required: 是
-
(array)
- 返回值
-
- (void)
- 定义位置
-
-
wp-includes/blocks/search.php
, line 268
-
wp-includes/blocks/search.php
- 引入
- –
- 弃用
- –
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.
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 ); }
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。