Work on more revamping of the Minecraft section
This commit is contained in:
@@ -5,22 +5,16 @@
|
||||
<link href="/styles/buttons.css" type="text/css" rel="stylesheet" />
|
||||
<link href="/minecraft/styles/styles.css" type="text/css" rel="stylesheet" />
|
||||
<link rel="shortcut icon" href="/favicon.ico" />
|
||||
<title>9iron</title>
|
||||
<title>9iron - Modded Minecraft</title>
|
||||
</head>
|
||||
<body>
|
||||
<?php include $_SERVER['DOCUMENT_ROOT'].'/src/common-header.php';?>
|
||||
<div class="content">
|
||||
<div class="section">
|
||||
<h1>Modded Minecraft</h1>
|
||||
<p>It's been a go-to of ours for a while. Ongoing and historical modpacks are listed here for your convenience and participation.</p>
|
||||
<p>At-a-glance information is provided here for the various packs we play.</p>
|
||||
<div class="iconbuttoncontainer">
|
||||
<a href="/minecraft/setup" class="iconbutton">
|
||||
<i class="fa fa-play"></i>
|
||||
<h1>Setup</h1>
|
||||
<p>Set up an entire modded Minecraft environment</p>
|
||||
</a>
|
||||
</div>
|
||||
<a href="/minecraft/setup" class="startbutton">
|
||||
<i class="fa fa-play"></i>
|
||||
<p>Confused? Click here to get started</p>
|
||||
</a>
|
||||
</div>
|
||||
<?php
|
||||
# Define a pack card generator function
|
||||
@@ -72,14 +66,14 @@ if (!empty($packs)) {
|
||||
# We have a valid current pack, remove it from the list and print it upfront
|
||||
$currentpack = readlink("packs/current");
|
||||
$packs = array_diff($packs, ["$currentpack", "current"]);
|
||||
echo '<h1>Current Modpack</h1>';
|
||||
echo '<div class="currentcontainer"><h1>Current Modpack</h1>';
|
||||
echo_pack($currentpack);
|
||||
# If there's a server IP name along with that, print that out too
|
||||
if (file_exists("packs/currentip")) {
|
||||
$ip = file_get_contents("packs/currentip");
|
||||
echo "<p><code class=\"bigcode\">$ip</code></p>";
|
||||
}
|
||||
echo '</div><div class="section">';
|
||||
echo '</div></div><div class="section">';
|
||||
}
|
||||
# Sort the list of remaining packs
|
||||
sort($packs);
|
||||
|
Reference in New Issue
Block a user