PluginProbe
Booking Calendar / 11.6
Booking Calendar v11.6
11.8.3 11.8.2 11.8.1 11.8 11.7 11.6.1 11.6 11.5 11.4.3 11.4.2 11.4.1 11.4 11.3 11.2.1 11.2 11.1 11.0 10.15.7 10.15.6 10.1.3 10.10 10.10.1 10.10.2 10.11 10.11.2 All 203 releases
booking / core / any / emails_tpl / plain-text-tpl.php

plain-text-tpl.php in Booking Calendar 11.6, at core/any/emails_tpl/plain-text-tpl.php

38 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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