Exemplo n.º 1
0
     $woj = $geocacheLocation['adm3'];
     tpl_set_var('woj', $regionTranslation);
 } else {
     $woj = $geocacheLocation['adm2'];
     tpl_set_var('woj', $woj);
 }
 if ($woj == "") {
     tpl_set_var('woj', $geocacheLocation['adm4']);
 }
 if ($woj != "" || $geocacheLocation['adm3'] != "") {
     tpl_set_var('dziubek1', ">");
 }
 // NPA - nature protection areas
 $npac = "0";
 $npa_content = '';
 if (count($geocache->getNatureRegions()) > 0) {
     $npa_content .= "<table width=\"90%\" border=\"0\" style=\"border-collapse: collapse; font-weight: bold;font-size: 14px; line-height: 1.6em\"><tr>\n            <td align=\"center\" valign=\"middle\"><b>" . tr('npa_info') . " <font color=\"green\"></font></b>:<br /></td><td align=\"center\" valign=\"middle\">&nbsp;</td></tr>";
     $npac = "1";
     foreach ($geocache->getNatureRegions() as $key => $npa) {
         $npa_content .= "<tr><td align=\"center\" valign=\"middle\"><font color=\"blue\"><a target=\"_blank\" href=\"http://" . $npa['npalink'] . "\">" . $npa['npaname'] . "</a></font><br />";
         $npa_content .= "</td><td align=\"center\" valign=\"middle\"><img src=\"tpl/stdstyle/images/pnk/" . $npa['npalogo'] . "\"></td></tr>";
     }
     $npa_content .= "</table>";
 }
 // Natura 200
 if (count($geocache->getNatura2000Sites()) > 0) {
     $npa_content .= "<table width=\"90%\" border=\"0\" style=\"border-collapse: collapse; font-weight: bold;font-size: 14px; line-height: 1.6em\"><tr>\n            <td width=90% align=\"center\" valign=\"middle\"><b>" . tr('npa_info') . " <font color=\"green\">NATURA 2000</font></b>:<br />";
     $npac = "1";
     foreach ($geocache->getNatura2000Sites() as $npa) {
         $npa_item = $config['nature2000link'];
         $npa_item = mb_ereg_replace('{linkid}', $npa['linkid'], $npa_item);