-
Notifications
You must be signed in to change notification settings - Fork 6
Hooks—Galleries
Jo Dickson edited this page Jan 17, 2019
·
3 revisions
Allows overriding of the markup generated for galleries in this theme.
-
$markupstringThe generated gallery markup
-
$gallery_idstringUnique ID attribute for the gallery's outermost wrapper element.
-
$attachmentsarrayArray of attachment post objects.
-
$attsarrayThe attributes from the gallery shortcode.
string: The gallery markup
Returns all the valid size options for a gallery's columns.
-
$sizesarrayArray of integers representing valid
.col-*sizes
array: Array of integers representing valid .col-* sizes
Returns a default set of gallery column sizes per Athena Framework breakpoint.
-
$size_defaultsarrayAssociative array of per-breakpoint names and size integers. Expected format:
array( 'column_size' => 12, 'column_size_sm' => 6, 'column_size_md' => 6, 'column_size_lg' => 4, 'column_size_xl' => 3 )
array: Associative array of per-breakpoint names and size integers.