<!DOCTYPE html>
<html lang="de">
	<head>
		<link rel="icon" href="{$THEME_DIR}/media/images/main/favicon.ico" type="image/ico" />
		<link rel="shortcut icon" href="{$THEME_DIR}/media/images/main/favicon.ico" type="image/ico" />
		<meta charset="utf-8" />

		{if $shopArticle->id && $shopArticle->structure_id != $menu_id}
			<link rel="canonical" href="http://{$SERVER_NAME}/{$shopArticle->main_structure_uri_path}/{$shopArticle->short_uri}.html" />
		{/if}
		<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" />
		<meta name="format-detection" content="telephone=no">
		{foreach item=val key=key from=$metatags}
			{if $key != 'footer_text'}
				{if $key != 'title'}
					<meta name="{$key}" content="{$val}" />
				{else}
					<title>{$val}</title>
				{/if}
			{/if}
		{/foreach}

		<!-- standard parent theme css -->

		<link rel="stylesheet" type="text/css" href="{$SUB_DIR}media/css/common_styles.css" />
		<link rel="stylesheet" type="text/css" href="{$PARENT_THEME_DIR}/media/css/layout.css" />
		<link rel="stylesheet" type="text/css" href="{$PARENT_THEME_DIR}/media/css/widgets.css" />
		<link rel="stylesheet" type="text/css" href="{$PARENT_THEME_DIR}/media/css/items.css?version=1" />
		<link rel="stylesheet" type="text/css" href="{$PARENT_THEME_DIR}/media/css/contents.css?version=1" />
		<link rel="stylesheet" type="text/css" href="{$PARENT_THEME_DIR}/media/css/content_shoppingcart.css?version=1" />
		<link rel="stylesheet" type="text/css" href="{$PARENT_THEME_DIR}/media/css/content_login.css?version=1" />
		<link rel="stylesheet" type="text/css" href="{$PARENT_THEME_DIR}/media/css/content_cash_desk.css?version=1" />
		<link rel="stylesheet" type="text/css" href="{$PARENT_THEME_DIR}/media/css/content_customer_center.css?version=1" />
		<link rel="stylesheet" type="text/css" href="{$PARENT_THEME_DIR}/media/css/forms.css?version=1" />
		<link rel="stylesheet" type="text/css" href="{$PARENT_THEME_DIR}/media/css/ui-lightness/jquery-ui-1.10.3.custom.min.css" />
		<link rel="stylesheet" type="text/css" href="{$SUB_DIR}libs/slimbox-2.02/css/slimbox2.css" media="screen,print" />

		<!-- customized theme css -->
		<link rel="stylesheet" type="text/css" href="{$THEME_DIR}/media/css/customized_theme.css" />

		<!--[if IE 7]>
		   <link rel="stylesheet" href="{$THEME_DIR}/media/css/ie7.css" />
		<![endif]-->

		{if isset($theme_data->css) && $theme_data->css}
			<style type="text/css">
				{$theme_data->css}
			</style>
		{/if}

<!-- jQuery (aktuelle Version) -->
<script src="https://code.jquery.com/jquery-3.6.4.min.js"></script>

<!-- jQuery UI (aktuelle Version) -->
<link rel="stylesheet" href="https://code.jquery.com/ui/1.13.2/themes/base/jquery-ui.css">
<script src="https://code.jquery.com/ui/1.13.2/jquery-ui.min.js"></script>

<!-- Slimbox (aktualisiert oder Alternativen wie Fancybox verwenden) -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/slimbox/2.05/slimbox2.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/slimbox/2.05/slimbox2.min.css">

<!-- jQuery Barcode Plugin (falls weiterhin benötigt, sonst entfernen) -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-barcode/2.0.3/jquery-barcode.min.js"></script>

<!-- jQuery QRCode Plugin -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.qrcode/1.0/jquery.qrcode.min.js"></script>

<!-- Eigenes JavaScript -->
<script type="text/javascript" src="{$PARENT_THEME_DIR}/media/js/script.js"></script>
<script type="text/javascript" src="{$PARENT_THEME_DIR}/media/js/widget.js"></script>
<script type="text/javascript" src="{$PARENT_THEME_DIR}/media/js/recommendation_form.js"></script>


		<script>
			var shop_dir = '{$SHOP_DIR}';
			var theme_dir = '{$THEME_DIR}';
			var sub_dir = '{$SUB_DIR}';
		</script>



		{if $domain_config->google_analytics_code}
			<script type="text/javascript">
				var _gaq = _gaq || [];
				_gaq.push(['_setAccount', '{$domain_config->google_analytics_code}']);
				_gaq.push(['_gat._anonymizeIp']);
				_gaq.push(['_trackPageview']);

				(function() {
					var ga = document.createElement('script');
					ga.type = 'text/javascript';
					ga.async = true;
					ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
					var s = document.getElementsByTagName('script')[0];
					s.parentNode.insertBefore(ga, s);
				})();
			</script>
		{/if}
	</head>

	<body>
		<div id="header_trans_bg">
			<div class="centralizer">
				<a href="/" title="Intelectra"></a>
				<span>Ersatzteile und Zubeh&ouml;r f&uuml;r Elektro Hausger&auml;te | Versandgro&szlig;handel | Einzelhandel</span>
				<strong>Telefonische&nbsp;Beratung:&nbsp;+49&nbsp;(0)&nbsp;9421&nbsp;/&nbsp;6&nbsp;20&nbsp;15</strong>
			</div>
		</div>
		<div id="header_sticky" class="sticky">
			<div id="header_trans">
				<div class="centralizer">
					<div>
						{if $top_widgets}
							{foreach from=$top_widgets item=widget}
								{$widget}
							{/foreach}
						{/if}
					</div>
				</div>
			</div>
			<div id="header_trans_sub">
				<div class="centralizer">
					{if $header_widgets}
						{foreach from=$header_widgets item=widget}
							{$widget}
						{/foreach}
					{/if}
				</div>
			</div>
		</div>
		<div id="header_logorodeo">
			{if $subheader_widgets}
				{foreach from=$subheader_widgets item=widget}
					{$widget}
				{/foreach}
			{/if}
		</div>

		<div id="wrapper">
			{*<div id="header_wrapper" {if $theme_data->header_image}style="background:transparent url({$SHOP_DIR}images/header/{$theme_data->header_image}) no-repeat;"{/if}></div>*}

			<div id="breadcrumb">
				{if isset($structureData) && $structureData->id != 6}
					<div itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
						<a href="/Home/" class="first_child" itemprop="url" title="Home">
							<span itemprop="title">{$template_text.default.breadcrumb_home}</span>
						</a>
					</div>
				{/if}
				{foreach from=$breadcrumb item=breadcrumb_item}
					{if isset($structureData) && $structureData->id == 6}
						{$breadcrumb_item.name=$template_text.default.breadcrumb_home}
					{/if}
					<div itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
						{if !$user_lang || $user_lang == $system_configuration.default_system_language || !$breadcrumb_item.object->name_en}
							<a href="/{$breadcrumb_item.short_uri}/" class="arrow" itemprop="url" title="{$breadcrumb_item.name}">
								<span itemprop="title">{$breadcrumb_item.name}</span>
							</a>
						{else}
							<a href="/{$breadcrumb_item.short_uri}/" class="arrow" itemprop="url" title="{$breadcrumb_item.name}">
								<span itemprop="title">{$breadcrumb_item.object->name_en}</span>
							</a>
						{/if}
					</div>
				{/foreach}
			</div>


			<div id="main_wrapper" class="clearfix">
				{if !isset($site_type) || $site_type != 'full_width'}
					<!-- Navi -->
					<div id="navi_wrapper">
						{if $left_widgets}
							{foreach from=$left_widgets item=widget}
								{$widget}
							{/foreach}
						{/if}
					</div>

					<!-- Content wrapper -->
					<div id="content_wrapper">
						<!-- Content -->
						<div id="maincontent_wrapper">
							{$maincontent}
						</div>
					</div>
				{else}
					<!-- Content wrapper -->
					<div id="content_wrapper2">
						<!-- Content -->
						<div id="maincontent_wrapper2">
							{$maincontent}
						</div>
					</div>
				{/if}
			</div>
		</div>

		<div id="footer_wrapper">
			<div id="footer">
				<div id="tool_recommendation">
					<div style="position:relative;left:60px;top:30px;">

						<span id="recommendation_message_error"></span>
						<span id="recommendation_message_ok"></span>
						&nbsp;
						<form id="form_recommendation" action="/recommendation/">
							<div style="float:left;width:170px;">
								Name des Empf&auml;ngers<br />
								<input name="recommendation[r_name]" value="" style="width:120px;" />
							</div>
							<div style="float:left;">
								E-Mail des Empf&auml;ngers<br />
								<input name="recommendation[r_mail]" value="" style="width:120px;" />
							</div>
							<div style="clear:both;"></div>
							<br />
							<div>
								Ihre Nachricht an den Emfp&auml;nger (noch <span id="recommendation_msg_count">100</span> Zeichen &uuml;brig)<br />
								<textarea id="recommendation_message" name="recommendation[message]" cols="0" rows="0" style="width:290px;height:40px;"></textarea>
							</div>
							<div>
								<br />
								Spam-Schutz: Bitte &uuml;bertragen Sie das Wort<br />
								<img src="/libs/captcha/new_captcha/capimg.php?slave=recommendation" alt="Captcha" style="position:relative;margin-top:5px;" />
								<input name="recommendation[captcha]" style="position:relative;top:-4px;width:100px;" />

							</div>
							<div id="hide_recommendation"></div>
							<input type="button" id="send_recommendation" value="" />
						</form>
					</div>
				</div> 
				<!-- end tool_recommendation -->

				{foreach from=$footer_widgets item=widget}
					{$widget}
				{/foreach}

				{*<div id="fb_box">
					<div id="fb-root"></div>
					<script>
						(function(d, s, id) {
							var js, fjs = d.getElementsByTagName(s)[0];
							if (d.getElementById(id))
								return;
							js = d.createElement(s);
							js.id = id;
							js.src = "//connect.facebook.net/de_DE/all.js#xfbml=1";
							fjs.parentNode.insertBefore(js, fjs);
						}(document, 'script', 'facebook-jssdk'));
					</script>
					<div class="fb-like" data-send="true" data-layout="button_count" data-width="225" data-show-faces="true"></div>
				</div>*}

				<div id="recommendation_toggler">Seite weiterempfehlen</div>
				<div id="copyright">{$system_configuration.footer_copyright_text}</div>
				{if $serverProtocol == 'http'}
					<div id="footer_ta_wrapper">
						<a id="footer_easyway" href="{$serverProtocol}://www.ta-edv.de/Easyway-Online-Shop/" target="_blank" title="Easyway-Shopsystem">Easyway-Shopsystem</a>
						&nbsp;by&nbsp;
						<a id="footer_taedv" href="{$serverProtocol}://www.ta-edv.de/" target="_blank" title="TA-EDV">TA-EDV</a>
					</div>
				{/if}

			</div>
		</div>

		<div id="layout_modal" style="width:100%;height:0px;background-color:#000000;opacity:0.5;z-index:3500;position:absolute;top:0px;left:0px;display:none;">&nbsp;</div>

		<script type="text/javascript" src="{$THEME_DIR}/media/js/theme.js"></script>
		<script type="text/javascript" src="{$THEME_DIR}/media/js/widget.js"></script>
	</body>
</html>