Changeset 737
- Timestamp:
- 02/17/2005 02:24:19 PM (22 years ago)
- File:
-
- 1 edited
-
geo/trunk/geo.php (modified) (20 diffs)
Legend:
- Unmodified
- Added
- Removed
-
geo/trunk/geo.php
r641 r737 56 56 function options_page_geo() 57 57 /** 58 * Short Description for the Function, one line, end w/ period.58 * Displays the Options admin interface for the plugin. 59 59 * 60 60 * Long description for the Function. … … 193 193 194 194 </div> 195 <? 195 <?php 196 196 } 197 197 198 198 function prepare_database() 199 199 /** 200 * Short Description for the Function, one line, end w/ period.200 * Moves WordPress 1.2 geo info to meta fields. 201 201 * 202 202 * Long description for the Function. … … 237 237 function add_options() 238 238 /** 239 * Short Description for the Function, one line, end w/ period.239 * Adds the options required for geo info 240 240 * 241 241 * Long description for the Function. … … 252 252 function edit_form_advanced($not_used) 253 253 /** 254 * Short Description for the Function, one line, end w/ period.254 * Displays the Geo interface on the post editing form 255 255 * 256 256 * Long description for the Function. … … 283 283 function admin_head($not_used) 284 284 /** 285 * Short Description for the Function, one line, end w/ period.285 * Outputs support javascript to admin console and prepares the databse. 286 286 * 287 287 * Long description for the Function. … … 315 315 function update_post($id) 316 316 /** 317 * Short Description for the Function, one line, end w/ period.317 * Updates the geo info for a post when the post is updated. 318 318 * 319 319 * Long description for the Function. … … 328 328 function wp_head($not_used) 329 329 /** 330 * Short Description for the Function, one line, end w/ period.330 * Outputs the geo info as meta tags in the blog head. 331 331 * 332 332 * Long description for the Function. … … 362 362 function logErrors($msg) 363 363 /** 364 * S hort Description for the Function, one line, end w/ period.364 * Simple error logging function for debugging. 365 365 * 366 366 * Long description for the Function. … … 378 378 function admin_menu($not_used) 379 379 /** 380 * Short Description for the Function, one line, end w/ period.380 * Adds the Geo Info menu to the Options tab in the admin menu. 381 381 * 382 382 * Long description for the Function. … … 385 385 */ 386 386 { 387 add_options_page(__('Geo Location Manager', 'Geo'), __('Geo Info', 'Geo'), 5, 'geo.php'); 387 add_options_page(__('Geo Location Manager', 'Geo'), __('Geo Info', 'Geo'), 5, basename(__FILE__), array('Geo', 'options_page_geo')); 388 //add_submenu_page('index.php', __('Geo Location Manager', 'Geo'), __('Geo Info', 'Geo'), 5, basename(__FILE__), array('Geo', 'options_page_geo')); 388 389 } 389 390 … … 399 400 add_action('publish_post', array('Geo', 'update_post')); 400 401 add_action('admin_menu', array('Geo', 'admin_menu')); 401 add_action('options_page_geo', array('Geo', 'options_page_geo'));402 403 402 404 403 function pingGeoURL($blog_ID) 405 404 /** 406 * Short Description for the Function, one line, end w/ period.405 * Pings geourl.org with blog page ID. 407 406 * 408 407 * Long description for the Function. … … 419 418 function get_Lat() 420 419 /** 421 * Short Description for the Function, one line, end w/ period.420 * Returns the latitude setting for a post. 422 421 * 423 422 * Long description for the Function. … … 440 439 function get_Lon() 441 440 /** 442 * Short Description for the Function, one line, end w/ period.441 * Returns the longitude setting for a post. 443 442 * 444 443 * Long description for the Function. … … 461 460 function the_Lat() 462 461 /** 463 * Short Description for the Function, one line, end w/ period.462 * Outputs the latitude for a post. 464 463 * 465 464 * Long description for the Function. … … 479 478 function the_Lon() 480 479 /** 481 * Short Description for the Function, one line, end w/ period.480 * Outputs the longitude for a post. 482 481 * 483 482 * Long description for the Function. … … 499 498 function geo_PopUpScript() 500 499 /** 501 * Short Description for the Function, one line, end w/ period.500 * Outputs the popup javascript used by the dropdown popup-er. 502 501 * 503 502 * Long description for the Function. … … 519 518 function geo_urls($lat = '', $lon = '') 520 519 /** 521 * Short Description for the Function, one line, end w/ period.520 * Returns an array of named URLs for the llat and lon specified. 522 521 * 523 522 * Long description for the Function. … … 538 537 'FindU' => array("http://www.findu.com/cgi-bin/near.cgi?lat={$lat}&lon={$lon}&scale=100000&zoom=50&type=1&icon=0&&scriptfile=http://mapserver.maptech.com/api/espn/index.cfm", __('FindU near here', 'Geo')), 539 538 'MapTech' => array("http://mapserver.maptech.com/api/espn/index.cfm?lat={$lat}&lon={$lon}", __('Maptech near here', 'Geo')), 539 'GoogleMaps' => array("http://maps.google.com/maps?ll={$lat}%2C{$lon}", __('Google Maps', 'Geo')), 540 540 ); 541 541 … … 545 545 function geo_UrlPopNav() 546 546 /** 547 * Short Description for the Function, one line, end w/ period.547 * Creates a dropdown popup-er for viewing geo sites for a post's lat/long. 548 548 * 549 549 * Long description for the Function. … … 698 698 echo get_geo_url('MapTech'); 699 699 } 700 701 function the_GoogleMap_Url() { 702 /** 703 * Outputs a URL to Google Maps for the current geo coordinates. 704 * 705 * Long description for the Function. 706 * 707 */ 708 echo get_geo_url('GoogleMaps'); 709 } 710 700 711 701 712 function geo_distance($lat1, $lon1, $lat2, $lon2, $unit = 'm' )
Note:
See TracChangeset
for help on using the changeset viewer.