summaryrefslogtreecommitdiff
path: root/Postman/extra
diff options
context:
space:
mode:
authoryehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664>2019-11-25 08:22:35 +0000
committeryehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664>2019-11-25 08:22:35 +0000
commitc61784411988d36d9bbd93cd3a97e773990af342 (patch)
tree924e6e9dea2ba7b1eedb14d0c4b03a38aefdf179 /Postman/extra
parent907ce8c044159ca8da6ccce3ec5362ac61e7c142 (diff)
downloadPost-SMTP-c61784411988d36d9bbd93cd3a97e773990af342.zip
Adding a folder
Diffstat (limited to 'Postman/extra')
-rw-r--r--Postman/extra/donation.php19
-rw-r--r--Postman/extra/no-localhost-mails.php9
2 files changed, 28 insertions, 0 deletions
diff --git a/Postman/extra/donation.php b/Postman/extra/donation.php
new file mode 100644
index 0000000..61fc3a9
--- /dev/null
+++ b/Postman/extra/donation.php
@@ -0,0 +1,19 @@
+<?php
+$postman_dismiss_donation = get_option('postman_dismiss_donation');
+
+if ( empty( $postman_dismiss_donation ) || isset( $in_wizard ) ) : ?>
+ <div class="updated settings-error notice is-dismissible post-smtp-donation">
+ <p style="font-size: 1.1em;">It is hard to continue development and support for this free plugin without contributions from users like you.<br>
+ If you enjoy using <strong>Post SMTP</strong> and find it useful, please consider making a donation.<br>
+ Your donation will help encourage and support the plugin's continued development and better user support.</p>
+ <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
+ <input type="hidden" name="cmd" value="_s-xclick" />
+ <input type="hidden" name="hosted_button_id" value="4B3PJANHBA7MG" />
+ <input type="image" src="https://www.paypalobjects.com/en_US/IL/i/btn/btn_donateCC_LG.gif" border="0" name="submit" title="PayPal - The safer, easier way to pay online!" alt="Donate with PayPal button" />
+ <img alt="" border="0" src="https://www.paypal.com/en_IL/i/scr/pixel.gif" width="1" height="1" />
+ </form>
+ <button style="z-index: 100;" data-security="<?php echo wp_create_nonce('postsmtp'); ?>" type="button" class="notice-dismiss donation-dismiss">
+ <span class="screen-reader-text">Dismiss this notice.</span>
+ </button>
+ </div>
+<?php endif; ?> \ No newline at end of file
diff --git a/Postman/extra/no-localhost-mails.php b/Postman/extra/no-localhost-mails.php
new file mode 100644
index 0000000..0c45778
--- /dev/null
+++ b/Postman/extra/no-localhost-mails.php
@@ -0,0 +1,9 @@
+<?php
+/**
+* Plugin Name: No localhost emails
+* Description: Overwrites WP pluggable function wp_mail
+*/
+
+if ( !function_exists( 'wp_mail' ) ) :
+ function wp_mail() {} // KILL EMAILS IN LOCALHOST
+endif;