<?php
$e = $this->item;
$params = $this->params;
$articleClass  = $this->articleClass ;

$link =  $this->baseUrl( $e->url );
$img = null;
if( !empty($e->image) && $tn = $this->smallImage( $e->image,array('xsize'=>60,'ysize'=>60,'prefix'=>'tn') )):
	$img = 	'<a href="'. ($params['imglink']?$link:$e->image).'" '. ($params['imglink']?'':'rel="lightbox"') .' class="image"><img src="'.$tn .'" alt="'. $e->title .'" /></a>';
endif;
?>
<article class="<?php echo $e->scope.' '.($img?' hasImage':'') ?>" >
	<header>
		<a href="<?php echo $this->baseUrl( $link ); ?>">

		<h2 class="<?= $articleClass ?>"><?php echo $e->title. (!empty($e->locality)?' - '.$e->locality:''); ?> - <time datetime="<?= $e->date( 'dateStart' )->get( Zend_Date::ISO_8601 ) ?>" ><?= $e->date( 'dateStart' )->get( $params['dateFormat'] ) ?></time>
		</h2>
		</a>
	</header>

	<div class="summary">

	<?php
	if(!$params['onlyTitle']):
		if($params['imgtop'])  :
			echo $img;
		endif; //img  ?>
		<?php
		if($params['short']):
				echo $e->getShort( !empty($e->image)?200:300 );
			else:
				echo $e->content;
			endif;
		endif;
	?>

			<?php if($this->eventDisplay && $params['map'] && $e->gps) echo $this->gmap($e->gps)?>
	</div>

			<?php if($params['footer']): ?>
				<footer><a class="more" href="<?php echo $link; ?>" title="<?php echo $e->title; ?>"><?= $this->translate('#see more#')?> <span>&raquo;</span></a></footer>
			<?php endif; ?>

			<div class="clearfix"></div>
		</article>
