Exemplo n.º 1
0
				<?php if ( bp_is_home()): ?>
			
					<div class="gallery-actions"><a href="<?php bp_gallery_edit_link();?>"> <?php _e("Edit This gallery","bp-gallery");?></a>|<?php bp_gallery_add_media_button($gallery);//depending on whether upload/add from web showuld be here  ?><br /></div>
				<?php endif;?>	
				<?php 	locate_template( array( '/gallery/single/media/'.$gallery->gallery_type.'-loop.php','/gallery/single/media/media-loop.php' ), true );?>
					<br class="clear" />

                                  <?php
                                   //include the form for commenting on the gallery ?>
                                  <div class="activity  single-media">
			<?php // include( locate_template( array( 'gallery/single/activity.php' ), false ) )/*un comment this line if you want all the activities of a gallery listed here*/  ?>
			</div>
                                 
			<?php else:?>
			
				<p><?php printf(__("This is a %s Gallery and You don't have adequate permissions to view them.","bp-gallery"),bp_get_gallery_status());?></p>
			<?php endif;?>	
		<?php previous_gallery_link();?>
		<?php next_gallery_link();?>
		
		<?php endwhile;?>
			
		
		
		
	<?php else:?>
	<p><?php _e("Perhaps! the Gallery does not exist or You don't have adequate permissions to view them.","bp-gallery");?></p>
	<?php //bp_gallery_create_button();?>
	<?php endif;?>
	<br class="clear" />
</div>
Exemplo n.º 2
0
				
				</div>
				
				
			<?php 
            locate_template(array('/gallery/single/media/' . $gallery->gallery_type . '-loop.php', '/gallery/single/media/media-loop.php'), true);
            ?>
				
						<br class="clear" />	
		
		<?php 
        } else {
            ?>
			
				<p><?php 
            _e(sprintf("This is a %s Gallery and You don't have adequate permissions to view them.", bp_get_gallery_status()), "bp-gallery");
            ?>
</p>
			<?php 
        }
        ?>
		<?php 
    }
    ?>
			
		<?php 
    bp_gallery_pagination_count();
    ?>
<br />
		<?php 
    bp_gallery_pagination();