<?php if (!defined('PmWiki')) exit();
/*
   Copyright 2009-2010 Matthias Guenther (matthias.guenther@wikimatze.de)

   This program is free software; you can redistribute it and/or
   modify it under the terms of the GNU General Public License as
   published by the Free Software Foundation; either version 2 of
   the License, or (at your option) any later version.
   
   Further instruction can be found under the recipe-site on
   pmwiki.org (clustermaps)!
*/

$RecipeInfo['clustermaps']['Version']='2009-09-20';

$url_clustermaps = "http://www3.clustrmaps.com/counter/maps.php";
$url_clustermaps_index = "http://www3.clustrmaps.com/counter/index2.php";
$url_clustermaps_error = "http://www2.clustrmaps.com/images/clustrmaps-back-soon.jpg";
$url_clustermaps_main = "http://www2.clustrmaps.com";
$clustermaps_creation = "<a href=$url_clustermaps?url=$url_own id=\"clustrMapsLink\"><img src=$url_clustermaps_index?url=$url_own style=\"border:0px;\" alt=\"Locations of visitors to this page\" title=\"Locations of visitors to this page\" id=\"clustrMapsImg\" onerror=\"this.onerror=null; this.src=$url_clustermaps_error; document.getElementById('clustrMapsLink').href=$url_clustermaps_main;\" />
</a>";

Markup("clustermaps", "block","/\(:clustermaps:\)/", "$clustermaps_creation");
?>