]> git.pld-linux.org Git - packages/dokuwiki-plugin-data.git/blob - helper-map.patch
89e876d1e505ed6c9af550edc9b38da3bae9477c
[packages/dokuwiki-plugin-data.git] / helper-map.patch
1 --- data/helper.php     2009-10-22 18:50:43.604400412 +0300
2 +++ data/helper.php     2009-10-22 18:50:41.000000000 +0300
3 @@ -109,6 +109,10 @@
4                                         list($wikiName, $wikiUri) = explode('>', $val, 2);
5                      $outs[] = $R->interwikilink($val, NULL, $wikiName, $wikiUri, true);
6                      break;
7 +                case 'map':
8 +                                       $url = "http://maps.google.com/maps?q=".$val;
9 +                                       $outs[] = '<a href="'.$url.'" class="urlextern" title="Google Map: '.hsc($val).'">'.hsc($val).'</a>';
10 +                    break;
11                  case 'mail':
12                      list($id,$title) = explode(' ',$val,2);
13                      $id = obfuscate(hsc($id));
This page took 0.045911 seconds and 2 git commands to generate.