summaryrefslogtreecommitdiff
path: root/app/Template/feed/user.php
blob: 7d3c596ab17a9c5a21a213004ef2b9dec67fb8c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title><?= e('Project activities for %s', $this->user->getFullname($user)) ?></title>
    <updated><?= date(DATE_ATOM) ?></updated>
    <link rel="alternate" type="text/html" href="<?= $this->url->base() ?>"/>
    <link rel="self" type="application/atom+xml" href="<?= $this->url->href('FeedController', 'user', ['token' => $user['token']], false, '', true) ?>"/>
    <id><?= $this->url->href('FeedController', 'user', ['token' => $user['token']], false, '', true) ?></id>

    <?php foreach ($events as $event): ?>
        <entry>
            <id><?= $this->url->href('TaskViewController', 'show', ['task_id' => $event['task_id']], false, 'event-'.$event['id'], true) ?></id>
            <link rel="alternate" type="text/html" href="<?= $this->url->href('TaskViewController', 'show', ['task_id' => $event['task_id']], false, 'event-'.$event['id'], true) ?>"/>
            <updated><?= date(DATE_ATOM, $event['date_creation']) ?></updated>
            <published><?= date(DATE_ATOM, $event['date_creation']) ?></published>
            <author>
                <name><?= $event['author'] ?></name>
            </author>
            <title><?= $event['event_title'] ?></title>
            <content type="html"><![CDATA[<?= $event['event_content'] ?>]]></content>
        </entry>
    <?php endforeach ?>

</feed>