Fix Enquire email & Contact email
This commit is contained in:
@@ -1,23 +1,10 @@
|
||||
<?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
|
||||
}
|
||||
|
||||
/**
|
||||
* @class OpalEstate_Send_Email_Notification
|
||||
* @class OpalEstate_Abstract_Email_Template
|
||||
*
|
||||
* @version 1.0
|
||||
*/
|
||||
@@ -46,7 +33,6 @@ class OpalEstate_Abstract_Email_Template {
|
||||
/**
|
||||
* Get the description for this email notification.
|
||||
*
|
||||
* @type abstract
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
@@ -57,6 +43,11 @@ class OpalEstate_Abstract_Email_Template {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the content for this email notification.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function get_content_template() {
|
||||
|
||||
}
|
||||
@@ -72,12 +63,13 @@ class OpalEstate_Abstract_Email_Template {
|
||||
'receiver_name' => '',
|
||||
'name' => '',
|
||||
'receiver_email' => '',
|
||||
'property_name' => '',
|
||||
'property_link' => '',
|
||||
'property_edit_link' => '',
|
||||
'message' => '',
|
||||
'site_name' => get_bloginfo(),
|
||||
'site_link' => get_home_url(),
|
||||
'current_time' => date( "F j, Y, g:i a" ),
|
||||
'current_time' => date_i18n( opalestate_email_date_format() ),
|
||||
'phone' => '',
|
||||
];
|
||||
|
||||
@@ -112,7 +104,6 @@ class OpalEstate_Abstract_Email_Template {
|
||||
|
||||
}
|
||||
|
||||
|
||||
public function get_body() {
|
||||
$template = $this->get_content_template();
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ class OpalEstate_Send_Email_Admin_New_Submitted extends OpalEstate_Abstract_Emai
|
||||
'property_name' => $property->post_title,
|
||||
'property_link' => get_permalink( $property_id ),
|
||||
'property_edit_link' => get_edit_post_link( $property_id ),
|
||||
'current_time' => date( "F j, Y, g:i a" ),
|
||||
'current_time' => date_i18n( opalestate_email_date_format() ),
|
||||
];
|
||||
|
||||
return $this->args;
|
||||
|
||||
@@ -36,7 +36,7 @@ class OpalEstate_Send_Email_Approve extends OpalEstate_Abstract_Email_Template {
|
||||
'submitted_date' => $property->post_date,
|
||||
'property_name' => $property->post_title,
|
||||
'property_link' => get_permalink( $property_id ),
|
||||
'current_time' => date( "F j, Y, g:i a" ),
|
||||
'current_time' => date_i18n( opalestate_email_date_format() ),
|
||||
];
|
||||
|
||||
return $this->args;
|
||||
|
||||
@@ -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 );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -48,7 +48,7 @@ class OpalEstate_Send_Email_New_Submitted extends OpalEstate_Abstract_Email_Temp
|
||||
'submitted_date' => $property->post_date,
|
||||
'property_name' => $property->post_title,
|
||||
'property_link' => get_permalink( $property_id ),
|
||||
'current_time' => date( "F j, Y, g:i a" ),
|
||||
'current_time' => date_i18n( opalestate_email_date_format() ),
|
||||
];
|
||||
|
||||
return $this->args;
|
||||
|
||||
@@ -1,23 +1,10 @@
|
||||
<?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
|
||||
}
|
||||
|
||||
/**
|
||||
* @class OpalEstate_Send_Email_Notification
|
||||
* @class OpalEstate_Send_Email_Request_Reviewing
|
||||
*
|
||||
* @version 1.0
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user