53 lines
1.3 KiB
PHP
53 lines
1.3 KiB
PHP
<?php
|
|
function faclass($icon) {
|
|
return "fa fa-fw fa-$icon";
|
|
}
|
|
$links = [
|
|
"email" => [
|
|
"href" => "mailto:ben@tilde.team",
|
|
"icon" => "envelope"
|
|
],
|
|
"xmpp" => [
|
|
"href" => "xmpp:ben@hmm.st",
|
|
"icon" => "xmpp"
|
|
],
|
|
"pgp pubkey" => [
|
|
"href" => "benharri.asc",
|
|
"icon" => "lock"
|
|
],
|
|
"github" => [
|
|
"href" => "https://github.com/benharri",
|
|
"icon" => "github"
|
|
],
|
|
"tildegit" => [
|
|
"href" => "https://tildegit.org/ben",
|
|
"icon" => "gitea"
|
|
],
|
|
"stack overflow" => [
|
|
"href" => "https://stackoverflow.com/users/6352706/ben-harris",
|
|
"icon" => "stack-overflow"
|
|
],
|
|
"my personal site" => [
|
|
"href" => "https://benharr.is",
|
|
"icon" => "globe"
|
|
],
|
|
"mastodon" => [
|
|
"href" => "https://tilde.zone/~ben",
|
|
"icon" => "mastodon-alt",
|
|
"extra_attrs" => 'rel="me"'
|
|
],
|
|
"pleroma" => [
|
|
"href" => "https://pleroma.tilde.zone/ben",
|
|
"icon" => "pleroma",
|
|
],
|
|
"twitter" => [
|
|
"href" => "https://twitter.com/nebsirrah",
|
|
"icon" => "twitter",
|
|
],
|
|
];
|
|
|
|
foreach ($links as $name => $link): ?>
|
|
~> <a <?=$link["extra_attrs"] ?? ""?> href="<?=$link["href"]?>">
|
|
<i class="<?=faclass($link["icon"])?>"></i> <?=$name?></a><br>
|
|
<?php endforeach; ?>
|