Skip to content

Commit

Permalink
First edition
Browse files Browse the repository at this point in the history
  • Loading branch information
owen0o0 committed Aug 26, 2019
0 parents commit 43f7712
Show file tree
Hide file tree
Showing 161 changed files with 50,413 additions and 0 deletions.
44 changes: 44 additions & 0 deletions 404.php
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(); ?>
674 changes: 674 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

30 changes: 30 additions & 0 deletions README.md
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/>
83 changes: 83 additions & 0 deletions comments.php
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 &ldquo;%s&rdquo;', 'comments title', 'twentyseventeen' ), get_the_title() );
} else {
printf(
/* translators: 1: number of comments, 2: post title */
_nx(
'%1$s Reply to &ldquo;%2$s&rdquo;',
'%1$s Replies to &ldquo;%2$s&rdquo;',
$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 -->
1 change: 1 addition & 0 deletions css/bootstrap.css

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions css/font-awesome.min.css

Large diffs are not rendered by default.

85 changes: 85 additions & 0 deletions css/fonts/elusive/css/animation.css
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);
}
}
Loading

0 comments on commit 43f7712

Please sign in to comment.