From f56e30f5b6f0545199d7e73e511ab2ae6b2213a5 Mon Sep 17 00:00:00 2001 From: WP Experts Date: Fri, 18 Mar 2022 19:45:33 +0500 Subject: [PATCH] New screenshots added and few line are modified in readme file. --- .gitignore | 1 - README.txt | 19 +++++++------------ email-templates.php | 6 +++--- includes/class-mailtpl-mailer.php | 18 ++++++++---------- 4 files changed, 18 insertions(+), 26 deletions(-) delete mode 100644 .gitignore diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 723ef36..0000000 --- a/.gitignore +++ /dev/null @@ -1 +0,0 @@ -.idea \ No newline at end of file diff --git a/README.txt b/README.txt index 3fff898..ca54b89 100755 --- a/README.txt +++ b/README.txt @@ -1,9 +1,8 @@ === Email Templates === -Contributors: timersys -Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=K4T6L69EV9G2Q +Contributors: wpexpertsio Tags: email templates, email template, html email, email template, template, better emails, wp better emails, wp email templates, html emails, postman, wp smtp, woocommerce, easy digital downloads Requires at least: 4.0 -Tested up to: 5.6 +Tested up to: 5.9 Stable tag: 1.3.2.1 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -15,7 +14,7 @@ Send beautiful emails with the WordPress Email Templates plugin. Choose your tem Email Template plugin uses Customizer to make it easier. Preview your changes or send a test email with just a few clicks. **Requires WordPress 4.0.0** -Compatible with : [Post SMTP](https://wordpress.org/plugins/post-smtp/), [WP SMTP](https://wordpress.org/plugins/wp-smtp/), [Easy WP SMTP](https://wordpress.org/plugins/easy-wp-smtp/), [Easy SMTP Mail](https://wordpress.org/plugins/webriti-smtp-mail/), [Mailgun](https://wordpress.org/plugins/mailgun/), [Sengrid](https://wordpress.org/plugins/sendgrid-email-delivery-simplified/) +Compatible with : [Post SMTP](https://wordpress.org/plugins/post-smtp/) = Help with translations = @@ -32,11 +31,7 @@ Send your translations to [Transifex](https://www.transifex.com/projects/p/wp-em * Russian * German -= Collaborate in Github = - [https://github.com/timersys/wordpress-email-templates](https://github.com/timersys/wordpress-email-templates) - - - -Thanks to @eliorivero for sharing some customizer tips for plugins :) += Collaborate in Github = - [https://github.com/wpexpertsio/wordpress-email-templates](https://github.com/wpexpertsio/wordpress-email-templates) == Installation == @@ -56,9 +51,9 @@ Copy the templates folder into your theme , then in functions.php add the follow == Screenshots == -1. Editing a template -2. Email received -3. Another example +1. Email Templates - Settings +2. Boxed layout +3. Full-width layout == Changelog == diff --git a/email-templates.php b/email-templates.php index 7bd90f4..857b2a2 100755 --- a/email-templates.php +++ b/email-templates.php @@ -3,7 +3,7 @@ /** * Email Templates * - * @link https://wp.timersys.com + * @link https://www.wpexperts.io/ * @since 1.0.0 * @package Mailtpl * @@ -12,8 +12,8 @@ * Plugin URI: http://wordpress.org/plugins/email-templates * Description: Beautify WordPress default emails * Version: 1.3.2.1 - * Author: Damian Logghe - * Author URI: https://wp.timersys.com + * Author: wpexpertsio + * Author URI: https://www.wpexperts.io/ * License: GPL-2.0+ * License URI: http://www.gnu.org/licenses/gpl-2.0.txt * Text Domain: email-templates diff --git a/includes/class-mailtpl-mailer.php b/includes/class-mailtpl-mailer.php index fa04ab4..8732ecc 100755 --- a/includes/class-mailtpl-mailer.php +++ b/includes/class-mailtpl-mailer.php @@ -160,11 +160,10 @@ private function replace_placeholders( $email, $user_email = '' ) { * @since 1.0.0 * @return string */ - public function set_from_email( $email ) { - if ( empty( $email ) ) { - return $this->opts['from_email']; - } - return $email; + public function set_from_email( $email ){ + if( empty( $this->opts['from_email'] ) ) + return $email; + return $this->opts['from_email']; } /** @@ -172,11 +171,10 @@ public function set_from_email( $email ) { * @since 1.0.0 * @return string */ - public function set_from_name( $name ) { - if ( empty( $name ) ) { - return $this->opts['from_name']; - } - return $name; + public function set_from_name( $name ){ + if( empty( $this->opts['from_name'] ) ) + return $name; + return $this->opts['from_name']; } /**