Exemplo n.º 1
0
<div class="item-list-tabs no-ajax" id="subnav">
	<ul>
	<?php //bp_get_options_nav() ?>
	<?php bp_user_gallery_admin_tabs();?>
	</ul>
	<?php $gallery=bp_get_single_gallery();?>
</div>
<div class="gnav"><?php bp_gallery_bcomb();?>	</div>
<?php //do_action( 'bp_before_gallery_content' ) ?>
	<div id="galleries">
	
		<?php if(bp_has_galleries()):?>
		
			<?php while(bp_galleries()):bp_the_gallery() ;?>
			<?php if(user_can_view_gallery(bp_get_gallery_id())):?>
				<?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>
Exemplo n.º 2
0
global $bp;
gallery_display_space_usage("user", $bp->displayed_user->id);
?>
</div>
<div class="gnav"><?php 
bp_gallery_bcomb();
?>
	</div>

				<div id="galleries">
				<?php 
do_action("gallery_before_content");
?>
			
				<?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();
Exemplo n.º 3
0
bp_jevent_gallery_admin_tabs();
$gallery = bp_get_single_gallery();
?>
</ul>
</div>
<div class="gnav"><?php 
bp_gallery_bcomb();
?>
	</div>
<?php 
//do_action( 'bp_before_gallery_content' )
?>
	<div id="galleries">
		<?php 
global $bp;
if (bp_has_galleries("owner_type=jes_events&owner_id=" . $bp->jes_events->current_event->id)) {
    ?>
			
			<?php 
    while (bp_galleries()) {
        bp_the_gallery();
        global $bp;
        ?>
			
				<?php 
        if (user_can_view_gallery(bp_get_gallery_id())) {
            ?>
				<div class="gallery-actions">
				<?php 
            if (user_can_delete_gallery($bp->loggedin_user->id, bp_get_gallery_id())) {
                ?>
Exemplo n.º 4
0
<div class="item-list-tabs no-ajax" id="subnav">
<ul>
	<?php 
bp_event_gallery_admin_tabs();
?>
</ul>
<?php 
?>
<?php// gallery_display_space_usage()?>
</div>

				<div id="galleries">
				
				<?php 
global $post;
if (bp_has_galleries("owner_type=ep_event&owner_id=" . $post->ID)) {
    ?>
					<?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 
Exemplo n.º 5
0
<?php

do_action('bp_before_galleries_loop');
if (bp_has_galleries(bp_ajax_querystring('gallery'))) {
    ?>
	<div class="pagination">

		<div class="pag-count" id="gallery-dir-count">
			<?php 
    bp_gallery_pagination_count();
    ?>
		</div>

		<div class="pagination-links" id="gallery-dir-pag">
			<?php 
    bp_gallery_pagination();
    ?>
		</div>

	</div>

	<?php 
    do_action('bp_before_directory_galleries_list');
    ?>

	<ul id="galleries-list" class="item-list">
	<?php 
    while (bp_galleries()) {
        bp_the_gallery();
        ?>
Exemplo n.º 6
0
<ul>
	<?php 
bp_group_gallery_admin_tabs();
?>
</ul>
<span class="space-usage">
<?php 
gallery_display_space_usage("groups", null);
?>
</span>
</div>

			<div id="galleries">
				
				<?php 
if (bp_has_galleries("orderby=date&sort_order=DESC&per_page=6")) {
    ?>
					<?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