* single-{type}.php * and then fallback to * single.php * Where type=photo|video|audio|any active type * status =public|private|friendsonly|groupsonly|any registered status * * * Please create your template if you need specific templates for photo, video etc * * * * Fallback single Gallery View */ $gallery = mpp_get_current_gallery(); $type = $gallery->type; if (mpp_have_media()) { ?> <?php if (mpp_user_can_list_media(mpp_get_current_gallery_id())) { ?> <?php do_action('mpp_before_single_gallery'); ?> <?php if (mpp_show_gallery_description()) { ?> <div class="mpp-gallery-description mpp-single-gallery-description mpp-<?php
<?php // Exit if the file is accessed directly over web if (!defined('ABSPATH')) { exit; } while (mpp_have_media()) { mpp_the_media(); ?> <div class="mpp-u <?php mpp_media_class(mpp_get_media_grid_column_class()); ?> "> <?php do_action('mpp_before_media_item'); ?> <div class="mpp-item-meta mpp-media-meta mpp-media-meta-top"> <?php do_action('mpp_media_meta_top'); ?> </div> <div class='mpp-item-entry mpp-media-entry mpp-photo-entry'> <a href="<?php mpp_media_permalink(); ?> " <?php mpp_media_html_attributes(array('class' => 'mpp-item-thumbnail mpp-media-thumbnail mpp-photo-thumbnail'));