/**
 * Get the name of template slug for the given gallery media loop
 * 
 * 
 * @param type $gallery
 * @return string  {$type} name or {$type}-playlist e.g video or vide-playlis depending on the given gallery supports playlist of not?
 */
function mpp_get_media_loop_template_slug($gallery)
{
    $slug = '';
    $type = mpp_get_gallery_type($gallery);
    if (mpp_gallery_supports_playlist(false, $type)) {
        $slug = "{$type}-playlist";
    } else {
        $slug = $type;
    }
    return $slug;
}
/**
 * Get the pagination text
 * @return string
 */
function mpp_get_media_pagination()
{
    //check if the current gallery supports playlist. then do not show pagination
    if (!mediapress()->the_media_query || mpp_gallery_supports_playlist(mpp_get_gallery())) {
        return;
    }
    return "<div class='mpp-paginator'>" . mediapress()->the_media_query->paginate() . "</div>";
}