Changeset 3600 for trunk/bp-activity/bp-activity-templatetags.php
- Timestamp:
- 12/28/2010 03:36:33 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/bp-activity/bp-activity-templatetags.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-templatetags.php
r3598 r3600 1139 1139 } 1140 1140 1141 /** 1142 * Template tag so we can hook activity feed to <head> 1143 * 1144 * @since 1.3 1145 */ 1146 function bp_dtheme_sitewide_feed() { 1141 1147 ?> 1148 <link rel="alternate" type="application/rss+xml" title="<?php bloginfo( 'name' ) ?> | <?php _e( 'Site Wide Activity RSS Feed', 'buddypress' ) ?>" href="<?php bp_sitewide_activity_feed_link() ?>" /> 1149 <?php 1150 } 1151 add_action( 'bp_head', 'bp_dtheme_sitewide_feed' ); 1152 1153 /** 1154 * Template tag so we can hook member activity feed to <head> 1155 * 1156 * @since 1.3 1157 */ 1158 function bp_dtheme_member_feed() { 1159 if ( !bp_is_member() ) 1160 return; 1161 ?> 1162 <link rel="alternate" type="application/rss+xml" title="<?php bloginfo( 'name' ) ?> | <?php bp_displayed_user_fullname() ?> | <?php _e( 'Activity RSS Feed', 'buddypress' ) ?>" href="<?php bp_member_activity_feed_link() ?>" /> 1163 <?php 1164 } 1165 add_action( 'bp_head', 'bp_dtheme_member_feed' ); 1166 1167 /** 1168 * Template tag so we can hook group activity feed to <head> 1169 * 1170 * @since 1.3 1171 */ 1172 function bp_dtheme_group_feed() { 1173 if ( !bp_is_active( 'groups' ) || !bp_is_group() ) 1174 return; 1175 ?> 1176 <link rel="alternate" type="application/rss+xml" title="<?php bloginfo( 'name' ) ?> | <?php bp_current_group_name() ?> | <?php _e( 'Group Activity RSS Feed', 'buddypress' ) ?>" href="<?php bp_group_activity_feed_link() ?>" /> 1177 <?php 1178 } 1179 add_action( 'bp_head', 'bp_dtheme_group_feed' ); 1180 ?>
Note: See TracChangeset
for help on using the changeset viewer.