Subversion Repositories cheapmusic

Rev

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"] ?>">
124 - 11
        <ul class="list-inline text-center">
12
            <li class="list-inline-item">
134 - 13
                <button class="btn btn-sm btn-light" type="submit" name="submitBtn" value="terms">Terms of Service</button>
124 - 14
            </li>
15
            <li class="list-inline-item">
134 - 16
                <button class="btn btn-sm btn-light" type="submit" name="submitBtn" value="privacy">Privacy Policy</button>
124 - 17
            </li>
18
        </ul>
19
    </form>
31 - 20
</footer>
129 - 21
<script nonce="<?php echo base64_encode($_SESSION["nonce"]);?>">
22
    document.addEventListener("DOMContentLoaded", function() {
23
    	document.getElementById("fbLink").addEventListener("click", function() {
24
        window.dataLayer.push({ "event": "social", "socialNetwork": "Facebook", "socialAction": "Link", "socialTarget": "https://www.facebook.com/FindCheapMusic"});
25
      });
26
    	document.getElementById("twLink").addEventListener("click", function() {
27
       window.dataLayer.push({ "event": "social", "socialNetwork": "Twitter", "socialAction": "Link", "socialTarget": "https://twitter.com/findcheapmusic"});
28
     });
29
   	document.getElementById("blLink").addEventListener("click", function() {
30
       window.dataLayer.push({ "event": "social", "socialNetwork": "Blogger", "socialAction": "Link", "socialTarget": "https://blog.findcheapmusic.com"});
31
     });
32
   });
33
</script>
34