forked from caslay/tiny_theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
58 lines (52 loc) · 2.36 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
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="utf-8">
<title><<?php bloginfo('title') ?><?php wp_title(' - ', true, 'left'); ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="<?php bloginfo('description'); ?>">
<meta name="author" content="<?php bloginfo('name'); ?>">
<!-- styles -->
<link href="<?php echo get_template_directory_uri() ?>/stylesheet/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" />
<?php //load theme style if it's not default
$style = get_option('tiny_style');
if($style != 'default'): ?>
<link href="<?php echo get_template_directory_uri() ?>/stylesheet/colors/<?php echo $style ?>.css" rel="stylesheet">
<?php endif; ?>
<link href='http://fonts.googleapis.com/css?family=Noto+Sans:400,400italic,700,700italic' rel='stylesheet' type='text/css'>
<script src="<?php echo get_template_directory_uri() ?>/javascript/jquery-1.9.1.min.js"></script>
<script src="<?php echo get_template_directory_uri() ?>/javascript/bootstrap.min.js"></script>
<script src="<?php echo get_template_directory_uri() ?>/javascript/jquery.validate.min.js"></script>
<script src="<?php echo get_template_directory_uri() ?>/javascript/mobile.detect.js"></script>
<script src="<?php echo get_template_directory_uri() ?>/javascript/custom.js"></script>
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<?php //comments_popup_script(); // off by default ?>
<?php wp_head() ?>
</head>
<body <?php body_class($class); ?>>
<div id="top">
<div class="container">
<?php $logo_url = esc_url(get_option('logo')); ?>
<a href="<?php echo home_url() ?>" class="logo">
<?php if(!$logo_url): ?>
<span>*</span><?php bloginfo('name'); ?>
<?php else: ?>
<img src="<?php echo $logo_url ?>" />
<?php endif; ?>
</a>
<a href="#" class="menu-btn" data-placement="left" title="Main Menu">
<i class="icon-reorder"></i>
</a>
</div>
</div>
<nav id="main-menu">
<div class="container">
<?php echo wp_nav_menu( array( 'theme_location' => 'main-menu') ); ?>
<?php get_sidebar() ?>
</div>
</nav>
<section id="content">