-
Notifications
You must be signed in to change notification settings - Fork 11
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 b44b40d
Showing
13 changed files
with
1,090 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,9 @@ | ||
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?> | ||
<?php $this->need('header.php'); ?> | ||
<article class="post"> | ||
<header> | ||
<h1>404 - Page not found</h1> | ||
<h3>The content you're looking for doesn't seem to exist.</h3> | ||
</header> | ||
</article> | ||
<?php $this->need('footer.php'); ?> |
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,15 @@ | ||
# Cactus | ||
|
||
一个简约的Typecho响应式主题。 | ||
|
||
[发布页面](https://www.iwch.me/archives/668.html) | ||
|
||
## 效果 | ||
|
||
![screenshot.png](https://static.yecdn.com/static/blog/post/668/screenshot.png) | ||
|
||
Demo: [https://typecho.iwch.me](https://typecho.iwch.me/?theme=Cactus) | ||
|
||
## 相关 | ||
|
||
[https://github.com/digitalcraftsman/hugo-cactus-theme](https://github.com/digitalcraftsman/hugo-cactus-theme) |
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,35 @@ | ||
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?> | ||
<div id="comments"> | ||
<?php $this->comments()->to($comments); ?> | ||
<?php if ($comments->have()): ?> | ||
<p><b><?php $this->commentsNum(_t('快抢沙发'), _t('沙发被抢'), _t('已有 %d 条评论')); ?></b></p> | ||
<div data-no-instant> | ||
<?php $comments->listComments(); ?> | ||
</div> | ||
<div class="center"><?php $comments->pageNav(); ?></div> | ||
<?php endif; ?> | ||
<?php if($this->allow('comment')): ?> | ||
<div id="<?php $this->respondId(); ?>" class="respond"> | ||
<div class="cancel-comment-reply"> | ||
<?php $comments->cancelReply(); ?> | ||
</div> | ||
<p id="comments" class="subhead"><b><?php _e('添加新评论'); ?></b></p> | ||
<form method="post" action="<?php $this->commentUrl() ?>" id="comment-form" class="form"> | ||
<?php if($this->user->hasLogin()): ?> | ||
<p>登录为 <a href="<?php $this->options->profileUrl(); ?>" target="_blank" data-no-instant><?php $this->user->screenName(); ?></a>. <a href="<?php $this->options->logoutUrl(); ?>" data-no-instant><?php _e('退出'); ?> »</a></p> | ||
<?php else: ?> | ||
<p><input type="text" name="author" id="author" class="text" placeholder="称呼" value="<?php $this->remember('author'); ?>" required /></p> | ||
<p><input type="email" name="mail" id="mail" class="text" placeholder="Email" value="<?php $this->remember('mail'); ?>"<?php if ($this->options->commentsRequireMail): ?> required<?php endif; ?> /></p> | ||
<p><input type="url" name="url" id="url" class="text" placeholder="<?php _e('http://'); ?>" value="<?php $this->remember('url'); ?>"<?php if ($this->options->commentsRequireURL): ?> required<?php endif; ?> /></p> | ||
<?php endif; ?> | ||
<p><textarea rows="8" cols="50" name="text" id="textarea" class="textarea" placeholder="内容" required ><?php $this->remember('text'); ?></textarea></p> | ||
<p><button type="submit" class="submit"><?php _e('提交评论 (Ctrl+Enter)'); ?></button></p> | ||
</form> | ||
</div> | ||
<?php if ($this->options->Ic == 'o'): ?> | ||
<script type="text/javascript">(function(){window.TypechoComment={dom:function(id){return document.getElementById(id)},create:function(tag,attr){var el=document.createElement(tag);for(var key in attr){el.setAttribute(key,attr[key])}return el},reply:function(cid,coid){var comment=this.dom(cid),parent=comment.parentNode,response=this.dom("<?php $this->respondId(); ?>"),input=this.dom("comment-parent"),form="form"==response.tagName?response:response.getElementsByTagName("form")[0],textarea=response.getElementsByTagName("textarea")[0];if(null==input){input=this.create("input",{"type":"hidden","name":"parent","id":"comment-parent"});form.appendChild(input)}input.setAttribute("value",coid);if(null==this.dom("comment-form-place-holder")){var holder=this.create("div",{"id":"comment-form-place-holder"});response.parentNode.insertBefore(holder,response)}comment.appendChild(response);this.dom("cancel-comment-reply-link").style.display="";if(null!=textarea&&"text"==textarea.name){textarea.focus()}return false},cancelReply:function(){var response=this.dom("<?php $this->respondId(); ?>"),holder=this.dom("comment-form-place-holder"),input=this.dom("comment-parent");if(null!=input){input.parentNode.removeChild(input)}if(null==holder){return true}this.dom("cancel-comment-reply-link").style.display="none";holder.parentNode.insertBefore(response,holder);return false}}})();</script> | ||
<?php endif; ?> | ||
<?php else: ?> | ||
<?php _e('<div class="alert info center">Comments Disabled.</div>'); ?> | ||
<?php endif; ?> | ||
</div> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
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,11 @@ | ||
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?> | ||
<footer id="footer"> | ||
<p class="small"> | ||
© Copyright <?php echo date('Y'); ?> <a href="<?php $this->options->siteUrl(); ?>"><?php $this->options->title() ?></a> / | ||
<a href="https://www.iwch.me/archives/668.html">Cactus</a> / | ||
<a href="http://typecho.org">Typecho</a> | ||
</p> | ||
</footer> | ||
</section> | ||
</body> | ||
</html> |
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,26 @@ | ||
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?> | ||
<!DOCTYPE html> | ||
<html lang="zh-cn"> | ||
<head> | ||
<meta charset="<?php $this->options->charset(); ?>"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | ||
<meta name="renderer" content="webkit"> | ||
<meta name="viewport" content="width=device-width,initial-scale=1"> | ||
<title><?php $this->archiveTitle(array( | ||
'category' => _t('分类 %s 下的文章'), | ||
'search' => _t('包含关键字 %s 的文章'), | ||
'tag' => _t('标签 %s 下的文章'), | ||
'author' => _t('%s 发布的文章') | ||
), '', ' - '); ?><?php $this->options->title(); ?></title> | ||
<link rel="stylesheet" href="<?php $this->options->themeUrl('style.css'); ?>"> | ||
<?php $this->header(); ?> | ||
|
||
</head> | ||
<body> | ||
<nav class="main-nav"> | ||
<a href="<?php $this->options->siteUrl(); ?>">首页</a> | ||
<?php $this->widget('Widget_Contents_Page_List')->parse('<a href="{permalink}">{title}</a>'); ?> | ||
|
||
<a class="cta" href="<?php $this->options->feedUrl(); ?>">订阅</a> | ||
</nav> | ||
<section id="wrapper"> |
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,48 @@ | ||
<?php | ||
/** | ||
* 一个简约的Typecho响应式主题。 | ||
* | ||
* @package Cactus | ||
* @author Zohar | ||
* @version 1.0.0 | ||
* @link https://www.iwch.me/ | ||
*/ | ||
|
||
if (!defined('__TYPECHO_ROOT_DIR__')) exit; | ||
$this->need('header.php'); | ||
?> | ||
<div class="profile"> | ||
<section id="wrapper"> | ||
<header id="header"> | ||
<a href="<?php $this->options->siteUrl(); ?>"> | ||
<img id="avatar" src="https://secure.gravatar.com/avatar/<?php echo md5(strtolower($this->author->mail)); ?>"> | ||
</a> | ||
<h1><?php $this->options->title() ?></h1> | ||
<h2><?php $this->options->description() ?></h2> | ||
</header> | ||
</section> | ||
</div> | ||
<ul id="post-list"> | ||
<?php while($this->next()): ?> | ||
<li> | ||
<a href="<?php $this->permalink() ?>"> | ||
<aside class="dates"><?php $this->date('M j Y'); ?></aside> | ||
</a> | ||
<a href="<?php $this->permalink() ?>"> | ||
<?php $this->title() ?> | ||
<h2></h2> | ||
</a> | ||
</li> | ||
<?php endwhile; ?> | ||
</ul> | ||
<nav id="post-nav"> | ||
<span class="prev"> | ||
<?php $this->pageLink('<span class="arrow">←</span> 上一页','prev'); ?> | ||
|
||
</span> | ||
<span class="next"> | ||
<?php $this->pageLink('下一页 <span class="arrow">→</span>','next'); ?> | ||
|
||
</span> | ||
</nav> | ||
<?php $this->need('footer.php'); ?> |
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,14 @@ | ||
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?> | ||
<?php $this->need('header.php'); ?> | ||
<article class="post"> | ||
<header> | ||
<h1><?php $this->title() ?></h1> | ||
<h2 class="headline"><?php $this->date('F j, Y'); ?></h2> | ||
</header> | ||
<section id="post-body"> | ||
<?php $this->content(); ?> | ||
|
||
</section> | ||
</article> | ||
<?php $this->need('comments.php'); ?> | ||
<?php $this->need('footer.php'); ?> |
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,19 @@ | ||
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?> | ||
<?php $this->need('header.php'); ?> | ||
<article class="post"> | ||
<header> | ||
<h1><?php $this->title() ?></h1> | ||
<h2 class="headline"> | ||
<?php $this->date('F j, Y'); ?> | ||
|
||
<?php $this->category(' '); ?> | ||
|
||
</h2> | ||
</header> | ||
<section id="post-body"> | ||
<?php $this->content(); ?> | ||
|
||
</section> | ||
</article> | ||
<?php $this->need('comments.php'); ?> | ||
<?php $this->need('footer.php'); ?> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.