'VolcanoWidget', 'description' => 'Interactive map of active volcanoes and current earthquakes world-wide' ); $this->WP_Widget('VolcanoWidget', 'Volcanoes and earthquakes map', $widget_ops); } function form($instance) { $instance = wp_parse_args( (array) $instance, array( 'title' => '' ) ); $title = $instance['title']; ?>

mapLanguage?'&L='.intval($this->mapLanguage):''; $add .= $this->showVolcanoes?'':'&hideVolcanoes=1'; $add .= $this->showEarthquakes?'':'&hideEarthquakes=1'; $add .= $this->minMag!=4?'':'&minMag='.intval($this->minMag); if ($add) $add = '?'.$add; $code = get_option('volcano_widget_data'); if (!$code) $code = '
[enlarge]
'; echo $code; echo $after_widget; } } // end of class definition add_action( 'widgets_init', create_function('', 'return register_widget("VolcanoWidget");') ); ?>

VolcanoWidget Options

0, 'width'=>'auto', 'height'=>200, 'title'=>'', 'terrain'=>0, 'zoom'=>0, 'hideVolcanoes'=>0, 'hideQuakes'=>0, 'maxAge'=>'48h', 'minMag'=>4, 'lat'=>0, 'lon'=>-180, ); // check if saved code contains modified params $paramString = findBetween('earthquakes.volcanodiscovery.com','"',$html); if ($paramString !== false) { $paramString = ltrim($paramString,'/'); $paramString = ltrim($paramString,'?'); $parts = explode('&',$paramString); foreach ($parts as $part) { $part = explode('=',$part); $params[$part[0]]=$part[1]; } } ?>
Customize your map:
Width / height in px: / Optional: change default title on (enlarged) map:
Show volcanoes by default: />
Show earthquakes by default: />
Language on map:
Modify zoom and center coordinates to start:
Zoom (0-6):
Latitude (-80 (S) to 80 (N)):
Longitude (-180 (W) to 180 (E)):
OR:
Show only earthquakes in specific area defined by W/E and S/N coordinates:
Eastern / western boundary (-180 (W) to 180 (E)): /
Southern / northern boundary (-90 (S) to 90 (N)): /
Default minimum earthquake magnitude:
Default time frame:
Preview:
Stand-alone URL: http://earthquakes.volcanodiscovery.com/