Added minecraft versions to the website, also fixed the carousel streching the images.

This commit is contained in:
Vasco Lavos committed 2014-03-28 20:47:39 +00:00
1 parent 1debd8fa96
commit ddefc44121
5 files changed
+26 -3

No files matched your search

+1 -1
View File
@@ -1,4 +1,4 @@
#Tue, 25 Mar 2014 21:57:14 +0000
#Fri, 28 Mar 2014 20:45:24 +0000
version=beta
build_number=17
mc_version=1.6.4
+3 -1
View File
@@ -1,5 +1,5 @@
<?xml version="1.0" ?>
<project name="Botany" default="build">
<project name="Botania" default="build">
<property file="build.properties" prefix="build"/>
<property file="ftp.properties" prefix="ftp"/>
@@ -15,6 +15,7 @@
<propertyfile file="build.properties">
<entry key="build_number" type="int" operation="+" default="1"/>
</propertyfile>
<concat destfile="${build.dir.repo}\web\versions.ini" append="true" fixlastline="true">${line.separator}${build.version}-${build.build_number}=${build.mc_version}</concat>
</target>
<target name="prep">
@@ -67,6 +68,7 @@
</ftp>
<ftp action="send" server="${ftp.host}" remotedir="/${build.mod_name}" userid="${ftp.user}" password="${ftp.pass}" verbose="yes" depends="yes">
<fileset file="${build.dir.repo}web/changelog.txt" />
<fileset file="${build.dir.repo}web/versions.ini" />
</ftp>
</target>
+3 -1
View File
@@ -38,6 +38,7 @@
$files = scandir('files/');
natsort($files);
$files = array_reverse($files);
$versions = parse_ini_file('versions.ini');
$first = true;
$total_dls = 0;
$downloads_str = '';
@@ -52,6 +53,7 @@
$file_version = substr($file, strlen('Botania '));
$version_name = substr($file_version, 0, strlen($file_version) - strlen('.jar'));
$mc_version = $versions[$version_name];
$dls_txt = 'Downloads';
if($dls == 1)
@@ -62,7 +64,7 @@
$cl_button_type = '';
}
$downloads_str .= "<a href='dl.php?file=$file' class='btn $button_type btn-success dl'><b>$file</b></a> <a href='changelog.php#$version_name' class='btn $cl_button_type btn-info'><b>Changelog</b></a> <a href='dl.php?file=$file' class='btn $cl_button_type btn-warning dl-counter'><b>$dls</b> $dls_txt</a>";
$downloads_str .= "<a href='dl.php?file=$file' class='btn $button_type btn-success dl'><b>$file</b></a> <a href='changelog.php#$version_name' class='btn $cl_button_type btn-info'><b>Changelog</b></a> <a class='btn $cl_button_type btn-danger dl-counter'>Minecraft <b>$mc_version</b></a> <a href='dl.php?file=$file' class='btn $cl_button_type btn-warning dl-counter'><b>$dls</b> $dls_txt</a>";
if($first) {
$downloads_str .= '<br><br><hr><font size="5">Old Versions</font><br><br>';
+3
View File
@@ -42,7 +42,10 @@ html {
.carousel {
height: 500px;
width: 970px;
margin-top: -18px;
left: 50%;
margin-left: -485px;
}
.carousel-caption {
+16
View File
@@ -0,0 +1,16 @@
alpha-1=1.6.4
alpha-2=1.6.4
alpha-3=1.6.4
beta-4=1.6.4
beta-5=1.6.4
beta-6=1.6.4
beta-7=1.6.4
beta-8=1.6.4
beta-9=1.6.4
beta-10=1.6.4
beta-11=1.6.4
beta-12=1.6.4
beta-13=1.6.4
beta-14=1.6.4
beta-15=1.6.4
beta-16=1.6.4