Пример #1
0
				<?php 
        //Bottom Section - Pics and Map
        //Display next 4 pics along bottom to left of map
        $moreImages = $taxonManager->echoImages(1, 4);
        //Map
        $url = '';
        $aUrl = '';
        $gAnchor = '';
        if ($occurrenceModIsActive && $displayLocality) {
            $gAnchor = "openMapPopup('" . $taxonManager->getTid() . "'," . ($taxonManager->getClid() ? $taxonManager->getClid() : 0) . ")";
        }
        if ($mapSrc = $taxonManager->getMapArr()) {
            $url = array_shift($mapSrc);
            $aUrl = $url;
        } elseif ($gAnchor) {
            $url = $taxonManager->getGoogleStaticMap();
        }
        if ($url) {
            echo '<div class="mapthumb">';
            if ($aUrl) {
                echo '<a href="' . $aUrl . '">';
            } elseif ($gAnchor) {
                echo '<a href="#" onclick="' . $gAnchor . ';return false">';
            }
            echo '<img src="' . $url . '" title="' . $spDisplay . ' dot map" alt="' . $spDisplay . ' dot map" />';
            if ($aUrl || $gAnchor) {
                echo '</a>';
            }
            if ($gAnchor) {
                echo '<br /><a href="#" onclick="' . $gAnchor . ';return false">Open Interactive Map</a>';
            }