├── .gitattributes ├── 404.php ├── README.md ├── category.php ├── comments.php ├── component ├── nav-footer.php ├── nav-header.php ├── pageobj.php ├── post-content.php ├── post-list-item.php ├── post-main-index.php ├── post-page.php ├── set-ad.php ├── set-comment.php ├── set-index.php ├── set-info.php ├── set-insertcode.php ├── set-interface.php ├── set-module.php ├── set-optimization.php ├── set-post.php ├── set-routine.php ├── set-seo.php └── set-user.php ├── footer.php ├── functions.php ├── geekframe ├── ThemeUpdateChecker.php ├── VerificationCode.php ├── ajax.php ├── comment-pro.php ├── options.php ├── page-setting.php ├── shortcode.php ├── support.php ├── users.php └── utils.php ├── header.php ├── index.php ├── page-login.php ├── page-lostpassword.php ├── page-reg.php ├── page-usercenter.php ├── page.php ├── psd ├── banner.psd ├── jieshao01.psd ├── jieshao02.psd ├── jieshao03.psd └── jieshao04.psd ├── screenshot.png ├── screenshot ├── corepress4js02.webp ├── corepress4js03.webp ├── corepress4js04.webp ├── corepress4jsbanner.webp └── corepresstheme.png ├── search.php ├── searchform.php ├── single.php ├── static ├── css │ ├── admin.css │ ├── comment-module.css │ ├── editor-style.css │ ├── editor-window.css │ ├── login-plane.css │ ├── main-mobile.css │ ├── main.css │ └── post-content.css ├── img │ ├── face │ │ ├── OK.gif │ │ ├── aixin.gif │ │ ├── aoman.gif │ │ ├── baoquan.gif │ │ ├── bizui.gif │ │ ├── cahan.gif │ │ ├── caidao.gif │ │ ├── ciya.gif │ │ ├── dabing.gif │ │ ├── doge.gif │ │ ├── fadai.gif │ │ ├── ganga.gif │ │ ├── guzhang.gif │ │ ├── haixiu.gif │ │ ├── hanxiao.gif │ │ ├── huaixiao.gif │ │ ├── jie.gif │ │ ├── jingkong.gif │ │ ├── keai.gif │ │ ├── koubi.gif │ │ ├── ku.gif │ │ ├── leiben.gif │ │ ├── lenghan.gif │ │ ├── liuhan.gif │ │ ├── nanguo.gif │ │ ├── penxue.gif │ │ ├── piezui.gif │ │ ├── qiang.gif │ │ ├── qinqin.gif │ │ ├── quantou.gif │ │ ├── se.gif │ │ ├── shengli.gif │ │ ├── shuai.gif │ │ ├── tiaopi.gif │ │ ├── touxiao.gif │ │ ├── tuosai.gif │ │ ├── weiqu.gif │ │ ├── woshou.gif │ │ ├── wozuimei.gif │ │ ├── wunai.gif │ │ ├── xiaojiujie.gif │ │ ├── xiaoku.gif │ │ ├── xieyanxiao.gif │ │ ├── xigua.gif │ │ ├── yinxian.gif │ │ ├── yiwen.gif │ │ ├── youling.gif │ │ └── yun.gif │ ├── icp.svg │ ├── loading.gif │ ├── police.svg │ ├── reward.svg │ ├── share-btn.svg │ ├── share-qq.svg │ ├── share-qzone.svg │ ├── share-weibo.svg │ ├── share │ │ ├── github.svg │ │ ├── qq.svg │ │ ├── wechat.svg │ │ └── weibo.svg │ ├── shortcode │ │ └── c-downbtn │ │ │ ├── 360.png │ │ │ ├── bdwp.svg │ │ │ ├── ct.png │ │ │ ├── default.svg │ │ │ ├── github.svg │ │ │ ├── lanzou.png │ │ │ ├── ty.png │ │ │ └── weiyun.png │ ├── svg-ewm.svg │ ├── thumbnail.png │ └── wordpress.svg ├── js │ ├── admin.js │ ├── axios.min.js │ ├── base64.js │ ├── clipboard.min.js │ ├── editor-functions.js │ ├── editorButton.js │ ├── jquery.lazyload.min.js │ ├── jquery.min.js │ ├── qrcode.min.js │ ├── tools.js │ └── vue.min.js └── lib │ ├── element │ ├── fonts │ │ ├── element-icons.ttf │ │ └── element-icons.woff │ ├── index.css │ └── index.js │ ├── fancybox │ ├── init.js │ ├── jquery.fancybox.min.css │ └── jquery.fancybox.min.js │ ├── fontawesome5 │ ├── css │ │ ├── all.min.css │ │ ├── brands.css │ │ ├── fontawesome.css │ │ ├── light.css │ │ ├── regular.css │ │ └── solid.css │ └── webfonts │ │ ├── fa-light-300.woff │ │ ├── fa-light-300.woff2 │ │ ├── fa-regular-400.woff │ │ ├── fa-regular-400.woff2 │ │ ├── fa-solid-900.woff │ │ └── fa-solid-900.woff2 │ ├── highlight │ ├── highlight.min.js │ ├── init.js │ └── style │ │ ├── corepress-dark.css │ │ └── corepress.css │ ├── layer │ ├── layer.js │ └── theme │ │ ├── corepress │ │ └── style.css │ │ └── default │ │ ├── icon-ext.png │ │ ├── icon.png │ │ ├── layer.css │ │ ├── loading-0.gif │ │ ├── loading-1.gif │ │ └── loading-2.gif │ └── swiper │ ├── swiper.min.css │ └── swiper.min.js ├── style.css ├── tag.php └── widgets ├── author.php ├── comments.php └── hot-post.php /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /404.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
10 |
11 |
12 | 15 |
16 |
17 |
18 |
19 | 你找的内容丢了 20 |
21 | 26 |
27 | 28 | 29 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
10 |
11 |
12 | 15 |
16 |
17 |
18 |
19 |
20 |
21 | 25 | 41 |
42 | 45 |
46 | 50 |
51 | 52 |
53 | 56 | 59 | 62 |
63 | 64 |
65 | 68 |
69 |
70 | 75 |
76 | 77 | 78 | 7 | 12 |
13 | 14 |
15 | 20 |
21 | 22 |
23 | 28 | 29 |
30 | 32 |
33 | 发表评论 34 |
35 | 38 | 添加表情 43 |
44 | ' . file_load_face() . ' 45 |
46 | '; 47 | } 48 | $title_reply = ''; 49 | ?> 50 | '; 55 | } 56 | if (!is_user_logged_in()) { 57 | $user_avatar = '
'; 58 | } else { 59 | $user_avatar = '
'; 60 | } 61 | if (comments_open()) { 62 | $comment_form_args = array( 63 | 'submit_button' => '
64 |
', 65 | 'comment_notes_before' => '', 66 | 'title_reply' => $title_reply, 67 | 'class_submit' => 'button primary-btn', 68 | 'comment_notes_after' => '', 69 | 'id_form' => 'form_comment', 70 | 'cancel_reply_link' => __('取消回复', 'corePress'), 71 | 'comment_field' => $user_avatar . '
' . $comment_face . '
', 72 | 'fields' => apply_filters('comment_form_default_fields', array( 73 | 'author' => '
', 74 | 'email' => '', 75 | 'url' => '
', 76 | 'cookies' => '' 77 | )), 78 | 'logged_in_as' => '', 79 | 'comment_notes_before' => '', 80 | 'must_log_in' => '', 81 | 'submit_field' => '
' . '%1$s %2$s
', 82 | 83 | ); 84 | comment_form($comment_form_args); 85 | 86 | } ?> 87 | 88 | 89 |

共有 条评论

91 | 92 | 95 |
96 | 沙发空余 97 |
98 | 101 |
    102 | 'ol', 105 | 'short_ping' => true, 106 | 'avatar_size' => 48, 107 | 'type' => 'comment', 108 | 'callback' => 'my_comment', 109 | )); 110 | ?> 111 |
112 | 116 | 117 | 119 | 152 | 155 |
-------------------------------------------------------------------------------- /component/nav-footer.php: -------------------------------------------------------------------------------- 1 | 'footer_menu', 4 | 'theme_location' => 'footer_menu', 5 | 'depth' => 1, 6 | 'container' => 'nav', 7 | 'container_class' => 'menu-footer-plane', 8 | 'menu_class' => 'menu-footer-list', 9 | 'fallback_cb' => false, 10 | 'items_wrap' => '' 11 | ) 12 | ); 13 | ?> -------------------------------------------------------------------------------- /component/nav-header.php: -------------------------------------------------------------------------------- 1 | 31 |
32 | 33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 | 52 |
53 |
54 | 55 |
56 |
57 |
58 |
59 |

搜索内容

60 | 69 |
70 |
71 | 72 | 73 |
74 | 89 |
90 | 93 | 96 | 123 | 127 | 128 | 129 | 130 | 132 | 134 | 136 | 137 | 142 |
143 |
144 | 145 | -------------------------------------------------------------------------------- /component/pageobj.php: -------------------------------------------------------------------------------- 1 | max_num_pages; 9 | } 10 | if ($max_page > 1) { 11 | echo "
"; 12 | if (!$paged) { 13 | $paged = 1; 14 | } 15 | if ($paged != 1) { 16 | echo "首页"; 17 | } 18 | 19 | previous_posts_link('上一页'); 20 | ?> 21 | 22 | $range) { 24 | if ($paged < $range) { 25 | for ($i = 1; $i <= ($range + 1); $i++) { 26 | echo "$i"; 29 | } 30 | } elseif ($paged >= ($max_page - ceil(($range / 2)))) { 31 | for ($i = $max_page - $range; $i <= $max_page; $i++) { 32 | echo "$i"; 35 | } 36 | } elseif ($paged >= $range && $paged < ($max_page - ceil(($range / 2)))) { 37 | for ($i = ($paged - ceil($range / 2)); $i <= ($paged + ceil(($range / 2))); $i++) { 38 | echo "$i"; 41 | } 42 | } 43 | } else { 44 | for ($i = 1; $i <= $max_page; $i++) { 45 | echo "$i"; 48 | } 49 | } 50 | ?> 51 | 52 | 尾页"; 56 | } 57 | echo '' . $paged . '/' . $max_page . ''; 58 | echo "
\n"; 59 | } 60 | -------------------------------------------------------------------------------- /component/post-main-index.php: -------------------------------------------------------------------------------- 1 | 13 | 16 | 21 | 24 | 0) { 29 | ?> 30 | 32 |
33 | 52 |
53 |
54 |
55 |
56 |
57 | 58 | 75 | 0) { 78 | $item_percent = 100 / $set['index']['postcardlinenumber'] - 1; 79 | ?> 80 | 85 |
86 |
87 | 90 |
91 |
92 |
93 | 95 |
96 | 98 |
99 | 100 |
101 | 103 |
104 | 105 |
106 | 109 |
110 |
111 | 119 | 122 | 127 | 130 | 134 | 135 |
136 |
137 | ' . single_cat_title('', false) . '

'; 140 | } elseif (is_home()) { 141 | echo '

最新文章

'; 142 | } elseif (is_author()) { 143 | echo '

' . get_the_author() . ' 的文章

'; 144 | } else { 145 | echo '

最新文章

'; 146 | } 147 | ?> 148 |
149 | 159 |
160 | 163 |
164 |
165 | -------------------------------------------------------------------------------- /component/set-comment.php: -------------------------------------------------------------------------------- 1 |

评论功能开关

2 | 3 |
4 |
5 | 评论表情 6 |
7 |
8 | 13 | 14 |
15 |
16 | 17 | 18 |

评论保护

19 | 20 |
21 |
22 | 禁止纯英文评论 23 |
24 |
25 | 30 | 31 |
32 |
-------------------------------------------------------------------------------- /component/set-index.php: -------------------------------------------------------------------------------- 1 |

幻灯片设置

2 | 3 |
4 |
5 | 添加幻灯片 6 |
7 | 8 |
9 | 10 | 21 |
22 |
23 | 图片地址 24 |
25 |
26 | 27 | 上传 29 | 30 | 31 |
32 |
33 |
34 |
35 | 指向链接 36 |
37 |
38 | 39 | 40 |
41 |
42 |
43 |
44 | 标题内容 45 |
46 |
47 | 48 | 49 |
50 |
51 |
52 |
53 |
54 |
55 |

首页推荐卡片

56 |
57 |
58 |
59 |
60 | 每行显示个数 61 |
62 |
63 | 64 | 65 |
66 |
67 |
68 |
69 | 添加首页卡片 70 |
71 | 72 |
73 | 74 | 86 |
87 |
88 | 图片地址 89 |
90 |
91 | 92 | 上传 94 | 95 | 96 |
97 |
98 |
99 |
100 | 指向链接 101 |
102 |
103 | 104 | 105 |
106 |
107 |
108 |
109 | 标题内容 110 |
111 |
112 | 113 | 114 |
115 |
116 |
117 |
118 |
119 |
120 |

友情链接

121 |
122 |
123 | 显示友情链接模块 124 |
125 |
126 | 131 | 132 |
133 |
134 |
135 |
136 | 申请友链描述 137 |
138 |
139 | 140 | 141 |
142 |
143 |
144 |
145 |
146 |
147 | 友情链接标题旁边描述内容 148 |
149 |
150 |
151 |
152 | 申请友链地址 153 |
154 |
155 | 156 | 157 |
158 |
159 | -------------------------------------------------------------------------------- /component/set-info.php: -------------------------------------------------------------------------------- 1 |

主题信息

2 |

CorePress主题,一款功能强大的博客主题,适合个人,极客,程序员使用

3 |

前端无任何界面框架,加载迅速,流畅

4 |

集成代码高亮,多种短代码,帮你打造超强文字内容

5 |

注重WordPress和SEO优化,设置详细

6 |

主题成长中,有问题请反馈

7 |

欢迎加入QQ群:664592923

8 |

果核建站交流群

9 |

功能开关

10 | 11 |
12 |
13 |
14 |
15 | 当前版本: 16 |
17 |
18 | 19 |
20 |
21 | 开启自动检查更新 22 |
23 |
24 | 29 | 30 |
31 |
32 |
33 |
34 |
35 |
36 | 开启以后,每日检查一次,仅在管理员后台检查,不影响前台加载速度。 37 |
38 |
39 | 40 |
41 |
42 | 主题下载地址 43 |
44 |
45 | 46 |
47 |
48 | 49 | -------------------------------------------------------------------------------- /component/set-insertcode.php: -------------------------------------------------------------------------------- 1 |
2 |
3 | 页头代码 4 |
5 |
6 | 11 | 12 |
13 |
14 | 15 |
16 |
17 |
18 |
19 | 添加在页面head前的代码 20 |
21 |
22 | 23 |
24 |
25 | 页脚代码 26 |
27 |
28 | 33 | 34 |
35 |
36 |
37 |
38 |
39 |
40 | 在文章末尾添加的代码 41 |
42 |
43 | 44 |
45 |
46 | 自定义CSS 47 |
48 |
49 | 54 | 55 |
56 |
57 | 58 |
59 |
60 | 阿里Iconfont地址 61 |
62 |
63 | 67 | 68 |
69 |
70 |
71 |
72 |
73 |
74 | 自定义阿里云图标Symbol地址,设置以后可以调用自选的阿里云图标。注意这儿只能填写js地址 75 | 调用方式,复制下面html内容,只需要替换图标名称即可:

76 | <svg class="icon" aria-hidden="true"><use xlink:href="#图标名称"></use></svg> 77 |

帮助地址:CorePress菜单图标使用教程

78 |
79 |
-------------------------------------------------------------------------------- /component/set-interface.php: -------------------------------------------------------------------------------- 1 |
2 |
3 | 主题颜色: 4 |
5 |
6 |
7 | 8 |
9 | 10 |
11 |
12 | 恢复默认 13 |
14 |
15 |
16 |
17 | 18 |
19 |
20 | 热点颜色: 21 |
22 |
23 |
24 | 25 |
26 | 27 |
28 |
29 | 恢复默认 30 |
31 |
32 |
33 |
34 | 35 |
36 |
37 |
38 |
39 | 链接,按钮等鼠标放上去显示的颜色 40 |
41 |
42 |
43 |
44 | 侧边栏位置 45 |
46 |
47 | 53 | 54 |
55 |
56 | 57 |
58 |
59 | 文字选中颜色: 60 |
61 |
62 |
63 | 64 |
65 | 66 |
67 |
68 | 恢复默认 69 |
70 | 71 |
72 |
73 |
74 |

字体设置

75 |
76 |
77 | 选择字体 78 |
79 |
80 | 默认 81 | 仓耳与墨 82 | 站酷快乐体 83 | 84 |
85 |
86 |
87 |
88 |
89 |
90 | 字体CDN来自jsdelivr,不同的字体加载速度不一样 91 |
92 |
93 |

背景图片设置

94 |
95 |
96 | 背景图片 97 |
98 |
99 | 100 | 上传 102 | 103 | 104 |
105 |
106 | 107 | 108 |
109 |
110 | 背景图片显示方式 111 |
112 |
113 | 120 | 121 |
122 |
123 |
124 |
125 |
126 |
127 | 建议选择小图片,加载比较迅速,推荐背景图片下载网站:点击进入 128 |
129 |
130 | 131 | 132 |

首页文章列表外观

133 |
134 |
135 | 最新发布文章图标提示 136 |
137 |
138 | 143 | 144 |
145 |
146 |

文章页面内容外观

147 | 148 |
149 |
150 | 底部显示上一篇下一篇面板 151 |
152 |
153 | 158 | 159 |
160 |
161 | 162 |

侧边栏

163 | 164 |
165 |
166 | 关闭首页侧边栏 167 |
168 |
169 | 174 | 175 |
176 |
177 |
178 |
179 | 关闭搜索,分类标签侧边栏 180 |
181 |
182 | 187 | 188 |
189 |
190 |
191 |
192 | 关闭内页侧边栏 193 |
194 |
195 | 200 | 201 |
202 |
203 | 204 |
205 |
206 |
207 |
208 | 本设置功能比文章设置中关闭侧边栏的权重高 209 |
210 |
211 | 212 |

文章设置

213 | 214 |
215 |
216 | 开启面包屑导航 217 |
218 |
219 | 224 | 225 |
226 |
227 | -------------------------------------------------------------------------------- /component/set-module.php: -------------------------------------------------------------------------------- 1 |

代码高亮模块

2 |
3 |
4 | 功能开关 5 |
6 |
7 | 12 | 13 |
14 |
15 |
16 |
17 | 高亮风格 18 |
19 |
20 | 27 | 28 |
29 |
30 |

图片设置

31 |
32 |
33 | 图片延迟加载 34 |
35 |
36 | 41 | 42 |
43 |
44 | 45 |
46 |
47 |
48 |
49 | 图片延迟加载,可提高网页加载速度 50 |
51 |
52 | 53 |
54 |
55 | 图片灯箱 56 |
57 |
58 | 63 | 64 |
65 |
66 | 67 |
68 |
69 |
70 |
71 | 点击图片直接当前页面打开 72 |
73 |
74 |

SMTP 邮件服务器

75 |
76 |
77 | 功能开关 78 |
79 |
80 | 85 | 86 |
87 |
88 | 89 |
90 |
91 | 发件人邮箱 92 |
93 |
94 | 95 | 96 |
97 |
98 |
99 |
100 | 发件人密码 101 |
102 |
103 | 104 | 105 |
106 |
107 |
108 |
109 | SMTP 邮件服务器地址 110 |
111 |
112 | 113 | 114 |
115 |
116 |
117 |
118 | SMTP端口 119 |
120 |
121 | 122 | 123 |
124 |
125 |
126 |
127 | 发件人昵称 128 |
129 |
130 | 131 | 132 |
133 |
134 |
135 |
136 | SMTP加密方式 137 |
138 |
139 | 不加密 140 | SSL/TLS 141 |
142 |
143 | 144 |
145 |
146 |
147 |
148 | 149 | 150 |
151 |
152 |
153 | 154 |
155 |
156 |
157 |
158 | 发信测试 159 |
160 |
161 |
162 |
163 |
164 |
165 | 如果发信失败,可以使用插件:Easy WP SMTP,来替代主题发信功能。 166 |
167 |
168 | 169 |

防转载模块

170 | 171 |
172 |
173 | 开启防转载模块 174 |
175 |
176 | 181 | 182 |
183 |
184 | 185 |
186 |
187 | 超过文本长度禁止复制开关 188 |
189 |
190 | 195 | 196 |
197 |
198 |
199 |
200 | 允许复制文本长度 201 |
202 |
203 | 204 | 205 |
206 |
207 |
208 |
209 |
210 |
211 | 可以设置用户可以复制文本长度,超过这个长度就禁止复制,默认为10 212 |
213 |
214 | 215 |
216 |
217 | 复制成功提示内容 218 |
219 |
220 | 221 | 222 |
223 |
224 | 225 |
226 |
227 | 复制成功自动添加来源网址 228 |
229 |
230 | 235 | 236 |
237 |
238 |
239 |
240 |
241 |
242 | 在用户复制内容成功以后,自动添加本站网址(复制超过100个字生效) 243 |
244 |
245 |

防红模块

246 | 247 |
248 |
249 | 引导外部浏览器打开 250 |
251 |
252 | 257 | 258 |
259 |
260 |
261 |
262 |
263 |
264 | 使用QQ或者微信访问网站,引导用户使用浏览器打开 265 |
266 |
267 | -------------------------------------------------------------------------------- /component/set-post.php: -------------------------------------------------------------------------------- 1 |

文章图片设置

2 | 3 |
4 |
5 | 图片圆角 6 |
7 |
8 | 13 | 14 |
15 |
16 | 17 |
18 |
19 | 图片阴影 20 |
21 |
22 | 27 | 28 |
29 |
30 |

文章版权

31 |
32 |
33 | 开启文章版权显示 34 |
35 |
36 | 41 | 42 |
43 |
44 |
45 |
46 | 版权内容(支持HTML) 47 |
48 |
49 | 54 | 55 |
56 |
57 | 58 |
59 |
60 |
61 |
62 | 可用变量 63 |

<#username#>:当前文章用户名

64 |

<#url#>:当前文章地址

65 |

换行请使用html代码:<br>   66 |

67 |
68 |

文章目录设置

69 | 70 |
71 |
72 | 默认开启目录 73 |
74 |
75 | 80 | 81 |
82 |
83 |

打赏设置

84 | 85 |
86 |
87 | 打赏二维码图1 88 |
89 |
90 | 91 | 上传 93 | 94 | 95 |
96 |
97 | 98 |
99 |
100 | 打赏二维码图2 101 |
102 |
103 | 104 | 上传 106 | 107 | 108 |
109 |
-------------------------------------------------------------------------------- /component/set-routine.php: -------------------------------------------------------------------------------- 1 |
2 |
3 | 网站logo 4 |
5 |
6 | 7 | 上传 9 | 10 | 11 |
12 |
13 |
14 |
15 |
16 | 建议高度为50px 17 |
18 |
19 | 20 |
21 |
22 | favicon图标 23 |
24 |
25 | 26 | 上传 28 | 29 | 30 |
31 |
32 |
33 |
34 |
35 | 标题栏旁边图标,建议大小32*32,不支持ico图标上传,如果使用ico图标,可以直接传favicon.ico文件到网站根目录 36 |
37 |
38 |
39 |
40 | 默认缩略图 41 |
42 |
43 | 44 | 上传 46 | 47 | 48 |
49 |
50 |
51 |
52 |
53 | 文章没有特色图片的时候,显示本图片,建议大小 240 x 160 的倍数 54 |
55 |
56 |
57 |
58 | 自动缩略图 59 |
60 |
61 | 66 | 67 |
68 |
69 |
70 |
71 |
72 | 文章里面有图片的情况下,自动读取第一张图片作为缩略图 73 |
74 |
75 |
76 |
77 | 文章摘要长度 78 |
79 |
80 | 81 | 82 |
83 |
84 |
85 |
86 |
87 | 文章列表每一项摘要内容,默认长度150字 88 |
89 |
90 |
91 |
92 | ICP备案号 93 |
94 |
95 | 96 | 97 |
98 |
99 |
100 |
101 | 公安联网备案号 102 |
103 |
104 | 105 | 106 |
107 |
108 |

文章设置

109 |
110 |
111 | 文章新窗口打开 112 |
113 |
114 | 119 | 120 |
121 |
122 | -------------------------------------------------------------------------------- /component/set-seo.php: -------------------------------------------------------------------------------- 1 |

SEO开关

2 |
3 |
4 | 开启SEO功能 5 |
6 |
7 | 12 | 13 |
14 |
15 | 16 |
17 |
18 |
19 |
20 | 使用主题自带的SEO功能,有插件的话可以关闭 21 |
22 |
23 | 24 |

首页SEO

25 |
26 |
27 | 首页标题 28 |
29 |
30 | 31 |
32 |
33 | 34 |
35 |
36 | 关键词 37 |
38 |
39 | 40 |
41 |
42 | 43 |
44 |
45 |
46 |
47 | 搜索关键词,多个关键词请使用英文逗号隔开 48 |
49 |
50 | 51 |
52 |
53 | 站点描述 54 |
55 |
56 | 61 | 62 |
63 |
64 | 65 |
66 |
67 |
68 |
69 | 站点描述,搜索引擎搜索到的介绍 70 |
71 |
72 | 73 |

标题样式

74 |
75 |
76 | 标题样式 77 |
78 |
79 | 80 | 84 | 85 | 89 | 90 | 91 |
92 |
93 | 94 |
95 |
96 |
97 |
98 | 标题分隔符 - 99 |
100 |
101 | 102 |
103 |
104 | 首页分隔符 105 |
106 |
107 | 108 |
109 |
110 | 111 |
112 |
113 |
114 |
115 | 标题分隔符 - 116 |
117 |
-------------------------------------------------------------------------------- /functions.php: -------------------------------------------------------------------------------- 1 | getdata(); 17 | require_once(FRAMEWORK_PATH . '/utils.php'); 18 | require_once(FRAMEWORK_PATH . '/support.php'); 19 | require_once(FRAMEWORK_PATH . '/users.php'); 20 | require_once(FRAMEWORK_PATH . '/ajax.php'); 21 | 22 | require_once(FRAMEWORK_PATH . '/comment-pro.php'); 23 | require_once(THEME_PATH . '/widgets/comments.php'); 24 | require_once(THEME_PATH . '/widgets/author.php'); 25 | require_once(THEME_PATH . '/widgets/hot-post.php'); 26 | 27 | require_once(FRAMEWORK_PATH . '/shortcode.php'); 28 | add_editor_style('static/css/editor-style.css'); 29 | error_reporting(0); 30 | 31 | require_once(ABSPATH . 'wp-admin/includes/file.php'); 32 | WP_Filesystem(); -------------------------------------------------------------------------------- /geekframe/VerificationCode.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /geekframe/comment-pro.php: -------------------------------------------------------------------------------- 1 | 0 && $comment->comment_parent) { 7 | $reply = get_comment_author($comment->comment_parent); 8 | if ($reply) { 9 | $reply = '@' . $reply . ''; 10 | } else { 11 | $reply = ''; 12 | } 13 | } 14 | $user = get_userdata($comment->user_id); 15 | if (!empty($user->roles) && in_array('administrator', $user->roles)) { 16 | $user = ''; 17 | } else { 18 | $user = ''; 19 | } 20 | ?> 21 |
  • 22 |
    23 |
    24 |
    25 | 28 |
    29 |
    30 | 47 |
    48 | 49 | 6 |

    7 |
    8 |
    9 |
    10 |
    11 |

    CorePress 设置中心

    12 |
    13 |
    14 | 15 | 16 | 主题文档 17 | 18 | 19 |
    20 |
    21 |
    22 |
    23 | 28 | 29 | 30 | 常规设置 31 | 32 | 33 | 34 | 首页设置 35 | 36 | 37 | 38 | 文章设置 39 | 40 | 41 | 42 | 评论设置 43 | 44 | 45 | 46 | 功能模块 47 | 48 | 49 | 50 | 用户中心 51 | 52 | 53 | 54 | 外观设置 55 | 56 | 57 | 58 | 优化加速 59 | 60 | 61 | 62 | SEO设置 63 | 64 | 65 | 66 | 插入代码 67 | 68 | 69 | 70 | 广告代码 71 | 72 | 73 | 74 | 关于主题 75 | 76 | 77 |
    78 |
    79 |
    80 | 81 |
    82 |
    83 | 84 |
    85 |
    86 | 87 |
    88 |
    89 | 90 |
    91 |
    92 | 93 |
    94 |
    95 | 96 |
    97 |
    98 | 99 |
    100 |
    101 | 102 |
    103 |
    104 | 105 |
    106 |
    107 | 108 |
    109 |
    110 | 111 |
    112 |
    113 | 114 |
    115 |
    116 |
    117 |
    118 |
    119 | 保存 120 |
    121 |
    122 | 133 | 137 | -------------------------------------------------------------------------------- /geekframe/shortcode.php: -------------------------------------------------------------------------------- 1 | {$atts['title']}

    "; 7 | } 8 | $html = '
    ' . $title . '
    ' . do_shortcode($content) . '
    '; 9 | return $html; 10 | } 11 | 12 | add_shortcode('start-plane', 'post_short_start_plane'); 13 | function post_short_start_plane($atts, $content = null, $code = "") 14 | { 15 | $html = '
    ' . do_shortcode($content) . '
    '; 16 | return $html; 17 | } 18 | 19 | add_shortcode('icon-url', 'post_short_icon_url'); 20 | function post_short_icon_url($atts, $content = null, $code = "") 21 | { 22 | $wporg_atts = shortcode_atts([ 23 | 'target' => '', 24 | 'href' => '', 25 | ], $atts); 26 | if ($content == null) { 27 | $content = $wporg_atts['href']; 28 | } 29 | $html = '' . do_shortcode($content) . ''; 30 | return $html; 31 | } 32 | 33 | add_shortcode('zd-plane', 'post_short_zd_plane'); 34 | function post_short_zd_plane($atts, $content = null, $code = "") 35 | { 36 | if (isset($atts['title'])) { 37 | $title = $atts['title']; 38 | } else { 39 | $title = "折叠内容,点击展开"; 40 | } 41 | $html = '
    ' . $title . '
    ' . do_shortcode($content) . '
    '; 42 | return $html; 43 | } 44 | 45 | add_shortcode('zd-plane', 'post_short_zd_plane'); 46 | 47 | add_shortcode('loginshow', 'post_short_loginshow'); 48 | 49 | function post_short_loginshow($atts, $content = null) 50 | { 51 | if (islogin()) { 52 | return $content; 53 | } else { 54 | return '
    本内容需要登录后才能查看
    '; 55 | } 56 | } 57 | 58 | add_shortcode('clickshow', 'post_short_clickshow'); 59 | function post_short_clickshow($atts, $content = null) 60 | { 61 | $wporg_atts = shortcode_atts([ 62 | 'type' => '1', 63 | ], $atts); 64 | if ($wporg_atts['type'] == 1) { 65 | return '' . do_shortcode($content) . ''; 66 | } else { 67 | return '
    ' . do_shortcode($content) . '
    '; 68 | } 69 | } 70 | 71 | 72 | add_shortcode('c-alert', 'post_short_alert'); 73 | 74 | function post_short_alert($atts, $content = null) 75 | { 76 | $wporg_atts = shortcode_atts([ 77 | 'type' => 'info', 78 | ], $atts); 79 | 80 | if ($wporg_atts['type'] == 'warning') { 81 | return '
    ' . do_shortcode($content) . '
    '; 82 | } elseif ($wporg_atts['type'] == 'success') { 83 | return '
    ' . do_shortcode($content) . '
    '; 84 | } elseif ($wporg_atts['type'] == 'error') { 85 | return '
    ' . do_shortcode($content) . '
    '; 86 | } else { 87 | return '
    ' . do_shortcode($content) . '
    '; 88 | } 89 | } 90 | 91 | add_shortcode('c-downbtn', 'post_short_c_downbtn'); 92 | 93 | function post_short_c_downbtn($atts, $content = '资源文件') 94 | { 95 | $wporg_atts = shortcode_atts([ 96 | 'type' => 'default', 97 | 'pwd' => '', 98 | 'url' => '', 99 | ], $atts); 100 | if ($wporg_atts['type'] == 'bd') { 101 | $icons = ''; 102 | $source = '百度网盘'; 103 | } elseif ($wporg_atts['type'] == 'ty') { 104 | $icons = ''; 105 | $source = '天翼网盘'; 106 | } elseif ($wporg_atts['type'] == '360') { 107 | $icons = ''; 108 | $source = '360网盘'; 109 | } elseif ($wporg_atts['type'] == 'ct') { 110 | $icons = ''; 111 | $source = '诚通网盘'; 112 | } elseif ($wporg_atts['type'] == 'lz') { 113 | $icons = ''; 114 | $source = '蓝奏网盘'; 115 | } elseif ($wporg_atts['type'] == 'wy') { 116 | $icons = ''; 117 | $source = '微云网盘'; 118 | } elseif ($wporg_atts['type'] == 'github') { 119 | $icons = ''; 120 | $source = 'Github'; 121 | } else { 122 | $icons = ''; 123 | $source = '默认网盘'; 124 | } 125 | 126 | if ($wporg_atts['pwd'] != null) { 127 | $pwd = ' | 提取码:' . $wporg_atts['pwd'] . ' '; 128 | } else { 129 | $pwd = ''; 130 | } 131 | return ' 132 |
    133 |
    134 |
    135 |
    ' . $icons . ' 136 |
    137 |
    138 | 139 |
    来源:' . $source . $pwd . '
    140 |
    141 |
    142 |
    143 | 145 |
    146 |
    147 |
    '; 148 | } 149 | 150 | add_shortcode('pwdshow', 'post_short_pwdshow'); 151 | function post_short_pwdshow($atts, $content = '') 152 | { 153 | 154 | $wporg_atts = shortcode_atts([ 155 | 'pwd' => '' 156 | ], $atts); 157 | if (isset($_POST['pwd']) && $_POST['pwd'] == $wporg_atts['pwd']) { 158 | return '
    '.do_shortcode($content).'
    '; 159 | } else { 160 | return ' 161 |
    162 |
    本内容需要输入密码才能查看
    163 |
    164 | 165 | 166 | 167 |
    168 | 169 |
    170 | '; 171 | 172 | } 173 | } -------------------------------------------------------------------------------- /index.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |
    8 |
    9 |
    10 |
    11 | 14 |
    15 |
    16 |
    17 |
    18 |
    19 |
    20 | 24 | 40 |
    41 | 44 |
    45 | 48 |
    49 | 50 |
    51 | 56 | 57 | 60 | 65 |
    66 | 67 |
    68 | 71 |
    72 | 75 | 92 | 97 |
    98 | 99 |
    100 | 105 |
    106 | 107 |
    108 | 112 | 113 |
    114 |
    115 | 118 |
    119 |
    120 | 121 | 122 | -------------------------------------------------------------------------------- /page-login.php: -------------------------------------------------------------------------------- 1 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 |
    19 |
    20 |
    21 |
    22 | 25 |
    26 |
    27 |
    28 |
    29 | 30 | 37 |
    38 |
    39 | 78 |
    79 |
    80 | 130 |
    131 | 134 |
    135 |
    136 | 137 | 138 | 139 | -------------------------------------------------------------------------------- /page-lostpassword.php: -------------------------------------------------------------------------------- 1 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 |
    19 |
    20 |
    21 |
    22 | 25 |
    26 |
    27 |
    28 |
    29 | 30 | 37 |
    38 | user_activation_key; 44 | if ($activation_key != null && strpos($activation_key, ":") == true) { 45 | $arr = explode(":", $activation_key); 46 | $time = $arr[0]; 47 | $activation_key = $arr[1]; 48 | $nowtime = time(); 49 | if ($nowtime - $time > 86400 || $nowtime - $time < -86400) { 50 | $msg = '验证过期'; 51 | showlostpasshtml(0, $msg); 52 | 53 | } else { 54 | if ($key == $activation_key) { 55 | $msg = '验证成功'; 56 | showlostpasshtml(1, $msg); 57 | 58 | } else { 59 | $msg = '验证失败'; 60 | showlostpasshtml(0, $msg); 61 | } 62 | } 63 | } else { 64 | showresetpwdhtml(); 65 | } 66 | 67 | } else { 68 | showresetpwdhtml(); 69 | } 70 | ?> 71 |
    72 | 151 |
    152 | 155 |
    156 |
    157 | 158 | 159 | 160 | -------------------------------------------------------------------------------- /page.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
    11 | 12 |
    13 |
    14 | 17 |
    18 |
    19 |
    20 |
    21 |
    22 | 27 | 32 |
    33 | 36 |
    37 | 41 |
    42 | 43 |
    44 | 49 | 52 | 57 |
    58 | 59 |
    60 | 64 |
    65 |
    66 |
    67 | 68 |
    69 |
    70 | 71 | 72 | 2 | 3 | 4 | 5 | 6 | 7 |
    8 |
    9 |
    10 |
    11 | 14 |
    15 |
    16 |
    17 |
    18 |
    19 |
    20 | 24 | 40 |
    41 | 44 |
    45 | 49 |
    50 |
    51 |
    52 |

    搜索内容:

    53 |
    54 |
      55 | 63 |
    64 |
    65 | 68 |
    69 |
    70 |
    71 | 74 | 77 | 80 |
    81 |
    82 |
    83 |

    搜索内容:

    84 |
    85 |
      86 | 94 |
    95 |
    96 | 99 |
    100 |
    101 |
    102 | 105 |
    106 |
    107 |
    108 | 109 |
    110 |
    111 | 112 | 113 | " method="get" role="search"> 2 |
    3 | 4 |
    5 |
    6 | 7 |
    8 | -------------------------------------------------------------------------------- /single.php: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |
    12 |
    13 |
    14 | 17 |
    18 |
    19 |
    20 |
    21 | 25 |
    26 | 27 |
    28 | 33 |
    34 | 35 |
    36 | 41 | 42 |
    43 | 47 | 52 |
    53 | 56 |
    57 | 61 |
    62 | 63 |
    64 | 69 | 72 | 77 |
    78 | 79 |
    80 | 84 | 85 |
    86 | 90 |
    91 | 92 |
    93 | 98 |
    99 | 100 |
    101 | 105 |
    106 |
    107 | 108 |
    109 |
    110 | 111 | 112 | .menu-item-has-children:after,.user-menu:after{display:none}body .menu-header-list>.menu-item>a:before{display:none!important}body .menu-header-list>.menu-item{padding:0}header .current-menu-item:before{display:none!important}body .ad-plane-post{padding:10px;margin-top:-10px}body .menu-header-list{flex-direction:column}body .menu-item-has-children:hover>.sub-menu{width:100%}body .user-sub-menu{width:100%;left:unset}.m-dropdown{display:block;position:absolute;right:3px;top:0;width:50px;text-align:center;line-height:62px;transition:all .3s ease-out 0s}body .sub-menu .sub-menu{left:0;top:100%}}@media screen and (max-width:800px){body .slide-title{font-size:20px}::-webkit-scrollbar{width:4px!important;height:4px!important}body .post-item-meta-author{display:none}body .index-top-postcard-item{margin-bottom:10px}body .carousel{margin-bottom:10px}body .index-top-postcard-item{flex-basis:49%}body .post-qrcode-btn{display:none}body .post-content{padding:15px}body .post-info{margin-bottom:10px}body .post-info-right{display:none}body .post-item-thumbnail{flex:35%;flex-shrink:0}body .post-item h2{font-size:18px}body .mobile-menu-btn,.mobile-search-btn{display:block}body .sidebar,.footer-container{display:none}body .header-main{justify-content:space-between}body .go-top-plane{display:none}body .post-main{margin:0;margin-bottom:10px;flex-basis:95%!important}body .header-logo img{height:40px}body .html-main{justify-content:center}.footer-container .footer-left{flex:100%;flex-shrink:0}.footer-container .footer-right,.footer-container .footer-aside-box,.footer-container .menu-footer-plane{display:none}.frinds-links{display:none}body .c-downbtn-item{width:100%}body .usercenter-plane{display:block}body .usercenter-menu{margin-bottom:10px}body .usercenter-right{margin-left:0}body .header-zhanwei{min-height:50px!important}}@media screen and (max-width:500px){body .cat-item{font-size:12px}body .post-item-tags{display:none}body .index-top-postcard-item{flex-basis:48%}body .post-item h2{font-size:16px}body .pageobj-item{display:none}body .avatar-img{width:30px;height:30px}body .commentlist{padding:0 20px}body .commentlist>.comment>.children{padding-left:30px}body .comment-pub-time{font-size:12px}body .commentlist>.comment>.children>.comment{padding:0 10px}body .comment-metadata{margin-left:10px}body .comment-btn-reply{opacity:1;visibility:visible}body .comment-reply-link{font-size:12px}body .top-divider{min-height:60px}body .c-downbtn-item{display:block}body .c-downbtn-describe{margin-bottom:10px}body .post-turn-page-plane,body .post-info-left{display:none}body .post-title{margin-bottom:0}body #reward-plane img{max-width:150px}body .post-pop-plane{padding:10px}}@media screen and (max-width:1384px){#post-catalog{visibility:hidden!important}}@media screen and (max-width:500px){body .post-content{padding:10px}.post-item-content{display:none}body .logged-in-as{display:none}body .post-item-info-type1{display:none}}@media screen and (max-width:360px){body .theme-copyright{display:none}}.drawer-menu-plane-show{visibility:visible!important;left:0!important;opacity:1!important}.drawer-menu-plane{opacity:0;display:flex;visibility:hidden;position:fixed;top:0;left:-100px;right:0;bottom:0;overflow:hidden;z-index:9999;transition:all .3s ease-out 0s}.drawer-menu-list{position:relative;flex:70%;max-width:400px;background:#fff}.drawer-menu-write{flex:30%;background:#000;opacity:.4}.mobile-menu-header-list .menu-item{padding:10px}.dialog-search-plane-show{visibility:visible!important}.dialog-search-plane-show .dialog-plane{opacity:1!important;top:0!important}.dialog-search-plane{display:flex;visibility:hidden;position:fixed;top:0;left:0;right:0;bottom:0;overflow:hidden;z-index:9999;justify-content:center;align-items:center}.dialog-mask{position:absolute;top:0;left:0;right:0;bottom:0;opacity:.4;background:#000}.dialog-plane{padding:10px;top:-100px;transition:all .3s ease-out 0s;opacity:0;position:relative;flex:70%;max-width:400px;background:#fff;z-index:99999;height:150px;border-radius:4px;text-align:center}.dialog-plane h2{font-size:20px;font-weight:500;padding:6px 10px}.dialog-plane .search-form{padding:20px} -------------------------------------------------------------------------------- /static/css/post-content.css: -------------------------------------------------------------------------------- 1 | .title-plane{background:#e2edfa;color:#414c59;border:2px dashed #007aff;border-radius:4px;padding:2px;margin-bottom:10px}.title-plane>p{background:#007aff;color:#fff;border-radius:4px;display:inline-block;font-size:14px;padding:0 20px}.title-plane>div{padding:10px 20px}.start-plane{margin:10px 0;color:#856404;background:#fff3cd;padding:10px;border-radius:2px}.start-plane[type='1']{color:#856404;background:#fff3cd}.start-plane[type='2']{color:#004085!important;background:#cce5ff!important}.start-plane[type='3']{color:#721c24!important;background:#f8d7da!important}.start-plane[type='4']{color:#383d41!important;background:#e2e3e5!important}.start-plane>div:before{font-family:"Font Awesome 5 Pro";font-weight:900;content:"\f005";margin-right:4px;margin-left:4px;display:inline-block}.icon-url:after{font-family:"Font Awesome 5 Pro";content:"\f360";margin-left:4px}.icon-url{background:#ededed;color:#464646!important;padding:0 4px;border-radius:4px;margin-bottom:3px;display:inline-block;font-size:14px;margin-right:2px}.zd-plane{border:1px solid #f0f0f0;padding:8px;margin:10px 0}.zd-plane-title{cursor:pointer}.zd-plane-title:before{font-family:"Font Awesome 5 Pro";content:"\f067";font-weight:900;display:inline-block;transition:transform .3s;margin-right:10px;color:var(--Maincolor)}.zd-plane-title-zk:before{transform:rotate(45deg)}.zd-plane-content{display:none;padding:10px}.loginshow{background:#f7f7f7;border-radius:4px;padding:10px;margin-bottom:10px}.clickshow{border:2px dashed #4e5358;display:inline-block;border-radius:4px;padding:2px;margin-bottom:2px;background-image:repeating-linear-gradient(-45deg,#fff,#f7f9fa 2px,#fff 0,#fff 6px);color:#fff;user-select:none;cursor:pointer;transition:all .3s}.clickshow-show{color:unset!important}.clickshow-block{display:block!important}.c-alert{box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12);color:#8a8a8a;border-color:#1e1e1e;border-radius:4px;font-size:16px;padding:10px;position:relative;transition:.3s cubic-bezier(.25,.8,.5,1);background:#f4f4f5;border-left:8px solid #8a8a8a;margin-bottom:6px}.c-alert>i{margin-right:10px}.c-alert-success{color:#4caf50;background:#eaf6ea;border-left-color:#4caf50}.c-alert-warning{color:#fb8c00;background:#fff1e1;border-left-color:#fed7a7}.c-alert-error{color:#ff3d1d;background:#fef0f0;border-left-color:#ff3d1d}.c-downbtn{display:flex;justify-content:center}.c-downbtn-item{border:1px solid hsla(210,8%,51%,.09);border-radius:4px;font-size:16px;padding:10px;position:relative;margin-bottom:6px;display:flex;align-items:center;justify-content:space-between;transition:transform .3s ease-in-out,translateY .3s ease-in-out,box-shadow .3s ease-in-out;width:80%}.c-downbtn-item:hover{transform:translateY(-5px);box-shadow:0 4px 8px rgba(84,81,81,.1)}.c-downbtn i{font-size:20px}.c-downbtn-pwd{color:#8a8a8a}.c-downbtn-btn{border:0;background:var(--Maincolor);color:#fff;padding:10px 16px;border-radius:4px}.c-downbtn-btn a{color:#fff;white-space:nowrap}.c-downbtn-btn i{font-size:14px}.c-downbtn-describe{display:flex;align-items:center;flex-shrink:0}.c-downbtn-icon{box-shadow:none!important;width:36px;border-radius:0!important}.c-downbtn-text{font-size:14px;margin-left:10px}.c-downbtn-text-title{font-size:16px}.c-downbtn-pwd i{font-size:14px}.c-downbtn-btn-plane{text-align:right}.btn-copy-pwd{cursor:pointer}.relevant-plane{background:#fff;margin-bottom:10px;box-shadow:0 0 2px 0 rgba(98,124,153,.1);border-radius:4px}.relevant-list{padding:20px 30px;list-style:none}.relevant-list li{line-height:1.6}.relevant-list li:before{left:-10px;width:6px;height:6px;border-radius:50%;background:#ccc;content:"";display:inline-block;position:relative;top:-2px}.relevant-list li a{vertical-align:top;color:#333;transition:all .3s}.relevant-list li a:hover{color:var(--MaincolorHover)}#post-catalog{position:fixed;top:20%;visibility:hidden;opacity:0;color:#18191a;font-size:14px;display:flex;flex-direction:column;background:#fff;padding:6px;max-height:65%}.post-catalog-hide{display:none!important}.post-catalog-title-list{flex:1;display:flex;flex-direction:column}.post-catalog-main-hide{height:0;opacity:0;width:0;visibility:hidden}#post-catalog-list{width:150px;position:relative;overflow:auto;flex:1}#post-catalog-list::before{content:"";position:absolute;top:0;left:4px;bottom:0;width:2px;background-color:#ebedef;opacity:.5}#post-catalog p[catalogtagName=h3]{padding-left:20px}#post-catalog p{list-style:none;transition:color .2s;vertical-align:middle;margin-bottom:6px}#post-catalog-list>p{padding-left:6px}#post-catalog p[catalogtagName=h2]:before{position:relative;content:"●";display:inline-block;color:#000;font-size:14px;line-height:10px;margin-right:2px;bottom:3px;left:-6px;vertical-align:middle}.catalog-hover{color:var(--MaincolorHover);background-color:#f7f9fa;border-radius:4px}.catalog-hover:before{color:var(--MaincolorHover)}.catalog-item{white-space:nowrap;cursor:pointer}.catalog-item:hover{background-color:#f7f9fa;border-radius:4px}.catalog-title{border-bottom:1px solid #f5f6f7;line-height:22px;padding:6px 0;position:relative}.catalog-title:before{content:"\f02e";font-family:"Font Awesome 5 Pro";font-weight:900;display:inline-block;color:#000;font-size:10px;margin-right:10px;position:relative;left:6px}.catalog-close{line-height:22px;padding:6px 0;text-align:center;cursor:pointer;background:#fff}.catalog-close:before{content:"\f410";font-family:"Font Awesome 5 Pro";font-weight:900;display:inline-block;color:#000;font-size:10px;margin-right:10px;position:relative;left:6px}#post-catalog-closebtn{color:#999;cursor:pointer;width:36px;height:36px;border-radius:50%;box-shadow:0 0 2px 0 rgba(98,124,153,.1);background:#fff;text-align:center;line-height:36px;font-size:16px;position:absolute;left:80px}.post-catalog-closebtn-hide{width:0;opacity:0;visibility:hidden}.catalog-btn-show{left:20px!important}.pwd-show{min-height:100px;padding:10px;border:1px dashed #ccc;background-color:#fafafa;margin-bottom:10px}.pwd-show i{color:#999;margin-right:10px}.pwd-show-btn{border:0;background:var(--Maincolor);color:#fff;padding:8px 16px;border-radius:4px;cursor:pointer}.pwd-show-note{font-size:14px}.pwd-show-main{text-align:center}.pwd-show-input{height:34px;font-size:14px;border-radius:4px;outline:0;padding-left:6px;border:1px solid #ccc;margin-bottom:10px} -------------------------------------------------------------------------------- /static/img/face/OK.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghboke/CorePressWPTheme/8c59592c8c282f16379bedb6418275dea4db313e/static/img/face/OK.gif -------------------------------------------------------------------------------- /static/img/face/aixin.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghboke/CorePressWPTheme/8c59592c8c282f16379bedb6418275dea4db313e/static/img/face/aixin.gif -------------------------------------------------------------------------------- /static/img/face/aoman.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghboke/CorePressWPTheme/8c59592c8c282f16379bedb6418275dea4db313e/static/img/face/aoman.gif -------------------------------------------------------------------------------- /static/img/face/baoquan.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghboke/CorePressWPTheme/8c59592c8c282f16379bedb6418275dea4db313e/static/img/face/baoquan.gif -------------------------------------------------------------------------------- /static/img/face/bizui.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghboke/CorePressWPTheme/8c59592c8c282f16379bedb6418275dea4db313e/static/img/face/bizui.gif -------------------------------------------------------------------------------- /static/img/face/cahan.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghboke/CorePressWPTheme/8c59592c8c282f16379bedb6418275dea4db313e/static/img/face/cahan.gif -------------------------------------------------------------------------------- /static/img/face/caidao.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghboke/CorePressWPTheme/8c59592c8c282f16379bedb6418275dea4db313e/static/img/face/caidao.gif -------------------------------------------------------------------------------- /static/img/face/ciya.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghboke/CorePressWPTheme/8c59592c8c282f16379bedb6418275dea4db313e/static/img/face/ciya.gif -------------------------------------------------------------------------------- /static/img/face/dabing.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghboke/CorePressWPTheme/8c59592c8c282f16379bedb6418275dea4db313e/static/img/face/dabing.gif -------------------------------------------------------------------------------- /static/img/face/doge.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghboke/CorePressWPTheme/8c59592c8c282f16379bedb6418275dea4db313e/static/img/face/doge.gif -------------------------------------------------------------------------------- /static/img/face/fadai.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghboke/CorePressWPTheme/8c59592c8c282f16379bedb6418275dea4db313e/static/img/face/fadai.gif -------------------------------------------------------------------------------- /static/img/face/ganga.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghboke/CorePressWPTheme/8c59592c8c282f16379bedb6418275dea4db313e/static/img/face/ganga.gif -------------------------------------------------------------------------------- /static/img/face/guzhang.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghboke/CorePressWPTheme/8c59592c8c282f16379bedb6418275dea4db313e/static/img/face/guzhang.gif -------------------------------------------------------------------------------- /static/img/face/haixiu.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghboke/CorePressWPTheme/8c59592c8c282f16379bedb6418275dea4db313e/static/img/face/haixiu.gif -------------------------------------------------------------------------------- /static/img/face/hanxiao.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghboke/CorePressWPTheme/8c59592c8c282f16379bedb6418275dea4db313e/static/img/face/hanxiao.gif -------------------------------------------------------------------------------- /static/img/face/huaixiao.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghboke/CorePressWPTheme/8c59592c8c282f16379bedb6418275dea4db313e/static/img/face/huaixiao.gif -------------------------------------------------------------------------------- /static/img/face/jie.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghboke/CorePressWPTheme/8c59592c8c282f16379bedb6418275dea4db313e/static/img/face/jie.gif -------------------------------------------------------------------------------- /static/img/face/jingkong.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghboke/CorePressWPTheme/8c59592c8c282f16379bedb6418275dea4db313e/static/img/face/jingkong.gif -------------------------------------------------------------------------------- /static/img/face/keai.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghboke/CorePressWPTheme/8c59592c8c282f16379bedb6418275dea4db313e/static/img/face/keai.gif -------------------------------------------------------------------------------- /static/img/face/koubi.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghboke/CorePressWPTheme/8c59592c8c282f16379bedb6418275dea4db313e/static/img/face/koubi.gif -------------------------------------------------------------------------------- /static/img/face/ku.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghboke/CorePressWPTheme/8c59592c8c282f16379bedb6418275dea4db313e/static/img/face/ku.gif -------------------------------------------------------------------------------- /static/img/face/leiben.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghboke/CorePressWPTheme/8c59592c8c282f16379bedb6418275dea4db313e/static/img/face/leiben.gif -------------------------------------------------------------------------------- /static/img/face/lenghan.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghboke/CorePressWPTheme/8c59592c8c282f16379bedb6418275dea4db313e/static/img/face/lenghan.gif -------------------------------------------------------------------------------- /static/img/face/liuhan.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghboke/CorePressWPTheme/8c59592c8c282f16379bedb6418275dea4db313e/static/img/face/liuhan.gif -------------------------------------------------------------------------------- /static/img/face/nanguo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghboke/CorePressWPTheme/8c59592c8c282f16379bedb6418275dea4db313e/static/img/face/nanguo.gif -------------------------------------------------------------------------------- /static/img/face/penxue.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghboke/CorePressWPTheme/8c59592c8c282f16379bedb6418275dea4db313e/static/img/face/penxue.gif -------------------------------------------------------------------------------- /static/img/face/piezui.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghboke/CorePressWPTheme/8c59592c8c282f16379bedb6418275dea4db313e/static/img/face/piezui.gif -------------------------------------------------------------------------------- /static/img/face/qiang.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghboke/CorePressWPTheme/8c59592c8c282f16379bedb6418275dea4db313e/static/img/face/qiang.gif -------------------------------------------------------------------------------- /static/img/face/qinqin.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghboke/CorePressWPTheme/8c59592c8c282f16379bedb6418275dea4db313e/static/img/face/qinqin.gif -------------------------------------------------------------------------------- /static/img/face/quantou.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghboke/CorePressWPTheme/8c59592c8c282f16379bedb6418275dea4db313e/static/img/face/quantou.gif -------------------------------------------------------------------------------- /static/img/face/se.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghboke/CorePressWPTheme/8c59592c8c282f16379bedb6418275dea4db313e/static/img/face/se.gif -------------------------------------------------------------------------------- /static/img/face/shengli.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghboke/CorePressWPTheme/8c59592c8c282f16379bedb6418275dea4db313e/static/img/face/shengli.gif -------------------------------------------------------------------------------- /static/img/face/shuai.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghboke/CorePressWPTheme/8c59592c8c282f16379bedb6418275dea4db313e/static/img/face/shuai.gif -------------------------------------------------------------------------------- /static/img/face/tiaopi.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghboke/CorePressWPTheme/8c59592c8c282f16379bedb6418275dea4db313e/static/img/face/tiaopi.gif -------------------------------------------------------------------------------- /static/img/face/touxiao.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghboke/CorePressWPTheme/8c59592c8c282f16379bedb6418275dea4db313e/static/img/face/touxiao.gif -------------------------------------------------------------------------------- /static/img/face/tuosai.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghboke/CorePressWPTheme/8c59592c8c282f16379bedb6418275dea4db313e/static/img/face/tuosai.gif -------------------------------------------------------------------------------- /static/img/face/weiqu.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghboke/CorePressWPTheme/8c59592c8c282f16379bedb6418275dea4db313e/static/img/face/weiqu.gif -------------------------------------------------------------------------------- /static/img/face/woshou.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghboke/CorePressWPTheme/8c59592c8c282f16379bedb6418275dea4db313e/static/img/face/woshou.gif -------------------------------------------------------------------------------- /static/img/face/wozuimei.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghboke/CorePressWPTheme/8c59592c8c282f16379bedb6418275dea4db313e/static/img/face/wozuimei.gif -------------------------------------------------------------------------------- /static/img/face/wunai.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghboke/CorePressWPTheme/8c59592c8c282f16379bedb6418275dea4db313e/static/img/face/wunai.gif -------------------------------------------------------------------------------- /static/img/face/xiaojiujie.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghboke/CorePressWPTheme/8c59592c8c282f16379bedb6418275dea4db313e/static/img/face/xiaojiujie.gif -------------------------------------------------------------------------------- /static/img/face/xiaoku.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghboke/CorePressWPTheme/8c59592c8c282f16379bedb6418275dea4db313e/static/img/face/xiaoku.gif -------------------------------------------------------------------------------- /static/img/face/xieyanxiao.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghboke/CorePressWPTheme/8c59592c8c282f16379bedb6418275dea4db313e/static/img/face/xieyanxiao.gif -------------------------------------------------------------------------------- /static/img/face/xigua.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghboke/CorePressWPTheme/8c59592c8c282f16379bedb6418275dea4db313e/static/img/face/xigua.gif -------------------------------------------------------------------------------- /static/img/face/yinxian.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghboke/CorePressWPTheme/8c59592c8c282f16379bedb6418275dea4db313e/static/img/face/yinxian.gif -------------------------------------------------------------------------------- /static/img/face/yiwen.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghboke/CorePressWPTheme/8c59592c8c282f16379bedb6418275dea4db313e/static/img/face/yiwen.gif -------------------------------------------------------------------------------- /static/img/face/youling.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghboke/CorePressWPTheme/8c59592c8c282f16379bedb6418275dea4db313e/static/img/face/youling.gif -------------------------------------------------------------------------------- /static/img/face/yun.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghboke/CorePressWPTheme/8c59592c8c282f16379bedb6418275dea4db313e/static/img/face/yun.gif -------------------------------------------------------------------------------- /static/img/icp.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/img/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghboke/CorePressWPTheme/8c59592c8c282f16379bedb6418275dea4db313e/static/img/loading.gif -------------------------------------------------------------------------------- /static/img/reward.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/img/share-btn.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /static/img/share-qq.svg: -------------------------------------------------------------------------------- 1 | 5 | 7 | 9 | 11 | 13 | 15 | 17 | 19 | 21 | 23 | 25 | -------------------------------------------------------------------------------- /static/img/share-qzone.svg: -------------------------------------------------------------------------------- 1 | 5 | 7 | -------------------------------------------------------------------------------- /static/img/share-weibo.svg: -------------------------------------------------------------------------------- 1 | 5 | 7 | 9 | 11 | 13 | -------------------------------------------------------------------------------- /static/img/share/github.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/img/share/qq.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/img/share/wechat.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/img/share/weibo.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/img/shortcode/c-downbtn/360.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghboke/CorePressWPTheme/8c59592c8c282f16379bedb6418275dea4db313e/static/img/shortcode/c-downbtn/360.png -------------------------------------------------------------------------------- /static/img/shortcode/c-downbtn/bdwp.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/img/shortcode/c-downbtn/ct.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghboke/CorePressWPTheme/8c59592c8c282f16379bedb6418275dea4db313e/static/img/shortcode/c-downbtn/ct.png -------------------------------------------------------------------------------- /static/img/shortcode/c-downbtn/github.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/img/shortcode/c-downbtn/lanzou.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghboke/CorePressWPTheme/8c59592c8c282f16379bedb6418275dea4db313e/static/img/shortcode/c-downbtn/lanzou.png -------------------------------------------------------------------------------- /static/img/shortcode/c-downbtn/ty.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghboke/CorePressWPTheme/8c59592c8c282f16379bedb6418275dea4db313e/static/img/shortcode/c-downbtn/ty.png -------------------------------------------------------------------------------- /static/img/shortcode/c-downbtn/weiyun.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghboke/CorePressWPTheme/8c59592c8c282f16379bedb6418275dea4db313e/static/img/shortcode/c-downbtn/weiyun.png -------------------------------------------------------------------------------- /static/img/thumbnail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghboke/CorePressWPTheme/8c59592c8c282f16379bedb6418275dea4db313e/static/img/thumbnail.png -------------------------------------------------------------------------------- /static/img/wordpress.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/js/base64.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Created by SLICE_30_K on 2017/5/22. 3 | * 4 | * 支持一般Base64的编码和解码 5 | * 支持符合RFC_4648标准中"URL and Filename Safe Alphabet"的URL安全Base64编解码 6 | * 支持中文字符的编解码(Unicode编码) 7 | */ 8 | (function(n,m){"object"===typeof exports?module.exports=exports=m():"function"===typeof define&&define.amd?define(m):window.BASE64=m()})(this,function(){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),q=function(b){for(var h=[];0a){for(a=8-d.length;0<=--a;)d.unshift(0);e=e.concat(d)}else 128<=a&&2047>=a?e=e.concat(l(2,d)):2048<=a&&65535>=a?e=e.concat(l(3,d)):65536<=a&&2097151>=a?e=e.concat(l(4,d)):2097152<=a&&67108863>=a?e=e.concat(l(5,d)):4E6<=a&&2147483647>=a&&(e=e.concat(l(6,d)))}a=e;e=h?m:n;g=f=0;for(d=a.length;gj.failure_limit)return!1}else c.trigger("appear"),b=0})}var h,i=this,j={threshold:0,failure_limit:0,event:"scroll",effect:"show",container:b,data_attribute:"original",skip_invisible:!0,appear:null,load:null,placeholder:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB/AAffA0nNPuCLAAAAAElFTkSuQmCC"};return f&&(d!==f.failurelimit&&(f.failure_limit=f.failurelimit,delete f.failurelimit),d!==f.effectspeed&&(f.effect_speed=f.effectspeed,delete f.effectspeed),a.extend(j,f)),h=j.container===d||j.container===b?e:a(j.container),0===j.event.indexOf("scroll")&&h.bind(j.event,function(){return g()}),this.each(function(){var b=this,c=a(b);b.loaded=!1,(c.attr("src")===d||c.attr("src")===!1)&&c.is("img")&&c.attr("src",j.placeholder),c.one("appear",function(){if(!this.loaded){if(j.appear){var d=i.length;j.appear.call(b,d,j)}a("").bind("load",function(){var d=c.attr("data-"+j.data_attribute);c.hide(),c.is("img")?c.attr("src",d):c.css("background-image","url('"+d+"')"),c[j.effect](j.effect_speed),b.loaded=!0;var e=a.grep(i,function(a){return!a.loaded});if(i=a(e),j.load){var f=i.length;j.load.call(b,f,j)}}).attr("src",c.attr("data-"+j.data_attribute))}}),0!==j.event.indexOf("scroll")&&c.bind(j.event,function(){b.loaded||c.trigger("appear")})}),e.bind("resize",function(){g()}),/(?:iphone|ipod|ipad).*os 5/gi.test(navigator.appVersion)&&e.bind("pageshow",function(b){b.originalEvent&&b.originalEvent.persisted&&i.each(function(){a(this).trigger("appear")})}),a(c).ready(function(){g()}),this},a.belowthefold=function(c,f){var g;return g=f.container===d||f.container===b?(b.innerHeight?b.innerHeight:e.height())+e.scrollTop():a(f.container).offset().top+a(f.container).height(),g<=a(c).offset().top-f.threshold},a.rightoffold=function(c,f){var g;return g=f.container===d||f.container===b?e.width()+e.scrollLeft():a(f.container).offset().left+a(f.container).width(),g<=a(c).offset().left-f.threshold},a.abovethetop=function(c,f){var g;return g=f.container===d||f.container===b?e.scrollTop():a(f.container).offset().top,g>=a(c).offset().top+f.threshold+a(c).height()},a.leftofbegin=function(c,f){var g;return g=f.container===d||f.container===b?e.scrollLeft():a(f.container).offset().left,g>=a(c).offset().left+f.threshold+a(c).width()},a.inviewport=function(b,c){return!(a.rightoffold(b,c)||a.leftofbegin(b,c)||a.belowthefold(b,c)||a.abovethetop(b,c))},a.extend(a.expr[":"],{"below-the-fold":function(b){return a.belowthefold(b,{threshold:0})},"above-the-top":function(b){return!a.belowthefold(b,{threshold:0})},"right-of-screen":function(b){return a.rightoffold(b,{threshold:0})},"left-of-screen":function(b){return!a.rightoffold(b,{threshold:0})},"in-viewport":function(b){return a.inviewport(b,{threshold:0})},"above-the-fold":function(b){return!a.belowthefold(b,{threshold:0})},"right-of-fold":function(b){return a.rightoffold(b,{threshold:0})},"left-of-fold":function(b){return!a.rightoffold(b,{threshold:0})}})}(jQuery,window,document); -------------------------------------------------------------------------------- /static/js/tools.js: -------------------------------------------------------------------------------- 1 | function getQueryVariable(a){for(var b=window.location.search.substring(1).split("\x26"),c=0;c { 2 | document.querySelectorAll('.corepress-code-pre code').forEach((block) => { 3 | hljs.highlightBlock(block); 4 | }); 5 | 6 | }); 7 | $('.corepress-code-pre').append('
    ') 8 | $(".corepress-code-pre code").each(function () { 9 | $(this).html("
    • " + $(this).html().replace(/\n/g, "\n
    • ") + "\n
    "); 10 | }); 11 | -------------------------------------------------------------------------------- /static/lib/highlight/style/corepress-dark.css: -------------------------------------------------------------------------------- 1 | .hljs-comment, 2 | .hljs-quote { 3 | color: #969896; 4 | } 5 | 6 | /* Tomorrow Red */ 7 | .hljs-variable, 8 | .hljs-template-variable, 9 | .hljs-tag, 10 | .hljs-name, 11 | .hljs-selector-id, 12 | .hljs-selector-class, 13 | .hljs-regexp, 14 | .hljs-deletion { 15 | color: #ff8383; 16 | } 17 | 18 | /* Tomorrow Orange */ 19 | .hljs-number, 20 | .hljs-built_in, 21 | .hljs-builtin-name, 22 | .hljs-literal, 23 | .hljs-type, 24 | .hljs-params, 25 | .hljs-meta, 26 | .hljs-link { 27 | color: #de935f; 28 | } 29 | 30 | /* Tomorrow Yellow */ 31 | .hljs-attribute { 32 | color: #e9d27e; 33 | } 34 | 35 | /* Tomorrow Green */ 36 | .hljs-string, 37 | .hljs-symbol, 38 | .hljs-bullet, 39 | .hljs-addition { 40 | color: #b5f4a5; 41 | } 42 | 43 | /* Tomorrow Blue */ 44 | .hljs-title, 45 | .hljs-section { 46 | color: #93ddfd; 47 | } 48 | /* Tomorrow Purple */ 49 | .hljs-keyword, 50 | .hljs-selector-tag { 51 | color: #d9a9ff; 52 | } 53 | 54 | .hljs { 55 | display: block; 56 | overflow-x: auto; 57 | background: #2d3748; 58 | color: #c5c8c6; 59 | padding: 0.5em; 60 | } 61 | 62 | .hljs-emphasis { 63 | font-style: italic; 64 | } 65 | 66 | .hljs-strong { 67 | font-weight: bold; 68 | } 69 | 70 | 71 | pre.corepress-code-pre code { 72 | position: relative; 73 | border-radius: 5px; 74 | max-height: 500px; 75 | overflow: auto; 76 | padding: 10px 20px; 77 | } 78 | 79 | .corepress-code-pre:hover .code-bar { 80 | visibility: visible; 81 | opacity: 1; 82 | } 83 | 84 | .code-bar { 85 | position: absolute; 86 | right: 0; 87 | top: 0; 88 | padding: 5px 10px; 89 | visibility: hidden; 90 | opacity: 0; 91 | transition: .3s; 92 | } 93 | 94 | .code-bar-btn-copy { 95 | border: none; 96 | background: #fff; 97 | box-shadow: 0 2px 4px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.05); 98 | padding: 2px 5px; 99 | border-radius: 3px; 100 | cursor: pointer; 101 | } 102 | .code-bar-btn-copy-fonticon { 103 | color: #fff; 104 | cursor: pointer; 105 | } 106 | pre[class='corepress-code-pre'] { 107 | position: relative; 108 | font-size: 14px; 109 | border-radius: 4px; 110 | margin: 0; 111 | padding: 0; 112 | max-height: unset; 113 | overflow: unset; 114 | } 115 | 116 | 117 | .hljs ul { 118 | list-style: decimal; 119 | margin: 0px 0px 0 20px !important; 120 | padding: 0px; 121 | } 122 | .hljs ul li { 123 | list-style: decimal-leading-zero; 124 | border-left: 1px solid #ddd !important; 125 | padding: 5px!important; 126 | margin: 0 !important; 127 | line-height: 14px; 128 | word-break: break-all; 129 | word-wrap: break-word; 130 | } 131 | .hijs-line-number { 132 | 133 | } -------------------------------------------------------------------------------- /static/lib/highlight/style/corepress.css: -------------------------------------------------------------------------------- 1 | .hljs-comment, .hljs-quote { 2 | color: #696969 3 | } 4 | 5 | .hljs-deletion, .hljs-name, .hljs-regexp, .hljs-selector-class, .hljs-selector-id, .hljs-tag, .hljs-template-variable, .hljs-variable { 6 | color: #d91e18 7 | } 8 | 9 | .hljs-built_in, .hljs-builtin-name, .hljs-link, .hljs-literal, .hljs-meta, .hljs-number, .hljs-params, .hljs-type { 10 | color: #aa5d00 11 | } 12 | 13 | .hljs-attribute { 14 | color: #aa5d00 15 | } 16 | 17 | .hljs-addition, .hljs-bullet, .hljs-string, .hljs-symbol { 18 | color: green 19 | } 20 | 21 | .hljs-section, .hljs-title { 22 | color: #007faa 23 | } 24 | 25 | .hljs-keyword, .hljs-selector-tag { 26 | color: #7928a1 27 | } 28 | 29 | .hljs { 30 | display: block; 31 | overflow-x: auto; 32 | color: #545454; 33 | padding: .5em 34 | } 35 | 36 | .hljs-emphasis { 37 | font-style: italic 38 | } 39 | 40 | .hljs-strong { 41 | font-weight: 700 42 | } 43 | 44 | @media screen and (-ms-high-contrast: active) { 45 | .hljs-addition, .hljs-attribute, .hljs-built_in, .hljs-builtin-name, .hljs-bullet, .hljs-comment, .hljs-link, .hljs-literal, .hljs-meta, .hljs-number, .hljs-params, .hljs-quote, .hljs-string, .hljs-symbol, .hljs-type { 46 | color: highlight 47 | } 48 | 49 | .hljs-keyword, .hljs-selector-tag { 50 | font-weight: 700 51 | } 52 | } 53 | 54 | 55 | pre.corepress-code-pre code { 56 | position: relative; 57 | border-radius: 5px; 58 | background: #fafafa; 59 | max-height: 500px; 60 | overflow: auto; 61 | padding: 10px 20px; 62 | font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace, sans-serif; 63 | } 64 | 65 | .corepress-code-pre:hover .code-bar { 66 | visibility: visible; 67 | opacity: 1; 68 | } 69 | 70 | .code-bar { 71 | position: absolute; 72 | right: 0; 73 | top: 0; 74 | padding: 5px 10px; 75 | visibility: hidden; 76 | opacity: 0; 77 | transition: .3s; 78 | } 79 | 80 | .code-bar-btn-copy { 81 | border: none; 82 | background: #fff; 83 | box-shadow: 0 2px 4px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.05); 84 | padding: 2px 5px; 85 | border-radius: 3px; 86 | cursor: pointer; 87 | } 88 | .code-bar-btn-copy-fonticon { 89 | cursor: pointer; 90 | } 91 | pre[class='corepress-code-pre'] { 92 | position: relative; 93 | font-size: 14px; 94 | border-radius: 4px; 95 | margin: 0; 96 | padding: 0; 97 | max-height: unset; 98 | overflow: unset; 99 | background-color: #fafafa; 100 | } 101 | 102 | .hljs ul { 103 | list-style: decimal; 104 | margin: 0px 0px 0 20px !important; 105 | padding: 0px; 106 | } 107 | .hljs ul li { 108 | list-style: decimal-leading-zero; 109 | border-left: 1px solid #ddd !important; 110 | padding: 5px!important; 111 | margin: 0 !important; 112 | line-height: 14px; 113 | word-break: break-all; 114 | word-wrap: break-word; 115 | } -------------------------------------------------------------------------------- /static/lib/layer/theme/corepress/style.css: -------------------------------------------------------------------------------- 1 | body .corepress-layer .layui-layer-title { 2 | border-bottom: none; 3 | background-color: #fff; 4 | font-size: 16px; 5 | } 6 | body .corepress-layer { 7 | border-radius: 6px; 8 | overflow: hidden; 9 | } 10 | -------------------------------------------------------------------------------- /static/lib/layer/theme/default/icon-ext.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghboke/CorePressWPTheme/8c59592c8c282f16379bedb6418275dea4db313e/static/lib/layer/theme/default/icon-ext.png -------------------------------------------------------------------------------- /static/lib/layer/theme/default/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghboke/CorePressWPTheme/8c59592c8c282f16379bedb6418275dea4db313e/static/lib/layer/theme/default/icon.png -------------------------------------------------------------------------------- /static/lib/layer/theme/default/loading-0.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghboke/CorePressWPTheme/8c59592c8c282f16379bedb6418275dea4db313e/static/lib/layer/theme/default/loading-0.gif -------------------------------------------------------------------------------- /static/lib/layer/theme/default/loading-1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghboke/CorePressWPTheme/8c59592c8c282f16379bedb6418275dea4db313e/static/lib/layer/theme/default/loading-1.gif -------------------------------------------------------------------------------- /static/lib/layer/theme/default/loading-2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghboke/CorePressWPTheme/8c59592c8c282f16379bedb6418275dea4db313e/static/lib/layer/theme/default/loading-2.gif -------------------------------------------------------------------------------- /style.css: -------------------------------------------------------------------------------- 1 | /* 2 | Theme Name: CorePress 3 | Theme URI: https://www.lovestu.com/CorePress 4 | Version: 4.0 5 | Author: applek 6 | Author URI: https://www.lovestu.com 7 | Description: 极客个人主题,多功能CMS主题 8 | Tags:corepress 9 | */ -------------------------------------------------------------------------------- /tag.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
    9 |
    10 |
    11 |
    12 | 15 |
    16 |
    17 |
    18 |
    19 |
    20 |
    21 | 25 | 41 |
    42 | 45 |
    46 | 50 |
    51 | 52 |
    53 | 56 | 59 | 62 |
    63 | 64 |
    65 | 68 |
    69 |
    70 |
    71 | 74 |
    75 |
    76 | 77 | 78 | '显示作者的一些信息,建议放到文章页面侧边栏,否则无法获取到内容' 14 | ) 15 | ); 16 | } 17 | 18 | function form($instance) 19 | { 20 | $num = isset($instance['number']) ? absint($instance['number']) : 5; 21 | $title = isset($instance['title']) ? $instance['title'] : '作者信息'; 22 | ?> 23 |

    24 |

    27 |

    请放到文章侧边栏,否则无法获取到作者用户信息

    28 | id_base)) { 35 | echo $args['before_title'] . $title . $args['after_title']; 36 | } 37 | 38 | } 39 | 40 | public function widget_end($args) 41 | { 42 | echo $args['after_widget']; 43 | } 44 | 45 | 46 | function update($new_instance, $old_instance) 47 | { 48 | $instance = $old_instance; 49 | $instance['title'] = sanitize_text_field($new_instance['title']); 50 | return $instance; 51 | } 52 | 53 | function widget($args, $instance) 54 | { 55 | 56 | $this->widget_start($args, $instance); 57 | $author_id = get_the_author_meta('ID'); 58 | $author_description = get_the_author_meta('description'); 59 | $author_url = get_author_posts_url($author_id); 60 | $author_name = get_the_author(); 61 | $avatar = get_avatar($author_id, 50, ''); 62 | 63 | ?> 64 |
    65 |
    66 | 67 |
    68 | 69 |
    70 |
    71 | 72 |
    73 |
    74 |
    75 | 76 | 77 |
    78 |
    79 | 80 | 83 |
    84 |
    85 | 86 |
    87 |
    88 |
    89 |

    近期文章

    90 |
      91 | 5, 'author' => $author_id)); 93 | foreach ($post_list as $item) { 94 | echo '
    • ' . $item->post_title . '
    • '; 95 | } 96 | ?> 97 |
    98 |
    99 | widget_end($args, $instance); 102 | } 103 | } 104 | 105 | // register widget 106 | function register_corepress_author_widget() 107 | { 108 | register_widget('CorePress_author_widget'); 109 | } 110 | 111 | add_action('widgets_init', 'register_corepress_author_widget'); -------------------------------------------------------------------------------- /widgets/comments.php: -------------------------------------------------------------------------------- 1 | '显示最新评论' 14 | ) 15 | ); 16 | } 17 | 18 | function form($instance) 19 | { 20 | $num = isset($instance['number']) ? absint($instance['number']) : 5; 21 | $title = isset($instance['title']) ? $instance['title'] : '最新评论'; 22 | ?> 23 |

    24 |

    27 | 28 |

    29 |

    32 | id_base)) { 39 | echo $args['before_title'] . $title . $args['after_title']; 40 | } 41 | } 42 | 43 | public function widget_end($args) 44 | { 45 | echo $args['after_widget']; 46 | } 47 | 48 | 49 | function update($new_instance, $old_instance) 50 | { 51 | /* $instance = $old_instance; 52 | $instance['num'] = absint($new_instance['num']); 53 | $instance['title'] = sanitize_text_field($new_instance['title']);*/ 54 | return $new_instance; 55 | } 56 | 57 | function widget($args, $instance) 58 | { 59 | 60 | $this->widget_start($args, $instance); 61 | $number = (!empty($instance['number'])) ? absint($instance['number']) : 5; 62 | $comments = get_comments( 63 | /** 64 | * Filters the arguments for the Recent Comments widget. 65 | * 66 | * @param array $comment_args An array of arguments used to retrieve the recent comments. 67 | * @param array $instance Array of settings for the current widget. 68 | * @see WP_Comment_Query::query() for information on accepted arguments. 69 | * 70 | * @since 3.4.0 71 | * @since 4.9.0 Added the `$instance` parameter. 72 | * 73 | */ 74 | apply_filters( 75 | 'widget_comments_args', 76 | array( 77 | 'number' => $number, 78 | 'status' => 'approve', 79 | 'post_status' => 'publish', 80 | 81 | ), 82 | $instance 83 | ) 84 | ); 85 | foreach ($comments as $comment) { 86 | if ($comment->user_id) { 87 | $author_url = get_author_posts_url($comment->user_id); 88 | $userdata = get_userdata($comment->user_id); 89 | $display_name = $userdata->display_name; 90 | } else { 91 | $author_url = 'javascript:;'; 92 | $display_name = $comment->comment_author; 93 | } 94 | $post_title = get_the_title($comment->comment_post_ID); 95 | $post_link = get_permalink($comment->comment_post_ID); 96 | ?> 97 |
  • 98 |
    99 |
    100 |
    101 |
    102 | 103 |
    104 |
    105 | 106 |
    107 |
    108 |
    109 | comment_date)); ?> 110 |
    111 |
    112 |
    113 |

    comment_content, 55))); ?>

    114 |
    115 | 118 |
    119 | 120 |
  • 121 | 122 | widget_end($args, $instance); 126 | } 127 | } 128 | 129 | // register widget 130 | function register_corepress_comments_widget() 131 | { 132 | register_widget('CorePress_comments_widget'); 133 | } 134 | 135 | add_action('widgets_init', 'register_corepress_comments_widget'); -------------------------------------------------------------------------------- /widgets/hot-post.php: -------------------------------------------------------------------------------- 1 | '热门文章排行' 14 | ) 15 | ); 16 | } 17 | 18 | function form($instance) 19 | { 20 | $num = isset($instance['number']) ? absint($instance['number']) : 5; 21 | $title = isset($instance['title']) ? $instance['title'] : '热门文章'; 22 | $type = isset($instance['type']) ? $instance['type'] : 'comment'; 23 | 24 | ?> 25 |

    26 |

    29 | 30 |

    31 |

    34 | 35 | 36 |

    37 | 38 | 42 |

    43 | id_base)) { 50 | echo $args['before_title'] . $title . $args['after_title']; 51 | } 52 | } 53 | 54 | public function widget_end($args) 55 | { 56 | echo $args['after_widget']; 57 | } 58 | 59 | 60 | function update($new_instance, $old_instance) 61 | { 62 | /* $instance = $old_instance; 63 | $instance['num'] = absint($new_instance['num']); 64 | $instance['title'] = sanitize_text_field($new_instance['title']);*/ 65 | return $new_instance; 66 | } 67 | 68 | function widget($args, $instance) 69 | { 70 | 71 | $this->widget_start($args, $instance); 72 | $number = (!empty($instance['number'])) ? absint($instance['number']) : 5; 73 | $type = (!empty($instance['type'])) ? $instance['type'] : 'comment'; 74 | if ($type == 'comment') { 75 | $the_query = new WP_Query(array('order' => 'DESC', 'orderby' => 'comment_count', 'posts_per_page' => $number)); 76 | 77 | } elseif ($type == 'view') { 78 | $the_query = new WP_Query(array('order' => 'DESC', 'orderby' => 'meta_value_num', 'meta_key'=>'views','posts_per_page' => $number)); 79 | } 80 | 81 | if ($the_query->have_posts()) { 82 | $postitem = array(); 83 | $i = 0; 84 | while ($the_query->have_posts()) { 85 | $i++; 86 | $the_query->the_post(); 87 | $postitem['title'] = get_the_title(); 88 | $postitem['time'] = get_the_time('Y-m-d'); 89 | $postitem['category'] = get_the_category(); 90 | $postitem['url'] = get_the_permalink(); 91 | ?> 92 |
    93 |
    94 | 95 | 96 | 97 | 98 | 99 | 100 |
    101 |
    102 |
    103 | 104 |
    105 |
    106 | name ?> 107 |
    108 |
    109 |
    110 | 114 | 115 | 119 | 120 | widget_end($args, $instance); 123 | } 124 | } 125 | 126 | // register widget 127 | function register_corepress_hot_post_widget() 128 | { 129 | register_widget('CorePress_hot_post_widget'); 130 | } 131 | 132 | add_action('widgets_init', 'register_corepress_hot_post_widget'); --------------------------------------------------------------------------------