[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-templates/bp-legacy/buddypress/activity/ -> comment.php (source)

   1  <?php
   2  /**
   3   * BuddyPress - Activity Stream Comment
   4   *
   5   * This template is used by bp_activity_comments() functions to show
   6   * each activity.
   7   *
   8   * @package BuddyPress
   9   * @subpackage bp-legacy
  10   * @version 3.0.0
  11   */
  12  
  13  /**
  14   * Fires before the display of an activity comment.
  15   *
  16   * @since 1.5.0
  17   */
  18  do_action( 'bp_before_activity_comment' ); ?>
  19  
  20  <li id="acomment-<?php bp_activity_comment_id(); ?>">
  21      <div class="acomment-avatar">
  22          <a href="<?php bp_activity_comment_user_link(); ?>">
  23              <?php bp_activity_avatar( 'type=thumb&user_id=' . bp_get_activity_comment_user_id() ); ?>
  24          </a>
  25      </div>
  26  
  27      <div class="acomment-meta">
  28          <?php
  29          /* translators: 1: user profile link, 2: user name, 3: activity permalink, 4: ISO8601 timestamp, 5: activity relative timestamp */
  30          printf( __( '<a href="%1$s">%2$s</a> replied <a href="%3$s" class="activity-time-since"><span class="time-since" data-livestamp="%4$s">%5$s</span></a>', 'buddypress' ), bp_get_activity_comment_user_link(), bp_get_activity_comment_name(), bp_get_activity_comment_permalink(), bp_core_get_iso8601_date( bp_get_activity_comment_date_recorded() ), bp_get_activity_comment_date_recorded() );
  31          ?>
  32      </div>
  33  
  34      <div class="acomment-content"><?php bp_activity_comment_content(); ?></div>
  35  
  36      <div class="acomment-options">
  37  
  38          <?php if ( is_user_logged_in() && bp_activity_can_comment_reply( bp_activity_current_comment() ) ) : ?>
  39  
  40              <a href="#acomment-<?php bp_activity_comment_id(); ?>" class="acomment-reply bp-primary-action" id="acomment-reply-<?php bp_activity_id(); ?>-from-<?php bp_activity_comment_id(); ?>"><?php _e( 'Reply', 'buddypress' ); ?></a>
  41  
  42          <?php endif; ?>
  43  
  44          <?php if ( bp_activity_user_can_delete() ) : ?>
  45  
  46              <a href="<?php bp_activity_comment_delete_link(); ?>" class="delete acomment-delete confirm bp-secondary-action" rel="nofollow"><?php _e( 'Delete', 'buddypress' ); ?></a>
  47  
  48          <?php endif; ?>
  49  
  50          <?php
  51  
  52          /**
  53           * Fires after the defualt comment action options display.
  54           *
  55           * @since 1.6.0
  56           */
  57          do_action( 'bp_activity_comment_options' ); ?>
  58  
  59      </div>
  60  
  61      <?php bp_activity_recurse_comments( bp_activity_current_comment() ); ?>
  62  </li>
  63  
  64  <?php
  65  
  66  /**
  67   * Fires after the display of an activity comment.
  68   *
  69   * @since 1.5.0
  70   */
  71  do_action( 'bp_after_activity_comment' );


Generated: Tue Jul 23 01:01:40 2019 Cross-referenced by PHPXref 0.7.1