Fix Enquire email & Contact email

This commit is contained in:
Hoang Huu
2020-02-21 11:13:46 +07:00
parent 103f4954aa
commit 4ccc93892f
13 changed files with 198 additions and 173 deletions

View File

@@ -1,17 +1,4 @@
<?php
/**
* $Desc$
*
* @version $Id$
* @package opalestate
* @author Opal Team <info@wpopal.com >
* @copyright Copyright (C) 2019 wpopal.com. All Rights Reserved.
* @license GNU/GPL v2 or later http://www.gnu.org/licenses/gpl-2.0.html
*
* @website http://www.wpopal.com
* @support http://www.wpopal.com/support/forum.html
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
@@ -23,6 +10,15 @@ class OpalEstate_Send_Email_Notification extends OpalEstate_Abstract_Email_Templ
public $type = '';
public function set_type( $content ) {
$type = '';
if ( isset( $content['type'] ) && 'send_enquiry' === $content['type'] ) {
$type = 'enquiry';
}
$this->type = $type;
}
/**
* Send Email
*/
@@ -43,7 +39,7 @@ class OpalEstate_Send_Email_Notification extends OpalEstate_Abstract_Email_Templ
break;
}
return $subject;
return $this->replace_tags( $subject );
}
/**