forked from owen0o0/WebStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 43f7712
Showing
161 changed files
with
50,413 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?php | ||
if ( ! defined( 'ABSPATH' ) ) { exit; } | ||
get_header(); ?> | ||
|
||
|
||
<?php | ||
$categories= get_categories(array( | ||
'taxonomy' => 'favorites', | ||
'meta_key' => '_term_order', | ||
'orderby' => 'meta_value_num', | ||
'order' => 'desc', | ||
'hide_empty' => 0, | ||
) | ||
); | ||
include( 'header-nav.php' ); | ||
?> | ||
|
||
<style type="text/css"> | ||
.data-null {text-align: center;padding:100px 0} | ||
.data-null h1 {font-size: 6rem;padding: 0;} | ||
.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);} | ||
.data-null .btn-home:hover {top:2px;background:#333;box-shadow:none;transition:.2s} | ||
.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;} | ||
.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;} | ||
.single-content #searchsubmit:hover {background: #333;} | ||
.screen-reader-text{display: none;} | ||
</style> | ||
|
||
<div class="main-content"> | ||
<div class="row"> | ||
<div class="col-12 col-lg-12"> | ||
<section class="data-null"> | ||
<h1 class="font-theme">404</h1> | ||
<p><?php _e('抱歉,没有你要找的内容...','i_owen') ?></p> | ||
<div class="single-content"> | ||
<?php get_search_form(); ?> | ||
</div> | ||
<div style="margin-top: 30px"> | ||
<a class="btn-home" href="<?php bloginfo('url'); ?>"><?php _e('返回首页','i_owen') ?></a> | ||
</div> | ||
</section> | ||
</div> | ||
</div> | ||
<?php get_footer(); ?> |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# WebStack | ||
WordPress 版 WebStack 主题 | ||
<br/> | ||
|
||
### 首页截图 | ||
<br/> | ||
|
||
![Thumbnail_index](https://i.loli.net/2019/02/18/5c6a81958b193.png) | ||
|
||
<br/> | ||
|
||
### 环境要求 | ||
+ WordPress 4.4+ | ||
+ WordPress 伪静态 | ||
+ PHP 5.7+ 7.0+ | ||
|
||
<br/> | ||
|
||
### 安装指南 | ||
+ WordPress 后台「主题」栏目 -> 上传主题 -> 启用主题 | ||
+ WordPress Themes 文件夹新建文件夹,并上传所有文件 | ||
+ 反馈交♂流:<a href="https://www.iowen.cn" target="_blank">一为忆</a> | ||
|
||
<br/> | ||
|
||
### 主题使用 | ||
+ 在 WordPress 后台“网址”文章类型下添加内容 | ||
+ 分类最多两级,且父级不要添加内容 | ||
+ 可以不添加网址图片,主题会自动获取目标网址的 favicon 图标 | ||
<br/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
<?php | ||
/** | ||
* The template for displaying comments | ||
* | ||
* This is the template that displays the area of the page that contains both the current comments | ||
* and the comment form. | ||
* | ||
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/ | ||
* | ||
* @package WordPress | ||
* @subpackage Twenty_Seventeen | ||
* @since 1.0 | ||
* @version 1.0 | ||
*/ | ||
|
||
/* | ||
* If the current post is protected by a password and | ||
* the visitor has not yet entered the password we will | ||
* return early without loading the comments. | ||
*/ | ||
if ( post_password_required() ) { | ||
return; | ||
} | ||
?> | ||
|
||
<div id="comments" class="comments-area"> | ||
|
||
<?php | ||
// You can start editing here -- including this comment! | ||
if ( have_comments() ) : | ||
?> | ||
<h2 class="comments-title"> | ||
<?php | ||
$comments_number = get_comments_number(); | ||
if ( '1' === $comments_number ) { | ||
/* translators: %s: post title */ | ||
printf( _x( 'One Reply to “%s”', 'comments title', 'twentyseventeen' ), get_the_title() ); | ||
} else { | ||
printf( | ||
/* translators: 1: number of comments, 2: post title */ | ||
_nx( | ||
'%1$s Reply to “%2$s”', | ||
'%1$s Replies to “%2$s”', | ||
$comments_number, | ||
'comments title', | ||
'twentyseventeen' | ||
), | ||
number_format_i18n( $comments_number ), | ||
get_the_title() | ||
); | ||
} | ||
?> | ||
</h2> | ||
|
||
<ol class="comment-list"> | ||
<?php | ||
wp_list_comments( | ||
array( | ||
'avatar_size' => 100, | ||
'style' => 'ol', | ||
'short_ping' => true, | ||
) | ||
); | ||
?> | ||
</ol> | ||
|
||
<?php | ||
|
||
|
||
endif; // Check for have_comments(). | ||
|
||
// If comments are closed and there are comments, let's leave a little note, shall we? | ||
if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) : | ||
?> | ||
|
||
<p class="no-comments"><?php _e( 'Comments are closed.', 'twentyseventeen' ); ?></p> | ||
<?php | ||
endif; | ||
|
||
comment_form(); | ||
?> | ||
|
||
</div><!-- #comments --> |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
/* | ||
Animation example, for spinners | ||
*/ | ||
.animate-spin { | ||
-moz-animation: spin 2s infinite linear; | ||
-o-animation: spin 2s infinite linear; | ||
-webkit-animation: spin 2s infinite linear; | ||
animation: spin 2s infinite linear; | ||
display: inline-block; | ||
} | ||
@-moz-keyframes spin { | ||
0% { | ||
-moz-transform: rotate(0deg); | ||
-o-transform: rotate(0deg); | ||
-webkit-transform: rotate(0deg); | ||
transform: rotate(0deg); | ||
} | ||
|
||
100% { | ||
-moz-transform: rotate(359deg); | ||
-o-transform: rotate(359deg); | ||
-webkit-transform: rotate(359deg); | ||
transform: rotate(359deg); | ||
} | ||
} | ||
@-webkit-keyframes spin { | ||
0% { | ||
-moz-transform: rotate(0deg); | ||
-o-transform: rotate(0deg); | ||
-webkit-transform: rotate(0deg); | ||
transform: rotate(0deg); | ||
} | ||
|
||
100% { | ||
-moz-transform: rotate(359deg); | ||
-o-transform: rotate(359deg); | ||
-webkit-transform: rotate(359deg); | ||
transform: rotate(359deg); | ||
} | ||
} | ||
@-o-keyframes spin { | ||
0% { | ||
-moz-transform: rotate(0deg); | ||
-o-transform: rotate(0deg); | ||
-webkit-transform: rotate(0deg); | ||
transform: rotate(0deg); | ||
} | ||
|
||
100% { | ||
-moz-transform: rotate(359deg); | ||
-o-transform: rotate(359deg); | ||
-webkit-transform: rotate(359deg); | ||
transform: rotate(359deg); | ||
} | ||
} | ||
@-ms-keyframes spin { | ||
0% { | ||
-moz-transform: rotate(0deg); | ||
-o-transform: rotate(0deg); | ||
-webkit-transform: rotate(0deg); | ||
transform: rotate(0deg); | ||
} | ||
|
||
100% { | ||
-moz-transform: rotate(359deg); | ||
-o-transform: rotate(359deg); | ||
-webkit-transform: rotate(359deg); | ||
transform: rotate(359deg); | ||
} | ||
} | ||
@keyframes spin { | ||
0% { | ||
-moz-transform: rotate(0deg); | ||
-o-transform: rotate(0deg); | ||
-webkit-transform: rotate(0deg); | ||
transform: rotate(0deg); | ||
} | ||
|
||
100% { | ||
-moz-transform: rotate(359deg); | ||
-o-transform: rotate(359deg); | ||
-webkit-transform: rotate(359deg); | ||
transform: rotate(359deg); | ||
} | ||
} |
Oops, something went wrong.