wpseek.com
A WordPress-centric search engine for devs and theme authors



wp-includes/blocks/gallery.php › WordPress File

Functions8
Server-side rendering of the `core/gallery` block.


Function Short description
block_core_gallery_data_id_backcompatibilityHandles backwards compatibility for Gallery Blocks, whose images feature a `data-id` attribute.
block_core_gallery_dynamic_image_link_attributesBuilds the link-related image block attributes for a dynamically rendered gallery image, mapping the gallery-wide `linkTo` setting onto a single image.
block_core_gallery_get_column_gap_valueReturns the column gap value used for Gallery image width calculations.
block_core_gallery_renderRenders the `core/gallery` block on the server.
block_core_gallery_render_contextAdds a unique ID to the gallery block context.
block_core_gallery_render_dynamic_imageRenders a single `core/image` block for a Gallery block running in dynamic mode, applying the gallery-wide settings that affect how an image renders.
block_core_gallery_resolve_dynamic_sourceResolves a Gallery block's `dynamicContent` to an ordered list of image attachment IDs.
register_block_core_galleryRegisters the `core/gallery` block on server.