Ejemplo n.º 1
0
/**
 * print media id
 * 
 * @param type $media
 */
function mpp_media_id($media = false)
{
    echo mpp_get_media_id($media);
}
Ejemplo n.º 2
0
// Exit if the file is accessed directly over web
if (!defined('ABSPATH')) {
    exit;
}
$activity_id = bp_get_activity_id();
$mppq = new MPP_Cached_Media_Query(array('in' => (array) mpp_activity_get_media_id($activity_id)));
if ($mppq->have_media()) {
    ?>

    <?php 
    while ($mppq->have_media()) {
        $mppq->the_media();
        ?>

        <?php 
        if (mpp_user_can_view_media(mpp_get_media_id())) {
            ?>

			<div class="<?php 
            mpp_media_class('mpp-activity-comment-attachment');
            ?>
" id="mpp-activity-comment-attachment-media-<?php 
            mpp_media_id();
            ?>
">
					
					<div class="mpp-activity-comment-attachment-content mpp-activity-comment-attachment-audio-content mpp-activity-comment-attachment-audio-player">
						<?php 
            mpp_media_content();
            ?>
					</div>
Ejemplo n.º 3
0
<div class="mpp-activity mpp-media-activity " id="mpp-media-activity-list">
	
	<?php 
if (is_user_logged_in() && mpp_media_user_can_comment(mpp_get_current_media_id())) {
    ?>
		
		<?php 
    mpp_locate_template(array('activity/post-form.php'), true);
    ?>

	<?php 
}
?>
	
	<?php 
if (mpp_media_has_activity(array('media_id' => mpp_get_media_id()))) {
    ?>

		<?php 
    /* Show pagination if JS is not enabled, since the "Load More" link will do nothing */
    ?>
		<noscript>
			<div class="pagination">
				<div class="pag-count"><?php 
    bp_activity_pagination_count();
    ?>
</div>
				<div class="pagination-links"><?php 
    bp_activity_pagination_links();
    ?>
</div>