/bp-templates/bp-legacy/buddypress/blogs/blogs-loop.php

  1. <?php 
  2. /** 
  3. * BuddyPress - Blogs Loop 
  4. * 
  5. * Querystring is set via AJAX in _inc/ajax.php - bp_legacy_theme_object_filter(). 
  6. * 
  7. * @package BuddyPress 
  8. * @subpackage bp-legacy 
  9. */ 
  10.  
  11. /** 
  12. * Fires before the start of the blogs loop. 
  13. * 
  14. * @since 1.2.0 
  15. */ 
  16. do_action( 'bp_before_blogs_loop' ); ?> 
  17.  
  18. <?php if ( bp_has_blogs( bp_ajax_querystring( 'blogs' ) ) ) : ?> 
  19.  
  20. <div id="pag-top" class="pagination"> 
  21.  
  22. <div class="pag-count" id="blog-dir-count-top"> 
  23. <?php bp_blogs_pagination_count(); ?> 
  24. </div> 
  25.  
  26. <div class="pagination-links" id="blog-dir-pag-top"> 
  27. <?php bp_blogs_pagination_links(); ?> 
  28. </div> 
  29.  
  30. </div> 
  31.  
  32. <?php 
  33.  
  34. /** 
  35. * Fires before the blogs directory list. 
  36. * 
  37. * @since 1.1.0 
  38. */ 
  39. do_action( 'bp_before_directory_blogs_list' ); ?> 
  40.  
  41. <ul id="blogs-list" class="item-list"> 
  42.  
  43. <?php while ( bp_blogs() ) : bp_the_blog(); ?> 
  44.  
  45. <li <?php bp_blog_class() ?>> 
  46. <div class="item-avatar"> 
  47. <a href="<?php bp_blog_permalink(); ?>"><?php bp_blog_avatar( 'type=thumb' ); ?></a> 
  48. </div> 
  49.  
  50. <div class="item"> 
  51. <div class="item-title"><a href="<?php bp_blog_permalink(); ?>"><?php bp_blog_name(); ?></a></div> 
  52. <div class="item-meta"><span class="activity"><?php bp_blog_last_active(); ?></span></div> 
  53.  
  54. <?php 
  55.  
  56. /** 
  57. * Fires after the listing of a blog item in the blogs loop. 
  58. * 
  59. * @since 1.2.0 
  60. */ 
  61. do_action( 'bp_directory_blogs_item' ); ?> 
  62. </div> 
  63.  
  64. <div class="action"> 
  65.  
  66. <?php 
  67.  
  68. /** 
  69. * Fires inside the blogs action listing area. 
  70. * 
  71. * @since 1.1.0 
  72. */ 
  73. do_action( 'bp_directory_blogs_actions' ); ?> 
  74.  
  75. <div class="meta"> 
  76.  
  77. <?php bp_blog_latest_post(); ?> 
  78.  
  79. </div> 
  80.  
  81. </div> 
  82.  
  83. <div class="clear"></div> 
  84. </li> 
  85.  
  86. <?php endwhile; ?> 
  87.  
  88. </ul> 
  89.  
  90. <?php 
  91.  
  92. /** 
  93. * Fires after the blogs directory list. 
  94. * 
  95. * @since 1.1.0 
  96. */ 
  97. do_action( 'bp_after_directory_blogs_list' ); ?> 
  98.  
  99. <?php bp_blog_hidden_fields(); ?> 
  100.  
  101. <div id="pag-bottom" class="pagination"> 
  102.  
  103. <div class="pag-count" id="blog-dir-count-bottom"> 
  104.  
  105. <?php bp_blogs_pagination_count(); ?> 
  106.  
  107. </div> 
  108.  
  109. <div class="pagination-links" id="blog-dir-pag-bottom"> 
  110.  
  111. <?php bp_blogs_pagination_links(); ?> 
  112.  
  113. </div> 
  114.  
  115. </div> 
  116.  
  117. <?php else: ?> 
  118.  
  119. <div id="message" class="info"> 
  120. <p><?php _e( 'Sorry, there were no sites found.', 'buddypress' ); ?></p> 
  121. </div> 
  122.  
  123. <?php endif; ?> 
  124.  
  125. <?php 
  126.  
  127. /** 
  128. * Fires after the display of the blogs loop. 
  129. * 
  130. * @since 1.2.0 
  131. */ 
  132. do_action( 'bp_after_blogs_loop' ); ?> 
.