Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
SurGarfield authored Mar 22, 2021
1 parent e5c719a commit 6753618
Show file tree
Hide file tree
Showing 21 changed files with 2,130 additions and 0 deletions.
36 changes: 36 additions & 0 deletions archive.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?php
/**
* tmaize
*
* @package tmaize
* @author 森木志
* @version 1.0.0
* @link https://imxxz.cn
*/

if (!defined('__TYPECHO_ROOT_DIR__')) exit;
$this->need('header.php');
?>
<div class="page page-index">
<div class="list-post">

<ul>

<?php while($this->next()): ?>
<li>
<span class="date"><?php $this->date('Y/m/d'); ?></span>
<div class="title">
<a href="<?php $this->permalink() ?>" class="hover-underline"><?php $this->title() ?></a>
</div>
<div class="categories">
<?php $this->category(','); ?>
</div>
</li>
<?php endwhile; ?>

</ul>

</div>
<?php $this->need('fenye.php'); ?>
</div>
<?php $this->need('footer.php'); ?>
97 changes: 97 additions & 0 deletions comments.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>

<?php
function threadedComments($comments, $options)
{
$commentClass = '';
if ($comments->authorId) {
if ($comments->authorId == $comments->ownerId) {
$commentClass .= ' comment-by-author';
} else {
$commentClass .= ' comment-by-user';
}
}
$commentLevelClass = $comments->levels > 0 ? ' comment-child' : ' comment-parent';
if ($comments->url) {
$author = '<a href="' . $comments->url . '"' . '" target="_blank"' . ' rel="external nofollow">' . $comments->author . '</a>';
} else {
$author = $comments->author;
}
?>
<li id="li-<?php $comments->theId(); ?>" class="comment-body<?php
if ($comments->levels > 0) {
echo ' comment-child';
$comments->levelsAlt(' comment-level-odd', ' comment-level-even');
} else {
echo ' comment-parent';
}
$comments->alt(' comment-odd', ' comment-even');
echo $commentClass;
?>">
<div id="<?php $comments->theId(); ?>">
<?php $avatar = 'https://sdn.geekzu.org/avatar/' . md5(strtolower($comments->mail)) . '?s=80&r=X&d='; ?>
<img class="avatar" src="<?php echo $avatar ?>" alt="<?php echo $comments->author; ?>" />
<div class="comment_main">
<?php $comments->content(); ?>
<div class="comment_meta">
<span class="comment_author"><?php echo $author ?></span> <span class="comment_time"><?php $comments->date(); ?></span><span class="comment_reply"><?php $comments->reply(); ?></span>
</div>
</div>
</div>
<?php if ($comments->children) { ?><div class="comment-children"><?php $comments->threadedComments($options); ?></div><?php } ?>
</li>
<?php } ?>

<div id="comments" class="gen">
<?php $this->comments()->to($comments); ?>

<?php if ($this->allow('comment')) : ?>
<div id="<?php $this->respondId(); ?>" class="respond">
<div class="cancel-comment-reply">
<?php $comments->cancelReply(); ?>
</div>

<form method="post" action="<?php $this->commentUrl() ?>" id="comment-form" role="form">

<div class="comment-editor">
<textarea name="text" id="textarea" class="textarea textarea_box" required onkeydown="if((event.ctrlKey||event.metaKey)&&event.keyCode==13){document.getElementById('submitComment').click();return false};"><?php $this->remember('text'); ?></textarea>
</div>

<div class="comment-inputs">
<?php if ($this->user->hasLogin()) : ?>
<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>
<?php else : ?>
<input type="text" name="author" id="comment-name" class="text" placeholder="<?php _e('name'); ?>" value="<?php $this->remember('author'); ?>" required />

<input type="email" name="mail" id="comment-mail" class="text" placeholder="<?php _e('mail'); ?>" value="<?php $this->remember('mail'); ?>" <?php if ($this->options->commentsRequireMail) : ?> required<?php endif; ?> />

<input type="url" name="url" id="comment-url" class="text" placeholder="<?php _e('https://'); ?>" value="<?php $this->remember('url'); ?>" <?php if ($this->options->commentsRequireURL) : ?> required<?php endif; ?> />
<?php endif; ?>
</div>

<div class="comment-buttons">

<div class="right">
<button id="submitComment" type="submit" class="submit"><?php _e('提交'); ?></button>
</div>
</div>
</form>
</div>
<?php else : ?>
<h2>
<center><?php _e('抱歉,评论已关闭...'); ?></center>
</h2>
<?php endif; ?>
<h2 class="comments-title"><?php $this->commentsNum(_t('暂无评论'), _t('仅有一条评论'), _t('已有 %d 条评论')); ?></h2>
<div class="comments_lie">
<?php if ($comments->have()) : ?>


<div class="commentslists"> <?php $comments->listComments(); ?></div>

<div class="nav-page">
<center><?php $comments->pageNav('&laquo;', '&raquo;'); ?></center>
</div>
<?php endif; ?>
</div>
</div>
202 changes: 202 additions & 0 deletions css/code-dark.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,202 @@
html.dark .highlight,
html.dark pre.highlight {
/* background: #282c34; */
background: #161b22;
color: #abb2bf;
}
html.dark .highlight pre {
/* background: #282c34; */
background: #161b22;
}
html.dark .highlight .hll {
background: #282c34;
}
html.dark .highlight .c {
color: #5c6370;
font-style: italic;
}
html.dark .highlight .err {
color: #960050;
background-color: #1e0010;
}
html.dark .highlight .k {
color: #c678dd;
}
html.dark .highlight .l {
color: #98c379;
}
html.dark .highlight .n {
color: #abb2bf;
}
html.dark .highlight .o {
color: #abb2bf;
}
html.dark .highlight .p {
color: #abb2bf;
}
html.dark .highlight .cm {
color: #5c6370;
font-style: italic;
}
html.dark .highlight .cp {
color: #5c6370;
font-style: italic;
}
html.dark .highlight .c1 {
color: #5c6370;
font-style: italic;
}
html.dark .highlight .cs {
color: #5c6370;
font-style: italic;
}
html.dark .highlight .ge {
font-style: italic;
}
html.dark .highlight .gs {
font-weight: 700;
}
html.dark .highlight .kc {
color: #c678dd;
}
html.dark .highlight .kd {
color: #c678dd;
}
html.dark .highlight .kn {
color: #c678dd;
}
html.dark .highlight .kp {
color: #c678dd;
}
html.dark .highlight .kr {
color: #c678dd;
}
html.dark .highlight .kt {
color: #c678dd;
}
html.dark .highlight .ld {
color: #98c379;
}
html.dark .highlight .m {
color: #d19a66;
}
html.dark .highlight .s {
color: #98c379;
}
html.dark .highlight .na {
color: #d19a66;
}
html.dark .highlight .nb {
color: #e5c07b;
}
html.dark .highlight .nc {
color: #e5c07b;
}
html.dark .highlight .no {
color: #e5c07b;
}
html.dark .highlight .nd {
color: #e5c07b;
}
html.dark .highlight .ni {
color: #e5c07b;
}
html.dark .highlight .ne {
color: #e5c07b;
}
html.dark .highlight .nf {
color: #abb2bf;
}
html.dark .highlight .nl {
color: #e5c07b;
}
html.dark .highlight .nn {
color: #abb2bf;
}
html.dark .highlight .nx {
color: #abb2bf;
}
html.dark .highlight .py {
color: #e5c07b;
}
html.dark .highlight .nt {
color: #e06c75;
}
html.dark .highlight .nv {
color: #e5c07b;
}
html.dark .highlight .ow {
font-weight: 700;
}
html.dark .highlight .w {
color: #f8f8f2;
}
html.dark .highlight .mf {
color: #d19a66;
}
html.dark .highlight .mh {
color: #d19a66;
}
html.dark .highlight .mi {
color: #d19a66;
}
html.dark .highlight .mo {
color: #d19a66;
}
html.dark .highlight .sb {
color: #98c379;
}
html.dark .highlight .sc {
color: #98c379;
}
html.dark .highlight .sd {
color: #98c379;
}
html.dark .highlight .s2 {
color: #98c379;
}
html.dark .highlight .se {
color: #98c379;
}
html.dark .highlight .sh {
color: #98c379;
}
html.dark .highlight .si {
color: #98c379;
}
html.dark .highlight .sx {
color: #98c379;
}
html.dark .highlight .sr {
color: #56b6c2;
}
html.dark .highlight .s1 {
color: #98c379;
}
html.dark .highlight .ss {
color: #56b6c2;
}
html.dark .highlight .bp {
color: #e5c07b;
}
html.dark .highlight .vc {
color: #e5c07b;
}
html.dark .highlight .vg {
color: #e5c07b;
}
html.dark .highlight .vi {
color: #e06c75;
}
html.dark .highlight .il {
color: #d19a66;
}
html.dark .highlight .gu {
color: #75715e;
}
html.dark .highlight .gd {
color: #f92672;
}
html.dark .highlight .gi {
color: #a6e22e;
}
Loading

0 comments on commit 6753618

Please sign in to comment.