Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
chakhsu committed Feb 26, 2016
1 parent 1456bb7 commit 97d47f7
Show file tree
Hide file tree
Showing 601 changed files with 48,435 additions and 0 deletions.
133 changes: 133 additions & 0 deletions 1-latest version/linpx v1.0.0/404.php
@@ -0,0 +1,133 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="shortcut icon" href="<?php $this->options->themeUrl('images/favicon.ico'); ?>">
<title>请求的页面不存在</title>
<style>
body{
margin:0;padding:0;
font-family: Helvetica,Arial,"PingFang SC","Microsoft YaHei","WenQuanYi Micro Hei","tohoma,sans-serif";
}
a, button.submit {
color:#6E7173;
text-decoration:none;
-webkit-transition:all .1s ease-in;
-moz-transition:all .1s ease-in;
-o-transition:all .1s ease-in;
transition:all .1s ease-in;
}
a:hover, a:active {
color:#6E7173;
}
.body404{
position: absolute;
height: 100%;
width: 100%;
background:#fff;
background-size: auto 100%;
text-shadow:1px 1px 0 #fff;
}
.body-about .body404{
background:#fff;
}
.site-name404 {
margin: 0 auto;
text-align: center;
letter-spacing: 2px;
font: normal 150px/1 “Helvetica Neue”, Helvetica, Arial;
color:#444;
}
.site-name404 h1{
margin: 0 0 10px;
font-size:50px;
line-height:1.2;
}
.title404 span{
font-size: 15px;
width: 2px;
}
.site-name404 i {
font-style: normal;
}
.title404 p{
font-size: 20px;
line-height:1.5;
margin:0;
color:#444;
}
.info404{
position: absolute;
top: 50%;
text-align: center;
width: 100%;
margin-top: -160px;
}
.body-about .info404{
margin-top: -180px;
}
#footer404{
margin-top:30px;
font-size:10px;
}
.index404 {
margin-top: 24px;
display: inline-block;
white-space: nowrap;
cursor: pointer;
background: #444;
letter-spacing: 1px;
font-size: 14px;
-moz-user-select: -moz-none;
-webkit-user-select: none;
-ms-user-select: none;
-o-user-select: none;
user-select: none;
text-shadow: none;
border: 1px solid #ccc;
line-height: 36px;
text-align: center;
height: 36px;
padding: 0 25px;
border-radius: 16px;
-webkit-transition-duration: 400ms;
transition-duration: 400ms;
background-color: #fff;
color: #999;
}
.index404:hover{
color: #F77B83;
border-color: #F77B83;
outline-style: none;
}
.icon-about{
padding: 10px 0 25px;
}
.icon-about a{
font-size: 20px;
margin: 5px;
color: #fff;
background-color: #000;
border-radius: 100%;
padding: 6px;
}
</style>
</head>
<body>
<div class="body404">
<div class="info404">
<header id="header404" class="clearfix">
<div class="site-name404"><i>404</i>
</div>
</header>
<section>
<div class="title404">
<p>情绪瞒不过野荼薇,心蠢蠢欲动比向往复杂</p>
</div><a href="<?php $this->options->siteUrl(); ?>" real="nofollow" class="index404">返回首页</a>
</section>
<footer id="footer404">© <?php echo date('Y'); ?> <?php $this->options->title(); ?></footer>
</div>
</div>
</body>
</html>
44 changes: 44 additions & 0 deletions 1-latest version/linpx v1.0.0/archive.php
@@ -0,0 +1,44 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
$this->need('header.php');
?>

<div class="container">
<div class="wrapper">
<div class="main" role="main">
<h3 class="archive-title"><?php $this->archiveTitle(array(
'category' => _t('分类 “%s” 下的文章'),
'search' => _t('包含关键字 “%s” 的文章'),
'tag' => _t('标签 “%s” 下的文章'),
'author' => _t('“%s” 发布的文章')
), '', ''); ?></h3>
<?php if ($this->have()): ?>
<?php while($this->next()): ?>

<article class="post">
<h2 class="post-title" itemprop="name headline">
<a itemtype="url" href="<?php $this->permalink() ?>"><?php $this->title() ?></a>
</h2>

<div class="post-meta">
<span datetime="<?php $this->date('c'); ?>" itemprop="datePublished"><?php $this->date('F j , Y'); ?></span><span><a href="<?php $this->permalink() ?>#comments" class="ds-thread-count" data-thread-key="<?php $this->cid(); ?>"></a></span>
</div>

<div class="post-content" itemprop="articleBody">
<?php $this->content('READ MORE...'); ?>
</div>
</article>
<?php endwhile; ?>
<?php else: ?>
<article class="post">
<h2 class="archive-search-nothing"><?php _e('没有找到内容,请换别的关键字进行检索...'); ?></h2>
</article>
<?php endif; ?>
</div>
<div class="pagenav clearfix">
<?php $this->pageNav('&laquo; ', ' &raquo;'); ?>
</div>
</div>
</div>

<?php $this->need('footer.php'); ?>
32 changes: 32 additions & 0 deletions 1-latest version/linpx v1.0.0/archives.php
@@ -0,0 +1,32 @@
<?php
/**
* Template Page of Archives
*
* @package custom
*/
$this->need('header.php');
?>

<div class="container">
<?php
$this->widget('Widget_Contents_Post_Recent', 'pageSize=10000')->to($archives);
$year=0; $mon=0; $i=0; $j=0;
$output = '<div class="archives-outer">';
while($archives->next()):
$year_tmp = date('Y',$archives->created);
$y=$year;
if ($year != $year_tmp && $year > 0) $output .= '</div></div>';
if ($year != $year_tmp) {
$year = $year_tmp;
$output .= '<div class="archives-wrapper"><div class="archive-year">'. $year .'</div><div class="archives">';
}

$output .= '<div class="archive-article"><div class="archive-article-inner"><div class="archive-article-date">'.date('F jS ',$archives->created).'</div><div class="archive-article-title"><a href="'.$archives->permalink .'" itemprop="name">'. $archives->title .'</a></div></div></div>';
endwhile;
$output .= '</div></div></div>';
echo $output;
?>

</div>

<?php $this->need('footer.php'); ?>
91 changes: 91 additions & 0 deletions 1-latest version/linpx v1.0.0/comments.php
@@ -0,0 +1,91 @@
<?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
$host = 'https://secure.gravatar.com';
$url = '/avatar/';
$size = '80';
$rating = Helper::options()->commentsAvatarRating;
$hash = md5(strtolower($comments->mail));
$avatar = $host . $url . $hash . '?s=' . $size . '&r=' . $rating . '&d=';
?>

<img class="avatar" src="<?php echo $avatar ?>" alt="<?php echo $comments->author; ?>" width="<?php echo $size ?>" height="<?php echo $size ?>" />
<div class="comment-main">
<?php $comments->content(); ?>
<div class="comment-meta">
<span class="comment-author"><?php $comments->author(); ?></span>
<time class="comment-time"><?php $comments->date(); ?></time>
<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">
<?php $this->comments()->to($comments); ?>
<?php if ($comments->have()): ?>
<span class="comment-num"><?php $this->commentsNum(_t('暂无评论'), _t('仅有 1 条评论'), _t('已有 %d 条评论')); ?></span>

<?php $comments->listComments(); ?>

<?php $comments->pageNav('&laquo;', '&raquo;'); ?>

<?php endif; ?>

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

</div>
<span class="response"><?php _e('发表新评论'); ?></span>
<form method="post" action="<?php $this->commentUrl() ?>" id="comment-form" role="form">
<?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" maxlength="12" id="author" class="form-control" placeholder="<?php _e('称呼 *'); ?>" value="<?php $this->remember('author'); ?>" required>
<input type="email" name="mail" id="mail" class="form-control" placeholder="<?php _e('电子邮箱 *'); ?>" value="<?php $this->remember('mail'); ?>"<?php if ($this->options->commentsRequireMail): ?> required<?php endif; ?>>
<input type="url" name="url" id="url" class="form-control" placeholder="<?php _e('网址(http://)'); ?>" value="<?php $this->remember('url'); ?>"<?php if ($this->options->commentsRequireURL): ?> required<?php endif; ?>>
<?php endif; ?>
<textarea name="text" id="textarea" class="form-control" onkeydown="if(event.ctrlKey&amp;&amp;event.keyCode==13){document.getElementById('misubmit').click();return false};" placeholder="<?php _e('在这里输入你的评论(Ctrl/Cmd+Enter也可以提交)...'); ?>" required ><?php $this->remember('text'); ?></textarea>
<button type="submit" class="submit" id="misubmit"><?php _e('提交评论'); ?></button>
</form>
</div>
<?php endif; ?>
</div>
1 change: 1 addition & 0 deletions 1-latest version/linpx v1.0.0/css/prism.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions 1-latest version/linpx v1.0.0/footer.php
@@ -0,0 +1,22 @@
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>

<div id="footer">
Theme is LiNPX by <a href="<?php $this->options->siteUrl(); ?>">Chakhsu Lau</a><br>&copy; <?php echo date('Y'); ?> <a href="<?php $this->options->siteUrl(); ?>"><?php $this->options->title(); ?></a> & <?php _e('由 <a href="http://www.typecho.org" target="_blank">Typecho</a> 强力驱动'); ?>

</div>

<?php $this->footer(); ?>

<script src="<?php $this->options->themeUrl('js/main.js'); ?>"></script>
<script src="<?php $this->options->themeUrl('js/prism.js'); ?>" data-no-instant></script>
<script src="<?php $this->options->themeUrl('js/instantclick.min.js'); ?>" data-no-instant></script>
<script data-no-instant>
InstantClick.on('change', function(isInitialLoad) {
if (isInitialLoad === false) {
if (typeof _self !== 'undefined') Prism.highlightAll(true,null);
}
});
InstantClick.init();
</script>
</body>
</html>
17 changes: 17 additions & 0 deletions 1-latest version/linpx v1.0.0/functions.php
@@ -0,0 +1,17 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;

/*function showThumbnail($widget){
$num = rand(1, 3);
switch($num){
case 1: $image_file = "http://ww4.sinaimg.cn/large/7c98397dgw1ezu6ixumi7j218g0g113g.jpg";
break;
case 2: $image_file = "http://ww3.sinaimg.cn/large/7c98397dgw1ezu6jolbsfj218g0h6n8c.jpg";
break;
case 3: $image_file = "http://ww4.sinaimg.cn/large/7c98397dgw1ezu6jeb8lzj218g0g1124.jpg";
break;
}
echo $image_file;
}
*/

0 comments on commit 97d47f7

Please sign in to comment.