tpl_set_var('googlemap_key', $googlemap_key); tpl_set_var('map_msg', $map_msg); tpl_set_var('typeLetter', typeToLetter($geocache->getCacheType())); tpl_set_var('cacheid_urlencode', htmlspecialchars(urlencode($cache_id), ENT_COMPAT, 'UTF-8')); tpl_set_var('cachename', htmlspecialchars($geocache->getCacheName(), ENT_COMPAT, 'UTF-8')); if ($geocache->isTitled()) { $ntitled_cache = $titled_cache_period_prefix . '_titled_cache'; tpl_set_var('icon_titled', '<img src="tpl/stdstyle/images/free_icons/award_star_gold_1.png" class="icon16" alt="' . tr($ntitled_cache) . '" title="' . tr($ntitled_cache) . '"/>'); } else { tpl_set_var('icon_titled', ''); } // cache type Mobile add calculate distance if ($geocache->getCacheType() == GeoCache::TYPE_MOVING) { tpl_set_var('moved_icon', $moved_icon); tpl_set_var('dystans', $geocache->getDistance()); tpl_set_var('moved', $geocache->getMoveCount()); tpl_set_var('hidemobile_start', ''); tpl_set_var('hidemobile_end', ''); } else { tpl_set_var('hidemobile_start', '<!--'); tpl_set_var('hidemobile_end', '-->'); } tpl_set_var('coords', $coords); if ($usr || !$hide_coords) { if ($geocache->getCoordinates()->getLongitude() < 0) { $longNC = $geocache->getCoordinates()->getLongitude() * -1; tpl_set_var('longitudeNC', $longNC); } else { tpl_set_var('longitudeNC', $geocache->getCoordinates()->getLongitude()); } tpl_set_var('longitude', $geocache->getCoordinates()->getLongitude());