Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Oct 7th, 2010  |  syntax: None  |  size: 0.57 KB  |  views: 33  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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' );
clone this paste RAW Paste Data