[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-includes/blocks/ -> search.php (summary)

Server-side rendering of the `core/search` block.

File Size: 368 lines (13 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 6 functions

  render_block_core_search()
  register_block_core_search()
  classnames_for_block_core_search()
  styles_for_block_core_search()
  get_border_color_classes_for_block_core_search()
  get_color_classes_for_block_core_search()

Functions
Functions that are not part of a class:

render_block_core_search( $attributes )   X-Ref
Dynamically renders the `core/search` block.

param: array $attributes The block attributes.
return: string The search block markup.

register_block_core_search()   X-Ref
Registers the `core/search` block on the server.


classnames_for_block_core_search( $attributes )   X-Ref
Builds the correct top level classnames for the 'core/search' block.

param: array $attributes The block attributes.
return: string The classnames used in the block.

styles_for_block_core_search( $attributes )   X-Ref
Builds an array of inline styles for the search block.

The result will contain one entry for shared styles such as those for the
inner input or button and a second for the inner wrapper should the block
be positioning the button "inside".

param: array $attributes The block attributes.
return: array Style HTML attribute.

get_border_color_classes_for_block_core_search( $attributes )   X-Ref
Returns border color classnames depending on whether there are named or custom border colors.

param: array $attributes The block attributes.
return: string The border color classnames to be applied to the block elements.

get_color_classes_for_block_core_search( $attributes )   X-Ref
Returns color classnames depending on whether there are named or custom text and background colors.

param: array $attributes The block attributes.
return: string The color classnames to be applied to the block elements.



Generated: Sat Jul 2 01:00:03 2022 Cross-referenced by PHPXref 0.7.1