/
mail.php
127 lines (99 loc) · 7.06 KB
/
mail.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<?php
/**
* @link https://www.humhub.org/
* @copyright Copyright (c) 2017 HumHub GmbH & Co. KG
* @license https://www.humhub.com/licences
*/
use yii\helpers\Html;
?>
<!-- START NOTIFICATION/ACTIVITY -->
<tr>
<td align="center" valign="top" class="fix-box">
<!-- start container width 600px -->
<table width="600" align="center" border="0" cellspacing="0" cellpadding="0" class="container" bgcolor="#ffffff"
style="background-color: #ffffff; border-bottom-left-radius: 4px; border-bottom-left-radius: 4px;">
<tr>
<td valign="top">
<!-- start container width 560px -->
<table width="560" align="center" border="0" cellspacing="0" cellpadding="0" class="full-width"
bgcolor="#ffffff" style="background-color:#ffffff;">
<!-- start image and content -->
<tr>
<td valign="top" width="100%">
<!-- start content left -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="left">
<!--start space height -->
<tr>
<td height="20"></td>
</tr>
<!--end space height -->
<!-- start content top-->
<tr>
<td valign="top" align="left">
<table border="0" cellspacing="0" cellpadding="0" align="left">
<tr>
<td valign="top" align="left" style="padding-right:20px;">
<!-- START: USER IMAGE -->
<a href="<?= $originator->createUrl('/user/profile', [], true); ?>">
<img
src="<?= $originator->getProfileImage()->getUrl("", true); ?>"
width="50"
alt=""
style="max-width:50px; display:block !important; border-radius: 4px;"
border="0" hspace="0" vspace="0"/>
</a>
<!-- END: USER IMAGE -->
</td>
<td valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0"
align="left">
<tr>
<td style="font-size: 13px; line-height: 22px; font-family:Open Sans,Arial,Tahoma, Helvetica, sans-serif; color:#555555; font-weight:300; text-align:left; ">
<!-- prevent content overflow -->
<div style="width:480px;overflow:hidden;text-overflow:ellipsis;font-size: 13px; line-height: 22px; font-family:Open Sans,Arial,Tahoma, Helvetica, sans-serif; color:#555555; font-weight:300; text-align:left;">
<!-- content output-->
<?= $content; ?>
<!-- check if activity object has a space -->
<?php if ($record->content->space !== null): ?>
(<?= Yii::t('ActivityModule.views_activityLayoutMail', 'via'); ?>
<a href="<?= $record->content->space->createUrl('/space/space', [], true); ?>"
style="text-decoration: none; color: #555555;">
<?= Html::encode($record->content->space->name); ?></a>)
<?php endif; ?>
<?php if ($url != "") : ?>
<!-- START: CONTENT LINK -->
<span
style="text-decoration: none; color: #7191a8;"> - <a
href="<?= $url; ?>"
style="text-decoration: none; color: #7191a8; "><?= Yii::t('ActivityModule.views_activityLayoutMail', 'see online'); ?></a></span>
<!-- END: CONTENT LINK -->
<?php endif; ?>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<!-- end content top-->
<!--start space height -->
<tr>
<td height="15" class="col-underline"></td>
</tr>
<!--end space height -->
</table>
<!-- end content left -->
</td>
</tr>
<!-- end image and content -->
</table>
<!-- end container width 560px -->
</td>
</tr>
</table>
<!-- end container width 600px -->
</td>
</tr>
<!-- END NOTIFICATION/ACTIVITY -->