TTT_Role_Overview/index.php

113 lines
4.1 KiB
PHP
Raw Normal View History

2022-03-27 19:17:31 +00:00
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>TTT2 Role Overview</title>
<meta name="description" content="All TTT2 Roles halfheartedly documented">
<meta name="author" content="James">
<meta property="og:title" content="TTT2 Role Overview">
<meta property="og:type" content="website">
<meta property="og:url" content="https://ttt.james-things.com">
<meta property="og:description" content="All TTT2 Roles documented halfheartedly">
<meta property="og:image" content="https://e7.pngegg.com/pngimages/710/403/png-clipart-the-embodiment-of-scarlet-devil-team-shanghai-alice-video-game-banjo-tooie-mario-luigi-partners-in-time-marisa-logo-computer-wallpaper.png">
<link rel="icon" href="/favicon.ico">
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
2022-03-28 08:31:24 +00:00
2022-03-28 09:31:30 +00:00
2022-03-28 08:31:24 +00:00
<!--MATERIALIZE-->
2022-03-28 09:31:30 +00:00
<!--Import jQuery-->
2022-03-28 08:55:44 +00:00
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
2022-03-28 09:31:30 +00:00
<!--Import Google Icon Font-->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!--Import materialize.css-->
<link type="text/css" rel="stylesheet" href="css/materialize.min.css" media="screen,projection"/>
2022-03-28 08:31:24 +00:00
2022-03-28 09:31:30 +00:00
<!--My Custom Stylesheet-->
<link rel="stylesheet" href="css/styles.css">
2022-03-27 19:17:31 +00:00
</head>
2022-03-28 08:15:51 +00:00
2022-03-27 19:17:31 +00:00
<body>
2022-03-28 11:58:57 +00:00
<div class="container">
2022-03-27 19:17:31 +00:00
<?php
2022-03-28 12:03:08 +00:00
$count = 1;
2022-03-27 19:17:31 +00:00
foreach (glob("roles/*.php") as $filename) {
2022-03-28 05:40:17 +00:00
include $filename;
2022-03-28 11:58:57 +00:00
if ($count%2 == 1)
2022-03-28 12:02:26 +00:00
{
2022-03-28 12:04:02 +00:00
echo "<div class='row'>";
2022-03-28 12:02:26 +00:00
}
2022-03-28 05:40:17 +00:00
echo '
2022-03-28 12:04:31 +00:00
<div class="col s12 m6">
2022-03-28 09:41:31 +00:00
<div class="blurry">
<div class="card '.$color.' '.$tcolor.'-text">
<div class="card-content">
2022-03-28 11:49:22 +00:00
<span class="card-title">'.$name.'</span>
2022-03-28 09:41:31 +00:00
<p>'.$description.'</p>
</div>
<div class="card-tabs">
<ul class="tabs tabs-fixed-width">
2022-03-28 09:09:08 +00:00
<li class="tab col s3">
2022-03-28 09:41:31 +00:00
<a class="active" href="#'.$name.'h2p">How to play</a>
2022-03-28 09:09:08 +00:00
</li>
2022-03-28 09:41:31 +00:00
<li class="tab col s3">
<a href="#'.$name.'pbw">Plays best with</a>
<li class="tab col s3">
<a href="#'.$name.'convars">Convars</a>
</li>
2022-03-28 11:05:08 +00:00
<li class="tab col s3">
<a href="#'.$name.'credits">Convars</a>
</li>
2022-03-28 09:41:31 +00:00
</ul>
</div>
<div class="card-content grey lighten-4 black-text">
<div id="'.$name.'h2p">'.$howtoplay.'</div>
<div id="'.$name.'pbw">'.$playsbestwith.'</div>
2022-03-28 11:55:16 +00:00
<div id="'.$name.'convars"><pre><code>'.$convars.'</code></pre></div>
2022-03-28 11:49:22 +00:00
<div id="'.$name.'credits">Main Creator: <a href="'.$authorurl.'">'.$author.'</a><br>'.$ctext.'</div>
2022-03-28 09:41:31 +00:00
</div>
2022-03-28 09:09:08 +00:00
</div>
</div>
2022-03-28 09:01:04 +00:00
</div>
2022-03-28 05:40:17 +00:00
';
2022-03-28 11:58:57 +00:00
if ($count%2 == 0)
2022-03-28 11:58:57 +00:00
{
2022-03-28 12:02:26 +00:00
echo "</div>";
2022-03-28 11:58:57 +00:00
}
$count++;
2022-03-27 19:17:31 +00:00
}
if ($count%2 != 1) echo "</div>";
2022-03-27 19:17:31 +00:00
?>
2022-03-28 11:58:57 +00:00
</div>
2022-03-28 09:07:18 +00:00
<script>
$(document).ready(function(){
$('.tabs').tabs();
});
</script>
2022-03-28 09:00:44 +00:00
<!--
2022-03-28 08:57:47 +00:00
<div class="card-content">
<p>'.$description.'</p>
</div>
<div class="card-tabs">
<ul class="tabs">
</ul>
</div>
<div class="card-content '.$tcolor.'-text">
<span class="card-title">'.$name.'</span>
</div>
</div>
2022-03-28 08:55:44 +00:00
</div>
2022-03-28 08:58:47 +00:00
-->
2022-03-28 09:01:04 +00:00
2022-03-28 08:58:47 +00:00
2022-03-28 09:02:05 +00:00
2022-03-28 08:14:26 +00:00
<!--JavaScript at end of body for optimized loading-->
<script type="text/javascript" src="js/materialize.min.js"></script>
2022-03-27 19:17:31 +00:00
</body>
</html>