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 +12 -6 2.7.02.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">
@@ -133,14 +139,14 @@
133 139 </style>
134 140 </head>
135 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;">
136 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">
137 - <?php if($logo): ?>
143 + <?php if($fluentCommunityLogo): ?>
138 144 <tr>
139 145 <td></td>
140 146 <td>
141 147 <a href="<?php echo esc_url(\FluentCommunity\App\Services\Helper::baseUrl()); ?>">
142 - <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;">
143 149 </a>
144 150 </td>
145 151 <td></td>
146 152 </tr>
@@ -167,9 +173,9 @@
167 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%">
168 174 <tr>
169 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">
170 176 <!--email_content_before-->
171 - <?php \FluentCommunity\App\Services\CustomSanitizer::sanitizeRichText($bodyContent, true); ?>
177 + <?php \FluentCommunity\App\Services\CustomSanitizer::sanitizeRichText($fluentCommunityBodyContent, true); ?>
172 178 <!--email_content_after-->
173 179 </td>
174 180 </tr>
175 181 </table>
@@ -176,13 +182,13 @@
176 182 </td>
177 183 </tr>
178 184 </table>
179 185 <!--before-footer-lines-->
180 - <?php if($footerLines): ?>
186 + <?php if($fluentCommunityFooterLines): ?>
181 187 <div class="footer" style="clear: both; padding-top: 24px; padding-bottom: 24px; text-align: center; width: 100%;">
182 188 <!--before_footer_section-->
183 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%">
184 - <?php foreach ($footerLines as $fluentCommunityLine): ?>
190 + <?php foreach ($fluentCommunityFooterLines as $fluentCommunityLine): ?>
185 191 <tr>
186 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">
187 193 <span class="apple-link" style="color: #9a9ea6; font-size: 14px; text-align: center;"><?php \FluentCommunity\App\Services\CustomSanitizer::sanitizeRichText($fluentCommunityLine, true); ?></span>
188 194 </td>