concat( 'PLUGIN_INDEX_ACTIONS' ,'
  • map
  • '); } // if ( empty($map_url) ) { $kml_url = rvm_duplicate_kml_index_url( array(), array('start') ); $link_title = sprintf( l10n('opens %s in Google Earth'), strip_tags($page['title']) ); $template->concat( 'PLUGIN_INDEX_ACTIONS' ,'
  • earth
  • '); } } function rvm_picture_pictures_data($pictures) { if ( isset($pictures['current']['lat']) and isset($pictures['current']['lon']) ) { global $template; $template->append('head_elements', '' ); include_once( dirname(__FILE__) .'/include/functions.php'); rvm_load_language(); if ( isset($_GET['map']) ) include_once( dirname(__FILE__) .'/include/picture_map.inc.php'); else { global $rvm_dir; $map_url = rvm_duplicate_map_picture_url(); if (!empty($map_url)) { $link_title = sprintf( l10n('displays %s on a map'), strip_tags($pictures['current']['name']) ); $template->concat('PLUGIN_PICTURE_ACTIONS', ' map '); } } } else if ( isset($_GET['map']) ) redirect( duplicate_picture_url() ); return $pictures; } function rvm_plugin_admin_menu($menu) { include_once( dirname(__FILE__) .'/include/functions.php'); add_event_handler('invalidate_user_cache', 'rvm_invalidate_cache' ); array_push($menu, array( 'NAME' => 'Maps & Earth', 'URL' => get_admin_plugin_menu_link(dirname(__FILE__).'/admin/admin.php') ) ); return $menu; } ?>