<?php include_once 'functions.inc.php'; include_once '../conf/config.inc.php'; $GEOSERVE_METADATA = array(); include_once 'admin/metadata.inc.php'; include_once 'auth/metadata.inc.php'; include_once 'event/metadata.inc.php'; include_once 'fe/metadata.inc.php'; include_once 'geonames/metadata.inc.php'; include_once 'neiccatalog/metadata.inc.php'; include_once 'neicresponse/metadata.inc.php'; include_once 'offshore/metadata.inc.php'; include_once 'tectonic/metadata.inc.php'; include_once 'timezones/metadata.inc.php'; $format = param('format', 'php'); $GEOSERVE_ENDPOINTS = array(array('name' => 'Places', 'url' => "{$HOST_URL_PREFIX}{$MOUNT_PATH}/places.{$format}"), array('name' => 'Regions', 'url' => "{$HOST_URL_PREFIX}{$MOUNT_PATH}/regions.{$format}"), array('name' => 'Layers', 'url' => "{$HOST_URL_PREFIX}{$MOUNT_PATH}/layers.{$format}")); $endpointLinks = array(); foreach ($GEOSERVE_ENDPOINTS as $endpoint) { $endpointLinks[] = navItem(str_replace($HOST_URL_PREFIX, '', $endpoint['url']), $endpoint['name'] . ' Service'); } include_once 'places.inc.php'; include_once 'regions.inc.php'; include_once 'layers.inc.php';
<?php echo navGroup(navItem('/research/index.php', 'Research'), navItem('/publications/papers.php', 'Publications') . navItem('/research/GIC.php', 'Geomagnetically Induced Currents') . navItem('/research/magdataquality.php', 'Magnetic Data Quality') . navItem('/research/extreme-events.php', 'Extreme Events') . navItem('/conductivity/', 'Regional Conductivity Maps') . navItem('/research/spaceweather.php', 'Space Weather Applications') . navItem('/research/spaceclimatology.php', 'Space Climatology') . navItem('/research/geomagnetism-earthquakes.php', 'Earthquake Prediction') . navItem('/publications/movies/', 'Magnetic Disturbance Movies'));
<?php echo navItem("/data/comcat/", "ComCat Documentation");
<?php include_once '../conf/config.inc.php'; print navGroup('Geoserve Web Service', navItem($MOUNT_PATH . '/index.php', 'Places Documentation') . navItem($MOUNT_PATH . '/RegionSearch.php', 'Regions Documentation'));
if ($httpCode === 409) { header('HTTP/1.0 410 Gone'); $TITLE = 'Event Deleted'; include_once 'template.inc.php'; } else { // other, unexpected return header('HTTP/1.0 503 Service Unavailable'); echo 'Unable to retrieve event information (' . $httpCode . ')'; } } exit(-1); } $EVENT = json_decode($EVENT_FEED, true); $PROPERTIES = $EVENT['properties']; $GEOMETRY = $EVENT['geometry']; if ($PROPERTIES['net'] . $PROPERTIES['code'] !== $eventid) { header('HTTP/1.1 301 Moved Permanently'); header('Location: ' . $PROPERTIES['url']); } $TITLE = $PROPERTIES['title']; $NAVIGATION = navItem('#', 'Event Summary'); $EVENT_CONFIG = array('MOUNT_PATH' => $CONFIG['MOUNT_PATH'], 'KML_STUB' => isset($CONFIG['KML_STUB']) ? $CONFIG['KML_STUB'] : null, 'DYFI_RESPONSE_URL' => $CONFIG['DYFI_RESPONSE_URL'], 'OFFSITE_HOST' => $CONFIG['OFFSITE_HOST'], 'SEARCH_STUB' => $SEARCH_STUB); $HEAD = '<link rel="stylesheet" href="css/event.css"/>'; $FOOT = '<script>' . 'var EventConfig = ' . json_encode($EVENT_CONFIG) . ';' . 'var EventDetails = ' . json_encode($EVENT) . ';' . '</script>' . '<script src="js/event.js"></script>'; include 'template.inc.php'; } if ($httpCode != 409) { include_once '../lib/inc/html.inc.php'; } else { print '<p class="alert error">The requested event has been deleted.</p>'; }
<?php echo navItem('/scenarios/', 'Earthquake Scenarios');
<?php $SITE_URL = 'earthquake.usgs.gov'; $SITE_SITENAV = navItem('#earthquakes', 'Earthquakes') . navItem('#hazards', 'Hazards') . navItem('#data', 'Data') . navItem('#learn', 'Learn') . navItem('/flexible-grid.php', 'Monitoring') . navItem('#research', 'Research'); $SITE_COMMONNAV = navItem('#home', 'Home') . navItem('#aboutus', 'About Us') . navItem('#contactus', 'Contact Us') . navItem('#legal', 'Legal') . navItem('#partners', 'Partners'); $HEAD = '<link rel="stylesheet" href="/theme/site/earthquake/index.css"/>' . ($HEAD ? $HEAD : '') . '<meta name="description" content="' . 'USGS Earthquake Hazards Program, responsible for' . ' monitoring, reporting, and researching earthquakes and' . ' earthquake hazards' . '"/>' . '<meta name="keywords" content="' . 'aftershock,earthquake,epicenter,fault,foreshock,geologist,' . 'geophysics,hazard,hypocenter,intensity,intensity scale,magnitude,' . 'magnitude scale,mercalli,plate,richter,seismic,seismicity,seismogram,' . 'seismograph,seismologist,seismology,subduction,tectonics,tsunami,quake,' . 'sismologico,sismologia' . '"/>';
<?php // site search url, leave blank for all usgs $SITE_URL = 'earthquake.usgs.gov'; // navigation above search, below section navigation $SITE_SITENAV = '<a href="#earthquakes">Earthquakes</a>' . '<a href="#hazards">Hazards</a>' . '<a href="#data">Data</a>' . '<a href="#learn">Learn</a>' . '<a href="#monitoring">Monitoring</a>' . '<a href="#research">Research</a>'; // at bottom of page $SITE_COMMONNAV = navItem('#home', 'Home') . navItem('#aboutus', 'About Us') . navItem('#contactus/regional.php', 'Contact Us') . navItem('#legal.php', 'Legal'); $HEAD = '<link rel="stylesheet" href="/theme/site/earthquake/index.css"/>' . ($HEAD ? $HEAD : '');
<?php echo navGroup(navItem('/state_local/', 'State and Local'), navItem('/state_local/seattle.php', 'Seattle') . navItem('/state_local/sanfrancisco.php', 'San Francisco Bay') . navItem('http://pubs.er.usgs.gov/publication/ofr0317', 'Southwest California'));
<?php echo navGroup(navItem('/hazards/', 'Hazards'), navItem('/dysi/', 'Did You See It?') . navItem('/hazards/warningsys.php', 'Early Warning System') . navItem('/hazards/postfire_debrisflow/', 'Post-fire Debris-Flow Hazards') . navItem('/hazards/nationalmap/', 'Landslide Overview Map'));
<?php if (!isset($TEMPLATE)) { // embed in the template $useTemplate = !isset($_GET['template']) || $_GET['template'] !== 'false'; $pageUrl = str_replace(strstr($_SERVER['REQUEST_URI'], '?'), '', $_SERVER['REQUEST_URI']); if ($useTemplate) { include 'template.inc.php'; } else { include 'minimal.inc.php'; } } // this is only output during the "content" phase of the template $nav = array(); if ($pageUrl !== '/example.php') { $nav[] = navItem('/example.php?template=' . $useTemplate, 'Examples Index'); } if ($useTemplate) { $nav[] = navItem($pageUrl . '?template=false', 'View without template'); } else { $nav[] = navItem($pageUrl . '?template=true', 'View with template'); } echo '<nav>', implode(' ', $nav), '</nav>'; if (!$useTemplate) { echo '<h1>' . $TITLE . '</h1>'; }
<?php print navItem('/hazards/designmaps/index.php', 'Seismic Design Maps & Tools'); print navGroup(navItem('hazards/designmaps/usdesign.php', 'US Seismic Design Maps'), navItem('/designmaps/us/application.php', 'Use the Tool') . navItem('/designmaps/us/changelog.php', 'Recent Changes') . navItem('hazards/designmaps/usdesigndoc.php', 'Documentation & help')); print navGroup(navItem('/hazards/designmaps/rtgm.php', 'Risk Targeted Ground Motion Calculator'), navItem('/designmaps/rtgm/', 'Use the Tool') . navItem('https://github.com/usgs/earthquake-rtgm-calculator/wiki/Risk-Targeted-Ground-Motion-Calculator-Documentation', 'Documentation & Help')); print navGroup(navItem('/hazards/designmaps/wwdesign.php', 'Worldwide Seismic Design Tool'), navItem('http://geohazards.usgs.gov/designmaps/ww/', 'Use the Tool') . navItem('https://github.com/usgs/earthquake-wwdesign/wiki/Worldwide-Seismic-Design-Tool-Documentation', 'Documentation & Help'));
<?php echo navGroup(navItem('/learn/', 'Learn'), navItem('/learn/ls101.php', 'Landslides 101') . navitem('http://www.usgs.gov/faq/?q=taxonomy/term/9752', 'Frequently Asked Questions (FAQ)') . navItem('/learn/glossary.php', 'Landslides Glossary') . navItem('/learn/useful_links.php', 'Additional Landslide Information') . navItem('/learn/majorls.php', 'Catastrophic Landslides') . navItem('/learn/prepare.php', 'Landslide Preparedness') . navItem('/learn/photos/', 'Photo Collections') . navItem('/learn/movie/', 'Landslide Hazards Video'));
<?php echo navGroup(navItem('/example.php', 'Examples'), navItem('/CollectionSelectBoxUITest.php', 'Collection Select Box') . navItem('/CollectionViewUI.php', 'Collection View') . navItem('/DownloadViewUITest.php', 'Download View') . navItem('/FileInputViewUI.php', 'File Input View') . navItem('/MessageUI.php', 'Messsage View') . navItem('/ModalViewUITest.php', 'Modal View') . navItem('/SelectViewUITest.php', 'Select View'));
<?php echo navGroup(navItem('/theme/index.php', 'The Template'), navItem('/theme/alert.php', 'Alerts') . navItem('/theme/button.php', 'Buttons') . navItem('/theme/figcaption.php', 'Figure Caption') . navItem('/theme/flexible-grid.php', 'Flexible Grid') . navItem('/theme/form.php', 'Forms') . navItem('/theme/icons.php', 'Icons') . navItem('/theme/jumplist.php', 'Jump List') . navItem('/theme/list.php', 'Lists') . navItem('/theme/minimal.php', 'Minimal') . navItem('/theme/references.php', 'References') . navItem('/theme/table.php', 'Tables') . navItem('/theme/text.php', 'Text Level Semantics') . navItem('/theme/typography.php', 'Typography')); echo navItem('/theme/content.php', 'Content Styles'); echo navItem('/theme/cooperator.php', 'Cooperator Logos');
<?php $section = "/earthquakes"; echo navGroup(navItem("{$section}/", "Earthquakes"), navItem("{$section}/map/", "Latest Earthquakes") . navItem("{$section}/eqarchives/", "Earthquake Lists, Maps & Statistics") . navItem("{$section}/search/", "Search Earthquake Catalog") . navItem("{$section}/feed/", "Real-time Feeds & Notifications") . navItem("{$section}/region.php", "Information by Region") . navItem("/data/comcat/", "ANSS ComCat Documentation") . navItem("{$section}/errata.php", "Errata for Latest Earthquakes"));
<?php include_once 'functions.inc.php'; include_once '../conf/config.inc.php'; $GEOSERVE_METADATA = array(); include_once 'admin/metadata.inc.php'; include_once 'auth/metadata.inc.php'; include_once 'event/metadata.inc.php'; include_once 'fe/metadata.inc.php'; include_once 'geonames/metadata.inc.php'; include_once 'neiccatalog/metadata.inc.php'; include_once 'neicresponse/metadata.inc.php'; include_once 'tectonic/metadata.inc.php'; include_once 'timezones/metadata.inc.php'; $format = param('format', 'html'); $GEOSERVE_ENDPOINTS = array(array('name' => 'Places', 'url' => "{$HOST_URL_PREFIX}{$MOUNT_PATH}/places.{$format}"), array('name' => 'Regions', 'url' => "{$HOST_URL_PREFIX}{$MOUNT_PATH}/regions.{$format}"), array('name' => 'Layers', 'url' => "{$HOST_URL_PREFIX}{$MOUNT_PATH}/layers.{$format}")); $endpointLinks = array(); foreach ($GEOSERVE_ENDPOINTS as $endpoint) { $endpointLinks[] = navItem($endpoint['url'], $endpoint['name'] . ' Details'); } include_once 'places.inc.php'; include_once 'regions.inc.php'; include_once 'layers.inc.php';
<?php include_once '../conf/config.inc.php'; $eq = 'http://earthquake.usgs.gov/hazards/designmaps'; // NB: Old template-style navigation stuff exists in this file but is // commented out. This is because the dev version runs the new template // and production code runs the old template. Part of the build process // for this tool does template downgrading and these commented sections // are used to that effect. Proceed with caution. // print side_nav_header(); print navItem("{$eq}/wwdesign.php", 'Introduction') . navItem($CONFIG['MOUNT_PATH'] . '/', 'Use Application') . navItem('https://github.com/usgs/earthquake-wwdesign/wiki#sources-of-seismic-design-parameter-values', "Documentation"); // print side_nav_footer();
<?php $navItems = ''; if (isset($CURRENT_USER)) { if (isset($CURRENT_USER['default_observatory_id'])) { $observatoryId = '#' . $CURRENT_USER['default_observatory_id']; } else { $observatoryId = ''; } $navItems .= navItem($MOUNT_PATH . '/index.php', 'Dashboard') . navItem($MOUNT_PATH . '/observation/' . $observatoryId, 'Observation Input'); if ($CURRENT_USER['admin'] === 'Y') { $navItems .= navItem($MOUNT_PATH . '/plot.php', 'Baseline Plot'); $navItems .= navItem($MOUNT_PATH . '/useradmin.php', 'Administer Users'); } $navItems .= navItem($MOUNT_PATH . '/logout.php', 'Logout'); } else { $navItems .= navItem($MOUNT_PATH . '/login.php', 'Login'); } print navGroup('Web Absolutes', $navItems);
<?php $SITE_URL = 'earthquake.usgs.gov'; $SITE_DESCRIPTION = 'USGS Earthquake Hazards Program, responsible for' . ' monitoring, reporting, and researching earthquakes and' . ' earthquake hazards'; $SITE_KEYWORDS = 'aftershock,earthquake,epicenter,fault,foreshock,geologist,' . 'geophysics,hazard,hypocenter,intensity,intensity scale,magnitude,' . 'magnitude scale,mercalli,plate,richter,seismic,seismicity,seismogram,' . 'seismograph,seismologist,seismology,subduction,tectonics,tsunami,quake,' . 'sismologico,sismologia'; $SITE_SITENAV = navItem('#earthquakes', 'Earthquakes') . navItem('#hazards', 'Hazards') . navItem('#learn', 'Learn') . navItem('#data', 'Data') . navItem('#monitoring', 'Monitoring') . navItem('#research', 'Research'); $SITE_COMMONNAV = ' <a href="#home">Home</a> <a href="#aboutus">About Us</a> <a href="#contactus">Contact Us</a> <a href="#legal">Legal</a> <a href="#partners">Partners</a> '; // add site css if (!isset($HEAD)) { $HEAD = ''; } $HEAD = '<link rel="stylesheet" href="/theme/site/earthquake/index.css"/>' . $HEAD;
<?php // application injects its navigation into this element echo '<div id="geomag-config"></div>'; echo navItem('/ws/edge/', 'Web Service');
<?php echo navGroup(navItem('/products/index.php', 'Data & Products'), navItem('/plots/', 'Real-Time HEZF Display') . navItem('/products/realtime/', 'Blended Real-Time HEZF Display') . navItem('/products/downloads.php', 'Downloads') . navItem('/storm/', 'Magnetic Disturbance Events') . navItem('/products/models.php', 'Models') . navItem('/map/', 'Real-Time Geomagnetic Conditions') . navItem('/realtime/dst/', 'Real-Time Dst Display') . navItem('/products/otherdata.php', 'Other Sources of Data'));
<?php $section = "/contactus"; echo navItem("{$section}/", "Contact Us"); echo navItem("{$section}/headquarters.php", "Headquarters"); echo navGroup("Science Centers", navItem("{$section}/anchorage/", "Alaska Science Center") . navItem("{$section}/menlo/", "Earthquake Science Center") . navItem("{$section}/golden/", "Geologic Hazards Science Center")); echo navGroup("Regional and Field Offices", navItem("{$section}/seattle/", "Seattle Field Office") . navItem("{$section}/pasadena/", "Pasadena Field Office") . navItem("{$section}/albuquerque/", "Albuquerque Seismo Lab")); echo navItem("{$section}/media.php", "Media Contacts"); echo navItem("mailto:sis_eq_questions@usgs.gov", "Earthquake Questions and Website Feedback");
<?php echo navGroup(navItem('/learn/index.php', 'Learn'), navItem('/learn/introtogeomag.php', 'Introduction to Geomag') . navItem('/learn/reading.php', 'Further Reading') . navItem('/learn/pressreleases.php', 'Press Releases') . navItem('http://www.usgs.gov/faq/?q=taxonomy/term/9782', 'FAQ\'s'));
<?php // site search url, leave blank for all usgs $SITE_URL = 'http://landslides.usgs.gov'; // navigation above search, below section navigation $SITE_SITENAV = '<a href="/hazards/">Hazards</a>' . '<a href="/monitoring/">Monitoring</a>' . '<a href="/state_local/">State & Local</a>' . '<a href="/learn/">Learn</a>' . '<a href="/research/">Research</a>'; // at bottom of page $SITE_COMMONNAV = navItem($SITE_URL, 'Home') . navItem('/aboutus/', 'About Us') . navItem('/contactus/', 'Contact Us') . navItem('/legal.php', 'Legal'); $HEAD = '<link rel="stylesheet" href="/theme/site/landslides/index.css"/>' . ($HEAD ? $HEAD : '') . '<meta name="description" content="' . 'USGS Landslide Hazards Program, responsible for monitoring, ' . 'reporting, and researching landslides and landslide hazards' . '"/>' . '<meta name="keywords" content="' . 'landslide, landslides, mudflow, erosion' . '"/>' . '<script id="_fed_an_ua_tag" async="async" src="' . '/lib/Universal-Federated-Analytics-Min.1.0.js' . '?agency=DOI&subagency=USGS&pua=UA-23479674-1' . '"></script>'; // comments and questions default if (!isset($CONTACT)) { $CONTACT = '*****@*****.**'; } $CONTACT_URL = 'mailto:{CONTACT}?subject=LHP%20Website%20Email%20';
<?php $livesite = 'http://earthquake.usgs.gov'; $SITE_COMMONNAV = navItem($livesite . '/', 'Home') . navItem($livesite . '/aboutus/', 'About Us') . navItem($livesite . '/contactus/regional.php', 'Contact Us') . navItem($livesite . '/legal.php', 'Legal'); $THEME_CSS = '<link rel="stylesheet" href="/theme/site/earthquake/index.css"/>'; $SITE_URL = 'earthquake.usgs.gov'; $SITE_SITENAV = navItem($livesite . '/earthquakes/', 'Earthquakes') . navItem($livesite . '/hazards/', 'Hazards') . navItem($livesite . '/data/', 'Data') . navItem($livesite . '/learn/', 'Learn') . navItem($livesite . '/monitoring/', 'Monitoring') . navItem($livesite . '/research/', 'Research'); $HEAD = $THEME_CSS . ($HEAD ? $HEAD : '') . '<meta name="description" content="' . 'USGS Earthquake Hazards Program, responsible for' . ' monitoring, reporting, and researching earthquakes and' . ' earthquake hazards' . '"/>' . '<meta name="keywords" content="' . 'aftershock,earthquake,epicenter,fault,foreshock,geologist,' . 'geophysics,hazard,hypocenter,intensity,intensity scale,magnitude,' . 'magnitude scale,mercalli,plate,richter,seismic,seismicity,seismogram,' . 'seismograph,seismologist,seismology,subduction,tectonics,tsunami,' . 'quake,sismologico,sismologia' . '"/>';
<?php include_once '../lib/data/metadata.inc.php'; echo navItem($MOUNT_PATH . '/index.php', 'Geoserve'); echo navGroup(navItem($MOUNT_PATH . '/services.php', 'Geoserve Documentation'), implode("", $endpointLinks));
<?php echo navItem('/example.php', 'Examples'); echo navItem('/CompactSelectViewExample.php', 'CompactSelectView'); echo navItem('/D3TimeseriesViewExample.php', 'D3TimeseriesView'); echo navItem('/ScaleViewExample.php', 'ScaleView'); echo navItem('/TimeseriesCollectionViewExample.php', 'TimeseriesCollectionView'); echo navItem('/TimeseriesFactoryExample.php', 'TimeseriesFactory'); echo navItem('/TimeseriesViewExample.php', 'TimeseriesView');
<?php include_once '../conf/config.inc.php'; print navItem($MOUNT_PATH . '/index.php', 'Page Title');
<?php $section = "/monitoring"; echo navItem("{$section}/", "Monitoring"); echo navGroup("California", navItem("{$section}/arroyo_seco/", "2009 Station Fire, Arroyo Seco, Pasadena CA") . navItem("{$section}/colby/", "2014 Colby Fire, Glendora, CA") . navItem("{$section}/dunsmore/", "2009 Station Fire, Dunsmore Canyon, Glendale, CA") . navItem("{$section}/hwy50/", "U.S. Highway 50, CA") . navItem("{$section}/springs/", "2013 Springs Fire, Ventura County, CA")); // End California echo navGroup("Colorado", navItem("{$section}/chalk_cliffs/", "Chalk Cliffs, CO")); // End colorado echo navGroup("North Carolina", navItem("{$section}/bent_creek/", "Bent Creek Experimental Forest, NC") . navItem("{$section}/mooneygap/", "Mooney Gap, Coweeta Experimental Forest, NC") . navItem("{$section}/poplar_cove/", "Poplar Cove, Nantahala National\n\t\tForest, NC")); // End North Carolina echo navGroup("Oregon", navItem("{$section}/knife_ridge/", "Knife Ridge, Elliott State Forest,\n\t\tOR") . navItem("{$section}/millicoma_meander/", "Millicoma Meander, Elliott\n\t\tState Forest, OR") . navItem("{$section}/portland/", "Portland, OR")); // End Oregon echo navGroup("Washington", navItem("{$section}/seattle/", "Seattle Area, WA")); // End Washington