From b4745e3e67938eb29d59ba329540f7ae1c95e679 Mon Sep 17 00:00:00 2001 From: Seaton Jiang Date: Mon, 6 Jul 2020 14:44:07 +0800 Subject: [PATCH] chore: modify static resource location --- README.md | 6 +++--- .../images => assets/img/options}/about.png | Bin .../images => assets/img/options}/discuss.png | Bin .../images => assets/img/options}/donate.png | Bin .../images => assets/img/options}/maocloud.png | Bin .../includes/class-options-interface.php | 8 ++++---- inc/theme-options.php | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) rename {inc/options-framework/images => assets/img/options}/about.png (100%) rename {inc/options-framework/images => assets/img/options}/discuss.png (100%) rename {inc/options-framework/images => assets/img/options}/donate.png (100%) rename {inc/options-framework/images => assets/img/options}/maocloud.png (100%) diff --git a/README.md b/README.md index c6cecfe..6c5aa4f 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@

- +

@@ -186,7 +186,7 @@ Detailed changes for each release are documented in the [release notes](https:// If you find Kratos useful, you can buy us a cup of coffee

- +

## Sponsors @@ -194,7 +194,7 @@ If you find Kratos useful, you can buy us a cup of coffee Special thanks to the generous sponsorship by:

- +

## License diff --git a/inc/options-framework/images/about.png b/assets/img/options/about.png similarity index 100% rename from inc/options-framework/images/about.png rename to assets/img/options/about.png diff --git a/inc/options-framework/images/discuss.png b/assets/img/options/discuss.png similarity index 100% rename from inc/options-framework/images/discuss.png rename to assets/img/options/discuss.png diff --git a/inc/options-framework/images/donate.png b/assets/img/options/donate.png similarity index 100% rename from inc/options-framework/images/donate.png rename to assets/img/options/donate.png diff --git a/inc/options-framework/images/maocloud.png b/assets/img/options/maocloud.png similarity index 100% rename from inc/options-framework/images/maocloud.png rename to assets/img/options/maocloud.png diff --git a/inc/options-framework/includes/class-options-interface.php b/inc/options-framework/includes/class-options-interface.php index 23c9197..bcc0ddf 100755 --- a/inc/options-framework/includes/class-options-interface.php +++ b/inc/options-framework/includes/class-options-interface.php @@ -226,7 +226,7 @@ class Options_Framework_Interface global $wp_version; $version = $wp_version; $output .= '
- +

' . __('基础信息', 'kratos') . '

' . __('讨论交流', 'kratos') . '

- +

' . __('版权声明', 'kratos') . '

' . __('主题源码使用 MIT 协议 进行许可,说明文档使用 CC BY-NC-ND 4.0 进行许可。', 'kratos') . '

' . __('打赏支持', 'kratos') . '

- +

' . __('赞助商', 'kratos') . '

- +
'; break; diff --git a/inc/theme-options.php b/inc/theme-options.php index c2f1e1b..56044b7 100644 --- a/inc/theme-options.php +++ b/inc/theme-options.php @@ -24,7 +24,7 @@ function kratos_options() { $sitename = get_bloginfo('name'); - $imagepath = get_template_directory_uri() . '/assets/img/options/'; + $imagepath = ASSET_PATH . '/assets/img/options/'; $seorobots = 'robots.txt'; $seoreading = '' . __('设置-阅读-对搜索引擎的可见性', 'kratos') . '';