Update blog page

This commit is contained in:
Sky Johnson 2024-06-29 11:49:05 -05:00
parent 1420692d6a
commit 530e01df73
6 changed files with 23 additions and 127 deletions

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,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>

View File

@ -1,27 +1,13 @@
<?php
define('SAFE', true);
$LockedPages = array();
include("Pieces/header.htm");
if (!empty($_GET['do'])) {
$do = "list";
$TmpDo = basename($_GET['do']);
// If it's not a disallowed path, and if the file exists, update $do
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");
?>
require '../app/bootstrap.php';
const PAGES = ['list', 'read'];
echo render('header');
$do = !empty($_GET['do']) && in_array($_GET['do'], PAGES) ? $_GET['do'] : 'list';
echo render("blog/$do");
echo render('footer');

View File

@ -1,18 +1,19 @@
<?php
require '../app/bootstrap.php';
$DM = new DisplayModule();
require '../app/bootstrap.php';
const PAGES = ['home', 'tandc', 'privacy', 'tictactoe'];
$DM = new DisplayModule();
echo render('header');
const PAGES = ['home', 'tandc', 'privacy', 'tictactoe'];
$page = !empty($_GET['page']) && in_array($_GET['page'], PAGES) ? $_GET['page'] : 'home';
echo render('header');
if($page == "home") {
echo render('slider');
}
$page = !empty($_GET['page']) && in_array($_GET['page'], PAGES) ? $_GET['page'] : 'home';
echo render($page);
if($page == "home") {
echo render('slider');
}
echo render('footer');
echo render($page);
echo render('footer');