?> <?php do_action('bp_before_event_body'); ?> <?php if (bp_is_gallery_home()) { locate_template(array('gallery/jes_events/home.php'), true); } else { if (bp_is_gallery_create()) { locate_template(array('gallery/jes_events/create.php'), true); } else { if (bp_is_gallery_edit()) { locate_template(array('gallery/jes_events/edit.php'), true); } else { if (bp_is_gallery_upload()) { locate_template(array('gallery/jes_events/upload.php'), true); } else { if (bp_is_single_media()) { locate_template(array('gallery/jes_events/single-media.php'), true); } else { if (bp_is_single_gallery()) { locate_template(array('gallery/jes_events/single.php'), true); } else { ?> <?php /* The group is not visible, show the status message */ ?> <?php do_action('bp_before_event_status_message');
<?php endif;?> <?php bp_media_html();?> </div> <br class="clear" /> </div> <?php endwhile; ?> </div> <br class="clear" /> <input type="submit" name="save" value="<?php _e('Save','bp-gallery');?>" id="save_sorted" /> <?php wp_nonce_field( 'gallery_media_reorder','_wpnonce-gallery_media_reorder' );?> <input type="hidden" name="reorder_gallery_id" value="<?php echo $gallery->id;?>" id="reorder_gallery_id" /> </form> <?php else:?> <?php _e("You have not uploaded anything yet, Upload Now.","bp-gallery"); ?> <a href="<?php echo bp_get_media_upload_link($gallery);?>" id="gallery_media_upload" <?php if( bp_is_gallery_upload()) echo "class='current'";?>> <?php _e("Upload","bp-gallery");?></a> <?php endif; ?> <?php } else if(bp_is_gallery_cover_upload()){ //if this is gallery cover upload page ?> <form id="gallery_cover_upload_form" action="<?php bp_gallery_cover_upload_form_action();?>" method="post" enctype="multipart/form-data"> <div id="from-my-comuter"> <div class="guploading" style="display:none;"></div> <input type="hidden" name="auth_cookie" value="<?php if ( is_ssl() ) echo $_COOKIE[SECURE_AUTH_COOKIE]; else echo $_COOKIE[AUTH_COOKIE]; ?>" id="auth_cookie" /> <?php wp_nonce_field( 'save_gallery_cover','_wpnonce-save-gallery-cover' ) ?> <br /> <input type="hidden" name="MAX_FILE_SIZE" value="5000000" />