summaryrefslogtreecommitdiff
path: root/app/Template/user_view/share.php
blob: 9ef150e8a8b3b77391c3c7704b52b7ef1fdb9413 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<div class="page-header">
    <h2><?= t('Public access') ?></h2>
</div>

<?php if (! empty($user['token'])): ?>
    <div class="listing">
        <ul class="no-bullet">
            <li><strong><i class="fa fa-rss-square"></i> <?= $this->url->link(t('RSS feed'), 'feed', 'user', array('token' => $user['token']), false, '', '', true) ?></strong></li>
            <li><strong><i class="fa fa-calendar"></i> <?= $this->url->link(t('iCal feed'), 'ical', 'user', array('token' => $user['token']), false, '', '', true) ?></strong></li>
        </ul>
    </div>
    <?= $this->url->link(t('Disable public access'), 'UserViewController', 'share', array('user_id' => $user['id'], 'switch' => 'disable'), true, 'btn btn-red') ?>
<?php else: ?>
    <?= $this->url->link(t('Enable public access'), 'UserViewController', 'share', array('user_id' => $user['id'], 'switch' => 'enable'), true, 'btn btn-blue') ?>
<?php endif ?>