mpp_get_gallery_class( $class = ”, $gallery = null )
Returns the css classes to be applied to current gallery.
Usage
1 2 3 | <div class="<?php echo mpp_get_gallery_class( 'awesome-gallery seriusly-awesome-gallery' ) ;?>"> Some code.... </div> |
Parameters
$class (String) (Optional) – One or more css class to be added after the default classes.
$gallery (MPP_Gallery|int) (Optional) – Gallery object or id if used outside the loop.
Returns
String – A list of css classes.
Note:-
See MediaPress gallery loop on how to use it.
Changelog
- Since 1.0.0