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 13:03:43 +00:00
|
|
|
|
|
|
|
|
2022-03-28 22:14:20 +00:00
|
|
|
<ul id="slide-out" class="sidenav">
|
|
|
|
|
|
|
|
<li>
|
|
|
|
<div class="user-view">
|
|
|
|
<div class="background">
|
|
|
|
<img src="https://external-preview.redd.it/7j49A5chcbjitz5C6QHYbZ80EW4QMKPO7dEZwJDu2PM.jpg?auto=webp&s=3d2518085b02a5e80dcb34c31479499d2e9a14d1">
|
|
|
|
</div>
|
|
|
|
<div class="blurry">
|
|
|
|
<a href="https://steamcommunity.com/workshop/filedetails/?id=1737053146"><span class="center white-text name">TTT2 Role Overview</span></a>
|
|
|
|
<a href="https://steamcommunity.com/id/truebaka/"><span class="center white-text email">Made by James</span></a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
<?php
|
|
|
|
$defaultlanguage = "en";
|
|
|
|
|
|
|
|
# Get language from URL
|
|
|
|
if(isset($_GET["lang"])) {
|
|
|
|
$language = $_GET["lang"];
|
|
|
|
} else {
|
|
|
|
$language = $defaultlanguage;
|
|
|
|
}
|
|
|
|
|
|
|
|
#Check if Language folder exists
|
|
|
|
if(file_exists("roles/".$language."/")) {
|
|
|
|
$files = glob("roles/".$language."/*.php");
|
|
|
|
} else {
|
|
|
|
$language = $defaultlanguage;
|
|
|
|
$files = glob("roles/".$language."/*.php");
|
|
|
|
}
|
|
|
|
#Get all files from the language folder
|
|
|
|
sort($files);
|
|
|
|
|
|
|
|
foreach ($files as $filename) {
|
|
|
|
include $filename;
|
|
|
|
|
|
|
|
$shortname = substr($filename, 9);
|
|
|
|
$shortname = substr($shortname, 0, -4);
|
|
|
|
|
|
|
|
echo '
|
|
|
|
<div class="col s12">
|
|
|
|
|
|
|
|
<div class="card-panel '.$color.' '.$tcolor.'-text">
|
|
|
|
<li>
|
2022-03-29 05:57:39 +00:00
|
|
|
<a class="sidenav-close waves-effect '.$tcolor.'-text" href="#'.$shortname.'">
|
2022-03-28 22:14:20 +00:00
|
|
|
<span class="card-title">'.$name.'</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
';
|
|
|
|
};
|
|
|
|
?>
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
<div class="fixed-action-btn">
|
|
|
|
<a href="#" data-target="slide-out" class="sidenav-trigger btn-floating btn-large waves-effect waves-dark brown"><i class="material-icons">menu</i></a>
|
|
|
|
</div>
|
|
|
|
<div class="container">
|
|
|
|
|
2022-03-27 19:17:31 +00:00
|
|
|
<?php
|
2022-03-28 13:57:23 +00:00
|
|
|
$defaultlanguage = "en";
|
2022-03-28 12:43:18 +00:00
|
|
|
|
2022-03-28 12:59:48 +00:00
|
|
|
# Get language from URL
|
2022-03-28 13:03:43 +00:00
|
|
|
if(isset($_GET["lang"])) {
|
|
|
|
$language = $_GET["lang"];
|
|
|
|
} else {
|
2022-03-28 12:59:48 +00:00
|
|
|
$language = $defaultlanguage;
|
|
|
|
}
|
|
|
|
|
|
|
|
#Check if Language folder exists
|
2022-03-28 13:41:50 +00:00
|
|
|
if(file_exists("roles/".$language."/")) {
|
|
|
|
$files = glob("roles/".$language."/*.php");
|
2022-03-28 13:21:38 +00:00
|
|
|
} else {
|
2022-03-28 12:59:48 +00:00
|
|
|
$language = $defaultlanguage;
|
2022-03-28 13:41:50 +00:00
|
|
|
$files = glob("roles/".$language."/*.php");
|
2022-03-28 12:44:40 +00:00
|
|
|
}
|
2022-03-28 12:59:48 +00:00
|
|
|
#Get all files from the language folder
|
2022-03-28 13:21:38 +00:00
|
|
|
|
2022-03-28 12:15:35 +00:00
|
|
|
sort($files);
|
2022-03-28 12:03:08 +00:00
|
|
|
$count = 1;
|
2022-03-28 13:30:02 +00:00
|
|
|
|
2022-03-28 12:15:35 +00:00
|
|
|
foreach ($files as $filename) {
|
2022-03-28 05:40:17 +00:00
|
|
|
include $filename;
|
2022-03-28 11:58:57 +00:00
|
|
|
|
2022-03-28 18:29:20 +00:00
|
|
|
$shortname = substr($filename, 9);
|
|
|
|
$shortname = substr($shortname, 0, -4);
|
|
|
|
/*
|
2022-03-28 12:06:51 +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 18:29:20 +00:00
|
|
|
*/
|
2022-03-28 05:40:17 +00:00
|
|
|
echo '
|
2022-03-28 18:29:20 +00:00
|
|
|
<div class="col s12">
|
2022-03-28 13:50:57 +00:00
|
|
|
<div class="blurry">
|
|
|
|
<div class="card '.$color.' '.$tcolor.'-text">
|
|
|
|
<div class="card-content">
|
2022-03-28 22:14:20 +00:00
|
|
|
<span class="card-title" id="'.$shortname.'">'.$name.'</span>
|
2022-03-28 13:50:57 +00:00
|
|
|
<p>'.$description.'</p>
|
|
|
|
</div>
|
|
|
|
<div class="card-tabs">
|
|
|
|
<ul class="tabs tabs-fixed-width">
|
|
|
|
<li class="tab col s3">
|
2022-03-28 18:29:20 +00:00
|
|
|
<a class="active" href="#'.$shortname.'h2p"><i class="material-icons">help_outline</i></a>
|
2022-03-28 13:50:57 +00:00
|
|
|
</li>
|
|
|
|
<li class="tab col s3">
|
2022-03-28 18:29:20 +00:00
|
|
|
<a href="#'.$shortname.'pbw"><i class="material-icons">check</i></a>
|
2022-03-28 13:50:57 +00:00
|
|
|
</li>
|
|
|
|
<li class="tab col s3 hide-on-small-only">
|
2022-03-28 18:29:20 +00:00
|
|
|
<a href="#'.$shortname.'convars"><i class="material-icons">code</i></a>
|
2022-03-28 13:50:57 +00:00
|
|
|
</li>
|
|
|
|
<li class="tab col s3">
|
2022-03-28 18:29:20 +00:00
|
|
|
<a href="#'.$shortname.'credits"><i class="material-icons">copyright</i></a>
|
2022-03-28 13:50:57 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div class="card-content grey lighten-4 black-text">
|
2022-03-28 18:29:20 +00:00
|
|
|
<div id="'.$shortname.'h2p"><h5>How to play:</h5><pre>'.$howtoplay.'</pre></div>
|
|
|
|
<div id="'.$shortname.'pbw"><h5>Plays best with:</h5>'.$playsbestwith.'</div>
|
|
|
|
<div id="'.$shortname.'convars"><h5>Convars:</h5>
|
|
|
|
<pre>'.$convars.'</pre>
|
2022-03-28 13:57:23 +00:00
|
|
|
</div>
|
2022-03-28 18:29:20 +00:00
|
|
|
<div id="'.$shortname.'credits"><h5>Credits:</h5>Main Creator: <a href="'.$authorurl.'">'.$author.'</a><br><pre>'.$ctext.'</pre></div>
|
|
|
|
|
|
|
|
<div class="card-action '.$color.' ">
|
|
|
|
<a class="'.$tcolor.'-text" href="'.$steam.' ">Steam</a>
|
|
|
|
<a class="'.$tcolor.'-text" href="'.$source.'">Source</a>
|
|
|
|
</div>
|
|
|
|
</div
|
2022-03-28 13:50:57 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-03-28 05:40:17 +00:00
|
|
|
';
|
2022-03-28 11:58:57 +00:00
|
|
|
|
2022-03-28 18:29:20 +00:00
|
|
|
/*
|
2022-03-28 12:06:51 +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-28 18:29:20 +00:00
|
|
|
*/
|
2022-03-27 19:17:31 +00:00
|
|
|
}
|
2022-03-28 18:29:20 +00:00
|
|
|
// if ($count%2 != 1) echo "</div>";
|
2022-03-27 19:17:31 +00:00
|
|
|
?>
|
2022-03-28 12:43:18 +00:00
|
|
|
</div>
|
2022-03-29 07:44:58 +00:00
|
|
|
<footer class="page-footer">
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col l6 s12">
|
|
|
|
<h5 class="white-text">Footer Content</h5>
|
|
|
|
<p class="grey-text text-lighten-4">You can use rows and columns here to organize your footer content.</p>
|
|
|
|
</div>
|
|
|
|
<div class="col l4 offset-l2 s12">
|
|
|
|
<h5 class="white-text">Links</h5>
|
|
|
|
<ul>
|
|
|
|
<li><a class="grey-text text-lighten-3" href="#!">Link 1</a></li>
|
|
|
|
<li><a class="grey-text text-lighten-3" href="#!">Link 2</a></li>
|
|
|
|
<li><a class="grey-text text-lighten-3" href="#!">Link 3</a></li>
|
|
|
|
<li><a class="grey-text text-lighten-3" href="#!">Link 4</a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="footer-copyright">
|
|
|
|
<div class="container">
|
|
|
|
© <?php echo date("Y"); ?> Jesse James Isler
|
|
|
|
<a class="grey-text text-lighten-4 right" href="#!">More Links</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</footer>
|
2022-03-28 13:41:50 +00:00
|
|
|
|
2022-03-28 12:43:18 +00:00
|
|
|
|
|
|
|
<!-- Start Tab init -->
|
2022-03-28 09:07:18 +00:00
|
|
|
<script>
|
|
|
|
$(document).ready(function(){
|
2022-03-28 22:14:20 +00:00
|
|
|
$('.tabs').tabs();
|
|
|
|
$('.sidenav').sidenav();
|
|
|
|
});
|
2022-03-28 09:07:18 +00:00
|
|
|
</script>
|
2022-03-28 12:43:18 +00:00
|
|
|
<!-- End Tab init -->
|
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>
|