aboutsummaryrefslogtreecommitdiff
path: root/social/index.php
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-04-12 15:16:59 +0200
committerMinteck <contact@minteck.org>2022-04-12 15:16:59 +0200
commit62c7e1a74b35ef6d054fdf015d60ba52dc10eb14 (patch)
treedeb80c4e2e8036f8af1b21120fc8200c18e4c573 /social/index.php
parent6973bf083d2c065972284bc93a1e37c35ecd2205 (diff)
downloadcloudsdale-62c7e1a74b35ef6d054fdf015d60ba52dc10eb14.tar.gz
cloudsdale-62c7e1a74b35ef6d054fdf015d60ba52dc10eb14.tar.bz2
cloudsdale-62c7e1a74b35ef6d054fdf015d60ba52dc10eb14.zip
Social page + additional admin options + patch Parsedown
Diffstat (limited to 'social/index.php')
-rw-r--r--social/index.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/social/index.php b/social/index.php
new file mode 100644
index 0000000..a66765f
--- /dev/null
+++ b/social/index.php
@@ -0,0 +1,24 @@
+<?php $title = "Social"; require_once $_SERVER["DOCUMENT_ROOT"] . "/includes/gui/header.php"; ?>
+
+<div class="container">
+ <br>
+ <h1>Social</h1>
+ <br>
+
+ <div class="row">
+ <?php foreach (json_decode(file_get_contents($_SERVER["DOCUMENT_ROOT"] . "/data/contact.json"), true) as $project): ?>
+ <div class="col-lg-4">
+ <div class="card stylized-card">
+ <div class="card-body">
+ <img class="stylized-card-icon" src="<?= $project["icon"] ?>" alt="">
+ <h4 class="card-title"><?= $project["name"] ?></h4>
+ <p class="card-text"><?= $project["link"] ?></p>
+ <a href="<?= $project["link"] ?>" target="_blank" class="btn btn-outline-light">View More</a>
+ </div>
+ </div>
+ </div>
+ <?php endforeach; ?>
+ </div>
+</div>
+
+<?php require_once $_SERVER["DOCUMENT_ROOT"] . "/includes/gui/footer.php"; ?> \ No newline at end of file