|
Server : Apache/2.4.62 System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64 User : www ( 80) PHP Version : 8.3.8 Disable Function : NONE Directory : /domains/djweb1/DJ Website/djweb1/staging/includes/ |
Upload File : |
<?php
/**
* Primary Menu Template
*
* Displays the Primary Menu.
*
* @package DolanJenner
* @subpackage Template
*/
if(strstr($_SERVER['REQUEST_URI'],'menu-primary.php')){
@header($_SERVER['SERVER_PROTOCOL'].' 404 Not Found',true,404);
exit();
}
// Setup menu items
$items = array(
array(
'id' => '1',
'name' => 'primary-home',
'label' => 'Home',
'link' => $site_url,
),
array(
'id' => '2',
'name' => 'primary-products',
'label' => 'Products',
'link' => $site_url.'/products',
'submenu' => array(
array(
'id' => '2-1',
'name' => 'primary-products-illuminators',
'label' => 'Illuminators',
'link' => $site_url.'/products/illuminators.php',
),
array(
'id' => '2-2',
'name' => 'primary-products-fiber-optics',
'label' => 'Fiber Optics',
'link' => $site_url.'/products/fiber-optics.php',
),
array(
'id' => '2-3',
'name' => 'primary-products-accessories',
'label' => 'Accessories',
'link' => $site_url.'/products/accessories.php',
),
array(
'id' => '2-4',
'name' => 'primary-products-manuals',
'label' => 'Manuals',
'link' => $site_url.'/manuals.php',
),
array(
'id' => '2-5',
'name' => 'primary-products-technical-notes',
'label' => 'Technical Notes',
'link' => $site_url.'/products/technical-notes.php',
),
array(
'id' => '2-6',
'name' => 'primary-products-catalog',
'label' => 'Catalog',
'link' => $site_url.'/catalog.php',
),
),
),
array(
'id' => '3',
'name' => 'primary-about',
'label' => 'About Us',
'link' => $site_url.'/about',
'submenu' => array(
array(
'id' => '3-1',
'name' => 'primary-about-news',
'label' => 'Press Releases',
'link' => $site_url.'/news',
),
array(
'id' => '3-2',
'name' => 'primary-about-events',
'label' => 'Events',
'link' => $site_url.'/events.php',
),
array(
'id' => '3-3',
'name' => 'primary-about-sales-offices',
'label' => 'Sales Offices',
'link' => $site_url.'/about/offices.php',
),
array(
'id' => '3-4',
'name' => 'primary-about-terms',
'label' => 'Terms & Conditions',
'link' => $site_url.'/about/terms.php',
),
array(
'id' => '3-5',
'name' => 'primary-about-careers',
'label' => 'Careers',
'link' => $site_url.'/about/employment.php',
),
),
),
array(
'id' => '4',
'name' => 'primary-contact',
'label' => 'Contact Us',
'link' => $site_url.'/contact.php',
),
array(
'id' => '5',
'name' => 'primary-search',
'label' => 'Search',
'link' => $site_url.'/search.php',
),
);
?>
<div id="menu-primary" class="menu-container">
<nav class="menu main-navigation">
<h3 class="menu-toggle">Menu</h3>
<a class="assistive-text" href="#content" title="Skip to content">Skip to content</a>
<ul id="menu-primary-items" class="nav-menu">
<?php echo dj_dropdown_menu($items); ?>
</ul>
</nav>
</div><!-- #menu-primary .menu-container -->