forked from ilyasbelfar/ShopMeex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpost-seller-panel.php
59 lines (56 loc) · 2.19 KB
/
post-seller-panel.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
</div>
</div>
</div>
</div>
</div>
</div>
<!-- End Dashboard Seller -->
<script src="js/jquery-3.4.1.min.js"></script>
<script type="text/javascript">
// Parse the URL parameter
function getParameterByName(name, url) {
if (!url) url = window.location.href;
name = name.replace(/[\[\]]/g, "\\$&");
var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
results = regex.exec(url);
if (!results) return null;
if (!results[2]) return '';
return decodeURIComponent(results[2].replace(/\+/g, " "));
}
// Give the parameter a variable name
var dynamicContent = getParameterByName('post_type');
$(document).ready(function() {
$('.big_container').hide();
// Check the URL parameter
if (dynamicContent == 'product') {
$('#my_products').show();
$('#new_product').show();
}
// Check the URL parameter
else if (dynamicContent == 'order') {
$('#my_orders').show();
}
// Check the URL parameter
else if (dynamicContent == 'review') {
$('#my_reviews').show();
}
// Check the URL parameter
else if (dynamicContent == 'coupon') {
$('#my_coupons').show();
$('#new_coupon').show();
}
// Check if the URL parmeter is empty or not defined, display default content
else {
$('#my_products').show();
$('#new_product').show();
}
});
</script>
<script src="js/owl.carousel.min.js"></script>
<script src="js/TweenMax.min.js"></script>
<script src="js/jquery.nice-select.js"></script>
<script src="js/jquery.countdown.min.js"></script>
<script src="https://kit.fontawesome.com/5d49be4ed0.js" crossorigin="anonymous"></script>
<script src="js/custom.js"></script>
</body>
</html>