diff options
author | Patrick Davison <snapwilliam@gmail.com> | 2012-12-26 12:17:17 -0800 |
---|---|---|
committer | Patrick Davison <snapwilliam@gmail.com> | 2012-12-26 12:17:17 -0800 |
commit | c018b6ccd03192a890879067f0badeff7a713fdf (patch) | |
tree | 58c9cca94651768200915a9d4beff1bcbd2c15e7 /includes | |
parent | 57629dfc60a7b377f9d7d0996a82583b496513f3 (diff) | |
download | pathery-c018b6ccd03192a890879067f0badeff7a713fdf.tar.xz |
Footer, sign-in adjustments to prevent web-crawler cache.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/header.php | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/includes/header.php b/includes/header.php index dca5bfd..6e29cbe 100644 --- a/includes/header.php +++ b/includes/header.php @@ -22,6 +22,7 @@ function htmlHeader($css = array(), $title = 'Pathery', $desc = '', $scripts = a ?>
<script src="js/ajax.js" async="async"></script>
<script src="js/mapspecs.js?v=121212"></script>
+ <script src="js/globe.js?v=122312"></script>
<script>
(function(c,a){window.mixpanel=a;var b,d,h,e;b=c.createElement("script");b.type="text/javascript";b.async=!0;b.src=("https:"===c.location.protocol?"https:":"http:")+'//cdn.mxpnl.com/libs/mixpanel-2.1.min.js';d=c.getElementsByTagName("script")[0];d.parentNode.insertBefore(b,d);a._i=[];a.init=function(b,c,f){function d(a,b){var c=b.split(".");2==c.length&&(a=a[c[0]],b=c[1]);a[b]=function(){a.push([b].concat(Array.prototype.slice.call(arguments,0)))}}var g=a;"undefined"!==typeof f?
@@ -58,7 +59,18 @@ function hideSignin() { function htmlFooter() {
//Preload the path-images and add the google-analytics script
+
+ global $footerLinks;
+
+ echo "<div class='divide'> </div>";
+ echo " <div class='footerArea' style='width:100%;clear: both'><ul id='triple'>";
+ foreach ($footerLinks as $key => $value) {
+ echo "<li><a href='$key'>$value</a></li>";
+ }
+ echo " </ul></div>";
+
?>
+
<div id="copy" style='width:100%;clear: both'>
Copyright © 2011-2012 pathery.com
</div>
@@ -124,6 +136,8 @@ function htmlFooter() { });";
?>
})();
+
+ createSignin();
</script>
</body>
@@ -132,12 +146,11 @@ function htmlFooter() { }
function topbar($links) {
- global $accepted, $wallColor, $wallEmblem;
+ global $accepted, $wallColor, $wallEmblem, $request;
echo '<div id="topbar">';
- $page = isset($_GET['page']) ? $_GET['page'] : 'home';
foreach ($links as $key => $value) {
- if ($page == $key)
+ if ($request == $key)
$selected = " selected";
else
$selected = "";
@@ -164,7 +177,7 @@ function topbar($links) { } else {
?>
<a href='javascript:showSignin();'>Sign in</a>
- <div class="wrapper" id="oid_hidden" >
+<!-- <div class="wrapper" id="oid_hidden" >
<h2>Sign in</h2>
<div id="oid_box">
<h2 style="color:#333;">Do you have an account here?</h2>
@@ -173,7 +186,7 @@ function topbar($links) { <a id="oid_learn" href="http://openid.net/get-an-openid/what-is-openid/" target="_blank" >Learn more about OpenID</a>
<a id="oid_cancel" href="javascript:hideSignin();">X</a>
</div>
- </div>
+ </div> -->
<?
}
echo " </div>";
|