PluginProbe
FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS & Online Courses / 2.7.7
FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS & Online Courses v2.7.7
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 1.1.0 All 77 releases
fluent-community / app / Views / email / Default / _user_post_content.php

_user_post_content.php in FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS & Online Courses 2.7.7, at app/Views/email/Default/_user_post_content.php

69 lines 4.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly
3 }
4 /**
5 * @var string $permalink
6 * @var string $user_avatar
7 * @var string $user_name
8 * @var string $community_name
9 * @var string $content
10 * @var string $linkColor
11 * @var string $space_name
12 * @var string $title
13 */
14
15 $fluentCommunityLinkColor = !empty($linkColor) ? $linkColor : '#1f3349';
16 $fluentCommunitySpaceName = $space_name ?? '';
17 $fluentCommunityTitle = $title ?? '';
18 ?>
19 <table width="100%" cellspacing="0" cellpadding="0" border="0">
20 <tr>
21 <td style="font-family: Arial, sans-serif; font-size: 16px; line-height: 1.4; color: #333;">
22 <table style="margin-bottom: 20px;" cellspacing="0" cellpadding="0" border="0" width="100%">
23 <tr>
24 <td>
25 <table style="margin-bottom: 10px;" cellspacing="0" cellpadding="0" border="0">
26 <tr>
27 <td valign="top" style="border-radius: 50%; padding: 4px; vertical-align: top; height: 32px; width: 32px;">
28 <a href="<?php echo esc_url($permalink); ?>">
29 <img alt="" src="<?php echo esc_url($user_avatar); ?>" height="32" width="32" style="border-radius: 50%; height: 32px; width: 32px; display: block;">
30 </a>
31 </td>
32 <td style="font-family: Arial, sans-serif; font-size: 16px;color: #333; padding: 0 5px; vertical-align: middle;">
33 <a style="text-decoration: none; color: #333;" href="<?php echo esc_url($permalink); ?>">
34 <span style="font-weight: bold;"><?php echo esc_html($user_name); ?></span>
35 </a>
36 <?php if($fluentCommunitySpaceName): ?>
37 <?php /* translators: %s is replaced by the title of the space */ ?>
38 <span style="font-family: Arial, sans-serif; font-size: 12px; font-weight: normal; margin: 0;"><?php echo esc_html(sprintf(__('in %s', 'fluent-community'), $fluentCommunitySpaceName)); ?></span>
39 <?php endif; ?>
40
41 <?php if(!empty($timestamp)): ?>
42 <?php /* translators: %s is replaced by the time ago */ ?>
43 <p style="font-family: Arial, sans-serif; font-size: 12px; font-weight: normal; margin: 0; margin-bottom: 0px;"><?php echo esc_html(sprintf(__('%s ago', 'fluent-community'), $timestamp)); ?></p>
44 <?php endif; ?>
45 </td>
46 </tr>
47 </table>
48 </td>
49 </tr>
50 <tr>
51 <td style="padding: 0; line-height: 1.4;font-family: Helvetica, sans-serif;">
52 <?php if($fluentCommunityTitle): ?>
53 <a href="<?php echo esc_url($permalink); ?>" style="color: <?php echo esc_attr($fluentCommunityLinkColor); ?>; display: block; overflow: hidden; margin: 0; line-height: 1.2; padding: 0; text-decoration: none;">
54 <h2 style="color: <?php echo esc_attr($fluentCommunityLinkColor); ?>; display: block; font-size: 20px; overflow: hidden; margin: 0 0 10px 0; padding: 0; text-decoration: none;"><?php echo esc_html($fluentCommunityTitle); ?></h2>
55 </a>
56 <?php endif; ?>
57 <?php \FluentCommunity\App\Services\CustomSanitizer::sanitizeRichText($content, true); ?>
58 <?php if(!empty($show_read_more)): ?>
59 <a href="<?php echo esc_url($permalink); ?>" style="color: <?php echo esc_attr($fluentCommunityLinkColor); ?>; text-decoration: none; font-weight: bold; font-size: 14px;">
60 <?php echo esc_html__('...read more', 'fluent-community'); ?>
61 </a>
62 <?php endif; ?>
63 </td>
64 </tr>
65 </table>
66 </td>
67 </tr>
68 </table>
69