Update blog page
This commit is contained in:
parent
1420692d6a
commit
530e01df73
|
@ -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,59 +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>
|
|
||||||
|
|
||||||
<section id="HBIG">
|
|
||||||
<h1>THE BLOG</h1>
|
|
||||||
|
|
||||||
<img src="/assets/images/General/SkyDrawn.png" style="position: absolute; right: 22px; top: 16px; float: right;" />
|
|
||||||
</section>
|
|
|
@ -1,27 +1,13 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
define('SAFE', true);
|
require '../app/bootstrap.php';
|
||||||
|
|
||||||
$LockedPages = array();
|
const PAGES = ['list', 'read'];
|
||||||
|
|
||||||
include("Pieces/header.htm");
|
echo render('header');
|
||||||
|
|
||||||
if (!empty($_GET['do'])) {
|
$do = !empty($_GET['do']) && in_array($_GET['do'], PAGES) ? $_GET['do'] : 'list';
|
||||||
$do = "list";
|
|
||||||
|
|
||||||
$TmpDo = basename($_GET['do']);
|
echo render("blog/$do");
|
||||||
|
|
||||||
// If it's not a disallowed path, and if the file exists, update $do
|
echo render('footer');
|
||||||
if (!in_array($TmpDo, $LockedPages) && file_exists("Pieces/Blog/{$TmpDo}.htm")) {
|
|
||||||
$do = $TmpDo;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
$do = "list";
|
|
||||||
}
|
|
||||||
|
|
||||||
// Include $page
|
|
||||||
include("Pieces/Blog/$do.htm");
|
|
||||||
|
|
||||||
include("Pieces/footer.htm");
|
|
||||||
|
|
||||||
?>
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
require '../app/bootstrap.php';
|
require '../app/bootstrap.php';
|
||||||
|
|
||||||
$DM = new DisplayModule();
|
$DM = new DisplayModule();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user