| @@ -1,5 +1,14 @@ | ||
| 1 | -<?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?> | |
| 1 | +<?php if ( ! defined( 'ABSPATH' ) ) { exit;} // Exit if accessed directly ?> | |
| 2 | +<?php | |
| 3 | +/** @var string $permalink @var string $user_avatar @var string $user_name @var string $linkColor @var string $post_content @var string $content */ | |
| 4 | +$fluentCommunityPermalink = $permalink ?? ''; | |
| 5 | +$fluentCommunityUserAvatar = $user_avatar ?? ''; | |
| 6 | +$fluentCommunityUserName = $user_name ?? ''; | |
| 7 | +$fluentCommunityLinkColor = $linkColor ?? ''; | |
| 8 | +$fluentCommunityPostContent = $post_content ?? ''; | |
| 9 | +$fluentCommunityContent = $content ?? ''; | |
| 10 | +?> | |
| 2 | 11 | <table width="100%" style="margin-bottom: 30px;" cellspacing="0" cellpadding="0" border="0"> |
| 3 | 12 | <tr> |
| 4 | 13 | <td> |
| 5 | 14 | <table cellspacing="0" cellpadding="0" border="0"> |
| @@ -4,17 +13,17 @@ | ||
| 4 | 13 | <td> |
| 5 | 14 | <table cellspacing="0" cellpadding="0" border="0"> |
| 6 | 15 | <tr> |
| 7 | 16 | <td valign="top" style="border-radius: 50%; padding: 4px; vertical-align: top; height: 32px; width: 32px;"> |
| 8 | - <a href="<?php echo esc_url($permalink); ?>"> | |
| 9 | - <img alt="" src="<?php echo esc_url($user_avatar); ?>" height="32" width="32" style="border-radius: 50%; height: 32px; width: 32px; display: block;"> | |
| 17 | + <a href="<?php echo esc_url($fluentCommunityPermalink); ?>"> | |
| 18 | + <img alt="" src="<?php echo esc_url($fluentCommunityUserAvatar); ?>" height="32" width="32" style="border-radius: 50%; height: 32px; width: 32px; display: block;"> | |
| 10 | 19 | </a> |
| 11 | 20 | </td> |
| 12 | 21 | <td style="font-family: Arial, sans-serif; font-size: 16px;color: #333; padding-left: 5px; vertical-align: middle;"> |
| 13 | - <span style="font-weight: bold;"><?php echo esc_html($user_name); ?></span> | |
| 22 | + <span style="font-weight: bold;"><?php echo esc_html($fluentCommunityUserName); ?></span> | |
| 14 | 23 | <span><?php esc_html_e('commented on:', 'fluent-community'); ?></span> |
| 15 | - <a target="_blank" style="color: <?php echo esc_attr($linkColor); ?>; text-decoration: underline;" href="<?php echo esc_url($permalink); ?>"> | |
| 16 | - <?php echo wp_kses_post($post_content); ?> | |
| 24 | + <a target="_blank" style="color: <?php echo esc_attr($fluentCommunityLinkColor); ?>; text-decoration: underline;" href="<?php echo esc_url($fluentCommunityPermalink); ?>"> | |
| 25 | + <?php echo wp_kses_post($fluentCommunityPostContent); ?> | |
| 17 | 26 | </a> |
| 18 | 27 | </td> |
| 19 | 28 | </tr> |
| 20 | 29 | </table> |
| @@ -25,9 +34,9 @@ | ||
| 25 | 34 | <table style="background-color: #f7f7f7; margin: 10px 0" bgcolor="#f7f7f7" cellspacing="0" cellpadding="0" border="0" |
| 26 | 35 | width="100%"> |
| 27 | 36 | <tr> |
| 28 | 37 | <td style="padding: 7px 20px;"> |
| 29 | - <?php \FluentCommunity\App\Services\CustomSanitizer::sanitizeRichText($content, true); ?> | |
| 38 | + <?php \FluentCommunity\App\Services\CustomSanitizer::sanitizeRichText($fluentCommunityContent, true); ?> | |
| 30 | 39 | </td> |
| 31 | 40 | </tr> |
| 32 | 41 | </table> |
| 33 | 42 | </td> |