} else { global $bp; echo bp_list_galleries_dropdown($bp->gallery->gallery_type); } ?> </p> <?php wp_nonce_field('save_gallery_media_from_web', '_wpnonce-save-gallery-media-from-web'); ?> <p><?php _e("Visibility", "bp-gallery"); gallery_valid_gallery_status_dd(false); ?> </p> <p> <?php $gallery = bp_get_single_gallery(); printf(__("Please enter a Url from %s and click add", "bp-gallery"), bp_gallery_get_allowed_external_service($gallery->gallery_type)); ?> </p> <p> <input type="text" name="web_url" id="gallery_web_url" value="" /></p> <p><input type="submit" name="gallery-save-from-web" id="gallery_save_from_web" value="<?php _e('Add', 'bp-gallery'); ?> " /> </p> </div> <div class="update_media_upload" id="update_media_upload"> </div>
<div class="item-list-tabs no-ajax" id="subnav"> <ul> <?php //bp_get_options_nav() ?> <?php bp_user_gallery_admin_tabs();?> </ul> <?php $gallery=bp_get_single_gallery();?> </div> <div class="gnav"><?php bp_gallery_bcomb();?> </div> <?php //do_action( 'bp_before_gallery_content' ) ?> <div id="galleries"> <?php if(bp_has_galleries()):?> <?php while(bp_galleries()):bp_the_gallery() ;?> <?php if(user_can_view_gallery(bp_get_gallery_id())):?> <?php if ( bp_is_home()): ?> <div class="gallery-actions"><a href="<?php bp_gallery_edit_link();?>"> <?php _e("Edit This gallery","bp-gallery");?></a>|<?php bp_gallery_add_media_button($gallery);//depending on whether upload/add from web showuld be here ?><br /></div> <?php endif;?> <?php locate_template( array( '/gallery/single/media/'.$gallery->gallery_type.'-loop.php','/gallery/single/media/media-loop.php' ), true );?> <br class="clear" /> <?php //include the form for commenting on the gallery ?> <div class="activity single-media"> <?php // include( locate_template( array( 'gallery/single/activity.php' ), false ) )/*un comment this line if you want all the activities of a gallery listed here*/ ?> </div> <?php else:?> <p><?php printf(__("This is a %s Gallery and You don't have adequate permissions to view them.","bp-gallery"),bp_get_gallery_status());?></p>