119 |
- |
1 |
<?php
|
134 |
- |
2 |
if (!empty($_SESSION["gtmId"])) {
|
143 |
- |
3 |
echo '<noscript nonce="' . base64_encode($_SESSION["nonce"]) . '"><iframe src="https://www.googletagmanager.com/ns.html?id=' . $_SESSION["gtmId"] . '" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>';
|
119 |
- |
4 |
} ?>
|
31 |
- |
5 |
<div class="header mb-5">
|
35 |
- |
6 |
<form method="post" action="/index.php">
|
116 |
- |
7 |
<input type="hidden" name="sessionTab" value="<?php if (isset($_POST['sessionTab'])) echo $_POST['sessionTab']; ?>" />
|
|
|
8 |
<input type="hidden" name="searchTerm" value="<?php if (isset($_POST['searchTerm'])) echo $_POST['searchTerm']; ?>" />
|
122 |
- |
9 |
<input type="hidden" name="nonce" value="<?php echo $_SESSION['nonce']; ?>" />
|
82 |
- |
10 |
<nav class="navbar navbar-expand-sm bg-black navbar-dark fixed-top">
|
31 |
- |
11 |
<div class="navbar-header">
|
134 |
- |
12 |
<button type="submit" name="submitBtn" value="Search" class="btn text-white" aria-label="Go to home page">Find Cheap Music</button>
|
31 |
- |
13 |
</div>
|
|
|
14 |
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#collapsibleNavbar">
|
35 |
- |
15 |
<span class="navbar-toggler-icon"></span>
|
31 |
- |
16 |
</button>
|
|
|
17 |
<div class="collapse navbar-collapse" id="collapsibleNavbar">
|
|
|
18 |
<ul class="navbar-nav mr-auto">
|
|
|
19 |
<li class="nav-item">
|
134 |
- |
20 |
<button type="submit" name="submitBtn" value="Search" class="nav-link btn" aria-label="Go to home page"><i class="material-icons">home</i></button>
|
31 |
- |
21 |
</li>
|
|
|
22 |
<li class="nav-item">
|
134 |
- |
23 |
<button type="submit" name="submitBtn" value="coupons" class="nav-link btn">Coupons</button>
|
35 |
- |
24 |
</li>
|
|
|
25 |
<li class="nav-item">
|
134 |
- |
26 |
<button type="submit" name="submitBtn" value="wishlist" class="nav-link btn">Wishlist</button>
|
47 |
- |
27 |
</li>
|
|
|
28 |
<li class="nav-item">
|
134 |
- |
29 |
<button type="submit" name="submitBtn" value="terms" class="nav-link btn">Terms of Service</button>
|
31 |
- |
30 |
</li>
|
|
|
31 |
<li class="nav-item">
|
134 |
- |
32 |
<button type="submit" name="submitBtn" value="privacy" class="nav-link btn">Privacy Policy</button>
|
31 |
- |
33 |
</li>
|
57 |
- |
34 |
<li class="nav-item">
|
129 |
- |
35 |
<a id="blNavLink" href="https://blog.findcheapmusic.com" target="_blank" rel="noreferrer noopener" class="nav-link" role="button">Blog</a>
|
109 |
- |
36 |
</li>
|
|
|
37 |
<li class="nav-item">
|
134 |
- |
38 |
<button type="submit" name="submitBtn" value="help" class="nav-link btn" aria-label="Go to Help Page"><i class="material-icons">help_outline</i></button>
|
57 |
- |
39 |
</li>
|
31 |
- |
40 |
</ul>
|
129 |
- |
41 |
<script nonce="<?php echo base64_encode($_SESSION["nonce"]);?>">
|
|
|
42 |
document.getElementById("blNavLink").addEventListener("click", function() {
|
|
|
43 |
window.dataLayer.push({ "event": "social", "socialNetwork": "Blogger", "socialAction": "Link", "socialTarget": "https://blog.findcheapmusic.com"});
|
|
|
44 |
});
|
|
|
45 |
</script>
|
31 |
- |
46 |
<ul class="navbar-nav">
|
36 |
- |
47 |
<?php if (!empty($userPicture)) { ?>
|
|
|
48 |
<li class="nav-item">
|
116 |
- |
49 |
<img class="img-fluid hide-extra-small hide-small user-img" src="<?php echo $userPicture ?>" alt="User Image" />
|
36 |
- |
50 |
</li>
|
65 |
- |
51 |
<?php
|
|
|
52 |
} ?>
|
35 |
- |
53 |
<li class="nav-item dropdown">
|
116 |
- |
54 |
<a class="nav-link dropdown-toggle text-left" href="#" id="navbardrop" data-toggle="dropdown"><i class="material-icons material-text">account_box</i> Account</a>
|
35 |
- |
55 |
<div class="dropdown-menu dropdown-menu-right">
|
134 |
- |
56 |
<button formaction="/login/account.php" type="submit" name="submitBtn" value="account" class="dropdown-item btn"><svg class="svg-24" viewBox="0 0 24 24"><path fill="currentColor" d="M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z" /></svg> Information</button>
|
|
|
57 |
<button formaction="/login/editAccount.php" type="submit" name="submitBtn" value="editAccount" class="dropdown-item btn"><svg class="svg-24" viewBox="0 0 24 24"><path fill="currentColor" d="M21.7,13.35L20.7,14.35L18.65,12.3L19.65,11.3C19.86,11.09 20.21,11.09 20.42,11.3L21.7,12.58C21.91,12.79 21.91,13.14 21.7,13.35M12,18.94L18.06,12.88L20.11,14.93L14.06,21H12V18.94M12,14C7.58,14 4,15.79 4,18V20H10V18.11L14,14.11C13.34,14.03 12.67,14 12,14M12,4A4,4 0 0,0 8,8A4,4 0 0,0 12,12A4,4 0 0,0 16,8A4,4 0 0,0 12,4Z" /></svg> Edit Account</button>
|
35 |
- |
58 |
<?php if (empty($_SESSION['sessData']['loginType']) || $_SESSION['sessData']['loginType'] != 'social') { ?>
|
134 |
- |
59 |
<button formaction="/login/changePassword.php" type="submit" name="submitBtn" value="changePassword" class="dropdown-item btn"><svg class="svg-24" viewBox="0 0 24 24"><path fill="currentColor" d="M12.63,2C18.16,2 22.64,6.5 22.64,12C22.64,17.5 18.16,22 12.63,22C9.12,22 6.05,20.18 4.26,17.43L5.84,16.18C7.25,18.47 9.76,20 12.64,20A8,8 0 0,0 20.64,12A8,8 0 0,0 12.64,4C8.56,4 5.2,7.06 4.71,11H7.47L3.73,14.73L0,11H2.69C3.19,5.95 7.45,2 12.63,2M15.59,10.24C16.09,10.25 16.5,10.65 16.5,11.16V15.77C16.5,16.27 16.09,16.69 15.58,16.69H10.05C9.54,16.69 9.13,16.27 9.13,15.77V11.16C9.13,10.65 9.54,10.25 10.04,10.24V9.23C10.04,7.7 11.29,6.46 12.81,6.46C14.34,6.46 15.59,7.7 15.59,9.23V10.24M12.81,7.86C12.06,7.86 11.44,8.47 11.44,9.23V10.24H14.19V9.23C14.19,8.47 13.57,7.86 12.81,7.86Z" /></svg> Change Password</button>
|
65 |
- |
60 |
<?php
|
|
|
61 |
} ?>
|
134 |
- |
62 |
<button formaction="/login/userAccount.php?logoutSubmit=1" type="submit" name="submitBtn" value="logout" class="dropdown-item btn"><svg class="svg-24" viewBox="0 0 24 24"><path fill="currentColor" d="M16,17V14H9V10H16V7L21,12L16,17M14,2A2,2 0 0,1 16,4V6H14V4H5V20H14V18H16V20A2,2 0 0,1 14,22H5A2,2 0 0,1 3,20V4A2,2 0 0,1 5,2H14Z" /></svg> Logout</button>
|
35 |
- |
63 |
</div>
|
|
|
64 |
</li>
|
31 |
- |
65 |
</ul>
|
|
|
66 |
</div>
|
|
|
67 |
</nav>
|
|
|
68 |
</form>
|
57 |
- |
69 |
</div>
|