<?php
	$this->bodyClass = 'contact';
	echo $this->cmsContent('contact-index',array('setHeading'=>true,'setSeo'=>true,'type'=>'module'));
?>
<div class="contacts">

<div class="list">
	<?php

		$this->partialLoop()->setObjectKey('contact');
		$partial = 'index/_partials/contact.phtml';
		echo $this->partialLoop($partial , $this->publicContacts);
		//$this->headLink()->appendStylesheet('http://cdn.leafletjs.com/leaflet-0.4.2/leaflet.css');

		$this->inlineScript()->appendFile(  'https://maps.googleapis.com/maps/api/js');
		// $this->inlineScript()->appendFile(  'https://maps.googleapis.com/maps/api/js?'.Alfred_Hod::options('services/google/maps/key')  );
		$this->placeholder('leftCol')->append('<div id="contactMap"></div>');
	?>
</div>

					<?php
	//$this->partialLoop()->setObjectKey('entry');

	//$this->placeholder('leftCol')->append( $this->contact( null,array('showMap'=>true)) );
	//echo $this->contact( null,array('showMap'=>false));


	//$c = $this->contact()->getContact();
	//echo $this->placeholder('rightCol')->append($this->map(array('containerStyle'=>'width:100%; height:200px;'))->simple($c->gps));


	//echo '<div class="clearfix"></div>';


					?>


					<?php
					echo $this->action('contact','index','contact');
					?>
</div>