La extensión Paypal-wmes añade el tag <paypal wm-es /> que genera
authorWikimedia Espana <wmes@canberra>
Tue, 3 Apr 2012 18:37:04 +0000 (11:37 -0700)
committerWikimedia Espana <wmes@canberra>
Tue, 3 Apr 2012 18:37:04 +0000 (11:37 -0700)
un botón para donar a WM-ES por PayPal.

Paypal-wmes.php [new file with mode: 0755]

diff --git a/Paypal-wmes.php b/Paypal-wmes.php
new file mode 100755 (executable)
index 0000000..32694f6
--- /dev/null
@@ -0,0 +1,18 @@
+<?php
+
+$wgHooks['ParserFirstCallInit'][] = 'efSetupPaypalWMES';
+
+function efSetupPaypalWMES(&$parser) {
+  $parser->setHook( 'paypal wm-es', 'efHookPaypalWMES' );
+  return true;
+}
+
+function efHookPaypalWMES( $input, array $args, Parser $parser, PPFrame $frame ) {
+  return '
+<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
+<input name="cmd" type="hidden" value="_s-xclick" />
+<input name="hosted_button_id" type="hidden" value="G5QN39QKQGMNE" />
+<input alt="PayPal. La forma rápida y segura de pagar en Internet." name="submit"
+src="http://www.wikimedia.org.es/wp-content/uploads/2011/06/btn_donateCC_LG.gif" type="image" />
+</form>';
+}
\ No newline at end of file