Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/26/2009 09:54:22 PM (17 years ago)
Author:
apeatling
Message:

Committing basic activity stream filter support to sitewide activity widget.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-widgets.php

    r1575 r1587  
    2424        <?php echo $before_widget; ?>
    2525        <?php echo $before_title
    26                 . $widget_name
     26                . $widget_name .
     27                ' <a href="' . bp_get_sitewide_activity_feed_link() . '" title="' . __( 'Site Wide Activity RSS Feed', 'buddypress' ) . '"><img src="' . $bp->activity->image_base . '/rss.png" alt="' . __( 'RSS Feed', 'buddypress' ) . '" /></a>'
    2728                . $after_title; ?>
    2829               
    2930        <?php
     31        if ( !$options['per_page'] || empty( $options['per_page'] ) )
     32                $options['per_page'] = 20;
     33
    3034        if ( !$options['max_items'] || empty( $options['max_items'] ) )
    31                 $options['max_items'] = 20;
     35                $options['max_items'] = 200;
    3236        ?>
    3337
    34         <?php if ( bp_has_activities( 'type=sitewide&max=' . $options['max_items'] ) ) : ?>
    35 
    36                 <div class="item-options" id="activity-list-options">
    37                         <img src="<?php echo $bp->activity->image_base; ?>/rss.png" alt="<?php _e( 'RSS Feed', 'buddypress' ) ?>" /> <a href="<?php bp_sitewide_activity_feed_link() ?>" title="<?php _e( 'Site Wide Activity RSS Feed', 'buddypress' ) ?>"><?php _e( 'RSS Feed', 'buddypress' ) ?></a>
     38        <?php if ( bp_has_activities( 'type=sitewide&max=' . $options['max_items'] . '&per_page=' . $options['per_page'] ) ) : ?>
     39                <div class="pag-count" id="activity-count">
     40                        <?php bp_activity_pagination_count() ?>
     41                </div>
     42               
     43                <div class="pagination-links" id="activity-pag">
     44                        &nbsp; <?php bp_activity_pagination_links() ?>
    3845                </div>
    3946
     47                <ul id="activity-filter-links">
     48                        <?php bp_activity_filter_links() ?>
     49                </ul>
     50               
    4051                <ul id="site-wide-stream" class="activity-list">
    4152                <?php while ( bp_activities() ) : bp_the_activity(); ?>
Note: See TracChangeset for help on using the changeset viewer.