Skip to content

Hooks—Galleries

Jo Dickson edited this page Jan 17, 2019 · 3 revisions

Navigation

Filters


ucfwp_gallery_display

Allows overriding of the markup generated for galleries in this theme.

Parameters

  • $markup string

    The generated gallery markup

  • $gallery_id string

    Unique ID attribute for the gallery's outermost wrapper element.

  • $attachments array

    Array of attachment post objects.

  • $atts array

    The attributes from the gallery shortcode.

Return

string: The gallery markup


ucfwp_gallery_valid_col_options

Returns all the valid size options for a gallery's columns.

Parameters

  • $sizes array

    Array of integers representing valid .col-* sizes

Return

array: Array of integers representing valid .col-* sizes


ucfwp_gallery_default_col_options

Returns a default set of gallery column sizes per Athena Framework breakpoint.

Parameters

  • $size_defaults array

    Associative 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
    )

Return

array: Associative array of per-breakpoint names and size integers.

Clone this wiki locally