Skip to content

Commit

Permalink
🎉 New Verison 2
Browse files Browse the repository at this point in the history
  • Loading branch information
bhaoo committed Aug 26, 2021
1 parent 30c147f commit 2396d48
Show file tree
Hide file tree
Showing 108 changed files with 8,507 additions and 1,662 deletions.
30 changes: 30 additions & 0 deletions 404.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php
/**
* .______ __ __ ___ ______
* | _ \ | | | | / \ / __ \
* | |_) | | |__| | / ^ \ | | | |
* | _ < | __ | / /_\ \ | | | |
* | |_) | | | | | / _____ \ | `--' |
* |______/ |__| |__| /__/ \__\ \______/
*
* 404
*
* @author Bhao
* @link https://dwd.moe/
* @version 2.0.0
*/

if(!defined('__TYPECHO_ROOT_DIR__')) exit;
$this -> need('includes/header.php');
?>
<div class="index-container">
<div class="mdui-col-md-8">
<div class="mdui-card archive-card mdui-hoverable">
<div class="archive-title">
<p>不要看这里!这里没有文章呐!</p>
</div>
</div>
</div>
<?php $this -> need('includes/sidebar.php'); ?>
</div>
<?php $this -> need('includes/footer.php'); ?>
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,21 @@
- 全站PJAX+评论AJAX
- 响应式 / 自适应
- 图片懒加载 Lazyload
- 文章目录树
- 图片灯箱 Fancybox
- Infinite Scroll 瀑布流加载
- 用户UA以及仿Biibili认证
- 支持评论表情
- 代码高亮
- 支持自定义评论表情
- 支持代码高亮
- 支持多种联系方式
- 基于 Links 的友链页面
- B站追番独立页面
- Bilibili 追番独立页面
- 自定义静态文件源 / 随机图源
- 自定义抽屉导航栏

## 最后

1. 欢迎各位加入 [主题交流群](//shang.qq.com/wpa/qunwpa?idkey=ceaeca22d995870dc4e5d35ee0b98542c337c99f0955b648917dc18957818bb4)
2. 主题文档:[https://cuckoo.owo.show/](https://cuckoo.owo.show/)
2. 主题文档:[https://cuckoo.owo.show/](https://cuckoo.owo.show/) (请注意区分 2.x 和 1.x)
3. 提问前请先阅读 “主题文档” 先哦!
4. 如果喜欢这个主题,欢迎各位点个 Star !

Expand Down
144 changes: 69 additions & 75 deletions archive.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,92 +6,86 @@
* | _ < | __ | / /_\ \ | | | |
* | |_) | | | | | / _____ \ | `--' |
* |______/ |__| |__| /__/ \__\ \______/
*
*
* Archive
*
*
* @author Bhao
* @link https://dwd.moe/
* @version 1.0.5
* @version 2.0.0
*/

if (!defined('__TYPECHO_ROOT_DIR__')) exit;
$this->need('includes/header.php');
if(!defined('__TYPECHO_ROOT_DIR__')) exit;
$this -> need('includes/header.php');
?>
<div class="container">
<?php
$this->need('includes/sidebar.php');
if ($this->have()) :

?>
<div class="left">
<div class="mdui-card page-card mdui-shadow-10">
<div class="index-container">
<div class="mdui-col-md-8">
<?php if ($this->have()) : ?>
<div class="mdui-card archive-card mdui-hoverable">
<div class="archive-title">
<span><?php $this->archiveTitle(array(
'category' => _t('分类 <i>%s</i> 下的文章'),
'search' => _t('包含关键字 <i>%s</i> 的文章'),
'tag' => _t('标签 <i>%s</i> 下的文章'),
'author' => _t('<i>%s</i> 发布的文章')
), '', '');
?></span>
'category' => _t('分类 <i>%s</i> 下的文章'),
'search' => _t('包含关键字 <i>%s</i> 的文章'),
'tag' => _t('标签 <i>%s</i> 下的文章'),
'author' => _t('<i>%s</i> 发布的文章')
), '', '');
?></span>
</div>
</div>
<?php
while ($this->next()) :
if ($this->fields->articleType == "article" or $this->fields->articleType == NULL) { ?>
<div class="mdui-card page-card mdui-shadow-10 page">
<div class="mdui-card-media page-img">
<div class="page-img" data-original="<?php $wzimg = $this->fields->wzimg;
if (!empty($wzimg)) {
echo $wzimg;
} else {
echo randPic();
} ?>"></div>
</div>
<div class="mdui-card-primary page-primary">
<div class="mdui-card-primary-title"><a href="<?php $this->permalink() ?>"><?php $this->sticky();
$this->title() ?></a></div>
<div class="mdui-card-primary-subtitle"><?php $this->date(); ?><?php $this->commentsNum('0 条评论', '1 条评论', '%d 条评论'); ?></div>
<div class="article">
<?php while ($this->next()) :
if ($this->fields->articleType == "article" or $this->fields->articleType == NULL) { ?>
<a class="post" href="<?php $this -> permalink() ?>">
<div class="mdui-card index-card mdui-hoverable">
<div class="mdui-card-media index-img-media">
<div class="index-img" data-bg="<?php $wzimg = $this->fields->wzimg;if (!empty($wzimg)) {echo $wzimg;} else {echo randPic();} ?>"></div>
<div class="index-card-filter"></div>
<div class="mdui-card-media-covered">
<div class="mdui-card-primary index-primary">
<div class="mdui-card-primary-title"><?php $this -> title(); ?></div>
<div class="mdui-card-primary-subtitle index-info"><?php $this -> date(); ?>
<?php $this -> commentsNum('0 条评论', '1 条评论', '%d 条评论'); ?></div>
<div class="mdui-card-primary-subtitle index-subtitle"><?php $this -> excerpt(); ?></div>
</div>
</div>
</div>
</div>
</a>
<?php } elseif ($this->fields->articleType == "daily") { ?>
<div class="mdui-card index-card-daily mdui-hoverable post">
<div class="index-icon mdui-shadow-3">
<div></div>
<i class="mdui-icon material-icons">message</i>
</div>
<div class="mdui-card-primary">
<div class="mdui-card-primary-subtitle"><?php $this->sticky(); $this -> date('Y-m-d H:i:s'); ?></div>
</div>
<div class="mdui-card-content mdui-typo"><?php parseContent(parseBiaoQing($this->content)); ?></div>
</div>
<div class="mdui-card-content page-content"><?php $this->excerpt(70, ' ...'); ?></div>
<div class="mdui-card-actions">
<a href="<?php $this->permalink() ?>"><button class="mdui-btn mdui-float-right">
<font color="#E91E63">点击查看</font>
</button></a>
</div>
</div>
<?php
} elseif ($this->fields->articleType == "daily") { ?>
<div class="mdui-card page-card mdui-shadow-10">
<div class="mdui-card-primary">
<div class="daily-icon"><i class="mdui-icon material-icons">insert_comment</i></div>
<div class="mdui-card-primary-title daily-title"><a href="<?php $this->permalink() ?>"><?php $this->title(); ?></a></div>
<div class="mdui-card-primary-subtitle daily-subtitle"><?php $this->date(); ?><?php $this->commentsNum('0 条评论', '1 条评论', '%d 条评论'); ?></div>
</div>
<div class="mdui-card-actions daily-button">
<a href="<?php $this->permalink() ?>"><button class="mdui-btn mdui-float-right">
<font color="#E91E63">点击查看</font>
</button></a>
</div>
</div>
<?php
}
endwhile;
?>
<div class="changePage">
<?php $this->pageLink('下一页', 'next'); ?>
<?php
}
endwhile; ?>
</div>
</div>
<?php
else : ?>
<div class="left">
<div class="mdui-card page-card mdui-shadow-10">
<div class="archive-title">
<p>不要看这里!这里没有文章呐!</p>
</div>
<?php $this->pageLink('下一页', 'next'); ?>
<div class="changePage changePage-end">
<span class="infinite-scroll-request">加载中...</span>
<span class="infinite-scroll-last">到底了啦</span>
</div>
<?php if($this->getTotal() > 1){ ?>
<div class="changePage changePage-load">加载更多</div>
<?php }else{ ?>
<div class="changePage">到底了啦</div>
<?php } ?>
<?php else : ?>
<div class="mdui-card archive-card mdui-hoverable">
<div class="archive-title">
<p>不要看这里!这里没有文章呐!</p>
</div>
</div>
<?php endif;
if ($this->_currentPage < ceil($this->getTotal() / $this->parameter->pageSize)) { ?>
<div class="checkLast"></div>
<?php } ?>
</div>
<?php
endif; ?>
</div>
<?php
$this->need('includes/footer.php'); ?>
<?php $this -> need('includes/sidebar.php'); ?>
</div>
<?php $this -> need('includes/footer.php'); ?>
Loading

0 comments on commit 2396d48

Please sign in to comment.