diff options
author | Patrick Davison <snapwilliam@gmail.com> | 2012-12-12 18:35:28 -0800 |
---|---|---|
committer | Patrick Davison <snapwilliam@gmail.com> | 2012-12-12 18:35:28 -0800 |
commit | 84b050664c8c8968a9c264460016b68595702dc4 (patch) | |
tree | 71ebf3a72cd275a0c123f713cefb9b8796420183 /pages/home.php | |
parent | fe1c973edc1cab6d065938df9b46694ece19beff (diff) | |
download | pathery-84b050664c8c8968a9c264460016b68595702dc4.tar.xz |
New images, modified image caching.
Diffstat (limited to 'pages/home.php')
-rw-r--r-- | pages/home.php | 93 |
1 files changed, 69 insertions, 24 deletions
diff --git a/pages/home.php b/pages/home.php index dbc1a01..a9c6b36 100644 --- a/pages/home.php +++ b/pages/home.php @@ -86,21 +86,75 @@ playerWallColor = '<?PHP echo isset($wallColor) ? $wallColor : ''; ?>'; playerWallEmblem = '<?PHP echo isset($wallEmblem) ? $wallEmblem : ''; ?>';
</script>
+<!-- Advertisement -->
+<script type="text/javascript">
+// use PHP VAR
+
+var showAd;
+if (getCookie("pref_showAd") != "yes") {
+ showAd = "no";
+} else {
+ showAd = "yes";
+}
+
+function adToggle() {
+ var adContainer = document.getElementById("adContainer");
+ var adBtn = document.getElementById("adBtn");
+
+ if (showAd == "yes") {
+ adContainer.setAttribute("class", "adHidden");
+ adBtn.innerHTML = "<a href='javascript:adToggle()'>Show</a>";
+ showAd = "no";
+ } else {
+ adContainer.setAttribute("class", "adContainer");
+ adBtn.innerHTML = "<a href='javascript:adToggle()'>Hide</a>";
+ showAd = "yes";
+ }
+ savePref("showAd", showAd);
+}
+</script>
+
+
<?php
topbar($Links);
+$showAd = ($_COOKIE['pref_showAd'] == "yes");
+$adClass = 'adHidden';
+$adShow = 'Hide';
+if ($showAd) {
+ $adClass = 'adContainer';
+ $adShow = 'Show';
+}
+
+$adContent = "
+ <div class='adOuter'>
+ <div class='adBar'>
+ <div class='float' style='width:89%; '>Ad:</div>
+ <div class='float' id='adBtn' style='width:10%; text-align:right;'>
+ <a href='javascript:adToggle()'>$adShow</a>
+ </div>
+ </div><div class='$adClass' id='adContainer'>
+
+ <script type='text/javascript' language='javascript' src='http://www.dpbolvw.net/placeholder-6466820?target=_blank&mouseover=N'></script>
+ </div>
+ </div>
+ <div style='clear: both'></div>";
?>
<div class="wrapper">
-<center>DATE HERE. Update complete! This update made several changes to allow for some new upcoming features.
-<br />If you find any bugs please let us know using the <a href='feedback'>Feedback Page</a>!
-<br />Thank you so much!
-<br /><br />
+<center>12/12/12 - We're introducing a new map & mechanic!
+I'd like to hear what you think about it!
+<br />Send me a line at the <a href="feedback">Feedback Page</a>.
+<br />Wir führen eine neue Map und einen neün Mechanismus ein!
+Ich wüsste gern, was du davon hältst!
+Schick mir einfach eine Zeile auf der <a href="feedback">Feedback-Seite</a>.
</center>
+<br />
+
<?
if ($accepted) {
if (!hasCompletedTutorial($userID)) {
@@ -113,18 +167,22 @@ if ($accepted) { $motd = MapOfTheDay(1);
$jmid[1] = $motd['id'];
$mapContent = displayMaze($motd, 1);
+$mapNames[1] = 'Simple';
$motd = MapOfTheDay(2);
$jmid[2] = $motd['id'];
$mapContent .= displayMaze($motd, 2);
+$mapNames[2] = 'Normal';
+
+// Complex Map
$motd = MapOfTheDay(3);
$jmid[3] = $motd['id'];
$mapContent .= displayMaze($motd, 3);
-
-$mapNames[1] = 'Simple';
-$mapNames[2] = 'Normal';
-$mapNames[3] = 'Complex';
+$mapNames[3] = $motd['map'][0][6];
+if ($mapNames[3] == '') {
+ $mapNames[3] = 'Complex';
+}
// Additional or special maps:
@@ -137,6 +195,8 @@ if ($mapNames[4] == '') { $mapNames[4] = 'Special';
}
+
+
// $motd = MapOfTheDay(5);
// $jmid[5] = $motd['id'];
// $mapContent .= displayMaze($motd, 5);
@@ -201,7 +261,7 @@ function displayMaze($motd, $mapType) { $r .= " <a href='javascript:requestSol(\"$mapID\");'><strong>Load your best solution</strong></a><br />";
$r .= DisplayMap($map, $mapID);
$r .= " </div></div>";
-
+
$r .= " <div style='padding-top: 20px;'>";
$r .= $topscorediv;
$r .= ' </div>';
@@ -275,14 +335,6 @@ $timerem = strtotime("tomorrow") - strtotime("now"); </script>
</div>
-
-
-<div id="copy" style='width:100%;clear: both'>
- Copyright © 2011-2012 pathery.com
-</div>
-
-
-
<script>
var jmid=new Array();
@@ -311,13 +363,6 @@ function showStats(type) { showStats(1);
</script>
-<?
-//<script src="sounds/script/soundmanager.js"></script>
-//<script type="text/javascript">soundManagerInit();</script>
-
-// NEW BELOW
-?>
-
<?PHP echo $noteScript; ?>
|