PluginProbe
FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS & Online Courses / 2.11.0
FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS & Online Courses v2.11.0
2.11.0 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 All 78 releases
← All changes | app/Views/email/template.php +29 -9 1.0.992.11.0 View file →
@@ -1,5 +1,11 @@
1 -<?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>
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 +?>
2 8 <!doctype html>
3 9 <html lang="en">
4 10 <head>
5 11 <meta name="viewport" content="width=device-width, initial-scale=1.0">
@@ -81,9 +87,18 @@
81 87 font-family: inherit;
82 88 font-weight: inherit;
83 89 line-height: inherit;
84 90 }
91 +
92 + img.wp-smiley {
93 + vertical-align: middle;
94 + }
85 95 }
96 +
97 + img {
98 + max-width: 100%;
99 + height: auto;
100 + }
86 101
87 102 .footer p {
88 103 margin: 0;
89 104 margin-top: 8px;
@@ -124,14 +139,14 @@
124 139 </style>
125 140 </head>
126 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;">
127 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">
128 - <?php if($logo): ?>
143 + <?php if($fluentCommunityLogo): ?>
129 144 <tr>
130 145 <td></td>
131 146 <td>
132 147 <a href="<?php echo esc_url(\FluentCommunity\App\Services\Helper::baseUrl()); ?>">
133 - <img src="<?php echo esc_url($logo['url']); ?>" alt="<?php echo esc_attr($logo['alt']); ?>" style="display: block; margin: 0 auto;max-height: 60px; padding: 0; width: auto; margin-top: 12px;">
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;">
134 149 </a>
135 150 </td>
136 151 <td></td>
137 152 </tr>
@@ -141,9 +156,9 @@
141 156 &nbsp;
142 157 </td>
143 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">
144 159 <div class="content" style="box-sizing: border-box; display: block; margin: 0 auto; max-width: 600px; padding-bottom: 20px; padding: 0 0 20px;">
145 - <table role="presentation" border="0" cellpadding="0" cellspacing="0" class="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%">
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%">
146 161 <tr>
147 162 <td>
148 163 <?php if(!empty($headingContent)): ?>
149 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%">
@@ -157,9 +172,11 @@
157 172
158 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%">
159 174 <tr>
160 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">
161 - <?php \FluentCommunity\App\Services\CustomSanitizer::sanitizeRichText($bodyContent, true); ?>
176 +<!--email_content_before-->
177 + <?php \FluentCommunity\App\Services\CustomSanitizer::sanitizeRichText($fluentCommunityBodyContent, true); ?>
178 +<!--email_content_after-->
162 179 </td>
163 180 </tr>
164 181 </table>
165 182 </td>
@@ -164,15 +181,17 @@
164 181 </table>
165 182 </td>
166 183 </tr>
167 184 </table>
168 - <?php if($footerLines): ?>
185 + <!--before-footer-lines-->
186 + <?php if($fluentCommunityFooterLines): ?>
169 187 <div class="footer" style="clear: both; padding-top: 24px; padding-bottom: 24px; text-align: center; width: 100%;">
170 - <table role="presentation" border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%;" width="100%">
171 - <?php foreach ($footerLines as $line): ?>
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): ?>
172 191 <tr>
173 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">
174 - <span class="apple-link" style="color: #9a9ea6; font-size: 14px; text-align: center;"><?php \FluentCommunity\App\Services\CustomSanitizer::sanitizeRichText($line, true); ?></span>
193 + <span class="apple-link" style="color: #9a9ea6; font-size: 14px; text-align: center;"><?php \FluentCommunity\App\Services\CustomSanitizer::sanitizeRichText($fluentCommunityLine, true); ?></span>
175 194 </td>
176 195 </tr>
177 196 <?php endforeach; ?>
178 197 </table>
@@ -177,8 +196,9 @@
177 196 <?php endforeach; ?>
178 197 </table>
179 198 </div>
180 199 <?php endif; ?>
200 + <!--after-footer-lines-->
181 201 </div>
182 202 </td>
183 203 <td style="font-family: Helvetica, sans-serif; font-size: 16px; vertical-align: top;" valign="top">&nbsp;</td>
184 204 </tr>