site/services.php

26 lines
1.1 KiB
PHP
Raw Normal View History

2018-06-08 21:34:05 +00:00
<?php
$services = [
'gitea' => ['fa' => 'code-fork', 'url' => 'https://git.tilde.team'],
'forum' => ['fa' => 'comment', 'url' => 'https://forum.tilde.team'],
'wiki' => ['fa' => 'book', 'url' => '/wiki/'],
'mastodon' => ['fa' => 'retweet', 'url' => 'https://tilde.zone'],
2018-06-27 00:44:55 +00:00
'chat' => ['fa' => 'comments-o', 'url' => 'https://tilde.chat'],
2018-06-13 18:55:19 +00:00
'webmail' => ['fa' => 'envelope', 'url' => 'https://mail.tilde.team'],
2018-06-08 21:34:05 +00:00
'cryptpad' => ['fa' => 'sticky-note', 'url' => 'https://pad.tilde.team'],
2018-06-15 15:07:45 +00:00
'pastebin' => ['fa' => 'paste', 'url' => 'https://paste.tilde.team/'],
2018-07-11 14:51:43 +00:00
'termbin' => ['fa' => 'terminal', 'url' => 'https://bin.tilde.team/'],
'nullpointer' => ['fa' => 'file-code-o', 'url' => 'https://0x0.tilde.team'],
2018-07-03 03:28:57 +00:00
'gopher' => ['fa' => 'floppy-o', 'url' => 'https://gopher.tilde.team'],
2018-06-08 21:34:05 +00:00
];
$nav = isset($navbar);
unset($navbar);
foreach ($services as $name => $service) { ?>
<?php if ($nav) echo '<li>'; ?>
<a href="<?=$service['url']?>" <?php if (!$nav) echo 'class="btn btn-default"'; ?>><i class="fa fa-<?=$service['fa']?>"></i> ~<?=$name?>~</a>
2018-06-08 21:34:05 +00:00
<?php if ($nav) echo '</li>'; ?>
<?php }