]> git.pld-linux.org Git - packages/dokuwiki-plugin-data.git/commitdiff
- add google maps helper via _map; rel 2 auto/th/dokuwiki-plugin-data-20090810-2
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 22 Oct 2009 15:51:48 +0000 (15:51 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    dokuwiki-plugin-data.spec -> 1.10
    helper-map.patch -> 1.1

dokuwiki-plugin-data.spec
helper-map.patch [new file with mode: 0644]

index ed788c5f13e7d84347394b201be125c6a156955b..4fa8eb90927b52ba3c2f9674a7c6a89e1f43c851 100644 (file)
@@ -2,13 +2,14 @@
 Summary:       DokuWiki Structured Data Plugin
 Name:          dokuwiki-plugin-%{plugin}
 Version:       20090810
-Release:       1
+Release:       2
 License:       GPL v2
 Group:         Applications/WWW
 Source0:       http://dev.splitbrain.org/download/snapshots/data-plugin-latest.tgz
 # Source0-md5: f55adb2c5643693fca8b7ef73944f6e4
 URL:           http://wiki.splitbrain.org/plugin:data
 Patch0:                interwiki.patch
+Patch1:                helper-map.patch
 BuildRequires: rpmbuild(macros) >= 1.520
 Requires:      dokuwiki >= 20090214b-5
 Requires:      php(sqlite)
@@ -31,6 +32,7 @@ different to the repository plugin.
 %prep
 %setup -q -n %{plugin}
 %patch0 -p1
+%patch1 -p1
 
 # cleanup backups after patching
 find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
diff --git a/helper-map.patch b/helper-map.patch
new file mode 100644 (file)
index 0000000..89e876d
--- /dev/null
@@ -0,0 +1,13 @@
+--- data/helper.php    2009-10-22 18:50:43.604400412 +0300
++++ data/helper.php    2009-10-22 18:50:41.000000000 +0300
+@@ -109,6 +109,10 @@
+                                       list($wikiName, $wikiUri) = explode('>', $val, 2);
+                     $outs[] = $R->interwikilink($val, NULL, $wikiName, $wikiUri, true);
+                     break;
++                case 'map':
++                                      $url = "http://maps.google.com/maps?q=".$val;
++                                      $outs[] = '<a href="'.$url.'" class="urlextern" title="Google Map: '.hsc($val).'">'.hsc($val).'</a>';
++                    break;
+                 case 'mail':
+                     list($id,$title) = explode(' ',$val,2);
+                     $id = obfuscate(hsc($id));
This page took 0.0399890000000001 seconds and 4 git commands to generate.