


<?php
$scope = $this->params['scope'];


	switch($scope){
		case 'event' :
			$title = '#events#';
			$allUrl = $this->url(array(),'events',true);
			$allTxt =  $this->translate('#see all events#');
			break;
		case 'publication' :
			$title = '#publication#';
			$allUrl = $this->url(array(),'publications',true);
			$allTxt =  $this->translate('#see all publications#');
			break;
		case 'press' :
			$title = '#press releases#';
			$allUrl = $this->url(array(),'events-scope-press',true);
			$allTxt =  $this->translate('#see all press relases#');
			break;
		case 'press-review' :
			$title = '#press reviews#';
			$allUrl = $this->url(array(),'events-scope-pressreview',true);
			$allTxt =  $this->translate('#see all press reviews#');
			break;
		default :
			$title = '#news#';
			$allUrl = $this->url(array(),'news',true);
			$allTxt =  $this->translate('#see all news#');
			break;
	}

	$this->bodyClass('module_page_'.$scope);


?>
	<section class="news events">
		<header>
			<h1><?php echo ucfirst($this->translate( $title )); ?></h1>
		</header>


		<div class="list" >

		<?php
		if ( $this->paginator->count() > 0 ):
			$count = 0;
			foreach ( $this->paginator as $item ):
				echo $this->partial('index/_partials/entry.phtml','events',array('item'=>$item,'params' => $this->params,'partialCounter'=>$count ));
				$count++;
			endforeach;
			if(count($this->paginator) > 10):
		?>
		</div>

		<footer><?= $this->paginator?></footer>
		<?php
			endif;
		else: ?>
		<p><?= $this->translate('#no entries#')?></p>
		<?php endif; ?>
	</section>
