Skip to content

Commit 43f7712

Browse files
committed
First edition
0 parents  commit 43f7712

File tree

161 files changed

+50413
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

161 files changed

+50413
-0
lines changed

404.php

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<?php
2+
if ( ! defined( 'ABSPATH' ) ) { exit; }
3+
get_header(); ?>
4+
5+
6+
<?php
7+
$categories= get_categories(array(
8+
'taxonomy' => 'favorites',
9+
'meta_key' => '_term_order',
10+
'orderby' => 'meta_value_num',
11+
'order' => 'desc',
12+
'hide_empty' => 0,
13+
)
14+
);
15+
include( 'header-nav.php' );
16+
?>
17+
18+
<style type="text/css">
19+
.data-null {text-align: center;padding:100px 0}
20+
.data-null h1 {font-size: 6rem;padding: 0;}
21+
.data-null .btn-home {color: #fff;position: relative;top: 0;padding: 10px 75px;background: #f1404b;font-weight: 600;border-radius: 900px;transition: .2s;box-shadow: 0px 5px 20px -3px rgba(249, 100, 90, .6);}
22+
.data-null .btn-home:hover {top:2px;background:#333;box-shadow:none;transition:.2s}
23+
.single-content input {height: 37px;line-height: 37px;font: 14px "Microsoft YaHei",Helvetica;padding: 2px 10px;background: #ebebeb;border: 1px solid #ebebeb;border-radius: 20px 0 0 20px;-webkit-appearance: none;}
24+
.single-content #searchsubmit {overflow: visible;position: relative;border: 0;cursor: pointer;height: 37px;color: #fff;background: #f1404b;border-radius: 0 20px 20px 0;transition: .2s;}
25+
.single-content #searchsubmit:hover {background: #333;}
26+
.screen-reader-text{display: none;}
27+
</style>
28+
29+
<div class="main-content">
30+
<div class="row">
31+
<div class="col-12 col-lg-12">
32+
<section class="data-null">
33+
<h1 class="font-theme">404</h1>
34+
<p><?php _e('抱歉,没有你要找的内容...','i_owen') ?></p>
35+
<div class="single-content">
36+
<?php get_search_form(); ?>
37+
</div>
38+
<div style="margin-top: 30px">
39+
<a class="btn-home" href="<?php bloginfo('url'); ?>"><?php _e('返回首页','i_owen') ?></a>
40+
</div>
41+
</section>
42+
</div>
43+
</div>
44+
<?php get_footer(); ?>

LICENSE

+674
Large diffs are not rendered by default.

README.md

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# WebStack
2+
WordPress 版 WebStack 主题
3+
<br/>
4+
5+
### 首页截图
6+
<br/>
7+
8+
![Thumbnail_index](https://i.loli.net/2019/02/18/5c6a81958b193.png)
9+
10+
<br/>
11+
12+
### 环境要求
13+
+ WordPress 4.4+
14+
+ WordPress 伪静态
15+
+ PHP 5.7+ 7.0+
16+
17+
<br/>
18+
19+
### 安装指南
20+
+ WordPress 后台「主题」栏目 -> 上传主题 -> 启用主题
21+
+ WordPress Themes 文件夹新建文件夹,并上传所有文件
22+
+ 反馈交♂流:<a href="https://www.iowen.cn" target="_blank">一为忆</a>
23+
24+
<br/>
25+
26+
### 主题使用
27+
+ 在 WordPress 后台“网址”文章类型下添加内容
28+
+ 分类最多两级,且父级不要添加内容
29+
+ 可以不添加网址图片,主题会自动获取目标网址的 favicon 图标
30+
<br/>

comments.php

+83
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
<?php
2+
/**
3+
* The template for displaying comments
4+
*
5+
* This is the template that displays the area of the page that contains both the current comments
6+
* and the comment form.
7+
*
8+
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
9+
*
10+
* @package WordPress
11+
* @subpackage Twenty_Seventeen
12+
* @since 1.0
13+
* @version 1.0
14+
*/
15+
16+
/*
17+
* If the current post is protected by a password and
18+
* the visitor has not yet entered the password we will
19+
* return early without loading the comments.
20+
*/
21+
if ( post_password_required() ) {
22+
return;
23+
}
24+
?>
25+
26+
<div id="comments" class="comments-area">
27+
28+
<?php
29+
// You can start editing here -- including this comment!
30+
if ( have_comments() ) :
31+
?>
32+
<h2 class="comments-title">
33+
<?php
34+
$comments_number = get_comments_number();
35+
if ( '1' === $comments_number ) {
36+
/* translators: %s: post title */
37+
printf( _x( 'One Reply to &ldquo;%s&rdquo;', 'comments title', 'twentyseventeen' ), get_the_title() );
38+
} else {
39+
printf(
40+
/* translators: 1: number of comments, 2: post title */
41+
_nx(
42+
'%1$s Reply to &ldquo;%2$s&rdquo;',
43+
'%1$s Replies to &ldquo;%2$s&rdquo;',
44+
$comments_number,
45+
'comments title',
46+
'twentyseventeen'
47+
),
48+
number_format_i18n( $comments_number ),
49+
get_the_title()
50+
);
51+
}
52+
?>
53+
</h2>
54+
55+
<ol class="comment-list">
56+
<?php
57+
wp_list_comments(
58+
array(
59+
'avatar_size' => 100,
60+
'style' => 'ol',
61+
'short_ping' => true,
62+
)
63+
);
64+
?>
65+
</ol>
66+
67+
<?php
68+
69+
70+
endif; // Check for have_comments().
71+
72+
// If comments are closed and there are comments, let's leave a little note, shall we?
73+
if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) :
74+
?>
75+
76+
<p class="no-comments"><?php _e( 'Comments are closed.', 'twentyseventeen' ); ?></p>
77+
<?php
78+
endif;
79+
80+
comment_form();
81+
?>
82+
83+
</div><!-- #comments -->

css/bootstrap.css

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

css/font-awesome.min.css

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

css/fonts/elusive/css/animation.css

+85
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
/*
2+
Animation example, for spinners
3+
*/
4+
.animate-spin {
5+
-moz-animation: spin 2s infinite linear;
6+
-o-animation: spin 2s infinite linear;
7+
-webkit-animation: spin 2s infinite linear;
8+
animation: spin 2s infinite linear;
9+
display: inline-block;
10+
}
11+
@-moz-keyframes spin {
12+
0% {
13+
-moz-transform: rotate(0deg);
14+
-o-transform: rotate(0deg);
15+
-webkit-transform: rotate(0deg);
16+
transform: rotate(0deg);
17+
}
18+
19+
100% {
20+
-moz-transform: rotate(359deg);
21+
-o-transform: rotate(359deg);
22+
-webkit-transform: rotate(359deg);
23+
transform: rotate(359deg);
24+
}
25+
}
26+
@-webkit-keyframes spin {
27+
0% {
28+
-moz-transform: rotate(0deg);
29+
-o-transform: rotate(0deg);
30+
-webkit-transform: rotate(0deg);
31+
transform: rotate(0deg);
32+
}
33+
34+
100% {
35+
-moz-transform: rotate(359deg);
36+
-o-transform: rotate(359deg);
37+
-webkit-transform: rotate(359deg);
38+
transform: rotate(359deg);
39+
}
40+
}
41+
@-o-keyframes spin {
42+
0% {
43+
-moz-transform: rotate(0deg);
44+
-o-transform: rotate(0deg);
45+
-webkit-transform: rotate(0deg);
46+
transform: rotate(0deg);
47+
}
48+
49+
100% {
50+
-moz-transform: rotate(359deg);
51+
-o-transform: rotate(359deg);
52+
-webkit-transform: rotate(359deg);
53+
transform: rotate(359deg);
54+
}
55+
}
56+
@-ms-keyframes spin {
57+
0% {
58+
-moz-transform: rotate(0deg);
59+
-o-transform: rotate(0deg);
60+
-webkit-transform: rotate(0deg);
61+
transform: rotate(0deg);
62+
}
63+
64+
100% {
65+
-moz-transform: rotate(359deg);
66+
-o-transform: rotate(359deg);
67+
-webkit-transform: rotate(359deg);
68+
transform: rotate(359deg);
69+
}
70+
}
71+
@keyframes spin {
72+
0% {
73+
-moz-transform: rotate(0deg);
74+
-o-transform: rotate(0deg);
75+
-webkit-transform: rotate(0deg);
76+
transform: rotate(0deg);
77+
}
78+
79+
100% {
80+
-moz-transform: rotate(359deg);
81+
-o-transform: rotate(359deg);
82+
-webkit-transform: rotate(359deg);
83+
transform: rotate(359deg);
84+
}
85+
}

0 commit comments

Comments
 (0)