-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathheader.php
executable file
·90 lines (83 loc) · 3.67 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
<!DOCTYPE html>
<?php $theme_root = get_theme_root() . '/shibuhouse_new_web/'; ?>
<html>
<head>
<title>渋家 || SHIBUHOUSE</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<!-- javascript -->
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/modernizr.js"></script>
<?php
$agent = $_SERVER['HTTP_USER_AGENT'];
if (strpos($agent, 'iPhone') !== false){
$browser = 'iphone';
}else if (strpos($agent, 'Android') !== false){
$browser = 'Android';
}
?>
<?php if($browser == 'iphone'){ ?>
<link href="./wp-content/themes/shibuhouse/iphone_style.css" rel='stylesheet' type='text/css'>
<?php }else if($browser == 'Android'){ ?>
<link href="<?php bloginfo('stylesheet_url') ?>" rel='stylesheet' type='text/css'>
<?php }else{ ?>
<link href="<?php bloginfo('stylesheet_url') ?>" rel='stylesheet' type='text/css'>
<?php } ?>
</head>
<body>
<div id="wrap">
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-15089697-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/ja_JP/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<p id="scroll-top" style="bottom: 20px;">
<img src="<?php bloginfo('template_url'); ?>/img/arrow_to_top.png">
</p>
<div id="logo">
<table>
<tr>
<td>
<a href="."><img src="<?php bloginfo('template_url'); ?>/img/logo.png"></a></br>
</td>
</tr>
</table>
</div><!-- #logo -->
<div id="contact">
<table>
<tr>
<td style="color:#FFFFFF; font-family: monospace;">080-3310-4083</td>
<td style="color:#FFFFFF; font-family: monospace;">
<a style="width:80px;" href="https://twitter.com/share" class="twitter-share-button" data-hashtags="shibuhouse">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
</td>
<td style="color:#FFFFFF; font-family: monospace;">
<div class="fb-like" data-href="http://shibuhouse.com" data-width="200" data-layout="button_count" data-action="like" data-show-faces="false" data-share="false"></div>
</td>
</tr>
</table>
</div>
<div id="header">
<div id="nav">
<table id="nav_table">
<tr>
<td style="padding:0 50px;"><a href="./about">アバウト</a></td>
<td style="padding:0 30px;"><a href="./bio">バイオグラフィー</a></td>
<td style="padding:0 58px;">ライフ</td>
<td style="padding:0 53px;"><a href="./member">メンバー</a></td>
</tr>
</table>
</div><!-- #nav -->
</div><!-- #header -->