[ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Source view] [Print] [Project Stats]
Server-side rendering of the `core/image` block.
File Size: | 327 lines (12 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
render_block_core_image( $attributes, $content, $block ) X-Ref |
Renders the `core/image` block on the server, adding a data-id attribute to the element if core/gallery has added on pre-render. param: array $attributes The block attributes. param: string $content The block content. param: WP_Block $block The block object. return: string The block content with the data-id attribute added. |
block_core_image_get_lightbox_settings( $block ) X-Ref |
Adds the lightboxEnabled flag to the block data. This is used to determine whether the lightbox should be rendered or not. param: array $block Block data. return: array Filtered block data. |
block_core_image_render_lightbox( $block_content, $block ) X-Ref |
Adds the directives and layout needed for the lightbox behavior. param: string $block_content Rendered block content. param: array $block Block object. return: string Filtered block content. |
block_core_image_print_lightbox_overlay() X-Ref |
register_block_core_image() X-Ref |
Registers the `core/image` block on server. |
Generated : Thu Nov 21 08:20:01 2024 | Cross-referenced by PHPXref |