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