rosehill/blocks/html/interments/mapLinks.inc

35 lines
989 B
PHP
Raw Normal View History

<?php
/**
* @copyright 2009 City of Bloomington, Indiana
* @license http://www.gnu.org/licenses/agpl.txt GNU/AGPL, see LICENSE.txt
* @param Interment $this->interment
*/
$mapURL = BASE_URL.'/interments/maps.php?interment_id='.$this->interment->getId();
$cemetery = $this->interment->getCemetery();
$name = View::escape($cemetery->getName());
?>
<div id="burialLinks">
<table>
<tr><td><a href="<?php echo $mapURL; ?>">
<img src="<?php echo $cemetery->getMap('thumb'); ?>"
alt="<?php echo $name; ?>" />
</a>
</td>
<td><a href="<?php echo $mapURL; ?>">
View Maps of Cemetery and Section
</a>
</td>
</tr>
<tr><td><a href="<?php echo $cemetery->getGoogleMapURL(); ?>">
<img src="<?php echo BASE_URL; ?>/images/car.png"
alt="Direction map to <?php echo $name ?>" />
</a>
</td>
<td><a href="<?php echo $cemetery->getGoogleMapURL(); ?>">
Get driving directions to <?php echo $name ?>
</a>
</td>
</tr>
</table>
</div>