本文整理汇总了PHP中navItem函数的典型用法代码示例。如果您正苦于以下问题:PHP navItem函数的具体用法?PHP navItem怎么用?PHP navItem使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了navItem函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
<?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';
示例2: navGroup
<?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'));
示例3: navItem
<?php
echo navItem("/data/comcat/", "ComCat Documentation");
示例4: navGroup
<?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'));
示例5: header
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>';
}
示例6: navItem
<?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' . '"/>';
示例7: navItem
<?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 : '');
示例8: navGroup
<?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'));
示例9: str_replace
<?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>';
}
示例10: navItem
<?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'));
示例11: navGroup
<?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'));
示例12: navGroup
<?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');
示例13: navGroup
<?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"));
示例14: array
<?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';
示例15: navItem
<?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();