/** * @param int $p_languageId * @param array $p_constraints * @param array $p_options * @param string $p_label * @param int $p_offset * @param int $p_limit * @param int $p_rank * The rank of the current multi-map, used to make unique ids * * @return string */ public static function GetMultiMapTagList($p_languageId, $p_constraints, $p_options, $p_label, $p_offset, $p_limit, $p_rank = 0) { $geo = self::GetMultiMapTagListData((int) $p_languageId, $p_constraints, $p_options, $p_offset, $p_limit, $p_rank); $map = $geo['map']; $pois = $geo['pois']; $icons_dir = Geo_Preferences::GetIconsWebDir(); //$map_name = $map['name']; $map_name = $p_label; $map_name = str_replace('&', '&', $map_name); $map_name = str_replace('<', '<', $map_name); $map_name = str_replace('>', '>', $map_name); if (0 < strlen($map_name)) { $html = ' <div class="geomap_info"> <dl class="geomap_map_name"> <dt class="geomap_map_name_label">' . getGS('Map') . ': </dt> <dd class="geomap_map_name_value">' . $map_name . ' </dd> </dl> </div>'; } $html .= ' <div id="side_info" class="geo_side_info">'; $poiIdx = 0; foreach ($pois as $poi) { $poi_title = $poi['title']; $poi_title = str_replace('&', '&', $poi_title); $poi_title = str_replace('<', '<', $poi_title); $poi_title = str_replace('>', '>', $poi_title); $poi_perex = $poi['perex']; $poi_perex = str_replace('&', '&', $poi_perex); $poi_perex = str_replace('<', '<', $poi_perex); $poi_perex = str_replace('>', '>', $poi_perex); $poi_icon = $poi['style']; $html .= '<div id="poi_seq_' . $poiIdx . '"> <a class="geomap_poi_icon_link" href="#" onClick="' . $poi['open'] . ' return false;"><img class="geomap_poi_icon" src="' . $icons_dir . '/' . $poi_icon . '" /></a> <a class="geomap_poi_name" href="#" onClick="' . $poi['open'] . ' return false;">' . $poi_title . '</a> <div class="geomap_poi_perex">' . $poi_perex . '</div> <div class="geomap_poi_center"> <a href="#" onClick="' . $poi['center'] . ' return false;">' . getGS('Center') . ' </a> </div> <div class="geomap_poi_spacer"> </div> </div>'; $poiIdx += 1; } $html .= '</div>'; return $html; }