mpp_gallery_html_attributes( $args = null )
Prints the attributes which should be used with an anchor linking to gallery permalink. Helps us to add extra attributes using filters.
Usage
1 2 3 | <a href="<?php mpp_gallery_permalink() ;?>" <?php mpp_gallery_html_attributes( array( 'class' => 'mpp-item-thumbnail mpp-gallery-cover' ) ); ?>> <img src="<?php mpp_gallery_cover_src( 'thumbnail' ) ;?>" alt ="<?php echo esc_attr( mpp_get_gallery_title() );?>" /> </a> |
Parameters
$args (array) (optional) – A list of parameters as descried below. All are optional.
- class (string) – one or more css classes
- id (string) – css id
- title (string) – Link title attribute
- data-mpp-context (string) – context of display. D not use it if you don’t understand the contexts of gallery.
- gallery(int) – Id of the gallery
Returns
It does not return any value.
Note:-
See MediaPress gallery loop on how to use it.
Changelog
- Since 1.0.0