コード例 #1
0
<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]" />
			<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><input type="submit" name="save-media" id="activity_upload_media_submit" value="<?php _e('Upload & Save Cover','bp-gallery');?>">
			
		</div>
		<div class="update_media_upload" id="update_media_upload">
		
コード例 #2
0
ファイル: add-from-web.php プロジェクト: buddydev/bp-magic
<form  id="gallery_media_upload_form" action="<?php 
bp_gallery_media_upload_form_action();
?>
" method="post" enctype="multipart/form-data">
            <div id="from-remote-url">
                <div class="guploading" style="display:none;"></div>
		<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);
}
?>
                </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();
コード例 #3
0
ファイル: post-form.php プロジェクト: r-chopra17/p2bp
	<h5>
		
		<?php printf( __( "Wanna Say something %s?", 'buddypress' ), gallery_get_loggedin_user_first_name() ) ?>
		
	</h5>

	<div id="whats-new-content">
		<div id="whats-new-textarea">
			<textarea name="whats-new" id="whats-new" value="" /><?php if ( isset( $_GET['r'] ) ) : ?>@<?php echo esc_attr( $_GET['r'] ) ?> <?php endif; ?></textarea>
		</div>

		<div id="whats-new-options">
			<div id="whats-new-submit">
				<span class="ajax-loader"></span> &nbsp;
				<input type="submit" name="gallery-new-comments-submit" id="gallery-new-comments-submit" value="<?php _e( 'Comment', 'buddypress' ) ?>" />
			</div>
			<input type="hidden" id="whats-new-post-object" name="whats-new-post-object" value="gallery" />
			<input type="hidden" id="whats-new-post-object_component" name="whats-new-post-object_component" value="<?php  echo gallery_get_current_object_type();?>" />
				
			<input type="hidden" id="whats-new-post-in" name="whats-new-post-in" value="<?php if(bp_is_single_media())echo bp_get_single_media_id(); else echo bp_get_single_gallery_id(); ?>" />
			<input type="hidden" id="component-to-be-commented" name="component-to-be-commented" value="<?php if(bp_is_single_media())echo "media"; else echo "gallery"; ?>" />
			<?php do_action( 'bp_activity_post_form_options' ) ?>

		</div><!-- #whats-new-options -->
	</div><!-- #whats-new-content -->

	<?php wp_nonce_field( 'post_update', '_wpnonce_post_update' ); ?>
	<?php do_action( 'bp_after_activity_post_form' ) ?>

</form><!-- #whats-new-form -->
<?php endif;?>