[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

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

   1  <?php
   2  /**
   3   * BP Nouveau Activity Widget template.
   4   *
   5   * @since 3.0.0
   6   * @version 3.0.0
   7   */
   8  ?>
   9  
  10  <?php if ( bp_has_activities( bp_nouveau_activity_widget_query() ) ) : ?>
  11  
  12      <div class="activity-list item-list">
  13  
  14          <?php
  15          while ( bp_activities() ) :
  16              bp_the_activity();
  17          ?>
  18  
  19              <?php if ( bp_activity_has_content() ) : ?>
  20  
  21                  <blockquote>
  22  
  23                      <?php bp_activity_content_body(); ?>
  24  
  25                      <footer>
  26  
  27                          <cite>
  28                              <a href="<?php bp_activity_user_link(); ?>" class="bp-tooltip" data-bp-tooltip="<?php echo esc_attr( bp_activity_member_display_name() ); ?>">
  29                                  <?php
  30                                  bp_activity_avatar(
  31                                      array(
  32                                          'type'   => 'thumb',
  33                                          'width'  => '40',
  34                                          'height' => '40',
  35                                      )
  36                                  );
  37                                  ?>
  38                              </a>
  39                          </cite>
  40  
  41                          <?php echo bp_insert_activity_meta(); ?>
  42  
  43                      </footer>
  44  
  45                  </blockquote>
  46  
  47              <?php else : ?>
  48  
  49                  <p><?php bp_activity_action(); ?></p>
  50  
  51              <?php endif; ?>
  52  
  53          <?php endwhile; ?>
  54  
  55      </div>
  56  
  57  <?php else : ?>
  58  
  59      <div class="widget-error">
  60          <?php bp_nouveau_user_feedback( 'activity-loop-none' ); ?>
  61      </div>
  62  
  63  <?php endif; ?>


Generated: Tue Jul 7 01:01:30 2020 Cross-referenced by PHPXref 0.7.1