Update projects page
This commit is contained in:
parent
e35b5b10e5
commit
1420692d6a
|
@ -1,12 +1,8 @@
|
||||||
<?php
|
<form action="Hubs/CommunityHub.php?action=episodeComment&epID=<?= $epid ?>&show=<?= $id ?>" method="post" style="padding-left: 12px; margin-top: 36px; padding-top: 16px;">
|
||||||
$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;">
|
|
||||||
<h3>Post a comment</h2>
|
<h3>Post a comment</h2>
|
||||||
<textarea name="theComment" style="width: 76%; min-height: 60px; margin-bottom: 8px; float: left;"></textarea>
|
<textarea name="theComment" style="width: 76%; min-height: 60px; margin-bottom: 8px; float: left;"></textarea>
|
||||||
|
|
||||||
<input class="blueButton" type="submit" name="postsubmit" value="POST" style="float: right;">
|
<input class="blueButton" type="submit" name="postsubmit" value="POST" style="float: right;">
|
||||||
|
|
||||||
<div class="clear"> </div>
|
<div class="clear"> </div>
|
||||||
</form>
|
</form>
|
||||||
TMP;
|
|
||||||
?>
|
|
||||||
|
|
|
@ -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&C</a> <br />
|
|
||||||
<p style="width: 200px; margin: 0px auto;">
|
|
||||||
Copyright © 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>
|
|
|
@ -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>
|
|
|
@ -1,6 +1,3 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
$template = <<<TMP
|
|
||||||
<script>
|
<script>
|
||||||
document.getElementsByTagName('title')[0].innerHTML = "{{{t}}} | Mad Splash!";
|
document.getElementsByTagName('title')[0].innerHTML = "{{{t}}} | Mad Splash!";
|
||||||
</script>
|
</script>
|
||||||
|
@ -63,6 +60,3 @@ $template = <<<TMP
|
||||||
|
|
||||||
<div class="clear"> </div>
|
<div class="clear"> </div>
|
||||||
</section>
|
</section>
|
||||||
TMP;
|
|
||||||
|
|
||||||
?>
|
|
|
@ -1,38 +1,31 @@
|
||||||
<?php
|
<?php
|
||||||
|
require '../app/bootstrap.php';
|
||||||
|
|
||||||
define('SAFE', true);
|
echo render('header');
|
||||||
|
|
||||||
include("Pieces/header.htm");
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$CommentForm = GetTemplate('comments/episodeform');
|
$CommentForm = GetTemplate('comments/episodeform');
|
||||||
|
|
||||||
if(!empty($_GET['show'])) { $showid = $_GET['show']; } else { $showid = 1; }
|
$showid = !empty($_GET['show']) ? $_GET['show'] : 1;
|
||||||
|
$epnum = !empty($_GET['episode']) ? $_GET['episode'] : 1;
|
||||||
if(!empty($_GET['episode'])) { $epnum = $_GET['episode']; } else { $epnum = 1; }
|
|
||||||
|
|
||||||
$episode = new Show($showid);
|
$episode = new Show($showid);
|
||||||
$epdata = $episode->EpisodeArray[$epnum - 1];
|
$epdata = $episode->EpisodeArray[$epnum - 1];
|
||||||
|
|
||||||
|
$oneOrMore = $epdata['comments'] == 1 ? $epdata['comments'] . " Comment" : $epdata['comments'] . " Comments";
|
||||||
|
|
||||||
if($epdata['comments'] == 1) { $oneOrMore = $epdata['comments'] . " Comment"; } else { $oneOrMore = $epdata['comments'] . " Comments"; }
|
if ($epdata['comments'] == 0) {
|
||||||
|
|
||||||
if($epdata['comments'] == 0) {
|
|
||||||
|
|
||||||
$epComments = '<p style="padding: 4px 8px;">No comments? Be the first to comment on this video!</p>';
|
$epComments = '<p style="padding: 4px 8px;">No comments? Be the first to comment on this video!</p>';
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
$epComments = $episode->GetEpisodeComments($_GET['episode']);
|
$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 = '';
|
||||||
|
}
|
||||||
|
|
||||||
|
echo render('projects/show', [
|
||||||
|
|
||||||
$data = array(
|
|
||||||
't' => $epdata['title'],
|
't' => $epdata['title'],
|
||||||
'l' => $epdata['embed'],
|
'l' => $epdata['embed'],
|
||||||
'd' => $epdata['description'],
|
'd' => $epdata['description'],
|
||||||
|
@ -40,21 +33,6 @@
|
||||||
'comments' => $epComments,
|
'comments' => $epComments,
|
||||||
'ccount' => $oneOrMore,
|
'ccount' => $oneOrMore,
|
||||||
'form' => $form
|
'form' => $form
|
||||||
);
|
]);
|
||||||
|
|
||||||
|
echo render('footer');
|
||||||
include("Pieces/Templates/show.php");
|
|
||||||
|
|
||||||
foreach($data as $a => $b) {
|
|
||||||
|
|
||||||
$template = str_replace("{{{" . $a . "}}}", $b, $template);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
echo $template;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
include("Pieces/footer.htm");
|
|
||||||
|
|
||||||
?>
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user