[ 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: 213 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 4 functions

  render_block_core_search()
  register_block_core_search()
  classnames_for_block_core_search()
  styles_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.

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

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.

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

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".

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



Generated: Wed May 12 01:00:06 2021 Cross-referenced by PHPXref 0.7.1