index.html
4.7 KB
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
<!DOCTYPE html>
<html>
<head>
<title>第三方登录 - {$site.name}</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="__CDN__/assets/css/frontend.min.css" rel="stylesheet">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<h2>第三方登录</h2>
<hr>
<div class="well">
<div class="row">
<div class="col-xs-4">
{if $user && in_array('qq', $platformList)}
<a href="{:addon_url('third/index/unbind',[':platform'=>'qq'])}" class="btn btn-block btn-info">
<i class="fa fa-qq"></i> 点击解绑
</a>
{else/}
<a href="{:addon_url('third/index/connect',[':platform'=>'qq'])}" class="btn btn-block btn-info">
<i class="fa fa-qq"></i> QQ登录
</a>
{/if}
</div>
<div class="col-xs-4">
{if $user && in_array('wechat', $platformList)}
<a href="{:addon_url('third/index/unbind',[':platform'=>'wechat'])}" class="btn btn-block btn-success">
<i class="fa fa-wechat"></i> 点击解绑
</a>
{else/}
<a href="{:addon_url('third/index/connect',[':platform'=>'wechat'])}" class="btn btn-block btn-success">
<i class="fa fa-wechat"></i> 微信登录
</a>
{/if}
</div>
<div class="col-xs-4">
{if $user && in_array('weibo', $platformList)}
<a href="{:addon_url('third/index/unbind',[':platform'=>'weibo'])}" class="btn btn-block btn-danger">
<i class="fa fa-weibo"></i> 点击解绑
</a>
{else/}
<a href="{:addon_url('third/index/connect',[':platform'=>'weibo'])}" class="btn btn-block btn-danger">
<i class="fa fa-weibo"></i> 微博登录
</a>
{/if}
</div>
</div>
</div>
<h2>相关链接</h2>
<hr>
<table class="table table-striped table-hover">
<thead>
<tr>
<th>QQ</th>
<th>链接</th>
</tr>
</thead>
<tbody>
<tr>
<td>QQ 连接</td>
<td>{:addon_url('third/index/connect',[':platform'=>'qq'], false, true)}</td>
</tr>
<tr>
<td>QQ 绑定</td>
<td>{:addon_url('third/index/bind',[':platform'=>'qq'], false, true)}</td>
</tr>
<tr>
<td>QQ 解绑</td>
<td>{:addon_url('third/index/unbind',[':platform'=>'qq'], false, true)}</td>
</tr>
</tbody>
</table>
<table class="table table-striped table-hover">
<thead>
<tr>
<th>微信</th>
<th>链接</th>
</tr>
</thead>
<tbody>
<tr>
<td>微信 连接</td>
<td>{:addon_url('third/index/connect',[':platform'=>'wechat'], false, true)}</td>
</tr>
<tr>
<td>微信 绑定</td>
<td>{:addon_url('third/index/bind',[':platform'=>'wechat'], false, true)}</td>
</tr>
<tr>
<td>微信 解绑</td>
<td>{:addon_url('third/index/unbind',[':platform'=>'wechat'], false, true)}</td>
</tr>
</tbody>
</table>
<table class="table table-striped table-hover">
<thead>
<tr>
<th>微博</th>
<th>链接</th>
</tr>
</thead>
<tbody>
<tr>
<td>微博 连接</td>
<td>{:addon_url('third/index/connect',[':platform'=>'weibo'], false, true)}</td>
</tr>
<tr>
<td>微博 绑定</td>
<td>{:addon_url('third/index/bind',[':platform'=>'weibo'], false, true)}</td>
</tr>
<tr>
<td>微博 解绑</td>
<td>{:addon_url('third/index/unbind',[':platform'=>'weibo'], false, true)}</td>
</tr>
</tbody>
</table>
</div>
<!-- jQuery -->
<script src="https://cdn.jsdelivr.net/npm/jquery@2.1.4/dist/jquery.min.js"></script>
<!-- Bootstrap Core JavaScript -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js"></script>
<script type="text/javascript">
$(function () {
});
</script>
</body>
</html>