/bp-templates/bp-legacy/buddypress/members/single/messages/message.php

  1. <?php 
  2. /** 
  3. * BuddyPress - Private Message Content. 
  4. * 
  5. * This template is used in /messages/single.php during the message loop to 
  6. * display each message and when a new message is created via AJAX. 
  7. * 
  8. * @since 2.4.0 
  9. * 
  10. * @package BuddyPress 
  11. * @subpackage bp-legacy 
  12. */ 
  13.  
  14. ?> 
  15.  
  16. <div class="message-box <?php bp_the_thread_message_css_class(); ?>"> 
  17.  
  18. <div class="message-metadata"> 
  19.  
  20. <?php 
  21.  
  22. /** 
  23. * Fires before the single message header is displayed. 
  24. * 
  25. * @since 1.1.0 
  26. */ 
  27. do_action( 'bp_before_message_meta' ); ?> 
  28.  
  29. <?php bp_the_thread_message_sender_avatar( 'type=thumb&width=30&height=30' ); ?> 
  30.  
  31. <?php if ( bp_get_the_thread_message_sender_link() ) : ?> 
  32.  
  33. <strong><a href="<?php bp_the_thread_message_sender_link(); ?>" title="<?php bp_the_thread_message_sender_name(); ?>"><?php bp_the_thread_message_sender_name(); ?></a></strong> 
  34.  
  35. <?php else : ?> 
  36.  
  37. <strong><?php bp_the_thread_message_sender_name(); ?></strong> 
  38.  
  39. <?php endif; ?> 
  40.  
  41. <span class="activity"><?php bp_the_thread_message_time_since(); ?></span> 
  42.  
  43. <?php if ( bp_is_active( 'messages', 'star' ) ) : ?> 
  44. <div class="message-star-actions"> 
  45. <?php bp_the_message_star_action_link(); ?> 
  46. </div> 
  47. <?php endif; ?> 
  48.  
  49. <?php 
  50.  
  51. /** 
  52. * Fires after the single message header is displayed. 
  53. * 
  54. * @since 1.1.0 
  55. */ 
  56. do_action( 'bp_after_message_meta' ); ?> 
  57.  
  58. </div><!-- .message-metadata --> 
  59.  
  60. <?php 
  61.  
  62. /** 
  63. * Fires before the message content for a private message. 
  64. * 
  65. * @since 1.1.0 
  66. */ 
  67. do_action( 'bp_before_message_content' ); ?> 
  68.  
  69. <div class="message-content"> 
  70.  
  71. <?php bp_the_thread_message_content(); ?> 
  72.  
  73. </div><!-- .message-content --> 
  74.  
  75. <?php 
  76.  
  77. /** 
  78. * Fires after the message content for a private message. 
  79. * 
  80. * @since 1.1.0 
  81. */ 
  82. do_action( 'bp_after_message_content' ); ?> 
  83.  
  84. <div class="clear"></div> 
  85.  
  86. </div><!-- .message-box --> 
.