Skip to content

Instantly share code, notes, and snippets.

@sbward
Last active January 4, 2016 01:49
Show Gist options
  • Save sbward/8550921 to your computer and use it in GitHub Desktop.
Save sbward/8550921 to your computer and use it in GitHub Desktop.
<div id="footer">
<span id="footer-img"><img src="/images/logo-sm.png" width="58" height="22" alt="ZingCharts" /></span>
<div class="nav">
<?php
$menu = array("Home"=>"$prefix/", "Download"=>"http://www.zingchart.com/download/", "Purchase"=>"$securePrefix/store/buy.php", "Learn"=>"/reference/", "Support"=>"$prefix/support/", "About"=>"$prefix/about/", "Privacy"=>"$prefix/privacy/", "Terms"=>"$prefix/legal/tc.php", "Site Map"=>"$prefix/sitemap/", "White Papers"=>"$prefix/assets/pdf/zc-brochure.pdf");
foreach ($menu as $key => $value){
if ($current_location == $key){
echo $key . " ";
} else if ($key == "White Papers") {
echo "<a href='$value' target='_blank' id='white_papers_link'>$key</a> ";
} else if ($key == "Learn") {
echo "<a href='$value' target='_blank'>$key</a> ";
} else {
echo "<a href='$value'>$key</a> ";
}
if ($key != "White Papers")
echo '<span class="plus">&nbsp;+&nbsp;</span> ';
}
?>
</div>
<div id="footer-copyright">
<p>&copy; Copyright 2009-2014 ZingChart</p>
</div>
</div><!--// ENDS FOOTER -->
<script type="text/javascript" language="javascript">llactid=19053</script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-12016652-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<script type="text/javascript">
<?php
session_start();
if (isset($_SESSION["email"])){
echo 'var re_name_tag = "' . $_SESSION["email"] . '";';
}
?>
document.write(unescape("%3Cscript src='" + (("https:" == document.location.protocol) ? "https://ssl-" : "http://")
+ "include.reinvigorate.net/re_.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
reinvigorate.track("y0060-l1v22r8472");
} catch(err) {}
</script>
<script type="text/javascript">
document.write(unescape("%3Cscript src='" + ((document.location.protocol=="https:")?"https://snapabug.appspot.com":"http://www.snapengage.com") + "/snapabug.js' type='text/javascript'%3E%3C/script%3E"));</script><script type="text/javascript">
SnapABug.addButton("0acec05a-62b0-4894-a64b-be852c6e86d6","1","55%");
</script>
<script type="text/javascript">
$(document).ready(function() {
$('#white_papers_link').click(function() {
ga('send', 'pageview', $(this).attr('href'));
});
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment