tpl_set_var('oc_waypoint', htmlspecialchars($geocache->getWaypointId(), ENT_COMPAT, 'UTF-8')); if ($geocache->getRecommendations() == 1) { tpl_set_var('rating_stat', mb_ereg_replace('{ratings}', $geocache->getRecommendations(), $rating_stat_show_singular)); } elseif ($geocache->getRecommendations() > 1) { tpl_set_var('rating_stat', mb_ereg_replace('{ratings}', $geocache->getRecommendations(), $rating_stat_show_plural)); } else { tpl_set_var('rating_stat', ''); } // cache_rating list of users // no geokrets in this cache tpl_set_var('list_of_rating_begin', ''); tpl_set_var('list_of_rating_end', ''); tpl_set_var('body_scripts', ''); tpl_set_var('altitude', $geocache->getAltitude()->getAltitude()); tpl_set_var('body_scripts', '<script type="text/javascript" src="lib/js/wz_tooltip.js"></script><script type="text/javascript" src="lib/js/tip_balloon.js"></script><script type="text/javascript" src="lib/js/tip_centerwindow.js"></script>'); if ($geocache->getUsersRecomeded() === false) { tpl_set_var('list_of_rating_begin', ''); tpl_set_var('list_of_rating_end', ''); } else { // ToolTips Ballon $lists = ''; $i = 0; foreach ($geocache->getUsersRecomeded() as $record) { $i++; $lists .= $record['username']; if (count($geocache->getUsersRecomeded()) == 1) { $lists .= ' '; } else { $lists .= ', '; } }