<?php if(bp_gallery_has_medias("page=0")):?> <div class="player_wrapper"> <div id="playlist" class="playlist"> <?php while(bp_gallery_medias()):bp_gallery_the_media() ;?> <div <?php bp_media_css();?> id="gallery_media_<?php bp_media_id();?>"> <div class="media-content"> <h3 class="media-title"><a href="<?php bp_media_permalink();?>" alt="<?php bp_media_title();?>"><?php bp_media_title();?></a></h3> <?php if(bp_media_is_remote ()):?> <?php bp_media_html();?> <?php else: $size= gallery_get_media_size_settings("audio"); ?> <audio src="<?php bp_media_full_src()?> " type="audio/<?php echo gallery_get_file_extension_from_media(bp_get_the_media());?>" width="<?php echo $size['thumb']['width'];?>" height="30" > </audio> <?php endif;?> <br class="clear" /> <p class="media-description"><?php bp_media_description();?></p> <div class='edit-delete'><a href="<?php bp_media_permalink();?>" class='mcomments'><?php _e("comments","bp-gallery");?>(<?php global $medias_template; echo gallery_get_media_comment_count($medias_template->media->id);?>)</a> <?php global $bp; if(user_can_delete_gallery($bp->loggedin_user->id,$bp->gallery->current_gallery)):?> <a href="<?php bp_media_edit_link()?> " class='edit'>[<?php _e("edit","bp-gallery");?>]</a><a href="<?php bp_media_delete_link();?>" class='delete'>[x]<?php _e("remove","bp-gallery");?></a> <?php endif;?> </div> </div> <?php gallery_media_editable_content($medias_template->media);
<?php if (bp_gallery_has_medias("page=0")) { ?> <div class="player_wrapper"> <div id="playlist" class="playlist"> <?php while (bp_gallery_medias()) { bp_gallery_the_media(); ?> <div <?php bp_media_css(); ?> id="gallery_media_<?php bp_media_id(); ?> "> <div class="media-content"> <h3 class="media-title"><a href="<?php bp_media_permalink(); ?> " alt="<?php bp_media_title(); ?> "><?php bp_media_title(); ?>
<div id="gallery-organize"> <div id="gallery-header"> <?php single_gallery_admin_tabs(); ?> </div> <?php ///we will always have this for some ga;llery global $gallery; $gallery = $bp->gallery->current_gallery; //find all media for this gallery if (bp_gallery_has_medias()) { ?> <form action="" method="post"> <?php while (bp_gallery_medias()) { bp_gallery_the_media(); ?> <div class='edit-media' id="gallery_media_<?php bp_media_id(); ?> "> <div class='media-cover'><?php bp_media_html(); ?> </div> <div class='edit-info'>
<?php if(bp_gallery_has_medias()):?> <?php while(bp_gallery_medias()):bp_gallery_the_media() ;?> <div <?php bp_media_css();?> id="gallery_media_<?php bp_media_id();?>"> <div class="media-content"> <h3 class="media-title"><?php bp_media_title();?></h3> <!--<a rel="prettyPhoto[bp_gllery]" href="<?php bp_media_full_src();?>" alt="<?php bp_media_title();?>"> <img src="<?php bp_media_thumb_src();?>" /> </a> --> <?php bp_media_html();?> <br class="clear" /> <p class="media-description"><?php bp_media_description();?></p> <div class='edit-delete'><a href="<?php bp_media_permalink();?>" class='mcomments'><?php _e("comments","bp-gallery");?>(<?php global $medias_template; echo gallery_get_media_comment_count($medias_template->media->id);?>)</a> <?php global $bp; if(user_can_delete_gallery($bp->loggedin_user->id,$bp->gallery->current_gallery)):?> <a href="<?php bp_media_edit_link()?> " class='edit'>[<?php _e("edit","bp-gallery");?>]</a><a href="<?php bp_media_delete_link();?>" class='delete'>[x]<?php _e("remove","bp-gallery");?></a> <?php endif;?> </div> </div> <?php gallery_media_editable_content($medias_template->media); ?> </div>