<!DOCTYPE html>

<html>
<head>
	<title>http://{$servername} | {$shopArticle->name}</title>
        <meta name="robots" content="noindex">
</head>

<body>
	{if $shopArticle->number}
	<hgroup>
		<h1>{$shopArticle->name}</h1>
		<h2>Artikel-Nr.: {$shopArticle->number}</h2>
	</hgroup>
	{else}
	<h1>{$shopArticle->name}</h1>
	{/if}
	
	{if $shopArticle->files[0]->file_name}
		<img src="{$SHOP_DIR}images/article/detaildefault_{$shopArticle->files[0]->file_name}" alt="{$shopArticle->name}" />
	{/if}
	
	{if $shopArticle->tab_title}
		{foreach $shopArticle->tab_title as $tab}
				<h3>{$tab}</h3>
				<div>
					{$shopArticle->tab_content.$tab@iteration}
				</div>
		{/foreach}
	{else}
		<h3>Beschreibung</h3>
		<div>
			{$shopArticle->detail_description}
		</div>
	{/if}
	{*
	{if $shopArticle->schema_data_attributes}
		<h3>Attribute</h3>
		
		<dl>
			{foreach from=$shopArticle->schema_data_attributes item=attribute}
				{if $attribute.show_detail && $attribute.value}
					{if $attribute.number != $shopArticle->schema_data->selectable_attribute_1 && $attribute.number != $shopArticle->schema_data->selectable_attribute_2}
						<dt>{$attribute.name}</dt>
							<dd>{$attribute.value} {$attribute.unit}</dd>
					{/if}
				{/if}
			{/foreach}
		</dl>
	{/if}
	
	{if $shopArticle->schema_data->selectable_attribute_1 || $shopArticle->schema_data->selectable_attribute_2}
	<table>
		<thead>
			<tr>
				<td>Name/Artikelnummer</td>
				<td>{$shopArticle->schema_data->selectable_name_1}</td>
				<td>{$shopArticle->schema_data->selectable_name_2}</td>
				<td>UVP: {$shopArticle->uvp|number_format:"2":",":"."} &euro;</td>
				<td>Status</td>
			</tr>
		</thead>
		<tbody>
			{foreach item=varData key=varName from=$shopArticle->variant_data}
				{foreach item=subVarData key=subVarName from=$varData}
					<tr>
						<td>
							<span>{$shopArticle->name}</span><br />
							<span>Artikel-Nr.: {$subVarData.item_number}</span>
						</td>
						{if $varName}
							<td>{$varName}</td>
						{/if}
						{if $subVarName}
							<td>{$subVarName}</td>
						{/if}
						<td><strong>{$subVarData.price|number_format:"2":",":"."} &euro;</strong></td>
						<td>
							{if $subVarData.shippable == 1}
								lieferbar
							{elseif $subVarData.shippable == 2 && $subVarData.available_from}
								lieferbar ab {$subVarData.available_from}
							{elseif $subVarData.shippable == 3}
								lieferzeit unbekannt
							{else}
								nicht lieferbar
							{/if}
						</td>
					</tr>
				{/foreach}
			{/foreach}
		</tbody>
	</table>
	{else}
	<table>
		<thead>
			<tr>
				<td>Name/Artikelnummer</td>
				<td>Preis &euro;</td>
				<td>Status</td>
			</tr>
		</thead>
		<tbody>
			<tr>
				<td></td>
				<td></td>
				<td>
					{if $shopArticle->shop_bargain_price_1 > 0}
						<strong>Sonderpreis</strong>
						<span>Sie sparen {$shopArticle->shop_price_1-$shopArticle->shop_bargain_price_1|number_format:"2":",":"."} &euro;</span>
							
						<div>
							<strong>{$shopArticle->shop_bargain_price_1|number_format:"2":",":"."} &euro;</strong>
							<span>{$shopArticle->shop_price_1|number_format:"2":",":"."} &euro;</span>
						</div>
							
						{$shopArticle->price_tax_text}
					{elseif $shopArticle->shop_price_1 > 0}
						<strong>Unser Preis</strong>

						<div>
							<strong>{$shopArticle->shop_price_1|number_format:"2":",":"."} &euro;</strong>
						</div>

						{$shopArticle->price_tax_text}
					{else}
						<strong>Unser Preis</strong>
						<div>
						auf Anfrage
						</div>
					{/if}
				</td>
			</tr>
		</tbody>
	</table>
	{/if}
	*}
</body>
</html>
