Repository: Dreamer-Paul/Fantasy
Branch: master
Commit: 30a5c2a03219
Files: 19
Total size: 81.1 KB
Directory structure:
gitextract_cqrwn061/
├── .github/
│ └── ISSUE_TEMPLATE.md
├── 404.php
├── LICENSE
├── README-EN.md
├── README.md
├── archive.php
├── bangumi.php
├── comments.php
├── fantasy.php
├── footer.php
├── functions.php
├── header.php
├── index.php
├── page.php
├── post.php
└── static/
├── fantasy.css
├── fantasy.js
├── kico.css
└── kico.js
================================================
FILE CONTENTS
================================================
================================================
FILE: .github/ISSUE_TEMPLATE.md
================================================
### 1. 该问题的重现步骤是什么?
### 2. 正常情况下应该是什么结果,你看到的呢?
### 3. 服务器的运行环境是?
- 操作系统版本:
- Apache/Nginx 版本:
- PHP 版本:
- 主题版本:
- 浏览器版本:
[//]: # (如有图片请附上截图)
================================================
FILE: 404.php
================================================
need('header.php');
?>
404
你正在寻找的文章已经不见了,不妨看看其他文章?
'- {title}{date}
'
);
$db = Typecho_Db::get();
$sql = $db -> select() -> from('table.contents')
-> where('status = ?','publish')
-> where('type = ?', 'post')
-> limit(6)
-> order('RAND()');
$result = $db->fetchAll($sql);
foreach($result as $value){
$value = Typecho_Widget::widget('Widget_Abstract_Contents') -> filter($value);
echo str_replace(array('{permalink}', '{title}', '{date}'), array($value['permalink'], $value['title'], date("Y-m-d", $value['created'])), $defaults['xformat']);
}
}
theme_random_posts();
?>
need('footer.php'); ?>
================================================
FILE: LICENSE
================================================
MIT License
Copyright (C) 2018 Dreamer-Paul
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
================================================
FILE: README-EN.md
================================================

# Fantasy
A Gorgeous, Fantastic Anime-Style Typecho Blog Theme. Based on The Official Website of Anime "Slow Start". 中文文档
## How to Use It
1. `Star` this project.
1. Download the theme source code from [here](https://github.com/Dreamer-Paul/Fantasy/archive/master.zip).
1. Upload the theme to your server,rename it to `Fantasy` then put it under the `usr/themes/` content.
1. Log in to your Typecho dashboard,select to enable the theme. Then enjoy it!
## Project Story
Please see my blog post for detail: [Fantasy Anime-Style Theme](https://paugram.com/coding/fantasy-theme.html)
## Opensource License
The project is released and authorise the `MIT` lisence. Base on that, you will still need to keep the original authors' copyright code comments (include but not exclude CSS and JS, etc.). It will be best if you could include the theme's URL at your footer!
It isn't easy to develop this project! If you like it, please support me by `Star` it .
At the same time welcome to [my blog](https://paugram.com/about.html#donate) and donate me, thank you!
## Credit
### Used Opensource Project
- [Kico Style](https://github.com/Dreamer-Paul/Kico-Style)
- [Font Awesome](https://github.com/FortAwesome/Font-Awesome)
================================================
FILE: README.md
================================================

# Fantasy
一个优美梦幻的动漫风 Typecho 博客主题。基于动漫 “Slow Start” 官网的设计风格编写而成。English Document
## 使用方法
1. `Star` 本项目
1. 从这里 [下载](https://github.com/Dreamer-Paul/Fantasy/archive/master.zip) 主题源码
1. 上传本主题,重命名为 `Fantasy` 并放置在 `usr/themes/` 目录下
1. 登录你的 Typecho 后台,选择启用主题即可食用~
## 项目故事
详见我的博文:[Fantasy 动漫风主题](https://paugram.com/coding/fantasy-theme.html)
## 开源协议
本项目采用 `MIT` 开源协议进行授权,并在其基础上须保留原作者的版权注释(包括但不限于 CSS、JS 等文件),当然能在页尾写上主题地址就是最好的啦~
原创不易!如果喜欢本项目,请 `Star` 它以示对我的支持~
同时欢迎前往 [我的博客](https://paugram.com/about.html#donate) 为我提供赞助,谢谢您!
## 使用的开源项目
- [Kico Style](https://github.com/Dreamer-Paul/Kico-Style)
- [Font Awesome](https://github.com/FortAwesome/Font-Awesome)
================================================
FILE: archive.php
================================================
need('header.php');
?>
archiveTitle(array(
'category' => _t('%s'),
'search' => _t('搜索结果:%s'),
'tag' => _t('%s'),
'author' => _t('%s 的文章')
), '', ''); ?>
have()): ?>
next()): ?>
没有找到结果 (QWQ)
pageNav('', ''); ?>
need('footer.php'); ?>
================================================
FILE: bangumi.php
================================================
need('header.php');
?>
need('footer.php'); ?>
================================================
FILE: comments.php
================================================
authorId) {
if($comments->authorId == $comments->ownerId){
$commentClass .= ' by-author';
}
}
$commentLevelClass = $comments->levels > 0 ? ' comment-child' : ' comment-parent';
?>
allow('comment')): ?>
参与讨论
comments()->to($comments); ?>
have()): ?>
listComments(array('before' => '')); ?>
pageNav('', '', 3, '...', array('wrapTag' => 'section', 'itemTag' => 'span')); ?>
================================================
FILE: fantasy.php
================================================
bgm_user;
$uid = $uid ? $uid : 433599;
$bgm = file_get_contents("https://api.bgm.tv/user/" . $uid . "/collection?cat=playing");
$bgm = json_decode($bgm);
if($bgm){
foreach($bgm as $item){
$bid = $item -> subject -> id;
$name = $item -> subject -> name_cn ? $item -> subject -> name_cn : $item -> subject -> name;
$seem = $item -> ep_status;
$image = self::convert_https($item -> subject -> images -> large);
$total = property_exists($item -> subject, "eps_count") ? $item -> subject -> eps_count : $seem;
$width = (int)$seem / $total * 100;
?>
追番数据获取失败,请检查如下细节:
- 用户 ID 是否正确?
- 该用户是否在“在看”添加了番剧?
- 服务器能否正常连接
api.bgm.tv ?
select() -> from('table.users');
$logged = $db -> fetchRow($query)["logged"];
return self::tran_time($logged);
}
}
================================================
FILE: footer.php
================================================
options -> custom_script() ?>
footer() ?>