Subversion Repositories cheapmusic

Rev

Rev 137 | 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>
151 - 5
        <a id="ytLink" href="https://www.youtube.com/channel/UC7qafAeO7dfroo7lzRkvUBg" target="_blank" rel="noopener noreferrer"><img class="socialBtn pr-4" src="/images/youtube_social_circle_red.png" alt="Youtube Logo" /></a>
6
        <a id="blLink" href="https://blog.findcheapmusic.com" target="_blank" rel="noopener noreferrer"><img class="socialBtn pr-4" src="/images/blogger_logo.png" alt="Blogger Logo" /></a>
124 - 7
    </div>
8
    <p>Copyright &#169; <?php echo @date("Y"); ?> FindCheapMusic.com. All rights reserved.</p>
9
    <form class="d-lg-none" method="post" action="/index.php">
10
        <input type="hidden" name="sessionTab" value="<?php echo MySessionHandler::getSessionTab(); ?>">
130 - 11
        <input type="hidden" name="searchTerm" value="<?php if (isset($_SESSION["searchTerm"])) echo $_SESSION["searchTerm"] ?>">
124 - 12
        <ul class="list-inline text-center">
13
            <li class="list-inline-item">
134 - 14
                <button class="btn btn-sm btn-light" type="submit" name="submitBtn" value="terms">Terms of Service</button>
124 - 15
            </li>
16
            <li class="list-inline-item">
134 - 17
                <button class="btn btn-sm btn-light" type="submit" name="submitBtn" value="privacy">Privacy Policy</button>
124 - 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
     });
151 - 30
    	document.getElementById("ytLink").addEventListener("click", function() {
31
       window.dataLayer.push({ "event": "social", "socialNetwork": "Youtube", "socialAction": "Link", "socialTarget": "https://www.youtube.com/channel/UC7qafAeO7dfroo7lzRkvUBg"});
32
     });
129 - 33
   	document.getElementById("blLink").addEventListener("click", function() {
34
       window.dataLayer.push({ "event": "social", "socialNetwork": "Blogger", "socialAction": "Link", "socialTarget": "https://blog.findcheapmusic.com"});
35
     });
36
   });
37
</script>
38