1: <?php
2: 3: 4: 5: 6: 7:
8: $plugin_is_filter = 9 | ADMIN_PLUGIN;
9: $plugin_description = gettext('Adds a Zenphoto donations block to the admin overview page.');
10: $plugin_author = "Stephen Billard (sbillard)";
11:
12: zp_register_filter('admin_overview', 'zenphotoDonate::donate');
13:
14: class zenphotoDonate {
15:
16: static function donate() {
17: ?>
18: <div class="box overview-utility">
19: <h2 class="h2_bordered"><?php echo gettext("Like using Zenphoto? Donate!"); ?></h2>
20: <br />
21: <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
22: <input type="hidden" name="cmd" value="_xclick">
23: <input type="hidden" name="business" value="tharward@berkeley.edu">
24: <input type="hidden" name="item_name" value="Zenphoto">
25: <input type="hidden" name="no_note" value="1"> <input type="hidden" name="currency_code" value="USD">
26: <input type="hidden" name="tax" value="0">
27: <input type="hidden" name="bn" value="PP-DonationsBF">
28: <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it is fast, free and secure!">
29: <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
30: </form>
31: <br class="clearall" />
32: <div style="padding-left:10px;">
33: <p><?php echo gettext('Your support helps pay for the Zenphoto site server and helps development of Zenphoto. Thank you!'); ?></p>
34: </div>
35: </div>
36: <?php
37: }
38:
39: }
40: ?>