

<?php
	$scope = !empty($this->item->scope)?$this->item->scope:null;

	switch($scope){
		case 'event' :
			$title = '#events#';
			$allUrl = $this->url(array(),'events',true);
			$allTxt =  $this->translate('#see all events#');
			$navRef = 'events';
			break;
		case 'publication' :
			$title = '#publications#';
			$allUrl = $this->url(array(),'publications',true);
			$allTxt =  $this->translate('#see all publications#');
			$navRef = 'publications';
			break;
		case 'press' :
			$title = '#press releases#';
			$allUrl = $this->url(array(),'events-scope-press',true);
			$allTxt =  $this->translate('#see all pres releases#');
			$navRef = 'press';

			break;
		case 'press-review' :
			$title = '#press reviews#';
			$allUrl = $this->url(array(),'events-scope-pressreview',true);
			$allTxt =  $this->translate('#see all press reviews#');
			$navRef = 'press-review';

			break;
		default :
			$title = '#news#';
			$allUrl = $this->url(array(),'news',true);
			$allTxt =  $this->translate('#see all news#');
			$navRef = 'news';
			break;
	}


	if(!empty($scope)){

	}


	// $this->placeholder('leftCol')->append( $this->eventsblock( array( 'count' => 2 , 'scope' => $scope, 'title'=>null ,'dateformat'=>'dd/MM') ) );


	$this->partial()->setObjectKey('entry');

	try{

		$nc = $this->navigation()->getContainer();
		$pp = $this->item->getPageParams();
		$page = new Zend_Navigation_Page_Mvc( $pp );
		$page->setActive(true);
		$page->setVisible(false);
		$page->setLabel( $this->truncate($this->item->title,100));
		if( $ref = $this->navigation()->findOneBy( 'ref', $navRef )){
			$ref->setActive(true);
			$ref->addPage( $page );
		}

		//$this->navigation($nc);
	}catch( Excpetion $e){
		// die('GGGGGrrrr');
	}


	/* <h1><?= ucfirst( $this->translate( $title ) ) ?><span class="icone"></span></h1>*/
	?>
<section  id="<?= $this->cssId ?>" class="news events <?= !is_null($this->cssClass)?' '.$this->cssClass:'' ?>">
	<?= $this->partial('index/_partials/entry.phtml','events',array('item'=>$this->item,'params'=>$this->params)); ?>

	<footer class="all"><a class="more" href="<?= $allUrl ?>"><?= $allTxt ?></a></footer>
</section>
