function thatcamp_camp_summary() { $summary = 'A new THATCamp has been registered at <a href="http://thatcamp.org">thatcamp.org</a>:<br /><br />'; $summary .= 'Name: ' . bp_get_group_name() . '<br />'; $permalink = thatcamp_get_camp_permalink(); $summary .= 'URL: <a href="' . thatcamp_get_camp_permalink() . '">' . thatcamp_get_camp_permalink() . '</a><br />'; $location = thatcamp_get_location(bp_get_group_id()); if ($location) { $summary .= 'Location: ' . $location . '<br />'; } $date = thatcamp_get_camp_date_pretty(bp_get_group_id()); if ($date) { $summary .= 'Date: ' . $date . '<br />'; } echo $summary; }
/** * Echoes the permalink of a THATCamp * * Used within the groups loop, and returns a link to the group's blog * * Use this instead of bp_group_permalink() */ function thatcamp_camp_permalink() { echo thatcamp_get_camp_permalink(); }