[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-templates/bp-legacy/buddypress/members/single/messages/ -> message.php (source)

   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   * @version 3.0.0
  13   */
  14  
  15  ?>
  16  
  17              <div class="message-box <?php bp_the_thread_message_css_class(); ?>">
  18  
  19                  <div class="message-metadata">
  20  
  21                      <?php
  22  
  23                      /**
  24                       * Fires before the single message header is displayed.
  25                       *
  26                       * @since 1.1.0
  27                       */
  28                      do_action( 'bp_before_message_meta' ); ?>
  29  
  30                      <?php bp_the_thread_message_sender_avatar( 'type=thumb&width=30&height=30' ); ?>
  31  
  32                      <?php if ( bp_get_the_thread_message_sender_link() ) : ?>
  33  
  34                          <strong><a href="<?php bp_the_thread_message_sender_link(); ?>"><?php bp_the_thread_message_sender_name(); ?></a></strong>
  35  
  36                      <?php else : ?>
  37  
  38                          <strong><?php bp_the_thread_message_sender_name(); ?></strong>
  39  
  40                      <?php endif; ?>
  41  
  42                      <span class="activity"><?php bp_the_thread_message_time_since(); ?></span>
  43  
  44                      <?php if ( bp_is_active( 'messages', 'star' ) ) : ?>
  45                          <div class="message-star-actions">
  46                              <?php bp_the_message_star_action_link(); ?>
  47                          </div>
  48                      <?php endif; ?>
  49  
  50                      <?php
  51  
  52                      /**
  53                       * Fires after the single message header is displayed.
  54                       *
  55                       * @since 1.1.0
  56                       */
  57                      do_action( 'bp_after_message_meta' ); ?>
  58  
  59                  </div><!-- .message-metadata -->
  60  
  61                  <?php
  62  
  63                  /**
  64                   * Fires before the message content for a private message.
  65                   *
  66                   * @since 1.1.0
  67                   */
  68                  do_action( 'bp_before_message_content' ); ?>
  69  
  70                  <div class="message-content">
  71  
  72                      <?php bp_the_thread_message_content(); ?>
  73  
  74                  </div><!-- .message-content -->
  75  
  76                  <?php
  77  
  78                  /**
  79                   * Fires after the message content for a private message.
  80                   *
  81                   * @since 1.1.0
  82                   */
  83                  do_action( 'bp_after_message_content' ); ?>
  84  
  85                  <div class="clear"></div>
  86  
  87              </div><!-- .message-box -->


Generated: Wed Dec 11 01:01:37 2019 Cross-referenced by PHPXref 0.7.1