-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
93 lines (90 loc) · 4.55 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title><?php echo $page_title ?></title>
<meta name="keywords" content="天南海北天水人 ">
<meta name="description" content="沟通心灵的桥梁 连接乡情的纽带">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="./lib/bootstrap-3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link href="./lib/responsive-nav-1.12/responsive-nav.min.css" rel="stylesheet">
<link rel="stylesheet" href="./lib/bootstrap-3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" media="screen" href="css/main.css" />
<script src="./lib/jquery-3.3.1/jquery.min.js"></script>
<script src="./lib/bootstrap-3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<script src="./lib/responsive-nav-1.12/responsive-nav.js"></script>
<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script src="./js/main.js"></script>
</head>
<body>
<header>
<div class="header">
<div class="container">
<div class="top">
<a href="/" title="天南海北天水人" rel="home" style="font-size:40px;">
<span>天南海北天水人</span></a>
<br><img src="img/sub.PNG" alt="">
</div>
<div id="nav" class="closed menu" aria-hidden="false" style="transition: max-height 400ms ease 0s; position: relative;">
<ul>
<li><a href="category.php?category=famous">大家风范</a></li>
<li><a href="category.php?category=medical">大医精诚</a></li>
<li><a href="category.php?category=writer">作家剪影</a></li>
<li><a href="category.php?category=printing">书画掠影</a></li>
<li><a href="category.php?category=embark">创业之道</a></li>
<li><a href="category.php?category=beauty">影艺娱乐</a></li>
<li><a href="category.php?category=military">军旅如歌</a></li>
<li><a href="category.php?category=folk">民间记忆</a></li>
<li><a href="category.php?category=nostalgia">记住乡愁</a></li>
<li><a href="category.php?category=travel">行游天水</a></li>
<li><a href="category.php?category=drama">戏剧人生</a></li>
<li><a href="category.php?category=news">天水动态</a></li>
</ul>
</div>
<!-- <div id="toggle">菜单</div> -->
</div>
</div>
<?php
require_once "jssdk.php";
$appid = 'wxc3a89b2d9eb20b84';
$APPSECRET = 'b90e2947a5dde6605b2387f89d6e35d6';
$jssdk = new JSSDK($appid, $APPSECRET);
$signPackage = $jssdk->GetSignPackage();
?>
<script>
wx.config({
debug: false,
appId: '<?php echo $appid; ?>',
timestamp: <?php echo $signPackage["timestamp"]; ?>,
nonceStr: '<?php echo $signPackage["nonceStr"]; ?>',
signature: '<?php echo $signPackage["signature"]; ?>',
jsApiList: [
'checkJsApi',
'openLocation',
'getLocation',
'onMenuShareTimeline',
'onMenuShareAppMessage'
]
});
wx.ready(function() {
wx.onMenuShareTimeline({
title: document.title, // 分享标题
link: document.URL, // 分享链接
imgUrl: 'http://www.0938tsr.cn/timg.jpeg' // 分享图标
});
wx.onMenuShareAppMessage({
title: document.title, // 分享标题
desc: "天南海北天水人 - 沟通心灵的桥梁 连接乡情的纽带",
link: document.URL, // 分享链接
imgUrl: 'http://www.0938tsr.cn/timg.jpeg' // 分享图标
});
});
responsiveNav("#nav");
// var navigation = responsiveNav("#nav",{customToggle: "#toggle"});
</script>
</header>
<hr>
<div class="content">
<div class="container">