<!-- content_item/description_tabs.tpl begin --> 
<div id="item_menu">
	{if $shopArticle->tab_title}
		{foreach from=$shopArticle->tab_title item=title key=title_id name=titles}
			<a href="#" rel="tabs_{$title_id}" class="tab_wrapper {if $smarty.foreach.titles.first}active selected{/if}">
				<span>{$title}</span>
			</a>
		{/foreach}
	{else}
		<a href="#tabs_1" class="tab_wrapper active selected">
			<span>Beschreibung</span>
		</a>
	{/if}

	<div style="clear:left;"></div>
</div>
<div id="description_tabs">
	{if $shopArticle->tab_content}
		{foreach from=$shopArticle->tab_content item=content key=content_id name=contents}
			<div class="tab_content {if $smarty.foreach.contents.first}active{/if}" id="tabs_{$content_id}">
				{if $smarty.foreach.contents.first}
					{if $shopArticle->schema_data_attributes}
						<table>
							{foreach from=$shopArticle->schema_data_attributes item=attribute}
								{if $attribute.show_detail && $attribute.value}
									<tr>
										{if $attribute.number != $shopArticle->schema_data->selectable_attribute_1 && $attribute.number != $shopArticle->schema_data->selectable_attribute_2}
											<td>{$attribute.name}</td>
											<td class="attrRight">{$attribute.value} {$attribute.unit}</td>
										{/if}
									</tr>
								{/if}
							{/foreach}
						</table>
						<br />
					{/if}
					
					{$content}
					
					<div id="itemBarcode">{$shopArticle->ean_code}</div>
				{else}
					{$content}
				{/if}
			</div>
		{/foreach}
	{else}
		{if $shopArticle->schema_data_attributes}
			<table>
				{foreach from=$shopArticle->schema_data_attributes item=attribute}
					{if $attribute.show_detail && $attribute.value}
						<tr>
							{if $attribute.number != $shopArticle->schema_data->selectable_attribute_1 && $attribute.number != $shopArticle->schema_data->selectable_attribute_2}
								<td>{$attribute.name}</td>
								<td class="attrRight">{$attribute.value} {$attribute.unit}</td>
							{/if}
						</tr>
					{/if}
				{/foreach}
			</table>
			<br />
		{/if}
	
		{$shopArticle->detail_description}
	{/if}
</div>
<!-- content_item/description_tabs.tpl end --> 