From 9c72e72b79278ad585492bd4635451b49679bf73 Mon Sep 17 00:00:00 2001 From: kojak711 Date: Fri, 30 Oct 2015 15:34:53 +0000 Subject: [PATCH] updated to 0.9.1 git-svn-id: https://plugins.svn.wordpress.org/send-email-from-admin/trunk@1276445 b8457f37-d9ea-0310-8a92-e5e31aec5664 --- css/sefa.css | 40 +++++++++++++++++++++++++++++++-------- readme.txt | 9 +++++++-- send-email-from-admin.php | 37 ++++++++++++++++++++++-------------- 3 files changed, 62 insertions(+), 24 deletions(-) diff --git a/css/sefa.css b/css/sefa.css index 27cdeb2..33a0894 100644 --- a/css/sefa.css +++ b/css/sefa.css @@ -2,39 +2,63 @@ width: 70%; } #sefa-wrapper h1 { - font-weight: 400; - padding-top: 10px; + font-size: 2.8em; + font-weight: 200; + margin-bottom: 26px; +} +#sefa-wrapper h1:before { + font-family: "dashicons"; + content: "\f465"; + top: 8px; + position: relative; + margin-right: 10px; + font-size: 1.2em; } #sefa-wrapper div.error, #sefa-wrapper div.updated { - margin: 0; padding: 10px; margin-bottom: 5px; } #sefa-form td { vertical-align: text-top; - padding: 10px; } #sefa-form input[type=text], #sefa-form input[type=email], #sefa-form textarea, #sefa-form .wp-editor-wrap { width: 100%; - padding: 10px + padding: 6px 10px +} +#sefa-form .sefa-radio-wrap { + display: inline; } #sefa-form .wp-editor-wrap { padding-left: 0; } #sefa-form #sefa-user-list { - margin-top: 6px; + margin-top: 7px; } #sefa-form .note { - font-size: 11px; + font-size: 12px; + color: #888; padding: 5px 0 0 1px; } -@media screen and (max-width: 1200px) { +@media screen and (max-width: 1300px) { #sefa-wrapper { width: 100%; } +} +@media screen and (max-width: 900px) { + #sefa-form .sefa-radio-wrap { + display: block; + } +} +@media screen and (max-width: 500px) { + #sefa-wrapper h1 { + font-size: 2em; + } + #sefa-wrapper h1:before { + top: 6px; + } } \ No newline at end of file diff --git a/readme.txt b/readme.txt index d8caf40..53284a9 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i Tags: email, send email, admin email, custom email, email tools Requires at least: 4.0 Tested up to: 4.3.1 -Stable tag: 0.9 +Stable tag: 0.9.1 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -12,7 +12,7 @@ Easily send a simple custom email with an attachment from the WordPress administ == Description == -Send Email From Admin gives you the ability to easily send a custom HTML email from the WordPress administration screen. You can send to existing users or add your own recipients. You can send to multiple recipients and choose to send group emails or individual emails. Emails can also have attachments. A new menu item called 'Send Email' is added under the Tools menu. +Send Email From Admin gives you the ability to easily send a custom HTML email from the WordPress administration screen. You can send to existing users or add your own recipients. You can send to multiple recipients and choose to send group emails or individual emails. Emails can also have an attachment. A new menu item called 'Send Email' is added under the Tools menu. == Installation == @@ -43,5 +43,10 @@ Yes. You can upload and attach one attachment to the email message. == Changelog == += 0.9.1 = +* css and html cleanup +* added mail dashicon +* uploaded file (attachment) is now deleted from server after email is sent + = 0.9 = * Initial release \ No newline at end of file diff --git a/send-email-from-admin.php b/send-email-from-admin.php index f82be87..b2d176a 100644 --- a/send-email-from-admin.php +++ b/send-email-from-admin.php @@ -62,8 +62,8 @@ function sefa_plugin_load_textdomain() { add_action('plugins_loaded', 'sefa_plugin_load_textdomain'); /** - * Our main function to display and - * process our form + * Our main function to display and process our form + * * @since 0.9 */ function sefa_plugin_main() { @@ -143,10 +143,15 @@ function sefa_plugin_main() { } } } + + // delete the uploaded file (attachment) from the server + if ( $attachment_path ) { + unlink($attachment_path); + } } } ?> -
+

@@ -156,7 +161,7 @@ function sefa_plugin_main() { if ( !empty($errors) || $send_mail_message ) { echo ''; if ( !empty($errors) ) { - echo '
'; + echo '
'; foreach ($errors as $error) { echo "$error
"; } @@ -169,11 +174,11 @@ function sefa_plugin_main() { } ?> - From: + From: ">
General.', 'sefa' ); ?>
- To: +
- +
+ + +
   +
> +
- Subject: - + + - Message: + "200" ); @@ -215,8 +224,8 @@ function sefa_plugin_main() { - Attachment: - + +