Skip to content

Commit

Permalink
开新坑咯~
Browse files Browse the repository at this point in the history
请勿下载还没弄好!
  • Loading branch information
censujiang committed Nov 11, 2018
0 parents commit 8ed66d4
Show file tree
Hide file tree
Showing 142 changed files with 14,703 additions and 0 deletions.
33 changes: 33 additions & 0 deletions 404.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?php
/**
* The template for displaying 404 pages (not found).
*
* @link https://codex.wordpress.org/Creating_an_Error_404_Page
*
* @package Mokore
*/

?>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title itemprop="name"><?php global $page, $paged;wp_title( '-', true, 'right' );
bloginfo( 'name' );$site_description = get_bloginfo( 'description', 'display' );
if ( $site_description && ( is_home() || is_front_page() ) ) echo " - $site_description";if ( $paged >= 2 || $page >= 2 ) echo ' - ' . sprintf( __( '第 %s 页'), max( $paged, $page ) );?>
</title>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<section class="error-404 not-found">
<div class="error-img">
<img src="<?php echo get_bloginfo('template_url'); ?>/images/404.jpg">
</div>
<div class="err-button back">
<a id="golast" href=javascript:history.go(-1);>返回上一页</a>
<a id="gohome" href="<?php bloginfo('url');?>">返回主页</a>
</div>
</section>
</body>


7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Mokore
WordPress Theme

Mokore 是基于Akina主题修改而来的,感谢[Fuzzz](http://fui.im/)写出了这么好的主题
这个主题可以说是面向个人博主吧,偏二次元方向,感谢您的下载,我会持续更新

Warning:这个主题还没有编写完成!请勿下载
65 changes: 65 additions & 0 deletions archive.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<?php
/**
* The template for displaying archive pages.
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package Mokore
*/

get_header(); ?>

<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">

<?php
if ( have_posts() ) : ?>

<?php if(mokore_option('patternimg') || !z_taxonomy_image_url()) { ?>
<header class="page-header">
<h1 class="cat-title"><?php single_cat_title('', true); ?></h1>
<span class="cat-des">
<?php
if(category_description() != ""){
echo "" . category_description();
}
?>
</span>
</header><!-- .page-header -->
<?php } // page-header ?>

<?php
/* Start the Loop */
while ( have_posts() ) : the_post();
/*
* 图片展示分类
*/
if ( mokore_option('image_category') && is_category(explode(',',mokore_option('image_category'))) ){
get_template_part( 'tpl/content', 'category' );
} else {
get_template_part( 'tpl/content', get_post_format() );
}

endwhile;
?>
<div class="clearer"></div>

<?php else :

get_template_part( 'tpl/content', 'none' );

endif; ?>

</main><!-- #main -->
<?php if ( mokore_option('pagenav_style') == 'ajax') { ?>
<div id="pagination" <?php if(mokore_option('image_category') && is_category(explode(',',mokore_option('image_category')))) echo 'class="pagination-archive"'; ?>><?php next_posts_link(__('Previous')); ?></div>
<?php }else{ ?>
<nav class="navigator">
<?php previous_posts_link('<i class="iconfont">&#xe679;</i>') ?><?php next_posts_link('<i class="iconfont">&#xe6a3;</i>') ?>
</nav>
<?php } ?>
</div><!-- #primary -->

<?php
get_sidebar();
get_footer();
86 changes: 86 additions & 0 deletions author.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
<?php

get_header();

?>
<div class="author_info">
<div class="avatar">
<img src="<?php echo get_avatar_profile_url(); ?>" itemprop="image" alt="<?php the_author(); ?>" height="70" width="70">
</div>
<div class="author-center">
<h3><?php the_author() ?></h3>
<div class="description"><?php echo get_the_author_meta( 'description' ) ? get_the_author_meta( 'description' ) : mokore_option('admin_des', 'Carpe Diem and Do what I like'); ?></div>
</div>
</div>
<style type="text/css">
.author_info{
margin-top: 50px;
overflow: hidden;
padding: 40px 0;
position: relative;
border-bottom: 1px solid #eee;
font-family: miranafont,"Hiragino Sans GB",STXihei,"Microsoft YaHei",SimSun,sans-serif;
}
.author_info .avatar{
float: left;
margin-right: 12px;
margin-left: 8px;
}
.author_info .avatar img{
border-radius: 100%;
border: 2px solid #fff;
background: #fff;
vertical-align: middle;
}
.author_info .author-center{
line-height: 28px;
padding-top: 9px;
}
.author_info .author-center h3{
font-weight: 700;
font-size: 20px;
line-height: 1.2;
margin-bottom: 5px;
display: inline;
}
.author-description {
font-size: 14px;
color: rgba(0,0,0,.4);
line-height: 1.2;
}
</style>
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">

<?php
if ( have_posts() ) :
/* Start the Loop */
while ( have_posts() ) : the_post();
/*
* Include the Post-Format-specific template for the content.
* If you want to override this in a child theme, then include a file
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
*/
get_template_part( 'tpl/content', get_post_format() );
endwhile;
?>
<div class="clearer"></div>
<?php else :

get_template_part( 'tpl/content', 'none' );

endif; ?>

</main><!-- #main -->
<?php if ( mokore_option('pagenav_style') == 'ajax') { ?>
<div id="pagination"><?php next_posts_link(__('Previous')); ?></div>
<?php }else{ ?>
<nav class="navigator">
<?php previous_posts_link('<i class="iconfont">&#xe679;</i>') ?><?php next_posts_link('<i class="iconfont">&#xe6a3;</i>') ?>
</nav>
<?php } ?>
</div><!-- #primary -->

<?php
get_sidebar();
get_footer();
85 changes: 85 additions & 0 deletions comments.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
<?php

/**
* COMMENTS TEMPLATE
*/

/*if('comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
die(esc_html__('Please do not load this page directly.', 'mokore'));*/

if(post_password_required()){
return;
}

?>

<?php if(comments_open()): ?>

<section id="comments" class="comments">

<div class="commentwrap comments-hidden">
<div class="notification"><i class="iconfont">&#xe731;</i><?php esc_html_e('查看评论', 'mokore'); ?> -
<span class="noticom"><?php comments_number('NOTHING', '1 条评论', '% 条评论'); ?> </span>
</div>
</div>

<div class="comments-main">
<h3 id="comments-list-title">COMMENTS | <span class="noticom"><?php comments_number('NOTHING', '1 条评论', '% 条评论'); ?> </span></h3>
<div id="loading-comments"><span></span></div>
<?php if(have_comments()): ?>

<ul class="commentwrap">
<?php wp_list_comments('type=comment&callback=mokore_comment_format'); ?>
</ul>

<nav id="comments-navi">
<?php paginate_comments_links('prev_text=« Older&next_text=Newer »');?>
</nav>

<?php else : ?>

<?php if(comments_open()): ?>
<div class="commentwrap">
<div class="notification-hidden"><i class="iconfont">&#xe731;</i> <?php esc_html_e('兄Die,确定不抢沙发吗?', 'mokore'); ?></div>

</div>
<?php endif; ?>

<?php endif; ?>

<?php

if(comments_open()){
if(mokore_option('norobot')) $robot_comments = '<label class="mokore-checkbox-label"><input class="mokore-checkbox-radio" type="checkbox" name="no-robot"><span class="mokore-no-robot-checkbox mokore-checkbox-radioInput"></span>滴!网络好卡</label>';
$private_ms = mokore_option('open_private_message') ? '<label class="mokore-checkbox-label"><input class="mokore-checkbox-radio" type="checkbox" name="is-private"><span class="mokore-is-private-checkbox mokore-checkbox-radioInput"></span>私密评论</label>' : '';
$args = array(
'id_form' => 'commentform',
'id_submit' => 'submit',
'title_reply' => '',
'title_reply_to' => '<div class="graybar"><i class="fa fa-comments-o"></i>' . esc_html__('Leave a Reply to', 'mokore') . ' %s' . '</div>',
'cancel_reply_link' => esc_html__('Cancel Reply', 'mokore'),
'label_submit' => esc_html__('Post Comment', 'mokore'),
'comment_field' => '<textarea placeholder="' . esc_attr__('Type in your comments', 'mokore') . ' ..." name="comment" class="commentbody" id="comment" rows="5" tabindex="4"></textarea>',
'comment_notes_after' => '',
'comment_notes_before' => '',
'fields' => apply_filters( 'comment_form_default_fields', array(
'author' =>
'<input type="text" placeholder="' . esc_attr__('昵称', 'mokore') . ' ' . ( $req ? '(' . esc_attr__('必填项', 'mokore') . ')' : '') . '" name="author" id="author" value="' . esc_attr($comment_author) . '" size="22" tabindex="1" ' . ($req ? "aria-required='true'" : '' ). ' />',
'email' =>
'<input type="text" placeholder="' . esc_attr__('邮箱', 'mokore') . ' ' . ( $req ? '(' . esc_attr__('必填项', 'mokore') . ')' : '') . '" name="email" id="email" value="' . esc_attr($comment_author_email) . '" size="22" tabindex="1" ' . ($req ? "aria-required='true'" : '' ). ' />',
'url' =>
'<input type="text" placeholder="' . esc_attr__('博客', 'mokore') . '" name="url" id="url" value="' . esc_attr($comment_author_url) . '" size="22" tabindex="1" />' . $robot_comments . $private_ms
)
)
);
comment_form($args);
}

?>

</div>


</section>

<?php endif; ?>
83 changes: 83 additions & 0 deletions footer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
<?php
/**
* The template for displaying the footer.
*
* Contains the closing of the #content div and all content after.
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package Mokore
*/

?>
</div><!-- #content -->
<?php
if(mokore_option('general_disqus_plugin_support')){
get_template_part('layouts/duoshuo');
}else{
comments_template('', true);
}
?>
</div><!-- #page Pjax container-->
<footer id="colophon" class="site-footer" role="contentinfo">
<div class="site-info">
<div class="footertext">
<p class="foo-logo" style="background-image: url('<?php bloginfo('template_url'); ?>/images/f-logo.png');"></p>
<p><?php echo mokore_option('footer_info', ''); ?></p>
</div>
<div class="footer-device">
<?php
$statistics_link = mokore_option('site_statistics_link') ? '<a href="'.mokore_option('site_statistics_link').'" target="_blank" rel="nofollow">Statistics</a>' : '';
$site_map_link = mokore_option('site_map_link') ? '<a href="'.mokore_option('site_map_link').'" target="_blank" rel="nofollow">Sitemap</a>' : '';
printf(esc_html__( '%1$s &nbsp; %2$s &nbsp; %3$s &nbsp; %4$s', 'mokore' ), $site_map_link, '本站主题<a href="http://mokore.dfjcx.cn" rel="designer" target="_blank" rel="nofollow">Mokore</a>', '|自豪地使用<a href="https://wordpress.org/" target="_blank" rel="nofollow">WordPress</a>', $statistics_link);
?>
</div>
</div><!-- .site-info -->
</footer><!-- #colophon -->
<div class="openNav">
<div class="iconflat">
<div class="icon"></div>
</div>
<div class="site-branding">
<?php if (mokore_option('mokore_logo')){ ?>
<div class="site-title"><a href="<?php bloginfo('url');?>" ><img src="<?php echo mokore_option('mokore_logo'); ?>"></a></div>
<?php }else{ ?>
<h1 class="site-title"><a href="<?php bloginfo('url');?>" ><?php bloginfo('name');?></a></h1>
<?php } ?>
</div>
</div><!-- m-nav-bar -->
</section><!-- #section -->
<!-- m-nav-center -->
<div id="mo-nav">
<div class="m-avatar">
<?php $ava = mokore_option('focus_logo') ? mokore_option('focus_logo') : get_template_directory_uri().'/images/avatar.jpg'; ?>
<img src="<?php echo $ava ?>">
</div>
<div class="m-search">
<form class="m-search-form" method="get" action="<?php echo home_url(); ?>" role="search">
<input class="m-search-input" type="search" name="s" placeholder="<?php _e('搜索...', 'mokore') ?>" required>
</form>
</div>
<?php wp_nav_menu( array( 'depth' => 2, 'theme_location' => 'primary', 'container' => false ) ); ?>
</div><!-- m-nav-center end -->
<a href="#" class="cd-top"></a>
<!-- search start -->
<form class="js-search search-form search-form--modal" method="get" action="<?php echo home_url(); ?>" role="search">
<div class="search-form__inner">
<div>
<p class="micro mb-"><?php _e('大佬你想找什么呢 ...', 'mokore') ?></p>
<i class="iconfont">&#xe65c;</i>
<input class="text-input" type="search" name="s" placeholder="<?php _e('Search', 'mokore') ?>" required>
</div>
</div>
<div class="search_close"></div>
</form>
<!-- search end -->
<?php wp_footer(); ?>
<?php if(mokore_option('site_statistics')){ ?>
<div class="site-statistics">
<script type="text/javascript"><?php echo mokore_option('site_statistics'); ?></script>
</div>
<?php } ?>
</body>
</html>
Loading

0 comments on commit 8ed66d4

Please sign in to comment.