예제 #1
0
<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'>
예제 #2
0
파일: edit.php 프로젝트: r-chopra17/p2bp
 $gallery=bp_get_single_gallery();
 ?>
<?php do_action("bp_gallery_edit_template");?>
<div class="gnav">
    <a href="<?php echo bp_get_gallery_permalink($gallery);?>"><?php printf(__("Back to %s","bp-gallery"), bp_get_gallery_title($gallery));?></a>
</div>
<?php
if( bp_gallery_has_unpublished_media($gallery->id)&&  gallery_is_user_admin(bp_loggedin_user_id(), $gallery->id)):?>
<div class="bp-gallery-notice" id="publish_gallery_activity">
            <?php printf(__("You have <strong>%s</strong> unpublished %s","bp-gallery"),bp_get_gallery_unpublished_media_count($gallery->id),$gallery->gallery_type);
            ?>
    <a href="<?php echo bp_get_gallery_publish_activity_link($gallery);?>" class='gallery-unpublished-publish'><?php _e("Publish Them to activity now","bp-gallery");?></a> <?php _e("or","bp-gallery");?> <a href="<?php echo bp_get_gallery_unpublish_activity_link($gallery);?>" id='publish_gallery_activity' class='gallery-hide-unpublished'><?php _e("Hide This Notice","bp-gallery");?></a>
</div>
<?php endif;?> 
<div id="gallery-header">
	<?php single_gallery_admin_tabs();?>
</div>
<div id="gallery-organize">
<div id="message"></div>
<?php
///we will always have this for some ga;llery

    //find all media for this gallery
//all the code for single gallery editing goes here
if(bp_is_gallery_edit_details()){?>
		<?php do_action( 'bp_before_gallery_edit_content' ) ?>
		<form action="" method="post" id="gallery_edit_info">
			<div class='edit-gallery' id="gallery_<?php echo bp_get_gallery_id($gallery);?>">
                            <div class='gallery-cover'><?php echo bp_get_gallery_cover_image("mid",$gallery);?>
                            </div>
                            <div class='edit-info'>