30 lines
783 B
PHP
30 lines
783 B
PHP
<?php
|
|
|
|
extract ( $this -> _data );
|
|
|
|
$subline = str_replace( array( '%platzierung%' , '%ort%' ) , array( $platzierung , $ort ) , $this -> _lang[ 'sport' ][ 'turnier' ] );
|
|
|
|
?>
|
|
<div class="grid_40col wrapper">
|
|
<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
|
|
|
|
$text = strip_tags( $text );
|
|
|
|
echo ( strlen ( $text ) > 168 )
|
|
? substr ( $text , 0 , strpos ( $text , ' ' , 168 ) ) . ' ...'
|
|
: $text;
|
|
|
|
?></div>
|
|
</div>
|
|
</div>
|