-
Notifications
You must be signed in to change notification settings - Fork 52
/
page-links.php
125 lines (106 loc) · 2.9 KB
/
page-links.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
124
125
<?php
/**
* 友情链接页面
*
* @package custom
*/
$this->need('header.php'); ?>
<style>
.md-links {
min-height: calc(100% - 120px - 5pc - 6em);
text-align: center;
overflow: auto;
padding: 0;
margin: 0 auto;
max-width: 320px;
}
@media screen and (min-width: 680px) {
.md-links {
max-width: 640px;
}
}
@media screen and (min-width: 1000px) {
.md-links {
max-width: 960px;
}
}
@media screen and (min-width: 1320px) {
.md-links {
max-width: 1280px;
}
}
@media screen and (min-width: 1640px) {
.md-links {
max-width: 1600px;
}
}
@media screen and (max-width: 480px) {
.md-links {
min-height: calc(100% - 200px - 5pc - 6em);
margin-top: 6em;
}
}
.md-links-item {
background: #fff;
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .14), 0 3px 1px -2px rgba(0, 0, 0, .2), 0 1px 5px 0 rgba(0, 0, 0, .12);
height: 72px;
line-height: 15px;
margin: 20px 10px;
padding: 0px 0px;
transition: box-shadow 0.25s;
}
.md-links a {
color: #333;
text-decoration: none;
}
.md-links li {
width: 300px;
float: left;
list-style: none;
}
.md-links-item img {
float: left;
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .14), 0 3px 11px -2px rgba(0, 0, 0, .2), 0 1px 5px 0 rgba(0, 0, 0, .12);
}
.md-links-item:hover {
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.md-links-item a:hover{
cursor: pointer;
}
.md-links-title {
font-size: 20px;
line-height: 50px;
}
#scheme-Paradox .mdl-mini-footer{
clear: left;
}
#bottom{
position: relative;
}
</style>
<div class="material-layout mdl-js-layout has-drawer is-upgraded">
<main class="material-layout__content" id="main">
<div class="min-height-for-footer">
<!-- Top Anchor -->
<div id="top"></div>
<!-- Hamburger Button -->
<button class="MD-burger-icon sidebar-toggle">
<span id="MD-burger-id" class="MD-burger-layer"></span>
</button>
<div class="md-links">
<?php if (class_exists("Links_Plugin")): ?>
<?php Links_Plugin::output('
<a href="{url}" title="{title}" target="_blank">
<li class="md-links-item">
<img src="{image}" alt="{name}" height="72px"/>
<span class="md-links-title">{name}</span><br />
<span>{description}</span>
</li>
</a>
'); ?>
<?php endif; ?>
</div>
</div>
<?php $this->need('sidebar.php'); ?>
<?php $this->need('footer.php'); ?>