[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/blocks/ -> post-featured-image.php (summary)

Server-side rendering of the `core/post-featured-image` block.

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

Defines 4 functions

  render_block_core_post_featured_image()
  get_block_core_post_featured_image_overlay_element_markup()
  get_block_core_post_featured_image_border_attributes()
  register_block_core_post_featured_image()

Functions
Functions that are not part of a class:

render_block_core_post_featured_image( $attributes, $content, $block )   X-Ref
Renders the `core/post-featured-image` block on the server.

return: string Returns the featured image for the current post.
param: array    $attributes Block attributes.
param: string   $content    Block default content.
param: WP_Block $block      Block instance.

get_block_core_post_featured_image_overlay_element_markup( $attributes )   X-Ref
Generate markup for the HTML element that will be used for the overlay.

return: string HTML markup in string format.
param: array $attributes Block attributes.

get_block_core_post_featured_image_border_attributes( $attributes )   X-Ref
Generates class names and styles to apply the border support styles for
the Post Featured Image block.

return: array The border-related classnames and styles for the block.
param: array $attributes The block attributes.

register_block_core_post_featured_image()   X-Ref
Registers the `core/post-featured-image` block on the server.




Generated : Wed Apr 24 08:20:01 2024 Cross-referenced by PHPXref