Subversion Repositories cheapmusic

Rev

Rev 129 | Rev 134 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
124 - 1
<footer class="container-fluid text-center bg-secondary mt-5 py-5">
2
    <div class="btn-group">
129 - 3
        <a id="fbLink" href="https://www.facebook.com/FindCheapMusic" target="_blank" rel="noopener noreferrer"><img class="socialBtn pr-4" src="/images/f_logo_RGB-Blue_58.png" alt="Facebook Logo" /></a>
4
        <a id="twLink" href="https://twitter.com/findcheapmusic" target="_blank" rel="noopener noreferrer"><img class="socialBtn pr-4" src="/images/Twitter_Social_Icon_Circle_Color.png" alt="Twitter Logo" /></a>
5
        <a id="blLink" href="https://blog.findcheapmusic.com" target="_blank" rel="noopener noreferrer"><img class="socialBtn pr-4" src="/images/blogger_logo.jpg" alt="Blogger Logo" /></a>
124 - 6
    </div>
7
    <p>Copyright &#169; <?php echo @date("Y"); ?> FindCheapMusic.com. All rights reserved.</p>
8
    <form class="d-lg-none" method="post" action="/index.php">
9
        <input type="hidden" name="sessionTab" value="<?php echo MySessionHandler::getSessionTab(); ?>">
130 - 10
        <input type="hidden" name="searchTerm" value="<?php if (isset($_SESSION["searchTerm"])) echo $_SESSION["searchTerm"] ?>">
11
        <input type="hidden" name="buyerZip" value="<?php if (isset($_SESSION["buyer"]["zip"])) echo $_SESSION["buyer"]["Zip"]; ?>">
124 - 12
        <ul class="list-inline text-center">
13
            <li class="list-inline-item">
14
                <button class="btn btn-sm btn-light" type="submit" name="submit" value="terms">Terms of Service</button>
15
            </li>
16
            <li class="list-inline-item">
17
                <button class="btn btn-sm btn-light" type="submit" name="submit" value="privacy">Privacy Policy</button>
18
            </li>
19
        </ul>
20
    </form>
31 - 21
</footer>
129 - 22
<script nonce="<?php echo base64_encode($_SESSION["nonce"]);?>">
23
    document.addEventListener("DOMContentLoaded", function() {
24
    	document.getElementById("fbLink").addEventListener("click", function() {
25
        window.dataLayer.push({ "event": "social", "socialNetwork": "Facebook", "socialAction": "Link", "socialTarget": "https://www.facebook.com/FindCheapMusic"});
26
      });
27
    	document.getElementById("twLink").addEventListener("click", function() {
28
       window.dataLayer.push({ "event": "social", "socialNetwork": "Twitter", "socialAction": "Link", "socialTarget": "https://twitter.com/findcheapmusic"});
29
     });
30
   	document.getElementById("blLink").addEventListener("click", function() {
31
       window.dataLayer.push({ "event": "social", "socialNetwork": "Blogger", "socialAction": "Link", "socialTarget": "https://blog.findcheapmusic.com"});
32
     });
33
   });
34
</script>
35