PluginProbe
FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS & Online Courses / 2.10.0
FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS & Online Courses v2.10.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 +19 -8 2.4.012.10.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">
@@ -82,12 +88,17 @@
82 88 font-weight: inherit;
83 89 line-height: inherit;
84 90 }
85 91
86 - img {
87 - max-width: 100%;
92 + img.wp-smiley {
93 + vertical-align: middle;
88 94 }
89 95 }
96 +
97 + img {
98 + max-width: 100%;
99 + height: auto;
100 + }
90 101
91 102 .footer p {
92 103 margin: 0;
93 104 margin-top: 8px;
@@ -128,14 +139,14 @@
128 139 </style>
129 140 </head>
130 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;">
131 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">
132 - <?php if($logo): ?>
143 + <?php if($fluentCommunityLogo): ?>
133 144 <tr>
134 145 <td></td>
135 146 <td>
136 147 <a href="<?php echo esc_url(\FluentCommunity\App\Services\Helper::baseUrl()); ?>">
137 - <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;">
138 149 </a>
139 150 </td>
140 151 <td></td>
141 152 </tr>
@@ -162,9 +173,9 @@
162 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%">
163 174 <tr>
164 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">
165 176 <!--email_content_before-->
166 - <?php \FluentCommunity\App\Services\CustomSanitizer::sanitizeRichText($bodyContent, true); ?>
177 + <?php \FluentCommunity\App\Services\CustomSanitizer::sanitizeRichText($fluentCommunityBodyContent, true); ?>
167 178 <!--email_content_after-->
168 179 </td>
169 180 </tr>
170 181 </table>
@@ -171,13 +182,13 @@
171 182 </td>
172 183 </tr>
173 184 </table>
174 185 <!--before-footer-lines-->
175 - <?php if($footerLines): ?>
186 + <?php if($fluentCommunityFooterLines): ?>
176 187 <div class="footer" style="clear: both; padding-top: 24px; padding-bottom: 24px; text-align: center; width: 100%;">
177 188 <!--before_footer_section-->
178 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%">
179 - <?php foreach ($footerLines as $fluentCommunityLine): ?>
190 + <?php foreach ($fluentCommunityFooterLines as $fluentCommunityLine): ?>
180 191 <tr>
181 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">
182 193 <span class="apple-link" style="color: #9a9ea6; font-size: 14px; text-align: center;"><?php \FluentCommunity\App\Services\CustomSanitizer::sanitizeRichText($fluentCommunityLine, true); ?></span>
183 194 </td>