Beispiel #1
0
     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);
         $npa_item = mb_ereg_replace('{sitename}', $npa['npaSitename'], $npa_item);
         $npa_item = mb_ereg_replace('{sitecode}', $npa['npaSitecode'], $npa_item);
         $npa_content .= $npa_item . '<br />';
     }
     $npa_content .= "</td><td align=\"center\" valign=\"middle\"><img src=\"tpl/stdstyle/images/misc/natura2000.png\"></td>\n                </tr></table>";
 }
 if ($npac == "0") {
     tpl_set_var('hidenpa_start', '<!--');
     tpl_set_var('hidenpa_end', '-->');
     tpl_set_var('npa_content', '');