<?php
	extract ( $this -> _data );
	
	if ( $this -> _editable )
		{
			?>
			<div class="grid_40col wrapper" id="turnier_<?php echo $id; ?>" data-editable="turnier">
			<?php
		}
	else
		{
			?>
			<div class="grid_40col wrapper">
			<?php
		}
	
	$subline	= str_replace( array( '%platzierung%' , '%ort%' ) , array( $platzierung , $ort ) , $this -> _lang[ 'sport' ][ 'turnier' ] );
	
	?>
	<div class="grid_40col">
		<div class="grid_34col">
			<h2><?php echo $headline; ?></h2>
		</div>
		<div class="grid_6col datum right">
			<?php echo DateTime::createFromFormat ( 'Y-m-d' , $datum ) -> format ( 'd.m.Y' ); ?>
		</div>
		<br class="fix"/>
		<h1><?php echo $subline; ?></h1>
		<div class="grid_40col spacer"></div>
		<div class="grid_40col text"><?php echo $text; ?></div>
		<div class="grid_40col spacer"></div>
		<div class="grid_40col box">
			<div class="grid_40col box-header">
				<span class="headline"><?php echo $headline . ': ' . $subline; ?></span>
			</div>
			<div class="grid_40col spacer"></div>
			<div class="grid_40col spacer"></div>
						<div class="grid_6col">Tore:</div>
						<div class="grid_32col tore"><?php echo $tore; ?></div>
						<div class="grid_40col spacer"></div>
						<div class="grid_6col">Besondere Vorkommnisse:</div>
						<div class="grid_32col besonderes"><?php echo $besonderes; ?></div>
						<div class="grid_40col spacer"></div>
		</div>
	</div>
</div>