wrap(__FILE__, __LINE__); } if (isset($tmp[$item->getId()]['GPS']) && preg_match ('/^([^,]+),(.*)$/', $tmp[$item->getId()]['GPS'], $regs)) { $template->head('modules/map/templates/Header.tpl'); $template->setVariable('latitude', $regs[1]); $template->setVariable('longitude', $regs[2]); $template->setVariable('itemTitle', $item->getTitle()); } } } return null; } }