1. class Google_Group_Extension extends BP_Group_Extension {
  2.  
  3. var $enable_create_step = false;
  4. var $enable_edit_item = false;
  5.  
  6.  
  7. function google_group_extension() {
  8. $this->name = 'Map';
  9. $this->slug = 'map';
  10.  
  11. $this->create_step_position = 21;
  12. $this->nav_item_position = 31;
  13. }
  14.  
  15. function display() {
  16. global $bp;
  17. echo '<div class="ggmap-directions">'. __('', 'ggmap').' '. ggmap_make_directions_for_group().'</div>';
  18. echo '<div class="ggmap-map">'. __('', 'ggmap').' '. ggmap_make_map_for_group().'</div>';
  19. }
  20.  
  21. }
  22. bp_register_group_extension( 'Google_Group_Extension' );