Пример #1
0
	<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;?>
Пример #2
0
<div id="medias">
		<?php 
if (bp_gallery_has_medias()) {
    ?>
                    <?php 
    if (user_can_view_current_media(bp_get_single_media_id())) {
        ?>
			<?php 
        while (bp_gallery_medias()) {
            bp_gallery_the_media();
            ?>
			<?php 
            previous_gallery_media_link("<span class='prev'>&laquo; %link </span>");
            ?>
			<?php 
            next_gallery_media_link("<span class='next'>%link &raquo;</span>");
            ?>
			<br class="clear" />
				<div class='single-media' id="gallery_media_<?php 
            bp_media_id();
            ?>
">
				<h3 class='media-title'><?php 
            bp_media_title();
            ?>
</h3>
				<?php 
            if (bp_media_is_remote()) {
                ?>
                                        <?php 
                bp_media_html();
Пример #3
0
			<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', 'bp-gallery');
    ?>
" />
			</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');