-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
93 lines (88 loc) · 4.98 KB
/
header.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<html lang="en">
<head>
<title><?php echo meta_title(); ?></title>
<meta name="title" content="<?php echo osc_esc_html(meta_title()); ?>" />
<?php if(meta_description() != '') { ?>
<meta name="description" content="<?php echo osc_esc_html(meta_description()); ?>" />
<?php } ?>
<?php if(osc_get_canonical() != '') { ?>
<link rel="canonical" href="<?php echo osc_get_canonical(); ?>"/>
<?php } ?>
<?php osc_run_hook('header'); ?>
<meta name="theme-color" content="#17a2b8">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="<?php echo osc_current_web_theme_url("css/bootstrap.min.css");?>">
<link rel="stylesheet" type="text/css" href="<?php echo osc_current_web_theme_url('css/style.css?v=1002');?>">
<?php if(osc_is_ad_page()) { ?>
<link rel="stylesheet" href="<?php echo osc_current_web_theme_url('css/simplelightbox.min.css');?>" />
<?php } ?>
<script src="<?php echo osc_current_web_theme_url("js/jquery.min.js");?>"></script>
<script src="<?php echo osc_current_web_theme_url("js/popper.min.js");?>"></script>
<script src="<?php echo osc_current_web_theme_url("js/bootstrap.min.js");?>"></script>
<script defer src="https://use.fontawesome.com/releases/v5.0.6/js/all.js"></script>
<?php if(osc_is_ad_page()) { ?>
<script src="<?php echo osc_current_web_theme_url("js/simple-lightbox.min.js");?>"></script>
<script src="<?php echo osc_current_web_theme_url("js/sweetalert2.min.js");?>"></script>
<script src="<?php echo osc_current_web_theme_url("js/main.js");?>"></script>
<?php } ?>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-147271569-2"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-147271569-2');
</script>
<?php osc_run_hook('market_header'); ?>
</head>
<body>
<section id="top-header">
<div class="container p-2">
<nav class="navbar navbar-light navbar-expand-lg">
<a href="<?php echo osc_base_url(); ?>" class="navbar-brand text-dark">
<img src="https://osclasscommunity.com/osccommunity.png" alt="Osclass Community" class="img-fluid">
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#headerNav" aria-controls="headerNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="headerNav">
<ul class="nav ml-auto">
<?php while(osc_has_categories()) { ?>
<li class="nav-item">
<a class="nav-link text-dark" href="<?php echo osc_search_category_url(osc_category_id()); ?>"><?php echo osc_category_name(); ?></a>
</li>
<?php } ?>
<?php if( osc_is_web_user_logged_in() ) { ?>
<li class="nav-item">
<a class="nav-link text-dark" href="<?php echo osc_user_profile_url(); ?>">My account</a>
</li>
<li class="nav-item">
<a class="nav-link text-dark" href="<?php echo osc_user_logout_url(); ?>">Logout</a>
</li>
<?php } else { ?>
<li class="nav-item">
<a class="nav-link text-dark" href="<?php echo osc_user_login_url(); ?>">Login</a>
</li>
<li class="nav-item">
<a class="nav-link text-dark" href="<?php echo osc_register_account_url() ; ?>">Register</a>
</li>
<?php } ?>
<li class="nav-item">
<a class="nav-link text-dark" href="https://forums.osclasscommunity.com">Forums</a>
</li>
<li class="nav-item">
<a class="nav-link text-dark" href="https://github.com/navjottomer/Osclass/releases/download/v3.9.0/osclass-v3.9.0.zip">Osclass 3.9/a>
</li>
<li class="nav-item">
<a class="nav-link text-dark" href="https://github.com/navjottomer/Osclass">GitHub</a>
</li>
<li class="nav-item">
<a class="nav-link btn btn-dark" href="<?php echo osc_item_post_url(); ?>">UPLOAD</a>
</li>
</ul>
</nav>
</div>
</section>
<div class="clearfix"></div>
<?php osc_show_flash_message(); ?>