Advertisement
sbrajesh

Brajesh Singh

Dec 28th, 2010
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.16 KB | None | 0 0
  1. <?php get_header() ?>
  2.  
  3.     <div id="content">
  4.         <div class="padder">
  5.  
  6.         <?php do_action( 'bp_before_blog_home' ) ?>
  7.  
  8.         <div class="page" id="blog-latest">
  9.  
  10.           <?php do_action( 'bp_before_galleries_loop' ) ?>
  11. <?php if ( bp_has_galleries( bp_ajax_querystring( 'gallery' ) ) ) : ?>
  12.     <div class="pagination">
  13.  
  14.         <div class="pag-count" id="gallery-dir-count">
  15.             <?php bp_gallery_pagination_count();?>
  16.         </div>
  17.  
  18.         <div class="pagination-links" id="gallery-dir-pag">
  19.             <?php   bp_gallery_pagination();?>
  20.         </div>
  21.  
  22.     </div>
  23.  
  24.     <?php do_action( 'bp_before_directory_galleries_list' ) ?>
  25.  
  26.     <ul id="galleries-list" class="item-list">
  27.     <?php while ( bp_galleries() ) : bp_the_gallery(); ?>
  28.  
  29.         <li id="item_<?php bp_gallery_id();?>" class='list-item gallery-type-<?php bp_gallery_type();?>'>
  30.             <div class="item-avatar">
  31.                 <a href="<?php bp_gallery_permalink();?>"><?php bp_gallery_cover_image("mini");?></a>
  32.             </div>
  33.  
  34.             <div class="item">
  35.                 <div class="item-title" >
  36.                     <a href="<?php bp_gallery_permalink();?>"><?php bp_gallery_title();?>[<?php echo gallery_get_media_count(bp_get_gallery_id());?>]</a>
  37.                 </div>
  38.                 <div class="item-meta"><span class="activity"><?php bp_gallery_last_updated() ?></span></div>
  39.                                 <div class="uinfo">Created By <?php echo bp_core_get_userlink(bp_get_gallery_creator_id()) ;?></div>
  40.                 <?php do_action( 'bp_directory_galleries_item' ) ?>
  41.  
  42.             </div>
  43.  
  44.             <div class="action">
  45.                             <div class='generic-button'><a href="<?php bp_gallery_permalink();?>">View</a></div>
  46.  
  47.                 <?php do_action( 'bp_directory_galleries_actions' ) ?>
  48.             </div>
  49.  
  50.             <div class="clear"></div>
  51.         </li>
  52.  
  53.     <?php endwhile; ?>
  54.     </ul>
  55.  
  56.     <?php do_action( 'bp_after_directory_galleries_list' ) ?>
  57.  
  58.    
  59.  
  60. <?php else: ?>
  61.  
  62.     <div id="message" class="info">
  63.         <p><?php _e( "Sorry, no galleries were found.", 'bp-gallery' ) ?></p>
  64.     </div>
  65.  
  66. <?php endif; ?>
  67.  
  68. <?php do_action( 'bp_after_galleries_loop' ) ?>
  69.         </div>
  70.  
  71.         <?php do_action( 'bp_after_blog_home' ) ?>
  72.  
  73.         </div><!-- .padder -->
  74.     </div><!-- #content -->
  75.  
  76.     <?php locate_template( array( 'sidebar.php' ), true ) ?>
  77.  
  78. <?php get_footer() ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement