<?php
$e = isset($this->item)?$this->item:$this->params['item'];
$params = $this->params;


$count = $this->num;
if($this->partialCounter)
	$count = $this->partialCounter;

//Zend_Debug::dump($this->num,'count');


$eventDisplay = in_array($e->scope ,array( 'event','agenda' ));
switch ($e->scope) {
	case 'event':
	case 'agenda':
		$articleClass = 'event';
		$tpl = 'event';
		$navRef = 'event';
		break;
	case 'press' :
		$articleClass = 'press';
		$tpl = 'default';
		$navRef = 'press';
		break;
	case 'publication' :
		$articleClass = 'publication';
		$tpl = 'publication';
		$navRef = 'publications';
		break;
	case 'news':
	default:
		$tpl = 'default';
		$navRef = 'news';
		$articleClass = 'info';
		break;
}





if( array_key_exists('short',$params) && $params['short']){
	$tpl.='-short';
}

echo $this->partial("index/_partials/$tpl.phtml" ,'events', array('item'=>$e,"params"=>$params ,'articleClass '=>$articleClass, 'eventDisplay'=>$eventDisplay  ) );
?>
