[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-templates/bp-nouveau/buddypress/activity/ -> entry.php (source)

   1  <?php
   2  /**
   3   * BuddyPress - Activity Stream (Single Item)
   4   *
   5   * This template is used by activity-loop.php and AJAX functions to show
   6   * each activity.
   7   *
   8   * @since 3.0.0
   9   * @version 10.0.0
  10   */
  11  
  12  bp_nouveau_activity_hook( 'before', 'entry' ); ?>
  13  
  14  <li class="<?php bp_activity_css_class(); ?>" id="activity-<?php bp_activity_id(); ?>" <?php bp_nouveau_activity_data_attribute_id(); ?> data-bp-timestamp="<?php bp_nouveau_activity_timestamp(); ?>">
  15  
  16      <div class="activity-avatar item-avatar">
  17  
  18          <a href="<?php bp_activity_user_link(); ?>">
  19  
  20              <?php bp_activity_avatar( array( 'type' => 'full' ) ); ?>
  21  
  22          </a>
  23  
  24      </div>
  25  
  26      <div class="activity-content">
  27  
  28          <div class="activity-header">
  29  
  30              <?php bp_activity_action(); ?>
  31  
  32          </div>
  33  
  34          <?php if ( bp_nouveau_activity_has_content() ) : ?>
  35  
  36              <div class="activity-inner">
  37  
  38                  <?php bp_get_template_part( 'activity/type-parts/content',  bp_activity_type_part() ); ?>
  39  
  40              </div>
  41  
  42          <?php endif; ?>
  43  
  44          <?php bp_nouveau_activity_entry_buttons(); ?>
  45  
  46      </div>
  47  
  48      <?php bp_nouveau_activity_hook( 'before', 'entry_comments' ); ?>
  49  
  50      <?php if ( bp_activity_get_comment_count() || ( is_user_logged_in() && ( bp_activity_can_comment() || bp_is_single_activity() ) ) ) : ?>
  51  
  52          <div class="activity-comments">
  53  
  54              <?php bp_activity_comments(); ?>
  55  
  56              <?php bp_nouveau_activity_comment_form(); ?>
  57  
  58          </div>
  59  
  60      <?php endif; ?>
  61  
  62      <?php bp_nouveau_activity_hook( 'after', 'entry_comments' ); ?>
  63  
  64  </li>
  65  
  66  <?php
  67  bp_nouveau_activity_hook( 'after', 'entry' );


Generated: Mon Jun 27 01:00:52 2022 Cross-referenced by PHPXref 0.7.1