Update projects page

This commit is contained in:
Sky Johnson 2024-06-29 11:42:36 -05:00
parent e35b5b10e5
commit 1420692d6a
6 changed files with 50 additions and 167 deletions

View File

@ -1,6 +1,4 @@
<?php
$template = <<<TMP
<form action="../Resources/Scripts/PHP/Hubs/CommunityHub.php?action=episodeComment&epID={{{epid}}}&show={{{id}}}" method="post" style="padding-left: 12px; margin-top: 36px; padding-top: 16px;">
<form action="Hubs/CommunityHub.php?action=episodeComment&epID=<?= $epid ?>&show=<?= $id ?>" method="post" style="padding-left: 12px; margin-top: 36px; padding-top: 16px;">
<h3>Post a comment</h2>
<textarea name="theComment" style="width: 76%; min-height: 60px; margin-bottom: 8px; float: left;"></textarea>
@ -8,5 +6,3 @@ $template = <<<TMP
<div class="clear"> </div>
</form>
TMP;
?>

View File

@ -1,32 +0,0 @@
<footer>
<div class="box">
<div style="padding-top: 8px;">
<section class="splash">
<img src="/assets/images/Logos/LogoV7B.png" style="width: 90%; display: block; margin: 0px auto; margin-bottom: -12px;" />
<a href="../index.php?page=privacy">Privacy</a> | <a href="../index.php?page=tandc">The T&amp;C</a> <br />
<p style="width: 200px; margin: 0px auto;">
Copyright &copy; 2014, Mad Splash. <br />
All trademarked stuff is the property of it's respective owner(s).
</p>
</section>
<section>
<h2>OTHER STUFFS</h2>
<ul>
<li><a href="#">Our staff</a></li>
<li><a href="#">Jobs here</a></li>
</ul>
</section>
<section>
<h2>PROJECTS</h2>
<ul>
<li><a href="../index.php?page=projects&project=tbfa">Battles for Arthos</a></li>
<li><a href="../index.php?page=projects&project=therpg">The RPG</a></li>
</ul>
</section>
</div>
</div>
</footer>
</body>
</html>

View File

@ -1,53 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Blog | Mad Splash!</title>
<link rel="stylesheet" href="../Resources/CSS/MadSplash_v3.css" type="text/css" />
<link rel="stylesheet" href="../Resources/CSS/FormStyles.css" type="text/css" />
<link rel="stylesheet" href="../Resources/CSS/CustomFonts.css" type="text/css" />
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<!--[if lte IE 7]>
<script src="js/IE8.js" type="text/javascript"></script><![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" media="all" href="../Resources/CSS/ie6.css"/><![endif]-->
</head>
<body id="index" class="home">
<?php
include('../Resources/Scripts/PHP/Library.php');
require_once('../Resources/Scripts/PHP/SuperNav.php');
$display = new DisplayModule();
?>
<header>
<img class="Logo" src="/assets/images/Logos/LogoV7.png" alt="Mad Splash" title="Mad Splash!" />
<nav>
<ul>
<li><a class="navLink" href="../index.php">Home</a></li>
<li><a class="navLink" href="blog.php">Blog</a></li>
<li><a class="navLink" href="http://forums.madsplash.net/">Forums</a></li>
<li class="dropdown">
<a class="dropLink" href="../projects.php">Projects</a>
<div class="drop">
<section>
<a style="font: bold 18px Arial, Geneva, sans-serif;" href="../projects.php?a=main&type=game">Games</a>
<a style="font: bold 18px Arial, Geneva, sans-serif;" href="../projects.php?a=main&type=book">Books</a>
<a style="font: bold 18px Arial, Geneva, sans-serif;" href="../projects.php?a=main&type=show">Shows</a>
</section>
<div class="clear"> </div>
</div>
</li>
</ul>
</nav>
</header>

View File

@ -1,6 +1,3 @@
<?php
$template = <<<TMP
<script>
document.getElementsByTagName('title')[0].innerHTML = "{{{t}}} | Mad Splash!";
</script>
@ -63,6 +60,3 @@ $template = <<<TMP
<div class="clear"> </div>
</section>
TMP;
?>

View File

@ -1,38 +1,31 @@
<?php
require '../app/bootstrap.php';
define('SAFE', true);
include("Pieces/header.htm");
echo render('header');
$CommentForm = GetTemplate('comments/episodeform');
if(!empty($_GET['show'])) { $showid = $_GET['show']; } else { $showid = 1; }
if(!empty($_GET['episode'])) { $epnum = $_GET['episode']; } else { $epnum = 1; }
$showid = !empty($_GET['show']) ? $_GET['show'] : 1;
$epnum = !empty($_GET['episode']) ? $_GET['episode'] : 1;
$episode = new Show($showid);
$epdata = $episode->EpisodeArray[$epnum - 1];
if($epdata['comments'] == 1) { $oneOrMore = $epdata['comments'] . " Comment"; } else { $oneOrMore = $epdata['comments'] . " Comments"; }
$oneOrMore = $epdata['comments'] == 1 ? $epdata['comments'] . " Comment" : $epdata['comments'] . " Comments";
if ($epdata['comments'] == 0) {
$epComments = '<p style="padding: 4px 8px;">No comments? Be the first to comment on this video!</p>';
} else {
$epComments = $episode->GetEpisodeComments($_GET['episode']);
}
if(!empty($_COOKIE['MadSplashUser'])) { $form = ParseTemplate($CommentForm, array('epid' => $_GET['episode'], 'id' => $_GET['show'])); } else { $form = ''; }
if(!empty($_COOKIE['MadSplashUser'])) {
$form = render('comments/episodeform', ['epid' => $_GET['episode'], 'id' => $_GET['show']]);
} else {
$form = '';
}
$data = array(
echo render('projects/show', [
't' => $epdata['title'],
'l' => $epdata['embed'],
'd' => $epdata['description'],
@ -40,21 +33,6 @@
'comments' => $epComments,
'ccount' => $oneOrMore,
'form' => $form
);
]);
include("Pieces/Templates/show.php");
foreach($data as $a => $b) {
$template = str_replace("{{{" . $a . "}}}", $b, $template);
}
echo $template;
include("Pieces/footer.htm");
?>
echo render('footer');