PluginProbe
FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS & Online Courses / 2.9.1
FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS & Online Courses v2.9.1
2.10.0 2.10.01 2.9.1 2.9.0 2.8.1 2.8.0 2.7.7 2.7.5 2.7.0 2.6.01 2.6.0 2.5.0 2.4.01 trunk 1.0.90 1.0.91 1.0.92 1.0.93 1.0.94 1.0.95 1.0.96 1.0.97 1.0.98 1.0.99 1.1.0 All 77 releases
fluent-community / app / Views / email / template.php

template.php in FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS & Online Courses 2.9.1, at app/Views/email/template.php

208 lines 8.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php if ( ! defined( 'ABSPATH' ) ) { exit;} // Exit if accessed directly ?>
2 <?php
3 /** @var array|null $logo @var string $bodyContent @var array $footerLines */
4 $fluentCommunityLogo = $logo ?? null;
5 $fluentCommunityBodyContent = $bodyContent ?? '';
6 $fluentCommunityFooterLines = $footerLines ?? [];
7 ?>
8 <!doctype html>
9 <html lang="en">
10 <head>
11 <meta name="viewport" content="width=device-width, initial-scale=1.0">
12 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
13 <style media="all" type="text/css">
14 @media all {
15 .btn-primary table td:hover {
16 background-color: #2B2E33 !important;
17 }
18
19 .btn-primary a:hover {
20 background-color: #2B2E33 !important;
21 border-color: #2B2E33 !important;
22 }
23 }
24 @media only screen and (max-width: 640px) {
25 .main p,
26 .main td,
27 .main span {
28 font-size: 16px !important;
29 }
30
31 .wrapper {
32 padding: 8px !important;
33 }
34
35 .content {
36 padding: 0 !important;
37 }
38
39 .container {
40 padding: 0 !important;
41 padding-top: 8px !important;
42 width: 100% !important;
43 }
44
45 .main {
46 border-left-width: 0 !important;
47 border-radius: 0 !important;
48 border-right-width: 0 !important;
49 }
50
51 .btn table {
52 max-width: 100% !important;
53 width: 100% !important;
54 }
55
56 .btn a {
57 font-size: 16px !important;
58 max-width: 100% !important;
59 width: 100% !important;
60 }
61 }
62 @media all {
63 .ExternalClass {
64 width: 100%;
65 }
66
67 .ExternalClass,
68 .ExternalClass p,
69 .ExternalClass span,
70 .ExternalClass font,
71 .ExternalClass td,
72 .ExternalClass div {
73 line-height: 100%;
74 }
75
76 .apple-link a {
77 font-family: inherit !important;
78 font-size: inherit !important;
79 font-weight: inherit !important;
80 line-height: inherit !important;
81 }
82
83 #MessageViewBody a {
84 color: inherit;
85 text-decoration: none;
86 font-size: inherit;
87 font-family: inherit;
88 font-weight: inherit;
89 line-height: inherit;
90 }
91
92 img.wp-smiley {
93 vertical-align: middle;
94 }
95 }
96
97 img {
98 max-width: 100%;
99 height: auto;
100 }
101
102 .footer p {
103 margin: 0;
104 margin-top: 8px;
105 padding: 0;
106 font-size: 14px;
107 color: #9a9ea6;
108 text-align: center;
109 }
110 .footer p a {
111 color: #9a9ea6;
112 text-decoration: underline;
113 }
114 .footer .powered_by a {
115 color: #8e8e90;
116 }
117
118 .user_contents p {
119 margin: 7px 0;
120 }
121
122 blockquote {
123 margin: 0;
124 padding: 0;
125 border-left: 4px solid #959595;
126 padding-left: 16px;
127 }
128
129 blockquote p {
130 margin: 3px 0;
131 }
132
133 <?php if(\FluentCommunity\App\Services\Helper::isRtl()): ?>
134 .fcom_email {
135 direction: rtl;
136 }
137 <?php endif; ?>
138
139 </style>
140 </head>
141 <body style="font-family: Helvetica, sans-serif; -webkit-font-smoothing: antialiased; font-size: 16px; line-height: 1.3; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; background-color: #f4f5f6; margin: 0; padding: 0;">
142 <table class="fcom_email" role="presentation" border="0" cellpadding="0" cellspacing="0" class="body" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; background-color: #f4f5f6; width: 100%;" width="100%" bgcolor="#f4f5f6">
143 <?php if($fluentCommunityLogo): ?>
144 <tr>
145 <td></td>
146 <td>
147 <a href="<?php echo esc_url(\FluentCommunity\App\Services\Helper::baseUrl()); ?>">
148 <img src="<?php echo esc_url($fluentCommunityLogo['url']); ?>" alt="<?php echo esc_attr($fluentCommunityLogo['alt']); ?>" style="display: block; margin: 0 auto;max-height: 60px; padding: 0; width: auto; margin-top: 12px;">
149 </a>
150 </td>
151 <td></td>
152 </tr>
153 <?php endif; ?>
154 <tr>
155 <td style="font-family: Helvetica, sans-serif; font-size: 16px; vertical-align: top;" valign="top">
156 &nbsp;
157 </td>
158 <td class="container" style="font-family: Helvetica, sans-serif; font-size: 16px; vertical-align: top; max-width: 600px; padding: 0; padding-top: 24px; width: 600px; margin: 0 auto;" width="600" valign="top">
159 <div class="content" style="box-sizing: border-box; display: block; margin: 0 auto; max-width: 600px; padding-bottom: 20px; padding: 0 0 20px;">
160 <table role="presentation" border="0" cellpadding="0" cellspacing="0" class="fcom_email main" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; background: #ffffff; border: 1px solid #eaebed; border-radius: 16px; width: 100%;" width="100%">
161 <tr>
162 <td>
163 <?php if(!empty($headingContent)): ?>
164 <table role="presentation" border="0" cellpadding="0" cellspacing="0" class="main" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%;" width="100%">
165 <tr>
166 <td class="wrapper" style="font-family: Helvetica, sans-serif; font-size: 16px; line-height: 1.4; vertical-align: top; box-sizing: border-box; padding: 20px 20px 10px;" valign="top">
167 <?php \FluentCommunity\App\Services\CustomSanitizer::sanitizeRichText($headingContent, true); ?>
168 </td>
169 </tr>
170 </table>
171 <?php endif; ?>
172
173 <table role="presentation" border="0" cellpadding="0" cellspacing="0" class="main" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%;" width="100%">
174 <tr>
175 <td class="wrapper user_contents" style="font-family: Helvetica, sans-serif; font-size: 16px; line-height: 1.4; vertical-align: top; box-sizing: border-box; padding: 24px;" valign="top">
176 <!--email_content_before-->
177 <?php \FluentCommunity\App\Services\CustomSanitizer::sanitizeRichText($fluentCommunityBodyContent, true); ?>
178 <!--email_content_after-->
179 </td>
180 </tr>
181 </table>
182 </td>
183 </tr>
184 </table>
185 <!--before-footer-lines-->
186 <?php if($fluentCommunityFooterLines): ?>
187 <div class="footer" style="clear: both; padding-top: 24px; padding-bottom: 24px; text-align: center; width: 100%;">
188 <!--before_footer_section-->
189 <table class="fcom_email" role="presentation" border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%;" width="100%">
190 <?php foreach ($fluentCommunityFooterLines as $fluentCommunityLine): ?>
191 <tr>
192 <td class="content-block" style="font-family: Helvetica, sans-serif; vertical-align: top; color: #9a9ea6; font-size: 14px; text-align: center;" valign="top" align="center">
193 <span class="apple-link" style="color: #9a9ea6; font-size: 14px; text-align: center;"><?php \FluentCommunity\App\Services\CustomSanitizer::sanitizeRichText($fluentCommunityLine, true); ?></span>
194 </td>
195 </tr>
196 <?php endforeach; ?>
197 </table>
198 </div>
199 <?php endif; ?>
200 <!--after-footer-lines-->
201 </div>
202 </td>
203 <td style="font-family: Helvetica, sans-serif; font-size: 16px; vertical-align: top;" valign="top">&nbsp;</td>
204 </tr>
205 </table>
206 </body>
207 </html>
208