forked from tildeverse/site
fix json error, and clean up formatting in the php
This commit is contained in:
parent
54c9ba4698
commit
5b11a31799
|
@ -3,11 +3,11 @@
|
||||||
<p>We're working on providing services to <a href="members.php">the tildeverse,</a> a community of GNU+Linux boxes that aim to share the fun and love!</p>
|
<p>We're working on providing services to <a href="members.php">the tildeverse,</a> a community of GNU+Linux boxes that aim to share the fun and love!</p>
|
||||||
<h2>Our Services</h2>
|
<h2>Our Services</h2>
|
||||||
<div class="list-group">
|
<div class="list-group">
|
||||||
<?php foreach (json_decode(file_get_contents("https://git.tilde.team/api/v1/orgs/tildeverse/repos")) ?? [] as $repo): ?>
|
<?php foreach (json_decode(file_get_contents("https://tildegit.org/api/v1/orgs/tildeverse/repos")) ?? [] as $repo): ?>
|
||||||
<div class="list-group-item">
|
<div class="list-group-item">
|
||||||
<h3 class="list-group-item-heading"><a href="<?=$repo->html_url?>"><?=$repo->name?></a></h3>
|
<h3 class="list-group-item-heading"><a href="<?=$repo->html_url?>"><?=$repo->name?></a></h3>
|
||||||
<p class="list-group-item-text"><?=$repo->description?><?php if ($repo->website != ""): ?> - <em><a href="<?=$repo->website?>"><?=$repo->website?></a></em><?php endif; ?></p>
|
<p class="list-group-item-text"><?=$repo->description?><?php if ($repo->website != ""): ?> - <em><a href="<?=$repo->website?>"><?=$repo->website?></a></em><?php endif; ?></p>
|
||||||
</div>
|
</div>
|
||||||
<?php endforeach;?>
|
<?php endforeach;?>
|
||||||
</div>
|
</div>
|
||||||
<?php include 'footer.php'; ?>
|
<?php include 'footer.php'; ?>
|
||||||
|
|
34
members.json
34
members.json
|
@ -1,37 +1,39 @@
|
||||||
{
|
{
|
||||||
"members": [
|
"members": [
|
||||||
{
|
{
|
||||||
|
"description": "thunix offers Shell (SSH) accounts, Web Hosting, Email Accounts, and many other things to people free of charge. ",
|
||||||
|
"link": "https://www.thunix.org",
|
||||||
"name": "thunix",
|
"name": "thunix",
|
||||||
"sysadmins": [
|
"sysadmins": [
|
||||||
[
|
[
|
||||||
"hexhaxtron",
|
"hexhaxtron",
|
||||||
"http://www.thunix.org/"
|
"http://www.thunix.org/"
|
||||||
]
|
],
|
||||||
[
|
[
|
||||||
"mcveri / xkern",
|
"mcveri / xkern",
|
||||||
"https://www.thunix.org/~xkern"
|
"https://www.thunix.org/~xkern"
|
||||||
]
|
],
|
||||||
[
|
[
|
||||||
"krystianbajno",
|
"krystianbajno",
|
||||||
"https://www.thunix.org/~krystianbajno"
|
"https://www.thunix.org/~krystianbajno"
|
||||||
]
|
],
|
||||||
[
|
[
|
||||||
"Bercik",
|
"Bercik",
|
||||||
"https://www.thunix.org/~bercik"
|
"https://www.thunix.org/~bercik"
|
||||||
]
|
],
|
||||||
[
|
[
|
||||||
"amcclure",
|
"amcclure",
|
||||||
"https://www.thunix.org/~amcclure"
|
"https://www.thunix.org/~amcclure"
|
||||||
]
|
],
|
||||||
[
|
[
|
||||||
"Naglfar",
|
"Naglfar",
|
||||||
"https://www.thunix.org/~naglfar"
|
"https://www.thunix.org/~naglfar"
|
||||||
]
|
]
|
||||||
],
|
]
|
||||||
"link": "https://www.thunix.org",
|
|
||||||
"description": "thunix offers Secure Shell (SSH) accounts, Web Hosting, Email Accounts, and many other things to people free of charge. "
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"description": "non-commercial space for teaching, learning, and enjoying the social medium of unix",
|
||||||
|
"link": "https://tilde.team",
|
||||||
"name": "tilde.team",
|
"name": "tilde.team",
|
||||||
"sysadmins": [
|
"sysadmins": [
|
||||||
[
|
[
|
||||||
|
@ -46,31 +48,29 @@
|
||||||
"cmccabe",
|
"cmccabe",
|
||||||
"https://cmccabe.tilde.team/"
|
"https://cmccabe.tilde.team/"
|
||||||
]
|
]
|
||||||
],
|
]
|
||||||
"link": "https://tilde.team",
|
|
||||||
"description": "non-commercial space for teaching, learning, and enjoying the social medium of unix"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"description": "intentional digital community for making art, socializing, and learning",
|
||||||
|
"link": "https://tilde.town",
|
||||||
"name": "tilde.town",
|
"name": "tilde.town",
|
||||||
"sysadmins": [
|
"sysadmins": [
|
||||||
[
|
[
|
||||||
"vilmibm",
|
"vilmibm",
|
||||||
"https://tilde.town/~vilmibm/"
|
"https://tilde.town/~vilmibm/"
|
||||||
]
|
]
|
||||||
],
|
]
|
||||||
"link": "https://tilde.town",
|
|
||||||
"description": "intentional digital community for making art, socializing, and learning"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"description": "basically a social network inside SSH: there is chat, email, forums, games, and lots more.",
|
||||||
|
"link": "https://yourtilde.com",
|
||||||
"name": "yourtilde.com",
|
"name": "yourtilde.com",
|
||||||
"sysadmins": [
|
"sysadmins": [
|
||||||
[
|
[
|
||||||
"deepend",
|
"deepend",
|
||||||
"https://yourtilde.com/~deepend/"
|
"https://yourtilde.com/~deepend/"
|
||||||
]
|
]
|
||||||
],
|
]
|
||||||
"link": "https://yourtilde.com",
|
|
||||||
"description": "basically a social network inside SSH: there is chat, email, forums, games, and lots more."
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,17 +1,17 @@
|
||||||
<?php include 'header.php'; ?>
|
<?php include 'header.php'; ?>
|
||||||
<h1><img style="width:75px;" src="./logos/tildeverse-green.png">tildeverse members</h1>
|
<h1><img style="width:75px;" src="./logos/tildeverse-green.png">tildeverse members</h1>
|
||||||
<div class="list-group">
|
<div class="list-group">
|
||||||
<?php foreach (json_decode(file_get_contents("members.json"))->members ?? [] as $member): ?>
|
<?php foreach (json_decode(file_get_contents("members.json"))->members ?? [] as $member): ?>
|
||||||
<div class="list-group-item">
|
<div class="list-group-item">
|
||||||
<h3 class="list-group-item-heading"><a href="<?=$member->link?>"><?=$member->name?></a></h3>
|
<h3 class="list-group-item-heading"><a href="<?=$member->link?>"><?=$member->name?></a></h3>
|
||||||
<p class="list-group-item-text"><?=$member->description?></p>
|
<p class="list-group-item-text"><?=$member->description?></p>
|
||||||
<h4>Sysadmins</h4>
|
<h4>Sysadmins</h4>
|
||||||
<ul>
|
<ul>
|
||||||
<?php foreach ($member->sysadmins as $admin): ?>
|
<?php foreach ($member->sysadmins as $admin): ?>
|
||||||
<li><a href="<?=$admin[1]?>"><?=$admin[0]?></a></li>
|
<li><a href="<?=$admin[1]?>"><?=$admin[0]?></a></li>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<?php endforeach;?>
|
<?php endforeach;?>
|
||||||
</div>
|
</div>
|
||||||
<?php include 'footer.php'; ?>
|
<?php include 'footer.php'; ?>
|
||||||
|
|
Loading…
Reference in New Issue