├── .gitignore
├── 404.php
├── LICENSE
├── README.md
├── archive.php
├── author.php
├── category.php
├── comments.php
├── css
├── font-awesome.css
├── font-awesome.min.css
└── fonts
│ ├── FontAwesome.otf
│ ├── fontawesome-webfont.eot
│ ├── fontawesome-webfont.svg
│ ├── fontawesome-webfont.ttf
│ └── fontawesome-webfont.woff
├── date.php
├── footer.php
├── functions.php
├── functions
├── articles.php
├── clear.php
├── comments.php
├── misc.php
├── shortcodes.php
├── tags.php
├── themes.php
├── themeset.php
├── thumbnail.php
├── widget.php
└── widgets
│ ├── author.php
│ ├── bookmarks.php
│ ├── comments.php
│ ├── post.php
│ ├── readers.php
│ ├── search.php
│ └── tags.php
├── header.php
├── images
├── attention.png
├── bag.png
├── bg.jpg
├── bg.png
├── bg_small.jpg
├── bonus.png
├── calendar.png
├── check.png
├── delete.png
├── edit.png
├── flag.png
├── help.png
├── iconfont-bofang.png
├── iconfont-musicpause.png
├── information.png
├── loading.gif
├── love.png
├── nextlabel.gif
├── prevlabel.gif
├── quote-post.png
├── random
│ ├── 1.jpg
│ ├── 2.jpg
│ ├── 3.jpg
│ ├── 4.jpg
│ ├── 5.jpg
│ ├── 6.jpg
│ └── 7.jpg
└── tag.png
├── inc
└── post-format
│ ├── content-audio.php
│ ├── content-gallery.php
│ ├── content-image.php
│ ├── content-status.php
│ ├── content.php
│ ├── relatedpost.php
│ ├── single-gallery.php
│ └── single.php
├── index.php
├── js
├── Jplayer.swf
├── ajax.js
├── ajax.min.js
├── autospace.min.js
├── global.js
├── global.min.js
├── jquery-1.12.4.min.js
├── jquery-migrate-1.2.1.js
├── jquery.fitvids.js
├── jquery.flexslider-min.js
├── jquery.jplayer.js
├── jquery.jplayer.min.js
├── jquery.lazyload.min.js
└── slimbox2.min.js
├── languages
├── zh_CN.mo
└── zh_CN.po
├── loading.gif
├── page-archives.php
├── page-sitemap.php
├── page-tags.php
├── page.php
├── search.php
├── sidebar.php
├── single.php
├── style.css
├── style.min.css
├── tag.php
└── timthumb.php
/.gitignore:
--------------------------------------------------------------------------------
1 | cache/
--------------------------------------------------------------------------------
/404.php:
--------------------------------------------------------------------------------
1 |
6 | * @license MIT
7 | */
8 |
9 | get_header(); ?>
10 |
11 |
14 |
15 |
16 |
17 |
21 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2014-2015 Javis
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in
13 | all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | THE SOFTWARE.
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | WordPress Theme Quench
2 | ======
3 |
4 | 注意事项
5 | ----
6 |
7 | 1. 本主题自带 slimbox 图片灯箱 和 lazyload 图片延迟载功能,使用前请先关闭同类插件,避免冲突。
8 | 2. 适合本主题的多说 CSS 在本说明页面的最下方。
9 | 3. 音乐文章使用的是虾米的链接,可直接使用短代码`[xiami]id[/xiami]`插入。
10 | 4. 文章中支持的短代码有:attention,bag,bonus,calendar,check,delete,edit,flag,help,information,love,tag,样式基本一致,只是引用的背景图片不同,可参考 \quench\images 目录下的图片。
11 |
12 | 更多内容可查看[主题页面](https://lophita.com/wordpress-theme-quench.html)
13 |
14 | 更新日志
15 | ----
16 | update 2016-08-26
17 |
18 | - 多语言支持
19 |
20 | update 2016-07-20
21 |
22 | - 修复标题不能正确换行
23 |
24 | update 2016-05-31
25 |
26 | - 添加了侧栏友链模块,并支持网站图标自动获取 (使用了[冰翼博客](https://icewing.cc/)提供的 [BYI_API](https://api.byi.pw/favicon) )
27 | - 修复了移动样式下的自适应问题
28 |
29 | update 2016-05-28
30 |
31 | - 添加了是否开启 lazyload 图片延迟加载的选项
32 |
33 | update 2016-05-26
34 |
35 | - 增加了全局 AJAX 模式下对 Hermit 播放器的支持
36 | - 升级 jQuery 版本到最新的 1.12.4
37 | - 将图片延迟加载插件 unveil 更换为 lazyload
38 | - 修复自动添加空格功能在 AJAX 加载页面后没有自动触发的错误
39 | - 更换二维码 API ,使用支持 https 的 [Liwanglin12的API](https://blog.lwl12.com/read/lwl-api-qrcode.html)
40 | - 修改了说明页面
41 | - 修改了网站标题下简介的显示动画
42 |
43 | update 2016-05-11
44 |
45 | - 支持多说 AJAX
46 | - 优化背景遮罩,解决闪动 bug
47 |
48 | update 2016-05-03
49 |
50 | - 优化 评论框记住用户信息
51 |
52 | update 2016-02-20
53 |
54 | - 修复关闭评论仍显示评论框的错误
55 |
56 | update 2016-02-20
57 |
58 | - 压缩 CSS/JS 代码
59 | - 移除 JSON API 支持
60 |
61 | update 2016-01-20
62 |
63 | - 更新 Gravatar 源,使用七牛云存储
64 |
65 | update 2016-01-11
66 |
67 | - 修复 WordPress 4.4 的评论分页的错误
68 |
69 | update 2015-10-16
70 |
71 | - 优化网页背景显示效果
72 | - 修改 AJAX 加载动画
73 |
74 | update 2015-06-29
75 |
76 | - 添加 WordPress 4.2 支持
77 | - 移除了头像缓存功能
78 |
79 | update 2014-12-22
80 |
81 | - 修复虾米音乐链接错误的 Bug
82 | - 后台添加“使用同一侧边栏”功能
83 |
84 | update 2014-10-04
85 |
86 | - 添加多语言支持
87 |
88 | update 2014-08-11
89 |
90 | - 修复分页显示不正确的 Bug
91 |
92 | update 2014-08-06
93 |
94 | - 添加短代码
95 |
96 | update 2014-07-30
97 |
98 | - 调整字体
99 | - 修复全站 AJAX 时的跳转错误
100 |
101 | 主要功能及特点
102 | -------
103 | 1. 响应式设计,PC、平板、手机等均可正常浏览
104 | 2. 内置多种小工具,最新/随机/热门文章、最新评论、活跃读者、标签云、日历等等
105 | 3. 内置图片灯箱
106 | 4. 内置图片延迟加载,可加快多图页面的加载速度
107 | 5. 内置头像缓存
108 | 6. 内置Ajax评论提交,可基本解决垃圾评论问题
109 | 7. 内置Ajax评论翻页
110 | 8. 全站Ajax功能,可开启/关闭
111 | 9. 汉字与拉丁字符间自动添加空白间隙,优化排版
112 | 10. 5 种文章格式
113 | 11. 顶部公告栏
114 | 12. 侧边栏滚动,可自由设置
115 | 13. 支持3种侧边栏
116 | 14. 内置文章存档、标签云和网站地图3种页面模板
117 | 15. 文章二维码
118 | 16. 文章喜欢功能
119 | 17. Gravatar 头像加速(七牛代理)
120 |
121 | 友情链接使用指南
122 | ----
123 | 1. 先打开后台,在左侧的“链接”选项中点击“链接分类目录”,添加一个链接分类,保存
124 | 2. 添加新链接,请注意在添加时勾选刚刚添加的分类
125 | 3. 点击“外观”选项中的“小工具”设置,添加“友情链接”侧栏模块,模块设置中的“分类”即为第一步设置的分类
126 |
127 | 多说样式优化
128 | ------
129 | 请打开多说的个性化设置页面,在自定义CSS的选项中加入以下代码:
130 | ```
131 | #ds-thread {
132 | background: #ffffff;
133 | padding: 20px 26px;
134 | margin-bottom:2rem;
135 | }
136 | #ds-thread:before {
137 | content: "";
138 | position: absolute;
139 | top: 0;
140 | right: 0;
141 | z-index: 10;
142 | border-width: 0 16px 16px 0;
143 | border-style: solid;
144 | border-color: #FFF #47c2dc #FFF #FFF;
145 | background: none repeat scroll 0 0 #658e15;
146 | box-shadow: 0 1px 1px rgba(0,0,0,0.08),-1px 1px 1px rgba(0,0,0,0.08);
147 | display: block;
148 | width: 0;
149 | }
150 | ```
151 |
152 | 如果需要隐藏不和谐的 Like 按钮,可以再添加以下代码:
153 | ```
154 | .ds-meta {
155 | display:none;
156 | }
157 | ```
158 |
159 | 完成后效果如图(已隐藏 Like 按钮,部分文字已自定义)
160 | 
161 |
162 |
163 | Thanks to [@fly3949](https://github.com/fly3949), [@h2y](https://github.com/h2y).
164 |
--------------------------------------------------------------------------------
/archive.php:
--------------------------------------------------------------------------------
1 |
6 | * @license MIT
7 | */
8 |
9 | get_header(); ?>
10 |
11 |
12 |
13 |
14 |
22 |
23 | max_num_pages > 1 ) { ?>
24 |
27 |
28 |
29 |
30 |
31 |
35 |
--------------------------------------------------------------------------------
/author.php:
--------------------------------------------------------------------------------
1 |
6 | * @license MIT
7 | */
8 | ?>
9 |
10 | get_queried_object();
14 | ?>
15 |
16 |
20 |
21 |
29 |
30 | max_num_pages > 1 ) { ?>
31 |
34 |
35 |
36 |
37 |
38 |
42 |
--------------------------------------------------------------------------------
/category.php:
--------------------------------------------------------------------------------
1 |
6 | * @license MIT
7 | */
8 |
9 | get_header(); ?>
10 |
11 |
12 |
13 |
14 | ◆'.category_description().'
'; ?>
15 |
16 |
17 |
25 |
26 | max_num_pages > 1 ) { ?>
27 |
30 |
31 |
32 |
33 |
34 |
38 |
--------------------------------------------------------------------------------
/comments.php:
--------------------------------------------------------------------------------
1 |
9 | * @license MIT
10 | */
11 |
12 | if(comments_open()) {
13 | ?>
14 |
50 |
53 |
--------------------------------------------------------------------------------
/css/fonts/FontAwesome.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mastermay/quench/0945b4795783b6bd078c1c683076bfbd296be62a/css/fonts/FontAwesome.otf
--------------------------------------------------------------------------------
/css/fonts/fontawesome-webfont.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mastermay/quench/0945b4795783b6bd078c1c683076bfbd296be62a/css/fonts/fontawesome-webfont.eot
--------------------------------------------------------------------------------
/css/fonts/fontawesome-webfont.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mastermay/quench/0945b4795783b6bd078c1c683076bfbd296be62a/css/fonts/fontawesome-webfont.ttf
--------------------------------------------------------------------------------
/css/fonts/fontawesome-webfont.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mastermay/quench/0945b4795783b6bd078c1c683076bfbd296be62a/css/fonts/fontawesome-webfont.woff
--------------------------------------------------------------------------------
/date.php:
--------------------------------------------------------------------------------
1 |
6 | * @license MIT
7 | */
8 |
9 | get_header(); ?>
10 |
11 |
12 |
19 | ◆文章存档
'; ?>
20 |
21 |
22 |
30 |
31 | max_num_pages > 1 ) { ?>
32 |
35 |
36 |
37 |
38 |
39 |
43 |
--------------------------------------------------------------------------------
/footer.php:
--------------------------------------------------------------------------------
1 |
6 | * @license MIT
7 | */
8 | ?>
9 |
10 |
14 |
15 |
16 |
17 |
,$wp->request));?>&w=130&h=130)
18 |
19 |
20 |
21 |
22 | '.dopt('d_track').'';
24 | if( dopt('d_footcode_b') != '' ) echo dopt('d_footcode');
25 |
26 | if( is_single() && dopt('d_sideroll_single_b') ){
27 | $sr_1 = dopt('d_sideroll_single_1');
28 | $sr_2 = dopt('d_sideroll_single_2');
29 | }elseif( is_home() && dopt('d_sideroll_index_b') ){
30 | $sr_1 = dopt('d_sideroll_index_1');
31 | $sr_2 = dopt('d_sideroll_index_2');
32 | }elseif(is_page() && dopt('d_sideroll_page_b')){
33 | $sr_1 = dopt('d_sideroll_page_1');
34 | $sr_2 = dopt('d_sideroll_page_2');
35 | }else{
36 | $sr_1 = 2;
37 | $sr_2 = 4;
38 | }
39 | echo '';
40 |
41 | wp_footer();
42 |
43 | ?>
44 |
19 | 20 |
21 | 22 |