<?php 
defined('_JEXEC') or die('Restricted access');

$app = JFactory::getApplication();
$doc = JFactory::getDocument();

$doc->setHtml5(true);

$params = $app->getTemplate(true)->params;
$sitename = $app->get('sitename');

//Logo file or site title param
if($this->params->get('logoFile'))
{
	$logo = '<img src="' . JUri::root() . $this->params->get('logoFile') . '" alt="' . $sitename.'" />';
}
elseif ($this->params->get('sitetitle')) {
	$logo = '<span class="site-title" title="' . $sitename . '">' . htmlspecialchars($this->params->get('sitetitle'), ENT_COMPAT, 'UTF-8') . '</span>';
}else
{
	$logo = '<span class="site-title" title="' . $sitename . '">' . $sitename . '</span>';
}
unset($doc->_scripts[JURI::root(true). '/media/jui/js/jquery.min.js']);
unset($doc->_scripts[JURI::root(true).'/media/jui/js/jquery-noconflict.js']);
unset($doc->_scripts[JURI::root(true).'/media/jui/js/jquery-migrate.min.js']);
unset($doc->_scripts[JURI::root(true). '/media/system/js/caption.js']);
$doc->_script['text/javascript'] = preg_replace('%jQuery\(window\).on\(\'load\',\s*function\(\)\s*\{\s*new\s*JCaption\(\'img.caption\'\)\;\s*\}\)\;\s*%', '', $doc->_script['text/javascript']);

$this->setGenerator(Null);
?>
<!DOCTYPE html>
<html lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>">
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<meta property="og:type" content="website">
	<meta property="og:image" content="<?php echo $this->baseurl . '/templates/' . $this->template . '/images/favicon.ico'; ?>">
	<meta itemprop="image" content="<?php echo $this->baseurl . '/templates/' . $this->template . '/images/favicon.ico'; ?>">
	<link rel="shortcut icon" href="<?php echo $this->baseurl . '/templates/' . $this->template . '/images/favicon.ico'; ?>" />
    <jdoc:include type="head" />
    <meta name="copyright" content="汎宇電商股份有限公司-universalEC">
	<link href="<?php echo $this->baseurl . '/templates/' . $this->template . '/css/bootstrap.min.css'; ?>" rel="stylesheet" />
	<link href="<?php echo $this->baseurl . '/templates/' . $this->template . '/css/bootstrap-theme.css'; ?>" rel="stylesheet" />
	<link href="<?php echo $this->baseurl . '/templates/' . $this->template . '/css/animate.css'; ?>" rel="stylesheet" />
	<link href="<?php echo $this->baseurl . '/templates/' . $this->template . '/css/style.css'; ?>" rel="stylesheet" />
	<link href="<?php echo $this->baseurl . '/templates/' . $this->template . '/css/hover-min.css'; ?>" rel="stylesheet" />
	<link rel="preconnect" href="https://www.google-analytics.com">
</head>
<body>
	<div id="wrapper">
		<!-- start header -->
		<div class="header">
			<div class="navbar navbar-default navbar-static-top">
				<div class="topbar"></div>
				<div class="container">
					<div class="navbar-header">
						<a href="#" title="menu" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
							<span class="icon-bar"></span> 
							<span class="icon-bar"></span> 
							<span class="icon-bar"></span> 							
						</a>
						<a class="navbar-brand animated fadeInLeft" href="<?php echo $this->baseurl; ?>/">
							<?php echo $logo; ?>
						</a> 
					</div>
						<?php if($this->countModules('navbar')) : ?>
							<jdoc:include type="modules" name="navbar" style="navbar" />
						<?php endif;?>
            <a href="../" class="language">中　文</a>
        </div>
			</div>
		</div>
		<!-- end header -->
		<div class="ban_top">
		<?php if($this->countModules('bigbanner')) : ?>
			<div id="carousel-example-generic" class="carousel slide banner" data-ride="carousel" >
				<jdoc:include type="modules" name="bigbanner" style="none" />
				<!-- Controls -->
				<a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
					<span class="glyphicon glyphicon-chevron-left " aria-hidden="true"></span> 
					<span class="sr-only">Previous</span> 
				</a>
				<a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next"> 
					<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span> 
					<span class="sr-only">Next</span> 
				</a> 
			</div>
		<?php endif;?>
			<!--滑鼠滾輪偵測顯示TOP按鈕 -->
			<div style="position: absolute"> <br>
			  <div id="top-toggle"></div>
			</div>
		<?php if($this->countModules('main_service')): ?>

			<div class="main-services">
				<div class="container">
					<jdoc:include type="modules" name="main_service" style="mainService" />
				</div>
			</div>
		<?php endif ?>
		<?php if($this->countModules('most_important_service')): ?>
			<jdoc:include type="modules" name="most_important_service" style="none" />
		<?php endif; ?>
		<jdoc:include type="message" />
		<jdoc:include type="component" />
		<?php if($this->countModules('build_performances')): ?>
			<div class="performance">
				<jdoc:include type="modules" name="build_performances" style="none" />
			</div>
		<?php endif ?>
		<?php if($this->countModules('parners')): ?>
			<div class="cooperation">
				<div class="container">
					<div class="row">
						<jdoc:include type="modules" name="parners" style="parners" />
					</div>
				</div>
			</div>
		<?php endif ?>
		<?php if($this->countModules('footer_menu')): ?>
			<div class="footer">
				<div class="container">
					<div class="row">
						<jdoc:include type="modules" name="footer_menu" style="footerMenu" />

						<?php if($this->countModules('footer_contact_us')): ?>
							<jdoc:include type="modules" name="footer_contact_us" style="footerContactUs" />
						<?php endif ?>
					</div>
				</div>
			</div>
			<div class="footer2">
				<div class="container">
					<div class="row">
						<div class="col-md-12">
							<div>
								<ul class="link-list">
									<li>© 2017 CopyRight 汎宇電商</li>
								</ul>
							</div>
						</div>
					</div>
				</div>
			</div>	
		<?php endif ?>
		</div>
	</div>
	<a href="#" class="scrollup" title="up"><i class="fa fa-angle-up active"></i></a> </div>
	<script src="<?php echo $this->baseurl . '/templates/' . $this->template . '/js/jquery.min.js'; ?>"></script>
	<script src="<?php echo $this->baseurl . '/templates/' . $this->template . '/js/jquery.parallax-1.1.3.js'; ?>"></script>
	<script src="<?php echo $this->baseurl . '/templates/' . $this->template . '/js/jquery.localscroll-1.2.7-min.js'; ?>"></script>
	<script src="<?php echo $this->baseurl . '/templates/' . $this->template . '/js/jquery.scrollTo-1.4.2-min.js'; ?>"></script>
	<script src="<?php echo $this->baseurl . '/templates/' . $this->template . '/js/jquery.flexisel.js'; ?>"></script>
	<script src="<?php echo $this->baseurl . '/templates/' . $this->template . '/js/bootstrap.min.js'; ?>"></script>
	<script src="<?php echo $this->baseurl . '/templates/' . $this->template . '/js/wow.min.js'; ?>"></script>
	<script src="<?php echo $this->baseurl . '/templates/' . $this->template . '/js/jquery.waypoints.min.js'; ?>"></script>
	<script src="<?php echo $this->baseurl . '/media/system/js/core.js'; ?>"></script>
	<script src="<?php echo $this->baseurl . '/templates/' . $this->template . '/js/javascript_element_control.js'; ?>"></script>
	<script src="<?php echo $this->baseurl . '/templates/' . $this->template . '/js/main.js'; ?>"></script>
	<script src="<?php echo $this->baseurl . '/templates/' . $this->template . '/js/modernizr.js'; ?>"></script>
	<!-- Global site tag (gtag.js) - Google Analytics -->
	<script async src="https://www.googletagmanager.com/gtag/js?id=UA-133586348-1"></script>
	<script>
	  window.dataLayer = window.dataLayer || [];
	  function gtag(){dataLayer.push(arguments);}
	  gtag('js', new Date());

	  gtag('config', 'UA-133586348-1');
	</script>
</body>
</html>