function getContent($intEntryId, $arrInputfield, $arrTranslationStatus) { global $objDatabase, $_CONFIG, $_ARRAYLANG; $intId = intval($arrInputfield['id']); $objInputfieldValue = $objDatabase->Execute("\n SELECT\n `value`\n FROM\n " . DBPREFIX . "module_" . $this->moduleTablePrefix . "_rel_entry_inputfields\n WHERE\n field_id=" . $intId . "\n AND\n entry_id=" . $intEntryId . "\n LIMIT 1\n "); $strValue = htmlspecialchars($objInputfieldValue->fields['value'], ENT_QUOTES, CONTREXX_CHARSET); $arrValues = explode(',', $strValue); $strValueLat = $arrValues[0]; $strValueLon = $arrValues[1]; $strValueZoom = $arrValues[2]; $strValueLink = '<a href="http://maps.google.com/maps?q=' . $strValueLat . ',' . $strValueLon . '" target="_blank">' . $_ARRAYLANG['TXT_MEDIADIR_GOOGLEMAPS_LINK'] . '</a>'; $strValueLinkHref = 'http://maps.google.com/maps?q=' . $strValueLat . ',' . $strValueLon; if (!empty($strValue)) { $objGoogleMap = new \googleMap(); $objGoogleMap->setMapId($this->moduleNameLC . 'Inputfield_' . $intId . '_' . $intEntryId . '_map'); $objGoogleMap->setMapStyleClass('map'); $objGoogleMap->setMapZoom($strValueZoom); $objGoogleMap->setMapCenter($strValueLon, $strValueLat); $objGoogleMap->setMapIndex($intId . '_' . $intEntryId); $objGoogleMap->addMapMarker($intId, $strValueLon, $strValueLat, null, true); $arrContent['TXT_' . $this->moduleLangVar . '_INPUTFIELD_NAME'] = htmlspecialchars($arrInputfield['name'][0], ENT_QUOTES, CONTREXX_CHARSET); $arrContent[$this->moduleLangVar . '_INPUTFIELD_VALUE'] = $objGoogleMap->getMap(); $arrContent[$this->moduleLangVar . '_INPUTFIELD_LINK'] = $strValueLink; $arrContent[$this->moduleLangVar . '_INPUTFIELD_LINK_HREF'] = $strValueLinkHref; } else { $arrContent = null; } return $arrContent; }