forked from tildeverse/site
fix json error, and clean up formatting in the php
This commit is contained in:
parent
54c9ba4698
commit
5b11a31799
|
@ -1,3 +1,3 @@
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
10
header.php
10
header.php
|
@ -1,10 +1,10 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>tildeverse</title>
|
<title>tildeverse</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<link rel="stylesheet" href="https://tilde.team/css/hacker.css">
|
<link rel="stylesheet" href="https://tilde.team/css/hacker.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
|
22
index.php
22
index.php
|
@ -1,13 +1,13 @@
|
||||||
<?php include 'header.php'; ?>
|
<?php include 'header.php'; ?>
|
||||||
<h1><img style="width:75px;" src="./logos/tildeverse-green.png">tildeverse.org</h1>
|
<h1><img style="width:75px;" src="./logos/tildeverse-green.png">tildeverse.org</h1>
|
||||||
<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'; ?>
|
||||||
|
|
148
members.json
148
members.json
|
@ -1,76 +1,76 @@
|
||||||
{
|
{
|
||||||
"members": [
|
"members": [
|
||||||
{
|
{
|
||||||
"name": "thunix",
|
"description": "thunix offers Shell (SSH) accounts, Web Hosting, Email Accounts, and many other things to people free of charge. ",
|
||||||
"sysadmins": [
|
"link": "https://www.thunix.org",
|
||||||
[
|
"name": "thunix",
|
||||||
"hexhaxtron",
|
"sysadmins": [
|
||||||
"http://www.thunix.org/"
|
[
|
||||||
]
|
"hexhaxtron",
|
||||||
[
|
"http://www.thunix.org/"
|
||||||
"mcveri / xkern",
|
],
|
||||||
"https://www.thunix.org/~xkern"
|
[
|
||||||
]
|
"mcveri / xkern",
|
||||||
[
|
"https://www.thunix.org/~xkern"
|
||||||
"krystianbajno",
|
],
|
||||||
"https://www.thunix.org/~krystianbajno"
|
[
|
||||||
]
|
"krystianbajno",
|
||||||
[
|
"https://www.thunix.org/~krystianbajno"
|
||||||
"Bercik",
|
],
|
||||||
"https://www.thunix.org/~bercik"
|
[
|
||||||
]
|
"Bercik",
|
||||||
[
|
"https://www.thunix.org/~bercik"
|
||||||
"amcclure",
|
],
|
||||||
"https://www.thunix.org/~amcclure"
|
[
|
||||||
]
|
"amcclure",
|
||||||
[
|
"https://www.thunix.org/~amcclure"
|
||||||
"Naglfar",
|
],
|
||||||
"https://www.thunix.org/~naglfar"
|
[
|
||||||
]
|
"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. "
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "tilde.team",
|
"description": "non-commercial space for teaching, learning, and enjoying the social medium of unix",
|
||||||
"sysadmins": [
|
"link": "https://tilde.team",
|
||||||
[
|
"name": "tilde.team",
|
||||||
"ben",
|
"sysadmins": [
|
||||||
"https://ben.tilde.team/"
|
[
|
||||||
],
|
"ben",
|
||||||
[
|
"https://ben.tilde.team/"
|
||||||
"khuxkm",
|
],
|
||||||
"https://khuxkm.tilde.team/"
|
[
|
||||||
],
|
"khuxkm",
|
||||||
[
|
"https://khuxkm.tilde.team/"
|
||||||
"cmccabe",
|
],
|
||||||
"https://cmccabe.tilde.team/"
|
[
|
||||||
]
|
"cmccabe",
|
||||||
],
|
"https://cmccabe.tilde.team/"
|
||||||
"link": "https://tilde.team",
|
]
|
||||||
"description": "non-commercial space for teaching, learning, and enjoying the social medium of unix"
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "tilde.town",
|
"description": "intentional digital community for making art, socializing, and learning",
|
||||||
"sysadmins": [
|
"link": "https://tilde.town",
|
||||||
[
|
"name": "tilde.town",
|
||||||
"vilmibm",
|
"sysadmins": [
|
||||||
"https://tilde.town/~vilmibm/"
|
[
|
||||||
]
|
"vilmibm",
|
||||||
],
|
"https://tilde.town/~vilmibm/"
|
||||||
"link": "https://tilde.town",
|
]
|
||||||
"description": "intentional digital community for making art, socializing, and learning"
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "yourtilde.com",
|
"description": "basically a social network inside SSH: there is chat, email, forums, games, and lots more.",
|
||||||
"sysadmins": [
|
"link": "https://yourtilde.com",
|
||||||
[
|
"name": "yourtilde.com",
|
||||||
"deepend",
|
"sysadmins": [
|
||||||
"https://yourtilde.com/~deepend/"
|
[
|
||||||
]
|
"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."
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
30
members.php
30
members.php
|
@ -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