X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=sidebyside;f=inc%2Ffunctions.php;fp=inc%2Ffunctions.php;h=2032a037e9a888e57c3d4361d7fd85dbd5e557dd;hb=f1ddaa8817df4a82805ec3902c72554c411ad468;hp=add970ca8bcb73c58ac51673fedb40c84698e664;hpb=0ca5fea0cc893684982894e474a00176853535e6;p=contagged diff --git a/inc/functions.php b/inc/functions.php index add970c..2032a03 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -526,24 +526,3 @@ function get_fields_from_template($tpl){ return $return; } -function addCoords(&$coords, $entry, $geocoder) -{ - $priv = $geocoder->getPrivateCoords($entry); - if ($priv !== null) { - $priv->address = '' - . $entry['givenname'] . ' ' . $entry['name'] . '
' - . str_replace("\n", '
', $entry['homestreet']); - $coords[] = $priv; - } - - $busi = $geocoder->getBusinessCoords($entry); - if ($busi !== null) { - $busi->address = '' . $entry['organization'] . '
' - . $entry['givenname'] . ' ' . $entry['name'] . '

' - . $entry['street'] . '
' - . $entry['zip'] . ' ' . $entry['location']; - $coords[] = $busi; - } -} - -?>