Changeset 3751 for trunk/bp-activity/feeds/bp-activity-favorites-feed.php
- Timestamp:
- 01/20/2011 03:56:04 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/feeds/bp-activity-favorites-feed.php
r3503 r3751 5 5 * @package BuddyPress 6 6 */ 7 header('Content-Type: text/xml; charset=' . get_option( 'blog_charset'), true);7 header('Content-Type: text/xml; charset=' . get_option( 'blog_charset' ), true ); 8 8 header('Status: 200 OK'); 9 9 ?> 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' ) . '"?'.'>'; ?> 11 12 12 13 <rss version="2.0" … … 21 22 <title><?php bp_site_name() ?> | <?php echo $bp->displayed_user->fullname; ?> | <?php _e( 'Favorite Activity', 'buddypress' ) ?></title> 22 23 <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> 24 25 <description><?php echo $bp->displayed_user->fullname; ?> - <?php _e( 'Favorite Activity', 'buddypress' ) ?></description> 25 26 <pubDate><?php echo mysql2date('D, d M Y H:i:s O', bp_activity_get_last_updated(), false); ?></pubDate> 26 27 <generator>http://buddypress.org/?v=<?php echo BP_VERSION ?></generator> 27 28 <language><?php echo get_option('rss_language'); ?></language> 29 28 30 <?php do_action('bp_activity_favorites_feed_head'); ?> 29 31 … … 35 37 <?php if ( bp_has_activities( 'include=' . $fav_ids . '&max=50&display_comments=stream' ) ) : ?> 36 38 <?php while ( bp_activities() ) : bp_the_activity(); ?> 39 37 40 <item> 38 41 <guid><?php bp_activity_thread_permalink() ?></guid> … … 55 58 ]]> 56 59 </description> 60 57 61 <?php do_action('bp_activity_favorites_feed_item'); ?> 62 58 63 </item> 64 59 65 <?php endwhile; ?> 66 <?php endif; ?> 60 67 61 <?php endif; ?>62 68 </channel> 63 69 </rss>
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)