forked from erhankilic/AdminLteWpTheme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
140 lines (131 loc) · 7.31 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<!DOCTYPE html>
<html>
<head>
<meta charset=<?php bloginfo('charset'); ?>" />
<meta http-equiv=" X-UA-Compatible
" content="IE=edge">
<title><?php the_title(); ?></title>
<!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<!-- Bootstrap 3.3.5 -->
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/vendor/AdminLTE/bootstrap/css/bootstrap.min.css">
<!-- Font Awesome -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
<!-- Theme style -->
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/vendor/AdminLTE/dist/css/AdminLTE.min.css">
<!-- AdminLTE Skins -->
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/vendor/AdminLTE/dist/css/skins/skin-purple.min.css">
<?php if (get_option('github_check') == 'true') : ?>
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/octicons/2.0.2/octicons.min.css">
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/assets/github-activity-master/src/github-activity.css">
<?php endif; ?>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>">
<!-- jQuery 2.1.4 -->
<script src="<?php bloginfo('template_url'); ?>/vendor/AdminLTE/plugins/jQuery/jQuery-2.1.4.min.js"></script>
<?php wp_get_archives('type=monthly&format=link'); ?>
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>"/>
<link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>"/>
<link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>"/>
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>"/>
<link rel="profile" href="http://gmpg.org/xfn/11"/>
<?php if (is_singular()) wp_enqueue_script('comment-reply'); ?>
<?php wp_head(); ?>
</head>
<body class="hold-transition skin-purple fixed sidebar-mini">
<div class="wrapper">
<header class="main-header">
<!-- Logo -->
<a href="<?php bloginfo('url'); ?>" class="logo">
<!-- mini logo for sidebar mini 50x50 pixels -->
<span class="logo-mini"><b><?php bloginfo('name'); ?></b></span>
<!-- logo for regular state and mobile devices -->
<h1 class="logo-lg"><b><?php bloginfo('name'); ?></b></h1>
</a>
<!-- Header Navbar: style can be found in header.less -->
<nav class="navbar navbar-static-top" role="navigation">
<!-- Sidebar toggle button-->
<a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
<span class="sr-only">Toggle navigation</span>
</a>
<!-- Navbar Right Menu -->
<div class="navbar-custom-menu">
<ul class="nav navbar-nav">
<?php wp_nav_menu_no_ul() ?>
<li>
<a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i> Bar</a>
</li>
</ul>
<ul class="nav navbar-nav header-mobile-menu">
<li>
<a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i> Bar</a>
</li>
</ul>
</div>
</nav>
</header>
<!-- Left side column. contains the logo and sidebar -->
<aside class="main-sidebar">
<!-- sidebar: style can be found in sidebar.less -->
<section class="sidebar">
<!-- Sidebar user panel -->
<div class="user-panel">
<?php if (get_option('panel') == 'true') : ?>
<div class="pull-left image">
<img src="<?php echo get_option('logo'); ?>" class="img-circle"
alt="<?php bloginfo('name'); ?>">
</div>
<div class="pull-left info">
<p><?php echo get_option('info'); ?></p>
<ul class="list-unstyled list-inline">
<?php if (get_option('facebook') != '') : ?>
<li><a href="<?php echo get_option('facebook'); ?>" target="_blank"><i
class="fa fa-facebook"></i></a></li>
<?php endif; ?>
<?php if (get_option('twitter') != '') : ?>
<li><a href="<?php echo get_option('twitter'); ?>" target="_blank"><i
class="fa fa-twitter"></i></a></li>
<?php endif; ?>
<?php if (get_option('google-plus') != '') : ?>
<li><a href="<?php echo get_option('google-plus'); ?>" target="_blank"><i
class="fa fa-google-plus"></i></a></li>
<?php endif; ?>
<?php if (get_option('pinterest') != '') : ?>
<li><a href="<?php echo get_option('pinterest'); ?>" target="_blank"><i
class="fa fa-pinterest"></i></a></li>
<?php endif; ?>
<?php if (get_option('instagram') != '') : ?>
<li><a href="<?php echo get_option('instagram'); ?>" target="_blank"><i
class="fa fa-instagram"></i></a></li>
<?php endif; ?>
<?php if (get_option('linkedin') != '') : ?>
<li><a href="<?php echo get_option('linkedin'); ?>" target="_blank"><i
class="fa fa-linkedin"></i></a></li>
<?php endif; ?>
</ul>
</div>
<?php endif; ?>
</div>
<!-- search form -->
<form action="<?php bloginfo('url'); ?>" method="get" class="sidebar-form">
<div class="input-group">
<input type="text" name="s" class="form-control" placeholder="Search...">
<span class="input-group-btn">
<button type="submit" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i></button>
</span>
</div>
</form>
<!-- /.search form -->
<!-- sidebar menu: : style can be found in sidebar.less -->
<?php wp_nav_menu(array('theme_location' => 'sidebar', 'menu_class' => 'sidebar-menu', 'walker' => new Sidebar_Nav_Menu())); ?>
<div class="ad">
<?php if(get_option('ad_menu') != '') { echo stripslashes(get_option('ad_menu')); } ?>
</div>
</section>
<!-- /.sidebar -->
</aside>