{if $substructures}
<div class="content_box_structure_family_list {if $structureData->id == 6}content_box_structure_family_list_home{/if}">
	<{$block->style} class="title">
		{if !$user_lang || $user_lang == $system_configuration.default_system_language || !$block->title_en}
			{$block->title}
		{else}
			{$block->title_en}
		{/if}
	</{$block->style}>

	<div class="family_list_content clearfix">
		{foreach $substructures as $child}
			{if $child->active == 1}
				<div class="children">
					<a href="{$child->short_uri}/">
						{if !$user_lang || $user_lang == $system_configuration.default_system_language || !$structure->name_en}
							{$child->name}
						{else}
							{$child->name_en}
						{/if}
					</a>

					{if isset($child->children) && $child->children|@count > 0}
						<div class="grandchildren">
							{foreach $child->children as $grandchild}
								{if $grandchild->active == 1}
									<a href="{$grandchild->short_uri}/">
										{if !$user_lang || $user_lang == $system_configuration.default_system_language || !$structure->name_en}
											{$grandchild->name}
										{else}
											{$grandchild->name_en}
										{/if}
									</a>
								{/if}
							{/foreach}
						</div>
					{/if}
				</div>
			{/if}
		{/foreach}
	</div>
	
	<div class="trigger_opening {if $structureData->id != 6}isOpen{else}notOpen{/if}">
		<div class="text_element">
			<span class="openInfo">Alle anzeigen</span>
			<span class="closeInfo">Anzeige schlie&szlig;en</span>
		</div>
		<div class="arrow_element"></div>
	</div>
</div>
{/if}