/bp-themes/bp-default/blogs/blogs-loop.php

  1. <?php 
  2.  
  3. /** 
  4. * BuddyPress - Blogs Loop 
  5. * 
  6. * Querystring is set via AJAX in _inc/ajax.php - bp_dtheme_object_filter() 
  7. * 
  8. * @package BuddyPress 
  9. * @subpackage bp-default 
  10. */ 
  11.  
  12. ?> 
  13.  
  14. <?php do_action( 'bp_before_blogs_loop' ); ?> 
  15.  
  16. <?php if ( bp_has_blogs( bp_ajax_querystring( 'blogs' ) ) ) : ?> 
  17.  
  18. <div id="pag-top" class="pagination"> 
  19.  
  20. <div class="pag-count" id="blog-dir-count-top"> 
  21. <?php bp_blogs_pagination_count(); ?> 
  22. </div> 
  23.  
  24. <div class="pagination-links" id="blog-dir-pag-top"> 
  25. <?php bp_blogs_pagination_links(); ?> 
  26. </div> 
  27.  
  28. </div> 
  29.  
  30. <?php do_action( 'bp_before_directory_blogs_list' ); ?> 
  31.  
  32. <ul id="blogs-list" class="item-list" role="main"> 
  33.  
  34. <?php while ( bp_blogs() ) : bp_the_blog(); ?> 
  35.  
  36. <li> 
  37. <div class="item-avatar"> 
  38. <a href="<?php bp_blog_permalink(); ?>"><?php bp_blog_avatar( 'type=thumb' ); ?></a> 
  39. </div> 
  40.  
  41. <div class="item"> 
  42. <div class="item-title"><a href="<?php bp_blog_permalink(); ?>"><?php bp_blog_name(); ?></a></div> 
  43. <div class="item-meta"><span class="activity"><?php bp_blog_last_active(); ?></span></div> 
  44.  
  45. <?php do_action( 'bp_directory_blogs_item' ); ?> 
  46. </div> 
  47.  
  48. <div class="action"> 
  49.  
  50. <?php do_action( 'bp_directory_blogs_actions' ); ?> 
  51.  
  52. <div class="meta"> 
  53.  
  54. <?php bp_blog_latest_post(); ?> 
  55.  
  56. </div> 
  57.  
  58. </div> 
  59.  
  60. <div class="clear"></div> 
  61. </li> 
  62.  
  63. <?php endwhile; ?> 
  64.  
  65. </ul> 
  66.  
  67. <?php do_action( 'bp_after_directory_blogs_list' ); ?> 
  68.  
  69. <?php bp_blog_hidden_fields(); ?> 
  70.  
  71. <div id="pag-bottom" class="pagination"> 
  72.  
  73. <div class="pag-count" id="blog-dir-count-bottom"> 
  74.  
  75. <?php bp_blogs_pagination_count(); ?> 
  76.  
  77. </div> 
  78.  
  79. <div class="pagination-links" id="blog-dir-pag-bottom"> 
  80.  
  81. <?php bp_blogs_pagination_links(); ?> 
  82.  
  83. </div> 
  84.  
  85. </div> 
  86.  
  87. <?php else: ?> 
  88.  
  89. <div id="message" class="info"> 
  90. <p><?php _e( 'Sorry, there were no sites found.', 'buddypress' ); ?></p> 
  91. </div> 
  92.  
  93. <?php endif; ?> 
  94.  
  95. <?php do_action( 'bp_after_blogs_loop' ); ?> 
.