Skip to content

Commit

Permalink
New screenshots added and few line are modified in readme file.
Browse files Browse the repository at this point in the history
  • Loading branch information
wpexpertsio committed Mar 18, 2022
1 parent 61f7fd7 commit f56e30f
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 26 deletions.
1 change: 0 additions & 1 deletion .gitignore

This file was deleted.

19 changes: 7 additions & 12 deletions README.txt
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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 =

Expand All @@ -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 ==

Expand All @@ -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 ==

Expand Down
6 changes: 3 additions & 3 deletions email-templates.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* Email Templates
*
* @link https://wp.timersys.com
* @link https://www.wpexperts.io/
* @since 1.0.0
* @package Mailtpl
*
Expand All @@ -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
Expand Down
18 changes: 8 additions & 10 deletions includes/class-mailtpl-mailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,23 +160,21 @@ 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'];
}

/**
* Sets email's From name
* @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'];
}

/**
Expand Down

0 comments on commit f56e30f

Please sign in to comment.