function bp_media_albums_entry_screen_content() { global $bp, $bp_media_current_album, $bp_media_query; if (!$bp->action_variables[0] == BP_MEDIA_ALBUMS_ENTRY_SLUG) { return false; } echo '<div class="bp_media_title">' . $bp_media_current_album->get_title() . '</div>'; bp_media_albums_set_inner_query($bp_media_current_album->get_id()); if ($bp_media_query && $bp_media_query->have_posts()) { do_action('bp_media_before_content'); echo '<ul id="bp-media-list" class="bp-media-gallery item-list">'; while ($bp_media_query->have_posts()) { $bp_media_query->the_post(); bp_media_the_content(); } echo '</ul>'; bp_media_display_show_more(); do_action('bp_media_after_content'); } else { bp_media_show_formatted_error_message(__('Sorry, no media items were found in this album.', 'bp-media'), 'info'); } }
function bp_media_audio_screen_content() { global $bp_media_query; if ($bp_media_query && $bp_media_query->have_posts()) { bp_media_show_pagination(); do_action('bp_media_before_content'); echo '<ul class="bp-media-gallery">'; while ($bp_media_query->have_posts()) { $bp_media_query->the_post(); bp_media_the_content(); } echo '</ul>'; do_action('bp_media_after_content'); bp_media_show_pagination('bottom'); } else { bp_media_show_formatted_error_message(__('Sorry, no audio files were found.', 'bp-media'), 'info'); } }