PluginProbe
Booking Calendar / 11.0
Booking Calendar v11.0
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-html-tpl.php

plain-html-tpl.php in Booking Calendar 11.0, at core/any/emails_tpl/plain-html-tpl.php

82 lines 3.9 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_html( $fields_values ) {
22 ob_start();
23
24 // $base_color = 'background-color:' . ( empty( $fields_values['base_color'] ) ? '#557da1' : $fields_values['base_color'] ) . ';';
25 // $background_color = 'background-color:' . ( empty( $fields_values['background_color'] ) ? '#FDFDFD' : $fields_values['background_color'] ) . ';';
26 // $body_color = 'background-color:' . ( empty( $fields_values['body_color'] ) ? '#F5F5F5' : $fields_values['body_color'] ) . ';';
27 // $text_color = 'color:' . ( empty( $fields_values['text_color'] ) ? '#333333' : $fields_values['text_color'] ) . ';';
28
29 $base_color = '';
30 $background_color = '';
31 $body_color = '';
32 $text_color = '';
33
34 ////////////////////////////////////////////////////////////////////////////////
35 // HTML Email Template
36 ////////////////////////////////////////////////////////////////////////////////
37 ?>
38 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
39 <html xmlns="http://www.w3.org/1999/xhtml"> <!-- dir="<?php echo is_rtl() ? 'rtl' : 'ltr'?>" -->
40 <head><?php /* //FixIn: 9.3.1.3 ?>
41 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
42 <meta http-equiv="X-UA-Compatible" content="IE=edge" />
43 <meta name="viewport" content="width=device-width, initial-scale=1.0">
44 <title></title>
45 <?php */ ?></head>
46 <body style="Margin:0;padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;min-width:100%;<?php echo esc_attr( $body_color ); ?>" <?php echo is_rtl() ? 'rightmargin="0"' : 'leftmargin="0"'; ?> >
47 <div class="wrapper" style="table-layout:fixed;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;Margin:0;padding-top:10px;padding-bottom:10px;padding-right:10px;padding-left:10px;<?php echo esc_attr( $body_color ); ?>" <?php echo is_rtl() ? 'dir="rtl"' : 'dir="ltr"'?> >
48 <?php
49
50 if ( ! empty( $fields_values['header_content'] ) ) {
51 ?><p style="Margin:0;Margin-bottom:10px;font-family:Helvetica, Roboto, Arial, sans-serif;line-height:150%;font-size:14px;" ><?php
52
53 echo ( wp_kses_post( wptexturize( $fields_values['header_content'] ) ) );
54
55 ?></p><?php
56 }
57
58 ?><p style="Margin:0;font-size:14px;Margin-bottom:10px;font-family:Helvetica, Roboto, Arial, sans-serif;line-height:150%;<?php echo esc_attr( $text_color ); ?>" ><?php
59
60 $h2_headers = array('<p class="h2" style="Margin-bottom:10px;font-family:Helvetica, Roboto, Arial, sans-serif;display:block;font-size:18px;font-weight:bold;line-height:130%;Margin:16px 0 8px;text-align:left;color:#557da1;" >', '</p>');
61 $fields_values['content'] = str_replace( array( '<h2>', '</h2>' ), $h2_headers, $fields_values['content'] );
62
63 echo ( wp_kses_post( wptexturize( $fields_values['content'] ) ) );
64
65 ?></p><?php
66
67 if ( ! empty( $fields_values['footer_content'] ) ) {
68
69 ?><p style="Margin:0;Margin-bottom:10px;font-family:Helvetica, Roboto, Arial, sans-serif;line-height:150%;font-size:11px;" ><?php
70
71 echo ( wp_kses_post( wptexturize( $fields_values['footer_content'] ) ) );
72
73 ?></p><?php
74 }
75 ?>
76 </div>
77 </body>
78 <?php
79
80 return ob_get_clean(); // Return this email content
81 }
82