コード例 #1
0
ファイル: single.php プロジェクト: r-chopra17/p2bp
				<?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>
コード例 #2
0
ファイル: single.php プロジェクト: buddydev/bp-magic
        } 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 
        }
        ?>
	
		<?php 
        previous_gallery_link();
        ?>
		<?php 
        next_gallery_link();
        ?>
		
		<?php 
    }
    ?>
			
		
		
		
	<?php 
} else {
    ?>
	<p><?php 
    _e("Perhaps! the Gallery does not exist or You don't have adequate permissions to view them.", "bp-gallery");
    ?>