title() ?>
124 | 140 |本文链接: 144 | permalink() ?> 145 |146 |
├── 404.php ├── LICENSE ├── README.md ├── category.php ├── comments.php ├── css ├── comments.css ├── lightbox.min.css ├── style.css └── tocbot.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 ├── pangu.min.js └── tocbot.min.js ├── lib ├── 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 ├── preview.png ├── preview2.png ├── preview3.png ├── screenshot.png ├── sw.js └── tag.php /404.php: -------------------------------------------------------------------------------- 1 | need('header.php'); 4 | ?> 5 |
6 |本文链接: 144 | permalink() ?> 145 |146 |
Archives
18 |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 |链接名称(必须)|链接地址(必须)|链接描述
不同信息之间用英文竖线“|”分隔,例如:
StarWhisper|https://blog.frostmiku.com|星语
若中间有暂时不想填的信息,请留空,例如暂时不想填写链接描述:
StarWhisper|https://blog.frostmiku.com||
多个链接换行即可,一行一个')); 23 | $form->addInput($Projects); 24 | 25 | $catalog = new Typecho_Widget_Helper_Form_Element_Radio('catalog', 26 | array('able' => _t('启用'), 27 | 'disable' => _t('禁止'), 28 | ), 29 | 'disable', _t('文章目录设置'), _t('默认显示随机文章,启用则显示文章目录')); 30 | $form->addInput($catalog); 31 | } 32 | 33 | function themeInit($archive) { 34 | if ($archive->is('index')) { 35 | $archive->parameter->pageSize = 9; // 自定义条数 36 | } 37 | if ($archive->is('single')) { 38 | //$archive->content = createCatalog($archive->content);//文章锚点实现 39 | } 40 | @$comment = spam_protection_pre($comment,$post, $result);//数字验证码 41 | } 42 | 43 | function parseContent($obj){ 44 | $options = Typecho_Widget::widget('Widget_Options'); 45 | if(!empty($options->src_add) && !empty($options->cdn_add)){ 46 | $obj->content = str_ireplace($options->src_add,$options->cdn_add,$obj->content); 47 | } 48 | echo trim($obj->content); 49 | } 50 | 51 | /**项目展示 52 | 53 | */ 54 | function Projects($sorts = NULL) { 55 | $options = Typecho_Widget::widget('Widget_Options'); 56 | $Project = NULL; 57 | if ($options->Projects) { 58 | $list = explode("\r\n", $options->Projects); 59 | foreach ($list as $val) { 60 | list($name, $url, $description, $sort) = explode("|", $val); 61 | if ($sorts) { 62 | $arr = explode("|", $sorts); 63 | if ($sort && in_array($sort, $arr)) { 64 | $Project .= $url ? '