Example #1
0
<div class="item-list-tabs no-ajax" id="subnav">
<ul>
	<?php bp_group_gallery_admin_tabs(); ?>
</ul>
<?php gallery_display_space_usage("groups",null)?>
</div>

				<div id="galleries">
				
				<?php if(bp_has_galleries()):?>
					<?php while(bp_galleries()):bp_the_gallery() ;?>
							<div class='bp-gallery gallery-type-<?php bp_gallery_type();?>' id="gallery_<?php bp_gallery_id();?>">
								<div class='gallery-content'>
							
								<h3 class='gallery-title'><a href="<?php bp_gallery_permalink();?>"><?php bp_gallery_title();?></a></h3>
								<?php// bp_gallery_description();?>
								<div class='gallery-cover'><a href="<?php bp_gallery_permalink();?>"><?php bp_gallery_cover_image("mini");?></a></div>
								<br class="clear" />
								
                               
								<div class='gallery-actions'>
                                                               <?php if(user_can_delete_gallery()):?>
								<?php bp_gallery_add_media_link();?><a href="<?php bp_gallery_edit_link();?>" class='edit'>[<?php _e("Edit","bp-gallery");?>]</a><a href='<?php bp_gallery_delete_link()?>' class='delete'>[x]<?php _e("remove","bp-gallery");?></a>
								 <?php else :
                                                                     global $bp;
                                                                     if(groups_is_user_member($bp->loggedin_user->id,$bp->groups->current_group->id)):?>
                                                                     <?php bp_gallery_add_media_link();?>
                                                                     <?php endif;?>
                                                                <?php endif;?>
                                                                </div>
								
Example #2
0
    while (bp_galleries()) {
        bp_the_gallery();
        ?>
							<div class='bp-gallery gallery-type-<?php 
        bp_gallery_type();
        ?>
' id="gallery_<?php 
        bp_gallery_id();
        ?>
">
								<div class='gallery-content'>
								<h3 class='gallery-title'><a href="<?php 
        bp_gallery_permalink();
        ?>
"><?php 
        bp_gallery_title();
        ?>
[<?php 
        echo gallery_get_media_count(bp_get_gallery_id());
        ?>
]</a></h3>
								<?php 
        // bp_gallery_description();
        ?>
								<div class='gallery-cover'><a href="<?php 
        bp_gallery_permalink();
        ?>
"><?php 
        bp_gallery_cover_image("mini");
        ?>
</a></div>
Example #3
0
	</div>

	<?php do_action( 'bp_before_directory_galleries_list' ) ?>

	<ul id="galleries-list" class="item-list">
	<?php while ( bp_galleries() ) : bp_the_gallery(); ?>

		<li id="item_<?php bp_gallery_id();?>" class='list-item gallery-type-<?php bp_gallery_type();?>'>
			<div class="item-avatar">
				<a href="<?php bp_gallery_permalink();?>"><?php bp_gallery_cover_image("mini");?></a>
			</div>

			<div class="item">
				<div class="item-title" >
					<a href="<?php bp_gallery_permalink();?>"><?php bp_gallery_title();?>[<?php echo gallery_get_media_count(bp_get_gallery_id());?>]</a>
				</div>
				<div class="item-meta"><span class="activity"><?php bp_gallery_last_updated() ?></span></div>
                                <div class="uinfo"><?php printf(__("Created By %s","bp-gallery"),bp_core_get_userlink(bp_get_gallery_creator_id())) ;?></div>
				<?php do_action( 'bp_directory_galleries_item' ) ?>

			</div>

			<div class="action">
                            <div class='generic-button'><a href="<?php bp_gallery_permalink();?>"><?php _e("View","bp-gallery");?></a></div>

				<?php do_action( 'bp_directory_galleries_actions' ) ?>
			</div>

			<div class="clear"></div>
		</li>