<?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" /> <input type="file" name="file" id="cover_file" /> <br /> <input type="hidden" name="galleriy_id" id="galleriy_id" value="<?php echo $gallery->id;?>" /> <div id="swfupload-control"> <p id="queuestatus" ></p> <ol id="log"></ol> </div> <p><input type="submit" name="save-gallery-cover" id="save_gallery_cover" value="<?php _e('Upload & Save Cover','bp-gallery');?>">
_e("Upload", "bp-gallery"); ?> </a> <?php } ?> <?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'); ?>