<?php
$url = explode('/', rtrim($_SERVER["REQUEST_URI"],"/")); 
$count=count($url);
$menuurl = ucwords(str_replace('-', ' ',$url[$count-1]));
$sqlmenu=mysql_query("SELECT * FROM `the_menu`  where name='".trim($menuurl)."' and status=1");
$menu=mysql_fetch_array($sqlmenu);
$titlenot= $menu['title'];
$descriptionnot= $menu['description'];
$keywordnot= $menu['keyword'];
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="apple-touch-icon" sizes="180x180" href="<?php echo SITE_WS_PATH; ?>/images/favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="<?php echo SITE_WS_PATH; ?>/images/favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="<?php echo SITE_WS_PATH; ?>/images/favicon/favicon-16x16.png">
<link rel="manifest" href="<?php echo SITE_WS_PATH; ?>/images/favicon/site.webmanifest">

<title><?php if($meta_title){ echo stripslashes($meta_title); }else if($titlenot){ echo stripslashes($titlenot); }else{ echo 'Precision Metal Stamping Manufacturers | Tool And Die Company | Aluminium Casting Manufacturers';} ?></title>
<meta name="description" content=" <?php if($meta_description){ echo stripslashes($meta_description); }else if($descriptionnot){ echo stripslashes($descriptionnot); }else{ echo 'We Specialize in Manufacturing a Range of Precision Metal Stamping and Tool Design. We have team professional Die Makers.';} ?>">
<meta name="keywords" content="<?php if($meta_keyword){ echo stripslashes($meta_keyword); }else if($keywordnot){ echo stripslashes($keywordnot); }else{ echo 'precision metal stamping manufacturers, die makers, tool design company, tool and die company, metal stampings services, aluminium casting manufacturers';} ?> " >
<!--<link rel="canonical" href="<?php  //echo "https://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; ?>" >-->
<link rel='stylesheet' type='text/css' href='<?php echo SITE_WS_PATH; ?>/css/style.css'/>
<link rel='stylesheet' type='text/css' href="<?php echo SITE_WS_PATH; ?>/css/responsive.css" />


</head>
<body>
	

<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-P6K7B4F"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<?php include('form.php'); ?>
<div id="wrapper">
<?php $vatr = $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
$path = parse_url($vatr, PHP_URL_PATH);
$segments = explode('/', rtrim($path, '/'));
$stateName = ucwords(str_replace('-',' ',$segments[2]));
$countyName = ucwords(str_replace('-',' ',$segments[3]));
?>

<!-- mobile navigation  -->
<div id="mobile-menu">
<!-- trigger -->
<a href="javascript:void(0)" class="menu-trigger"> <span><!-- trigger button --></span> </a>
<div class="navbar">
<?php  
{ ?>
<div class="menu-main-menu-container"><ul id="top-menu" class="menu">
<li class="current-menu-item "><a href="<?php echo $hosturl; ?>">Home</a></li>   
<?php
$sqlmenu=mysql_query("SELECT * FROM `the_menu`  where status=1");
while($menu=mysql_fetch_array($sqlmenu))
{ ?>
<li><a href="<?php echo SITE_WS_PATH.'/'.str_replace(' ','-',strtolower($menu['name'])); ?>"><?php echo $menu['name']; ?></a></li>
<?php } ?>
<li style="background-color: #f50e0e;"><a class="query-btn-new" >Get a Quote</a></li>
</ul></div>	  
<?php }
?> 
</div>
</div>
<!-- header part --> 
<header id="header">

<div class="head-lower"> 
  <div class="container cf">
   <!-- Logo -->
    <div class="row">
      <div class="col-md-3 text-center logimg">
         <a href="<?php echo SITE_WS_PATH;?>"><img src="<?php echo SITE_WS_PATH; ?>/images/logo.webp" alt="logo"  style="height:70px;"></a>
		 </div>
         <div class="col-md-9">
            <div class="head-right">
                <div class="contact-info">
                    <div class="forresone">
                       <a href="tel:(647) 294-5240 " class="phone-text"> (647) 294-5240 </a>
                        <!--<a href="tel:1234567890" class="phone-text"> +1234567890</a>-->
                       <a href="mailto:info@metalstamping-dies.com" class="email-text">info@metalstamping-dies.com</a>
                    </div>
                    <div class="forrestwo">
                    <a class="query-btn-new" href="javascript:void(0)"><img src="<?php echo SITE_WS_PATH; ?>/images/whatsapp.webp" alt="Chat With Us" /></a>
                    <a class="bulkor" href="javascript:void(0);" data-toggle="modal" data-target="#wholeS">
	                     BULK ORDER <i class="fa fa-hand-pointer-o"></i></a>
                    </div>
                </div>
                <div class="header_certifications">
        <a title="Request For Quote" href="javascript:void(0)" class="query-btn-new"><img src="<?php echo SITE_WS_PATH; ?>/images/request.jpg" alt="Custom Rubber Silicone Molds" /></a>
    </div>
            </div>
          </div>
	</div>
   </div>
</div>

<div class="navigation">
<div class="container cf">				
<!-- navigation part -->
<nav id="site-navigation">
<?php
{?>
<div class="menu-main-menu-container"><ul class="menu">
<li class="current-menu-item "><a href="<?php echo SITE_WS_PATH; ?>">Home</a></li>   
<?php
$sqlmenu=mysql_query("SELECT * FROM `the_menu`  where status=1");
while($menu=mysql_fetch_array($sqlmenu))
{ ?>
<li><a href="<?php echo SITE_WS_PATH.'/'.str_replace(' ','-',strtolower($menu['name'])); ?>"><?php echo $menu['name']; ?></a></li>
<?php } ?>
<li style="background-color: #f50e0e;"><a class="query-btn-new" >Get a Quote</a></li>
</ul></div>	  
<?php }
?>    
</nav>
</div>
</div>
</header>

<div id="primary" class="content-area">
<main id="main" class="site-main">