PluginProbe
Booking Manager – Sync WP Booking Calendar – Import Events, Export Bookings to ICS Calendar / 2.1.22
Booking Manager – Sync WP Booking Calendar – Import Events, Export Bookings to ICS Calendar v2.1.22
2.1.22 2.1.21 2.1.20 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 trunk 1.1 2.0 2.0.1 2.0.10.2 2.0.11 2.0.12 2.0.13 2.0.14 2.0.15 2.0.16 2.0.17 2.0.18 2.0.2 2.0.20 2.0.21 All 56 releases
booking-manager / core / any / emails_tpl / plain-html-tpl.php

plain-html-tpl.php in Booking Manager – Sync WP Booking Calendar – Import Events, Export Bookings to ICS Calendar 2.1.22, at core/any/emails_tpl/plain-html-tpl.php

82 lines 3.8 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://oplugins.com/
8 * @email [email protected]
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 wpbm_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>
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 </head>
46 <body style="Margin:0;padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;min-width:100%;<?php echo $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 $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 $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