PluginProbe
Booking Calendar / 10.11
Booking Calendar v10.11
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 / standard-text-tpl.php

standard-text-tpl.php in Booking Calendar 10.11, at core/any/emails_tpl/standard-text-tpl.php

42 lines 1.2 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_standard_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";
28
29 echo "----------------------------------------------------------------------\n\n";
30 }
31
32 echo ( wp_kses_post( wptexturize( $fields_values['content'] ) ) );
33
34 if ( ! empty( $fields_values['footer_content'] ) ) {
35
36 echo "\n---------------------------------------------------------------------\n\n";
37
38 echo ( wp_kses_post( wptexturize( $fields_values['footer_content'] ) ) );
39 }
40 return ob_get_clean(); // Return this email content
41 }
42