| 1 |
<?php /** |
| 2 |
* @version 1.0 |
| 3 |
* @package: Emails |
| 4 |
* @category: Templates |
| 5 |
* @author wpdevelop |
| 6 |
* |
| 7 |
* @web-site https://wpbookingcalendar.com/ |
| 8 |
* @email info@wpbookingcalendar.com |
| 9 |
* |
| 10 |
* @modified 2015-06-16 |
| 11 |
*/ |
| 12 |
|
| 13 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly |
| 14 |
|
| 15 |
|
| 16 |
/** |
| 17 |
* get email template |
| 18 |
* |
| 19 |
* @param array $fields_values |
| 20 |
*/ |
| 21 |
function wpbc_email_template_plain_text( $fields_values ) { |
| 22 |
|
| 23 |
ob_start(); |
| 24 |
|
| 25 |
if ( ! empty($fields_values['header_content'] ) ) { |
| 26 |
|
| 27 |
echo wp_kses_post( wptexturize( $fields_values['header_content'] ) ) . "\n\n"; //Header |
| 28 |
} |
| 29 |
|
| 30 |
echo ( wp_kses_post( wptexturize( $fields_values['content'] ) ) ); //Content |
| 31 |
|
| 32 |
if ( ! empty( $fields_values['footer_content'] ) ) { |
| 33 |
|
| 34 |
echo "\n\n" . wp_kses_post( wptexturize( $fields_values['footer_content'] ) ); //Footer |
| 35 |
} |
| 36 |
return ob_get_clean(); // Return this email content |
| 37 |
} |
| 38 |
|