/bp-templates/bp-legacy/buddypress/groups/single/group-header.php

  1. <?php 
  2. /** 
  3. * BuddyPress - Groups Header 
  4. * 
  5. * @package BuddyPress 
  6. * @subpackage bp-legacy 
  7. */ 
  8.  
  9. /** 
  10. * Fires before the display of a group's header. 
  11. * 
  12. * @since 1.2.0 
  13. */ 
  14. do_action( 'bp_before_group_header' ); 
  15.  
  16. ?> 
  17.  
  18. <div id="item-actions"> 
  19.  
  20. <?php if ( bp_group_is_visible() ) : ?> 
  21.  
  22. <h2><?php _e( 'Group Admins', 'buddypress' ); ?></h2> 
  23.  
  24. <?php bp_group_list_admins(); 
  25.  
  26. /** 
  27. * Fires after the display of the group's administrators. 
  28. * 
  29. * @since 1.1.0 
  30. */ 
  31. do_action( 'bp_after_group_menu_admins' ); 
  32.  
  33. if ( bp_group_has_moderators() ) : 
  34.  
  35. /** 
  36. * Fires before the display of the group's moderators, if there are any. 
  37. * 
  38. * @since 1.1.0 
  39. */ 
  40. do_action( 'bp_before_group_menu_mods' ); ?> 
  41.  
  42. <h2><?php _e( 'Group Mods' , 'buddypress' ); ?></h2> 
  43.  
  44. <?php bp_group_list_mods(); 
  45.  
  46. /** 
  47. * Fires after the display of the group's moderators, if there are any. 
  48. * 
  49. * @since 1.1.0 
  50. */ 
  51. do_action( 'bp_after_group_menu_mods' ); 
  52.  
  53. endif; 
  54.  
  55. endif; ?> 
  56.  
  57. </div><!-- #item-actions --> 
  58.  
  59. <?php if ( ! bp_disable_group_avatar_uploads() ) : ?> 
  60. <div id="item-header-avatar"> 
  61. <a href="<?php echo esc_url( bp_get_group_permalink() ); ?>" title="<?php echo esc_attr( bp_get_group_name() ); ?>"> 
  62.  
  63. <?php bp_group_avatar(); ?> 
  64.  
  65. </a> 
  66. </div><!-- #item-header-avatar --> 
  67. <?php endif; ?> 
  68.  
  69. <div id="item-header-content"> 
  70. <span class="highlight"><?php bp_group_type(); ?></span> 
  71. <span class="activity" data-livestamp="<?php bp_core_iso8601_date( bp_get_group_last_active( 0, array( 'relative' => false ) ) ); ?>"><?php printf( __( 'active %s', 'buddypress' ), bp_get_group_last_active() ); ?></span> 
  72.  
  73. <?php 
  74.  
  75. /** 
  76. * Fires before the display of the group's header meta. 
  77. * 
  78. * @since 1.2.0 
  79. */ 
  80. do_action( 'bp_before_group_header_meta' ); ?> 
  81.  
  82. <div id="item-meta"> 
  83.  
  84. <?php bp_group_description(); ?> 
  85.  
  86. <?php bp_group_type_list(); ?> 
  87.  
  88. <div id="item-buttons"> 
  89.  
  90. <?php 
  91.  
  92. /** 
  93. * Fires in the group header actions section. 
  94. * 
  95. * @since 1.2.6 
  96. */ 
  97. do_action( 'bp_group_header_actions' ); ?> 
  98.  
  99. </div><!-- #item-buttons --> 
  100.  
  101. <?php 
  102.  
  103. /** 
  104. * Fires after the group header actions section. 
  105. * 
  106. * @since 1.2.0 
  107. */ 
  108. do_action( 'bp_group_header_meta' ); ?> 
  109.  
  110. </div> 
  111. </div><!-- #item-header-content --> 
  112.  
  113. <?php 
  114.  
  115. /** 
  116. * Fires after the display of a group's header. 
  117. * 
  118. * @since 1.2.0 
  119. */ 
  120. do_action( 'bp_after_group_header' ); ?> 
  121.  
  122. <div id="template-notices" role="alert" aria-atomic="true"> 
  123. <?php 
  124.  
  125. /** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */ 
  126. do_action( 'template_notices' ); ?> 
  127.  
  128. </div> 
.