├── 404.php ├── LICENSE ├── README.md ├── archive.php ├── category.php ├── comments.php ├── css ├── comments.css ├── lightbox.min.css ├── search.css └── style.css ├── files.php ├── footer.php ├── functions.php ├── header.php ├── images ├── apple-touch-icon.png ├── close.png ├── favicon-192x192.png ├── favicon.ico ├── loading.gif ├── logo.png ├── next.png ├── prev.png └── squares.svg ├── index.php ├── js ├── jquery.min.js ├── lazyload.js ├── lightbox.min.js └── main.js ├── lib ├── OwO │ ├── OwO.json │ ├── OwO.min.css │ ├── OwO.min.js │ └── OwOmini.json ├── font-awesome │ ├── css │ │ └── font-awesome.min.css │ └── fonts │ │ ├── FontAwesome.otf │ │ ├── fontawesome-webfont.eot │ │ ├── fontawesome-webfont.svg │ │ ├── fontawesome-webfont.ttf │ │ ├── fontawesome-webfont.woff │ │ └── fontawesome-webfont.woff2 ├── highlight.min.js ├── meslo-LG │ ├── fonts │ │ └── MesloLGS-Regular.woff │ └── styles.css └── typed.js ├── manifest.json ├── page.php ├── post.php ├── screenshot.png ├── search.php ├── sw.js └── tag.php /404.php: -------------------------------------------------------------------------------- 1 | need('header.php'); 4 | ?> 5 |
6 |
Archives
17 |21 |-
22 |
23 |
24 |
25 |
26 | -
27 | Home
28 |
29 | widget('Widget_Contents_Page_List')->parse('- {title}
'); ?>
30 | options->github): ?>
31 | -
32 | Github
33 |
34 |
35 |'. $year .'
'; //输出年份 56 | } 57 | $output .= '- '. $archives->title .'
'; //输出文章日期和标题
58 | endwhile;
59 | $output .= '
'; 60 | echo $output; 61 | ?> 62 | 63 |链接名称(必须)|链接地址(必须)|链接描述
不同信息之间用英文竖线“|”分隔,例如:
XDE|https://www.krsay.com/|可说欢喜
若中间有暂时不想填的信息,请留空,例如暂时不想填写链接描述:
XDE|https://www.krsay.com||
多个链接换行即可,一行一个')); 32 | $form->addInput($Projects); 33 | 34 | $catalog = new Typecho_Widget_Helper_Form_Element_Radio('catalog', 35 | array('able' => _t('启用'), 36 | 'disable' => _t('禁止'), 37 | ), 38 | 'disable', _t('文章目录设置'), _t('默认显示随机文章,启用则显示文章目录')); 39 | $form->addInput($catalog); 40 | $Emoji = new Typecho_Widget_Helper_Form_Element_Radio('Emoji', 41 | array('able' => _t('启用'), 42 | 'disable' => _t('禁止'), 43 | ), 44 | 'disable', _t('Emoji表情设置'), _t('默认显示Emoji表情,如果你的数据库charset配置不是utf8mb4请禁用')); 45 | $form->addInput($Emoji); 46 | } 47 | 48 | function themeInit($archive) { 49 | if ($archive->is('index')) { 50 | $archive->parameter->pageSize = 9; // 自定义条数 51 | } 52 | if ($archive->is('single')) { 53 | $archive->content = createCatalog($archive->content);//文章锚点实现 54 | } 55 | @$comment = spam_protection_pre($comment,$post, $result);//数字验证码 56 | } 57 | 58 | function parseContent($obj){ 59 | $options = Typecho_Widget::widget('Widget_Options'); 60 | if(!empty($options->src_add) && !empty($options->cdn_add)){ 61 | $obj->content = str_ireplace($options->src_add,$options->cdn_add,$obj->content); 62 | } 63 | $obj->content = preg_replace("//i", "", $obj->content); //新标签页打开连接 64 | echo trim($obj->content); 65 | } 66 | 67 | /**项目展示 68 | 69 | */ 70 | function Projects($sorts = NULL) { 71 | $options = Typecho_Widget::widget('Widget_Options'); 72 | $Project = NULL; 73 | if ($options->Projects) { 74 | $list = explode("\r\n", $options->Projects); 75 | foreach ($list as $val) { 76 | list($name, $url, $description, $sort) = explode("|", $val); 77 | if ($sorts) { 78 | $arr = explode("|", $sorts); 79 | if ($sort && in_array($sort, $arr)) { 80 | $Project .= $url ? '