Copy with the extension the button which used to be at
authorWikimedia Espana <wmes@canberra>
Thu, 16 Aug 2012 12:14:35 +0000 (14:14 +0200)
committerWikimedia Espana <wmes@canberra>
Thu, 16 Aug 2012 12:23:06 +0000 (14:23 +0200)
http://www.wikimedia.org.es/wp-content/uploads/2011/06/btn_donateCC_LG.gif
(now no longer accessible)

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

diff --git a/PayPal_button.gif b/PayPal_button.gif
new file mode 100755 (executable)
index 0000000..97f81f4
Binary files /dev/null and b/PayPal_button.gif differ
index f707acfb51966cf022edff61a1e236aae96a47e2..38e4f6d63788a12c436d87ff06ee8f00b727e768 100755 (executable)
@@ -8,11 +8,12 @@ function efSetupPaypalWMES(&$parser) {
 }
 
 function efHookPaypalWMES( $input, array $args, Parser $parser, PPFrame $frame ) {
+  global $wgExtensionAssetsPath;
   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" />
+src="' . htmlspecialchars( "$wgExtensionAssetsPath/Paypal-wmes/PayPal_button.gif" ) . '" type="image" />
 </form>';
 }