コード例 #1
0
ファイル: edit.php プロジェクト: r-chopra17/p2bp
                           <?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" />
コード例 #2
0
ファイル: edit.php プロジェクト: buddydev/bp-magic
                        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 
                    }
                    ?>

    
コード例 #3
0
ファイル: upload-form.php プロジェクト: buddydev/bp-magic
			<?php 
wp_nonce_field('save_gallery_media', '_wpnonce-save-gallery-image');
?>
 
			<br />
			<input type="hidden" name="MAX_FILE_SIZE" value="<?php 
echo gallery_get_max_media_size(true);
?>
" /><!-- change -->

			<input type="file" name="file" id="file" class="validate[required]" />
                        <?php 
if (bp_get_single_gallery()) {
    ?>
                        <input type="hidden" name="_wp_http_referer" value="<?php 
    echo bp_get_media_upload_link(bp_get_single_gallery());
    ?>
" />
			<?php 
}
?>
                        <br />
			<p><?php 
//$type=bp_gallery_get_current_gallery_type();
if (bp_is_single_gallery()) {
    ?>
				<input type="hidden" name="galleries-list" id="galleries-list" value="<?php 
    echo bp_get_single_gallery_id();
    ?>
" />
			<?php 
コード例 #4
0
ファイル: upload-form.php プロジェクト: r-chopra17/p2bp
<form  id="gallery_media_upload_form" action="<?php bp_gallery_media_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_media','_wpnonce-save-gallery-image' ) ?> 
			<br />
			<input type="hidden" name="MAX_FILE_SIZE" value="<?php echo gallery_get_max_media_size(true);?>" /><!-- change -->

			<input type="file" name="file" id="file" class="validate[required]" />
                        <?php if(bp_get_single_gallery()):?>
                        <input type="hidden" name="_wp_http_referer" value="<?php echo  bp_get_media_upload_link(bp_get_single_gallery());?>" />
			<?php endif;?>
                        <br />
			<p><?php 
			//$type=bp_gallery_get_current_gallery_type();
			
			if(bp_is_single_gallery()):?>
				<input type="hidden" name="galleries-list" id="galleries-list" value="<?php echo bp_get_single_gallery_id();?>" />
			<?php else:
                            global $bp;
                        
			echo bp_list_galleries_dropdown($bp->gallery->gallery_type);
			endif;
			?>
                        </p>
			<div id="swfupload-control">
                            <p id="queuestatus" ></p>
                            <ol id="log"></ol>
                        </div>
                        <p> <?php $gallery=bp_get_single_gallery();
                            $size=gallery_get_max_media_size(false);