[ 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 9.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              <blockquote>
  20  
  21                  <?php if ( bp_activity_has_content() ) : ?>
  22  
  23                      <div class="<?php bp_activity_css_class(); ?>">
  24                          <?php bp_activity_content_body(); ?>
  25                      </div>
  26  
  27                      <footer>
  28  
  29                          <cite>
  30                              <a href="<?php bp_activity_user_link(); ?>" class="bp-tooltip" data-bp-tooltip="<?php echo esc_attr( bp_activity_member_display_name() ); ?>">
  31                                  <?php
  32                                  bp_activity_avatar(
  33                                      array(
  34                                          'type'   => 'thumb',
  35                                          'width'  => '40',
  36                                          'height' => '40',
  37                                      )
  38                                  );
  39                                  ?>
  40                              </a>
  41                          </cite>
  42  
  43                          <?php echo bp_insert_activity_meta(); ?>
  44  
  45                      </footer>
  46  
  47                      <?php else : ?>
  48  
  49                          <div class="<?php bp_activity_css_class(); ?>">
  50                              <p><?php bp_activity_action(); ?></p>
  51                          </div>
  52  
  53                      <?php endif; ?>
  54  
  55              </blockquote>
  56  
  57          <?php endwhile; ?>
  58  
  59      </div>
  60  
  61  <?php else : ?>
  62  
  63      <div class="widget-error">
  64          <?php bp_nouveau_user_feedback( 'activity-loop-none' ); ?>
  65      </div>
  66  
  67  <?php endif; ?>


Generated: Tue Jul 5 01:00:53 2022 Cross-referenced by PHPXref 0.7.1