Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/20/2011 03:56:04 AM (15 years ago)
Author:
johnjamesjacoby
Message:

First pass at BP_Component class. Refactor Activity component to use BP_Component. Introduce page templates for root directories. Rename bp-activity-templatetags to bp-activity-template per WP coding standards. Split bp-activity up into smaller parts. Introduce get_slug functions for activity component. More refactoring to do on other components. This will temporarily break trunk while refactoring happens, so be sure to pin to the previous revision if needed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/feeds/bp-activity-favorites-feed.php

    r3503 r3751  
    55 * @package BuddyPress
    66 */
    7 header('Content-Type: text/xml; charset=' . get_option('blog_charset'), true);
     7header('Content-Type: text/xml; charset=' . get_option( 'blog_charset' ), true );
    88header('Status: 200 OK');
    99?>
    10 <?php echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?>
     10
     11<?php echo '<?xml version="1.0" encoding="' . get_option( 'blog_charset' ) . '"?'.'>'; ?>
    1112
    1213<rss version="2.0"
     
    2122        <title><?php bp_site_name() ?> | <?php echo $bp->displayed_user->fullname; ?> | <?php _e( 'Favorite Activity', 'buddypress' ) ?></title>
    2223        <atom:link href="<?php self_link(); ?>" rel="self" type="application/rss+xml" />
    23         <link><?php echo site_url( BP_ACTIVITY_SLUG . '/#my-favorites/' ) ?></link>
     24        <link><?php echo home_url( bp_get_activity_root_slug() . '/#my-favorites/' ) ?></link>
    2425        <description><?php echo $bp->displayed_user->fullname; ?> - <?php _e( 'Favorite Activity', 'buddypress' ) ?></description>
    2526        <pubDate><?php echo mysql2date('D, d M Y H:i:s O', bp_activity_get_last_updated(), false); ?></pubDate>
    2627        <generator>http://buddypress.org/?v=<?php echo BP_VERSION ?></generator>
    2728        <language><?php echo get_option('rss_language'); ?></language>
     29
    2830        <?php do_action('bp_activity_favorites_feed_head'); ?>
    2931
     
    3537        <?php if ( bp_has_activities( 'include=' . $fav_ids . '&max=50&display_comments=stream' ) ) : ?>
    3638                <?php while ( bp_activities() ) : bp_the_activity(); ?>
     39
    3740                        <item>
    3841                                <guid><?php bp_activity_thread_permalink() ?></guid>
     
    5558                                        ]]>
    5659                                </description>
     60
    5761                                <?php do_action('bp_activity_favorites_feed_item'); ?>
     62
    5863                        </item>
     64
    5965                <?php endwhile; ?>
     66        <?php endif; ?>
    6067
    61         <?php endif; ?>
    6268</channel>
    6369</rss>
Note: See TracChangeset for help on using the changeset viewer.