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; }
<?php if (bp_has_groups($group_args)) { while (bp_groups()) { bp_the_group(); ?> <?php /* Hack alert: Instead of querying intelligently, just skip old camps */ ?> <?php if (thatcamp_is_in_the_future()) { ?> <article class="camp-listitem"> <div class="camp-listdate"><?php echo thatcamp_get_camp_date_pretty(); ?> </div> <div class="camp-listinfo"> <h3><a href="<?php thatcamp_camp_permalink(); ?> " class="camplink"><?php bp_group_name(); ?> </a></h3> <div class="item-desc"> <?php echo thatcamp_get_location(bp_get_group_id(), 'pretty'); ?>