Skip to content

Commit 1455ed1

Browse files
committed
新增项目
0 parents  commit 1455ed1

29 files changed

+823
-0
lines changed

404.php

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
2+
<?php $this->need('header.php'); ?>
3+
4+
<div class="col-mb-12 col-tb-8 col-tb-offset-2">
5+
6+
<div class="error-page">
7+
<h2 class="post-title">404 - <?php _e('页面没找到'); ?></h2>
8+
<p><?php _e('你想查看的页面已被转移或删除了, 要不要搜索看看: '); ?></p>
9+
<form method="post">
10+
<p><input type="text" name="s" class="text" autofocus /></p>
11+
<p><button type="submit" class="submit"><?php _e('搜索'); ?></button></p>
12+
</form>
13+
</div>
14+
15+
</div><!-- end #content-->
16+
<?php $this->need('footer.php'); ?>

archive.php

+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
2+
<?php $this->need('header.php'); ?>
3+
4+
<?php $totalpages=ceil($this->getTotal() / $this->parameter->pageSize); ?>
5+
<?php if(($this->category == 'touxiang')): //情侣头像分类?>
6+
<div class="avatar box">
7+
<ul>
8+
<?php if ($this->have()): ?>
9+
<?php while($this->next()){
10+
$imgs = getImgs($this);
11+
$nums = count($imgs);
12+
for ($i = 0 ; $i < $nums ; $i ++){ ?>
13+
<li><img class="thumb" src="<?php echo $imgs[$i]; ?>" alt="<?php $this->title() ?>"></li>
14+
<?php } } ?>
15+
<?php else: ?>
16+
<article class="post">
17+
<h2 class="post-title"><?php _e('没有找到内容'); ?></h2>
18+
</article>
19+
<?php endif; ?>
20+
</ul>
21+
</div>
22+
<?php elseif(($this->category == 'qinglv')) : //情侣壁纸分类?>
23+
<div class="gallery box">
24+
<ul>
25+
<?php if ($this->have()): ?>
26+
<?php while($this->next()){
27+
$imgs = getImgs($this);
28+
$nums = count($imgs);
29+
for ($i = 0 ; $i < $nums ; $i ++){ ?>
30+
<li><img class="thumb" src="<?php echo $imgs[$i]; ?>" alt="<?php $this->title() ?>"></li>
31+
<?php } } ?>
32+
<?php else: ?>
33+
<article class="post">
34+
<h2 class="post-title"><?php _e('没有找到内容'); ?></h2>
35+
</article>
36+
<?php endif; ?>
37+
</ul>
38+
</div>
39+
<?php else : //其它分类?>
40+
<div class="gallery box default">
41+
<ul>
42+
<?php if ($this->have()): ?>
43+
<?php while($this->next()){
44+
$imgs = getImgs($this); ?>
45+
<li><img class="thumb" src="<?php echo $imgs[0]; ?>" alt="<?php $this->title() ?>"></li>
46+
<?php } ?>
47+
<?php else: ?>
48+
<article class="post">
49+
<h2 class="post-title"><?php _e('没有找到内容'); ?></h2>
50+
</article>
51+
<?php endif; ?>
52+
</ul>
53+
</div>
54+
55+
<?php endif; ?>
56+
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
57+
<!-- 广告文字串 -->
58+
<ins class="adsbygoogle"
59+
style="display:inline-block;width:468px;height:18px"
60+
data-ad-client="ca-pub-4507282728182089"
61+
data-ad-slot="1600378371"></ins>
62+
<script>
63+
(adsbygoogle = window.adsbygoogle || []).push({});
64+
</script>
65+
<div class="pager">
66+
<?php $this->pageLink('<span>上一页</span>');?>
67+
<a class="nav_pagenum"><span><?php if($this->_currentPage>1) echo $this->_currentPage; else echo 1;?> / <?php echo ceil($this->getTotal() / $this->parameter->pageSize); ?></span></a>
68+
<?php $this->pageLink('<span>下一页</span>','next');?>
69+
</div>
70+
71+
<?php $this->need('footer.php'); ?>

comments.php

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
2+
<div id="comments">
3+
<?php $this->comments()->to($comments); ?>
4+
<?php if ($comments->have()): ?>
5+
<h3><?php $this->commentsNum(_t('暂无评论'), _t('仅有一条评论'), _t('已有 %d 条评论')); ?></h3>
6+
7+
<?php $comments->listComments(); ?>
8+
9+
<?php $comments->pageNav('&laquo; 前一页', '后一页 &raquo;'); ?>
10+
11+
<?php endif; ?>
12+
13+
<?php if($this->allow('comment')): ?>
14+
<div id="<?php $this->respondId(); ?>" class="respond">
15+
<div class="cancel-comment-reply">
16+
<?php $comments->cancelReply(); ?>
17+
</div>
18+
19+
<h3 id="response"><?php _e('添加新评论'); ?></h3>
20+
<form method="post" action="<?php $this->commentUrl() ?>" id="comment-form" role="form">
21+
<?php if($this->user->hasLogin()): ?>
22+
<p><?php _e('登录身份: '); ?><a href="<?php $this->options->profileUrl(); ?>"><?php $this->user->screenName(); ?></a>. <a href="<?php $this->options->logoutUrl(); ?>" title="Logout"><?php _e('退出'); ?> &raquo;</a></p>
23+
<?php else: ?>
24+
<p>
25+
<label for="author" class="required"><?php _e('称呼'); ?></label>
26+
<input type="text" name="author" id="author" class="text" value="<?php $this->remember('author'); ?>" required />
27+
</p>
28+
<p>
29+
<label for="mail"<?php if ($this->options->commentsRequireMail): ?> class="required"<?php endif; ?>><?php _e('Email'); ?></label>
30+
<input type="email" name="mail" id="mail" class="text" value="<?php $this->remember('mail'); ?>"<?php if ($this->options->commentsRequireMail): ?> required<?php endif; ?> />
31+
</p>
32+
<p>
33+
<label for="url"<?php if ($this->options->commentsRequireURL): ?> class="required"<?php endif; ?>><?php _e('网站'); ?></label>
34+
<input type="url" name="url" id="url" class="text" placeholder="<?php _e('http://'); ?>" value="<?php $this->remember('url'); ?>"<?php if ($this->options->commentsRequireURL): ?> required<?php endif; ?> />
35+
</p>
36+
<?php endif; ?>
37+
<p>
38+
<label for="textarea" class="required"><?php _e('内容'); ?></label>
39+
<textarea rows="8" cols="50" name="text" id="textarea" class="textarea" required ><?php $this->remember('text'); ?></textarea>
40+
</p>
41+
<p>
42+
<button type="submit" class="submit"><?php _e('提交评论'); ?></button>
43+
</p>
44+
</form>
45+
</div>
46+
<?php else: ?>
47+
<h3><?php _e('评论已关闭'); ?></h3>
48+
<?php endif; ?>
49+
</div>

css/normalize.min.css

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/style.css

+230
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,230 @@
1+
abbr,address,article,aside,audio,b,blockquote,body,canvas,caption,cite,code,dd,del,details,dfn,div,dl,dt,em,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,p,pre,q,samp,section,small,span,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,ul,var,video{margin:0;padding:0;outline:0;border:0;background:0 0;vertical-align:baseline;font-size:100%}
2+
*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}
3+
body{background: #efeff4;background-image: url(../img/bg0.jpg);background-size: cover;margin: 0;
4+
border: 0;
5+
padding: 0;}
6+
.scroll{
7+
position:absolute;
8+
overflow:scroll;
9+
-webkit-overflow-scrolling: touch;
10+
top:0;
11+
left:0;
12+
bottom:0;
13+
right:0;
14+
}
15+
header{background: #fbfbfb;overflow: hidden;}
16+
17+
.swiper-container {
18+
width: 100%;
19+
margin: 0;
20+
padding: 10px 0;
21+
}
22+
.swiper-slide {
23+
-webkit-transition: transform 1.0s;
24+
-moz-transition: transform 1.0s;
25+
-ms-transition: transform 1.0s;
26+
-o-transition: transform 1.0s;
27+
-webkit-transform: scale(0.7);
28+
transform: scale(0.7);
29+
}
30+
.swiper-slide-active,.swiper-slide-duplicate-active {
31+
-webkit-transform: scale(1);
32+
transform: scale(1);
33+
}
34+
.none-effect {
35+
-webkit-transition: none;
36+
-moz-transition: none;
37+
-ms-transition: none;
38+
-o-transition: none;
39+
}
40+
.swiper-slide a {
41+
background: #fff;
42+
padding:5px;
43+
display: block;
44+
border-radius: 5px;
45+
box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.1);
46+
}
47+
.swiper-slide a:after {
48+
position: absolute;
49+
top: 0;
50+
left: 0;
51+
display: block;
52+
box-sizing: border-box;
53+
border: 5px solid #fff;
54+
content: "";
55+
width: 100%;
56+
height: 100%;
57+
background: url(../img/top_slick_cover_bg01.png) 0 0 repeat;
58+
border-radius: 5px;
59+
}
60+
.swiper-slide-active a:after {
61+
background: none;
62+
}
63+
.swiper-slide img {
64+
width: 100%;
65+
border-radius: 5px;
66+
display: block;
67+
}
68+
.nav {
69+
width: 100%;
70+
overflow: hidden;
71+
text-align: center;
72+
margin: 0 auto;
73+
}
74+
.nav li {
75+
float: left;
76+
width: 33.333%;
77+
overflow: hidden;
78+
margin-top: 5px;
79+
margin-bottom: 5px;
80+
text-align: center;
81+
list-style-type: none;
82+
}
83+
.nav li a {
84+
overflow: hidden;
85+
color: #ffffff;
86+
font-size: 16px;
87+
font-weight: bold;
88+
text-align: center;
89+
transform: translate(0) rotate3d(0) scale(1);
90+
transition: opacity 300ms ease-out,transform 300ms ease-out;
91+
display: block;
92+
background-color: #2196F3;
93+
padding: 10px;
94+
border-radius: 3px;
95+
margin: 5px;
96+
text-decoration: none;
97+
box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
98+
}
99+
.box {
100+
padding: 10px;
101+
overflow: hidden;
102+
border-radius: 2px;
103+
-webkit-transition: all .4s ease;
104+
transition: all .4s ease;
105+
position: relative;
106+
text-align: center;
107+
}
108+
.box h1{margin: 0 auto;line-height: 40px;}
109+
.box li {
110+
margin-top: 15px;
111+
list-style: none;
112+
float: left;
113+
overflow: hidden;
114+
}
115+
.box li img {
116+
color: #777;
117+
width: 95%;
118+
display: block;
119+
text-align: center;
120+
margin: 5px auto;
121+
box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
122+
}
123+
.box li img::before{content: "";padding-top: 100%;display: block;}
124+
.avatar li{width:50%;}
125+
.avatar li img{border-radius: 5%;}
126+
127+
128+
129+
.pager{text-align: center;padding: 10px;display: flex;width: 100%;list-style: none;}
130+
.pager .prev,.pager .next{float:left;width: 100px;
131+
padding: 10px 15px;
132+
font-size: 15px;
133+
font-weight: 400;
134+
line-height: 1.4;
135+
border: none;
136+
border-radius: 4px;
137+
-webkit-transition: border .25s linear,color .25s linear,background-color .25s linear;
138+
transition: border .25s linear,color .25s linear,background-color .25s linear;
139+
-webkit-font-smoothing: subpixel-antialiased;
140+
color: #fff;
141+
background-color: #282828;text-decoration: none;}
142+
.pager .next{float: right;}
143+
.pager .prev{float: right;}
144+
.pager .nav_pagenum{margin: 0 auto;width: 90px;
145+
margin: 0 auto;
146+
text-align: center;
147+
border-color: #34495e;
148+
color: hsla(0,0%,100%,.75);
149+
background-color: #bdc3c7;
150+
filter: alpha(opacity=70);
151+
opacity: .7;
152+
padding: 10px 15px;
153+
font-size: 15px;
154+
font-weight: 400;
155+
line-height: 1.4;
156+
border: none;
157+
border-radius: 4px;
158+
-webkit-transition: border .25s linear,color .25s linear,background-color .25s linear;
159+
transition: border .25s linear,color .25s linear,background-color .25s linear;}
160+
161+
.gallery li{width:50%;}
162+
.default li{width: 25%;height:480px;}
163+
164+
.content{overflow: hidden;}
165+
.main {}
166+
.main .post{background:#fff;padding:10px;margin:10px;border-radius: 3px;box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);}
167+
.main .post .post-content{font-size:14px;}
168+
.main .post .post-content p{margin:0 0 15px;line-height: 1.5em;}
169+
.main .post img{max-width:100%;}
170+
.main .post .post-title{margin:5px 5px 10px;text-align: center;}
171+
172+
.appBox {
173+
margin: 10px;
174+
margin-top: 15px;
175+
overflow: hidden;
176+
}
177+
.appTui {
178+
overflow: hidden;
179+
margin: auto;
180+
margin-bottom: 30px;
181+
border-radius: 5px;
182+
background: #fff;
183+
box-shadow: 0 3px 6px 2px rgba(0,0,0,.03);
184+
padding: 15px 10px;
185+
text-align: left;
186+
}
187+
.appTui a {
188+
text-decoration: none;
189+
color: #333;
190+
}
191+
.appTui h3 {
192+
font-size: 1pc;
193+
margin: 8px 0 9pt;
194+
}
195+
.appTui span {
196+
font-size: 14px;
197+
}
198+
.appTui .label {
199+
font-size: 9pt;
200+
float: right;
201+
display: inline-block;
202+
padding: 3px 6px;
203+
border: 1px solid #ccc;
204+
border-radius: 2px;
205+
}
206+
@media (max-width: 1320px) {
207+
.default li{height:375px;}
208+
}
209+
@media (max-width: 1240px) {
210+
.default li{height:370px;}
211+
}
212+
@media (max-width: 1024px) {
213+
.default li{height:360px;}
214+
}
215+
@media (max-width: 980px) {
216+
.default li{height:350px;}
217+
}
218+
@media (max-width: 860px) {
219+
.default li{width: 50%;height:560px;}
220+
}
221+
@media (max-width: 720px) {
222+
.default li {height:480px;}
223+
}
224+
@media (max-width: 640px) {
225+
.default li {height:430px;}
226+
}
227+
@media (max-width: 480px) {
228+
.default li {height:290px;}
229+
}
230+
@media (max-width: 360px) {}

css/swiper.min.css

+12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)