-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
123 lines (117 loc) · 4.46 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
<html lang="zh-Hant">
<head>
<meta charset="utf-8">
<title><?php bloginfo('title'); ?></title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width,initial-scale=1.0, user-scalable=no">
<link rel="shortcut icon" href="<?php echo esc_url( get_template_directory_uri() )?>/img/favicon.ico"/>
<meta name="description" content="歡迎各位狸民來狸長辦公室,作伙來飲茶,聊聊生活大小事。" />
<meta property="og:url" content="http://laiphaute.com/" />
<meta property="og:title" content="狸長辦公室-Laiphaute" />
<meta property="og:description" content="歡迎各位狸民來狸長辦公室,作伙來飲茶,聊聊生活大小事。" />
<meta property="og:image" content="<?php echo esc_url( get_template_directory_uri() )?>/img/fbpic.png" />
<link href="<?php echo esc_url( get_template_directory_uri() )?>/css/reset.css" rel="stylesheet" type="text/css" />
<link href="<?php echo esc_url( get_template_directory_uri() )?>/css/style.css" rel="stylesheet" type="text/css" />
<link href="<?php echo esc_url( get_template_directory_uri() )?>/css/rwd.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="<?php echo esc_url( get_template_directory_uri() )?>/css/owl.carousel.min.css">
<link rel="stylesheet" href="<?php echo esc_url( get_template_directory_uri() )?>/css/owl.theme.default.min.css">
<script src="<?php echo esc_url( get_template_directory_uri() )?>/js/jquery-1.9.1.min.js"></script>
<script src="<?php echo esc_url( get_template_directory_uri() )?>/js/main.js"></script>
<script src="<?php echo esc_url( get_template_directory_uri() )?>/js/owl.carousel.min.js"></script>
<?php wp_head(); ?>
<script>
$(function(){
$('.index_banner').owlCarousel({
items:1,
nav:true,
autoplay:true,
navText:'',
loop: $('.index_banner').children().length>1,
dots:false,
mouseDrag: true,
autoplayTimeout:5000,
smartSpeed:800,
autoplayHoverPause:true,
margin:10,
});
$('.index_project').owlCarousel({
items:1,
nav:true,
autoplay:false,
navText:'',
loop: $('.index_project').children().length>1,
dots:false,
mouseDrag: true,
autoplayTimeout:5000,
smartSpeed:800,
autoplayHoverPause:true,
});
$('.hello').owlCarousel({
items:1,
nav:false,
autoplay:true,
navText:'',
loop: $('.hello').children().length>1,
dots:false,
mouseDrag: false,
autoplayTimeout:2000,
smartSpeed:800,
autoplayHoverPause:false,
});
});
</script>
</head>
<body class="<?php
echo get_post_type( get_the_ID() );
if (is_single()) { echo ' post'; }
?>">
<!-- Menu -->
<div class="menu">
<div class="menu_logo">
<a href="<?php echo get_site_url(); ?>">
<img src="<?php echo esc_url( get_template_directory_uri() )?>/img/logo.svg" alt="狸長辦公室">
</a>
</div>
<!-- <ul class="menu_list"> -->
<?php
$args = array(
'theme_location' => 'Header-menu',
'container' => false,
'container_id' => '',
'menu_class' => 'menu_list',
'menu_id' => '',
);
wp_nav_menu( $args );
?>
<!-- <li>
<a href="about.php" title="">關於狸長</a>
</li>
<li>
<a href="project.php" title="">企劃專題</a>
</li>
<li>
<a href="article.php" title="">圖文專區</a>
</li>
<li>
<a href="news.php" title="">最新消息</a>
</li>
<li>
<a href="calender.php" title="">狸長日安</a>
</li>
<li class="menu_icon">
<a href="https://www." title="" target="_blank">
<img src="<?php echo esc_url( get_template_directory_uri() )?>/img/icon_plurk1.svg" alt="">
</a>
</li>
<li class="menu_icon">
<a href="https://www." title="" target="_blank">
<img src="<?php echo esc_url( get_template_directory_uri() )?>/img/icon_fb1.svg" alt="">
</a>
</li> -->
<!-- </ul> -->
<ul class="menu_open">
<li></li>
<li></li>
<li></li>
</ul>
</div>