activity.box.php
1.39 KB
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
<?php
/* Copyright (c) 2014, Joas Schilling nickvergessen@owncloud.com
* This file is licensed under the Affero General Public License version 3
* or later. See the COPYING-README file. */
/** @var $l OC_L10N */
/** @var $_ array */
?>
<div class="box">
<div class="messagecontainer">
<div class="activity-icon <?php p($_['event']['typeicon']) ?><?php if ($_['event']['typeicon']): ?> svg<?php endif; ?>"></div>
<div class="activitysubject">
<?php if ($_['event']['link']): ?><a href="<?php p($_['event']['link']) ?>"><?php endif ?>
<?php print_unescaped($_['event']['subjectformatted']['markup']['trimmed']) ?>
<?php if ($_['event']['link']): ?></a><?php endif; ?>
</div>
<span class="activitytime tooltip" title="<?php p($_['formattedDate']) ?>">
<?php p($_['formattedTimestamp']) ?>
</span>
<?php if ($_['event']['message']): ?>
<div class="activitymessage">
<?php p($_['event']['messageformatted']['markup']['trimmed']) ?>
</div>
<?php endif ?>
<?php if (!empty($_['previewImageLink'])): ?>
<?php if ($_['previewLink']): ?><a href="<?php p($_['previewLink']) ?>"><?php endif ?>
<img class="preview<?php if (!empty($_['previewLinkIsDir'])): ?> preview-dir-icon<?php endif ?>" src="<?php p($_['previewImageLink']) ?>" alt="<?php p($_['event']['subjectformatted']['trimmed']) ?>"/>
<?php if ($_['previewLink']): ?></a><?php endif; ?>
<?php endif ?>
</div>
</div>