Exemplo n.º 1
0
                            <div class='edit-info'>
                                <input type="text" id="gallery_title" name="gallery_title" value="<?php echo esc_attr(bp_get_gallery_title($gallery));?>">
				<br />
				<textarea name="gallery_description" id="gallery_description"><?php echo bp_get_gallery_description($gallery);?></textarea>
				<br />
				<?php wp_nonce_field( 'gallery_edit_save','_wpnonce-edit-save-gallery' );?>
				<?php gallery_valid_gallery_status_dd($gallery->status);?>
                            </div><!-- end of edit info -->
                         </div><!-- end of edit gallery -->
								
			<br class="clear" />
			<input type="submit" name="save" value="<?php _e('Save','bp-gallery');?>" />
		</form><!-- end of edit form -->
		<br class="clear" />
            <?php do_action( 'bp_after_gallery_edit_content' ) ?>
<?php }else if(bp_is_media_edit()){  //code fo editing medias?>
    <?php
    
     if(bp_gallery_has_medias("page=0&per_page=-1")):?>
	<form action="" method="post" id="media_bulk_edit_form">
	 <input type="submit" name="save" value="<?php _e('Save','bp-gallery');?>" />
	    <?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'>
					<input type="text" name="media_title[<?php bp_media_id();?>]" value="<?php echo esc_attr(bp_get_media_title());?>">
					<br />
					<textarea name="media_description[<?php bp_media_id();?>]" ><?php  bp_media_description();?></textarea>
					<br />
							
Exemplo n.º 2
0
    gallery_valid_gallery_status_dd($gallery->status);
    ?>
                            </div><!-- end of edit info -->
                         </div><!-- end of edit gallery -->
								
			<br class="clear" />
			<input type="submit" name="save" value="<?php 
    _e('Save', 'bp-gallery');
    ?>
" />
		</form><!-- end of edit form -->
		<br class="clear" />
            <?php 
    do_action('bp_after_gallery_edit_content');
} else {
    if (bp_is_media_edit()) {
        //code fo editing medias
        ?>
    <?php 
        if (bp_gallery_has_medias("page=0&per_page=-1")) {
            ?>
	<form action="" method="post" id="media_bulk_edit_form">
	 <input type="submit" name="save" value="<?php 
            _e('Save', 'bp-gallery');
            ?>
" />
	    <?php 
            while (bp_gallery_medias()) {
                bp_gallery_the_media();
                ?>
           <div class='edit-media' id="gallery_media_<?php