├── .editorconfig
├── .github
├── FUNDING.yml
└── workflows
│ └── main.yml
├── .gitignore
├── .jshintrc
├── .postcssrc.js
├── .prettierrc.js
├── 404.php
├── README.md
├── README_CN.md
├── archive.php
├── build
├── css
│ ├── app.min.css
│ └── setting.min.css
├── fonts
│ ├── OpenSans-Bold.woff
│ ├── OpenSans-Bold.woff2
│ ├── OpenSans-Light.woff
│ ├── OpenSans-Light.woff2
│ ├── OpenSans-Medium.woff
│ ├── OpenSans-Medium.woff2
│ ├── OpenSans-Regular.woff
│ └── OpenSans-Regular.woff2
├── images
│ └── favicon.png
└── js
│ ├── app.min.js
│ └── setting.min.js
├── category.php
├── comments.php
├── fonts
├── OpenSans-Bold.woff
├── OpenSans-Bold.woff2
├── OpenSans-Light.woff
├── OpenSans-Light.woff2
├── OpenSans-Medium.woff
├── OpenSans-Medium.woff2
├── OpenSans-Regular.woff
└── OpenSans-Regular.woff2
├── footer.php
├── functions.php
├── gulpfile.js
├── header.php
├── images
└── favicon.png
├── inc
├── base.php
├── comment.php
├── setting.php
└── setup.php
├── index.php
├── languages
├── berry.pot
├── zh_CN.mo
└── zh_CN.po
├── package.json
├── page.php
├── screenshot.png
├── scss
├── app.scss
├── modules
│ ├── _basic.scss
│ ├── _comment.scss
│ ├── _footer.scss
│ ├── _grap.scss
│ ├── _header.scss
│ ├── _normalize.scss
│ └── _variable.scss
├── setting.scss
└── templates
│ ├── _map.scss
│ ├── _single.scss
│ └── _term.scss
├── single.php
├── style.css
├── template-part
├── post-navigation.php
├── post
│ ├── content-card.php
│ ├── content-status.php
│ └── content.php
└── single-related.php
├── tpl
├── page-map.php
├── template-archive.php
├── template-links.php
└── template-terms.php
└── ts
├── app.ts
├── extensions
├── help.ts
└── zoom.ts
├── modules
├── action.ts
├── comment.ts
├── date.ts
├── posts.ts
└── scroll.ts
└── setting.ts
/.editorconfig:
--------------------------------------------------------------------------------
1 | [*.{js,jsx,ts,tsx,vue,scss,json}]
2 | indent_style = space
3 | indent_size = 4
4 | end_of_line = lf
5 | trim_trailing_whitespace = true
6 | insert_final_newline = true
7 | max_line_length = 100
8 |
--------------------------------------------------------------------------------
/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | github: [bigfa]
--------------------------------------------------------------------------------
/.github/workflows/main.yml:
--------------------------------------------------------------------------------
1 | name: Bigfa
2 |
3 | on:
4 | push:
5 | branches:
6 | - main
7 | tags:
8 | - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
9 |
10 | jobs:
11 | build-deploy:
12 | runs-on: ubuntu-latest
13 | steps:
14 | - name: Notify theme updates
15 | run: |
16 | curl --fail --request GET --header "Authorization: Bearer $SIGN" --url "https://farallon.4398929.workers.dev/update?theme=berry&version=${{ github.ref }}"
17 | env:
18 | SIGN: ${{ secrets.SIGN }}
19 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 |
--------------------------------------------------------------------------------
/.jshintrc:
--------------------------------------------------------------------------------
1 | {
2 | "esversion": 9,
3 | "maxerr": 50,
4 | "camelcase": false,
5 | "latedef": false
6 | }
--------------------------------------------------------------------------------
/.postcssrc.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: {
3 | autoprefixer: {}
4 | }
5 | };
--------------------------------------------------------------------------------
/.prettierrc.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | singleQuote: true,
3 | semi: true
4 | }
--------------------------------------------------------------------------------
/404.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
7 |
8 | 'post',
11 | 'orderby' => 'rand',
12 | 'ignore_sticky_posts' => true,
13 | 'posts_per_page' => 6,
14 | ));
15 | while ($the_query->have_posts()) : $the_query->the_post(); ?>
16 |
17 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Wordpress Theme Berry
2 |
3 | 
4 |
5 | ## Changelog
6 |
7 | ### 2.0.8
8 |
9 | - style inhancement
10 |
11 | ### 2.0.7
12 |
13 | - style inhancement
14 |
15 | ### 2.0.6
16 |
17 | - fixed social icons link errro
18 |
19 | ### 2.0.5
20 |
21 | - update translation
22 |
23 | ### 2.0.4
24 |
25 | - add settings
26 | - add map template
27 |
28 | ### 2.0.3
29 |
30 | - add search
31 | - add sns icons
32 |
33 | ### 2.0.2
34 |
35 | - add home image post count
36 | - add post tag icon
37 | - add author card
38 | - add post navigation
39 |
40 | ### 2.0.1
41 |
42 | - update translation
43 | - add blogroll template
44 | - add category list template
45 |
46 | ### 2.0.0
47 |
48 | - redesign
49 |
--------------------------------------------------------------------------------
/README_CN.md:
--------------------------------------------------------------------------------
1 | # Wordpress 主题 Berry
2 |
3 | 
4 |
5 | ## 更新日志
6 |
7 | ### 2.0.8
8 |
9 | - 样式改进
10 |
11 | ### 2.0.7
12 |
13 | - 样式改进
14 |
15 | ### 2.0.6
16 |
17 | - 修复图标链接错误
18 |
19 | ### 2.0.5
20 |
21 | - 更新翻译
22 |
23 | ### 2.0.4
24 |
25 | - 增加设置选项
26 | - 增加地图页面
27 |
28 | ### 2.0.3
29 |
30 | - 增加搜索
31 | - 增加社交网络图标
32 |
33 | ### 2.0.2
34 |
35 | - 增加首页文章数量
36 | - 增加文章标签图标
37 | - 增加文章作者信息
38 | - 增加文章导航
39 |
40 | ### 2.0.1
41 |
42 | - 更新翻译
43 | - 增加友情链接页面
44 | - 增加分类列表页面
45 |
46 | ### 2.0.0
47 |
48 | - 重制
49 |
--------------------------------------------------------------------------------
/archive.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
10 |
11 |
12 |
20 |
21 |
--------------------------------------------------------------------------------
/build/css/setting.min.css:
--------------------------------------------------------------------------------
1 | .dashicons-basic:before{content:""}.dashicons-slider:before{content:""}.dashicons-feature:before{content:""}.dashicons-interface:before{content:""}.dashicons-social-contact:before{content:""}.dashicons-save:before{content:""}a:focus{box-shadow:none}.pure-wrap{display:flex;align-items:flex-start}.pure-help-li{font-size:16px;padding:30px;border-bottom:1px dotted #eee}.pure-help-li span{text-decoration:none}.pure-help-title{font-size:24px;font-weight:300;color:#626773}#pure-form{padding:30px;min-height:400px;background:#fff;border-radius:5px;overflow:hidden;flex:1 1 auto}.leftpanel .nav{margin:0;padding:50px 0 0;display:flex;flex-direction:column}.leftpanel .nav li{font-size:16px;margin-bottom:0;position:relative}.leftpanel .nav li>span{color:#626773;border-radius:0;transition:all .2s ease-out 0s;padding:15px 25px;display:block;cursor:pointer}.leftpanel .nav li>span i{width:16px;margin-right:5px;color:#626773;font-size:15px;top:1px;text-align:center}.leftpanel .nav li.active span{background-color:#fff;border-radius:5px 0 0 5px;color:#455473}.pure-setting-radio{display:inline-block;cursor:pointer;margin-right:20px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.pure-setting-radio .dashicons-before{width:18px;height:18px;border:1px solid #d3cfc8;border-radius:50%;vertical-align:middle;display:inline-block;margin-right:5px;position:relative}.pure-setting-radio.checked .dashicons-before:before{content:"";background-color:#0074a2;color:#fff;border-radius:50%;top:-1px;left:-1px;text-indent:-1px;position:absolute;animation:a .3s linear 1}.form-table th{width:140px;padding:0}.form-table td{padding:0 0 40px}.form-table tr td label,.form-table tr th label{color:#455473;font-weight:400;font-size:16px}input.large-text,textarea.large-text{width:100%}textarea.code{line-height:1.4;padding:2%}.pure-setting-switch{display:inline-block;height:18px;width:42px;border:1px solid #cfd6e5;border-radius:9px;background:#fff;position:relative}.pure-setting-switch i{position:absolute;top:2px;left:2px;width:12px;height:12px;border-radius:12px;border:1px solid #cfd6e5;transition:all .3s ease-out;animation:a .4s linear 1}.pure-setting-switch.active i{left:26px}.pure-setting-switch.active i:after{content:"";position:absolute;width:12px;height:12px;border-radius:12px;border:1px solid #0074a2;background-color:#0074a2;left:-1px;top:-1px;animation:a .4s linear 1}@keyframes a{0%{transform:scale(0)}80%{transform:scale(1.2)}to{transform:scale(1)}}.pure-save{padding-top:60px;display:flex;align-items:center}.button--save{color:#fff;background-color:#737f99;padding:10px 20px;text-decoration:none;line-height:1.4;text-align:center;font-size:16px;cursor:pointer;transition:all .3s linear;border-radius:3px}.button--save:hover{background:#455473}.pure-docs{display:flex;padding-bottom:10px;align-items:center}
--------------------------------------------------------------------------------
/build/fonts/OpenSans-Bold.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bigfa/Berry/3c126d18468f6efb2cb4192664453b0d909d505e/build/fonts/OpenSans-Bold.woff
--------------------------------------------------------------------------------
/build/fonts/OpenSans-Bold.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bigfa/Berry/3c126d18468f6efb2cb4192664453b0d909d505e/build/fonts/OpenSans-Bold.woff2
--------------------------------------------------------------------------------
/build/fonts/OpenSans-Light.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bigfa/Berry/3c126d18468f6efb2cb4192664453b0d909d505e/build/fonts/OpenSans-Light.woff
--------------------------------------------------------------------------------
/build/fonts/OpenSans-Light.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bigfa/Berry/3c126d18468f6efb2cb4192664453b0d909d505e/build/fonts/OpenSans-Light.woff2
--------------------------------------------------------------------------------
/build/fonts/OpenSans-Medium.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bigfa/Berry/3c126d18468f6efb2cb4192664453b0d909d505e/build/fonts/OpenSans-Medium.woff
--------------------------------------------------------------------------------
/build/fonts/OpenSans-Medium.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bigfa/Berry/3c126d18468f6efb2cb4192664453b0d909d505e/build/fonts/OpenSans-Medium.woff2
--------------------------------------------------------------------------------
/build/fonts/OpenSans-Regular.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bigfa/Berry/3c126d18468f6efb2cb4192664453b0d909d505e/build/fonts/OpenSans-Regular.woff
--------------------------------------------------------------------------------
/build/fonts/OpenSans-Regular.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bigfa/Berry/3c126d18468f6efb2cb4192664453b0d909d505e/build/fonts/OpenSans-Regular.woff2
--------------------------------------------------------------------------------
/build/images/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bigfa/Berry/3c126d18468f6efb2cb4192664453b0d909d505e/build/images/favicon.png
--------------------------------------------------------------------------------
/build/js/setting.min.js:
--------------------------------------------------------------------------------
1 | var _a,_b;document.querySelectorAll(".leftpanel li").forEach(function(t,n){t.addEventListener("click",function(e){document.querySelectorAll(".leftpanel li").forEach(function(e){e.classList.remove("active")}),t.classList.add("active"),document.querySelectorAll(".div-tab").forEach(function(e){e.classList.add("hidden")}),document.querySelectorAll(".div-tab")[n].classList.remove("hidden")})}),null!=(_a=document.querySelector("#upload-categoryCover"))&&_a.addEventListener("click",function(e){e.preventDefault();var n=wp.media({title:obvInit.upload_title,multiple:!1,button:{text:obvInit.upload_button}}).open().on("select",function(){var e,t=n.state().get("selection").first().toJSON().url;null!=(e=document.querySelector("#_category_cover"))&&e.setAttribute("value",t)})}),null!=(_b=document.querySelector("#pure-save"))&&_b.addEventListener("click",function(e){e.preventDefault();e=document.querySelector("#pure-form"),e=new FormData(e),e=new URLSearchParams(e);jQuery.ajax({url:obvInit.ajaxurl,data:e+"&action=berry_setting",type:"POST",success:function(){var e='
'.concat(obvInit.success_message,'
');jQuery(".pure-wrap").before(e),window.scrollTo(0,0)}})}),(n=>{n(document).on("click","#berry-settings_updated .notice-dismiss",function(){n("#berry-settings_updated").remove()}),n(".pure-setting-switch").click(function(){var e=n(this),t=n("#"+e.attr("data-id"));e.hasClass("active")?(e.removeClass("active"),t.val(0)):(e.addClass("active"),t.val(1)),t.change()})})(jQuery);
--------------------------------------------------------------------------------
/category.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
12 |
13 |
14 |
15 |
23 |
24 |
--------------------------------------------------------------------------------
/comments.php:
--------------------------------------------------------------------------------
1 |
5 |
--------------------------------------------------------------------------------
/fonts/OpenSans-Bold.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bigfa/Berry/3c126d18468f6efb2cb4192664453b0d909d505e/fonts/OpenSans-Bold.woff
--------------------------------------------------------------------------------
/fonts/OpenSans-Bold.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bigfa/Berry/3c126d18468f6efb2cb4192664453b0d909d505e/fonts/OpenSans-Bold.woff2
--------------------------------------------------------------------------------
/fonts/OpenSans-Light.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bigfa/Berry/3c126d18468f6efb2cb4192664453b0d909d505e/fonts/OpenSans-Light.woff
--------------------------------------------------------------------------------
/fonts/OpenSans-Light.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bigfa/Berry/3c126d18468f6efb2cb4192664453b0d909d505e/fonts/OpenSans-Light.woff2
--------------------------------------------------------------------------------
/fonts/OpenSans-Medium.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bigfa/Berry/3c126d18468f6efb2cb4192664453b0d909d505e/fonts/OpenSans-Medium.woff
--------------------------------------------------------------------------------
/fonts/OpenSans-Medium.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bigfa/Berry/3c126d18468f6efb2cb4192664453b0d909d505e/fonts/OpenSans-Medium.woff2
--------------------------------------------------------------------------------
/fonts/OpenSans-Regular.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bigfa/Berry/3c126d18468f6efb2cb4192664453b0d909d505e/fonts/OpenSans-Regular.woff
--------------------------------------------------------------------------------
/fonts/OpenSans-Regular.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bigfa/Berry/3c126d18468f6efb2cb4192664453b0d909d505e/fonts/OpenSans-Regular.woff2
--------------------------------------------------------------------------------
/footer.php:
--------------------------------------------------------------------------------
1 |
2 |
12 |
13 | get_setting('back2top')) : ?>
14 |
19 |
20 |
21 |
8 | 9 |
10 | 11 |12 | 'ol', 15 | 'short_ping' => true, 16 | 'reply_text' => __('Reply', 'Berry'), 17 | 'avatar_size' => 42, 18 | 'format' => 'html5' 19 | )); 20 | ?> 21 |
22 | __('Prev', 'Berry'), 24 | 'next_text' => __('Next', 'Berry'), 25 | 'prev_next' => false, 26 | )); ?> 27 | 28 |29 |- ;>
30 |
31 | 32 | 33 |