mirror of https://github.com/vtrois/kratos
feat: update contact information
parent
b384f8e328
commit
5ab50afef9
Binary file not shown.
Before Width: | Height: | Size: 91 KiB |
|
@ -124,16 +124,6 @@ function kratos_admin_enqueue()
|
||||||
|
|
||||||
add_action('admin_enqueue_scripts', 'kratos_admin_enqueue', 20);
|
add_action('admin_enqueue_scripts', 'kratos_admin_enqueue', 20);
|
||||||
|
|
||||||
// 后台提示
|
|
||||||
if (kratos_option('g_admin_notice', true)) {
|
|
||||||
function custom_admin_notice()
|
|
||||||
{
|
|
||||||
$message = __('感谢您使用 Kratos 主题进行创作,全新主题 Fraise 即将上线,欢迎加入 QQ 群讨论交流:618958939,可在「主题设置 - 全站配置 - 后台管理员通知」关闭此通知。', 'kratos');
|
|
||||||
echo '<div class="notice notice-info "><p>' . $message . '</p></div>';
|
|
||||||
}
|
|
||||||
add_action('admin_notices', 'custom_admin_notice');
|
|
||||||
}
|
|
||||||
|
|
||||||
// 前台管理员导航
|
// 前台管理员导航
|
||||||
if (!kratos_option('g_adminbar', true)) {
|
if (!kratos_option('g_adminbar', true)) {
|
||||||
add_filter('show_admin_bar', '__return_false');
|
add_filter('show_admin_bar', '__return_false');
|
||||||
|
@ -234,7 +224,7 @@ if (kratos_option('g_replace_gravatar_url_fieldset')['g_replace_gravatar_url'] ?
|
||||||
|
|
||||||
// 主题更新检测
|
// 主题更新检测
|
||||||
$myUpdateChecker = PucFactory::buildUpdateChecker(
|
$myUpdateChecker = PucFactory::buildUpdateChecker(
|
||||||
'https://cdn.jsdelivr.net/gh/seatonjiang/kratos/inc/update-checker/update.json',
|
'https://gitee.com/seatonjiang/kratos/raw/main/inc/update-checker/update.json',
|
||||||
get_template_directory() . '/functions.php',
|
get_template_directory() . '/functions.php',
|
||||||
'Kratos'
|
'Kratos'
|
||||||
);
|
);
|
||||||
|
|
|
@ -50,7 +50,7 @@ CSF::createOptions($prefix, array(
|
||||||
'admin_bar_menu_icon' => 'dashicons-admin-generic',
|
'admin_bar_menu_icon' => 'dashicons-admin-generic',
|
||||||
'framework_title' => '主题设置<small style="margin-left:10px">Kratos v' . THEME_VERSION . '</small>',
|
'framework_title' => '主题设置<small style="margin-left:10px">Kratos v' . THEME_VERSION . '</small>',
|
||||||
'theme' => 'light',
|
'theme' => 'light',
|
||||||
'footer_credit' => '感谢使用 <a target="_blank" href="https://github.com/seatonjiang/kratos">Kratos</a> 主题开始创作,欢迎加入交流群:<a target="_blank" href="https://qm.qq.com/cgi-bin/qm/qr?k=_7pE5U4pbq4j2xeu_cyZqvasEd_i9wTf">618958939</a>、<a target="_blank" href="https://qm.qq.com/cgi-bin/qm/qr?k=8Okzvj3TP67642FTRvC1mKT7f8L4NOrk">839687348</a>、<a target="_blank" href="https://qm.qq.com/cgi-bin/qm/qr?k=b37-78PbXYvTdoUZq9rW-nEF6CEl4wBv">852844975</a>',
|
'footer_credit' => '感谢使用 <a target="_blank" href="https://github.com/seatonjiang/kratos">Kratos</a> 主题进行创作,欢迎加入主题交流群:<a target="_blank" href="https://qm.qq.com/q/yNBa2CSHd0">315990636</a>',
|
||||||
));
|
));
|
||||||
|
|
||||||
CSF::createSection($prefix, array(
|
CSF::createSection($prefix, array(
|
||||||
|
@ -155,13 +155,6 @@ CSF::createSection($prefix, array(
|
||||||
'subtitle' => __('启用/禁用页面图片灯箱功能', 'kratos'),
|
'subtitle' => __('启用/禁用页面图片灯箱功能', 'kratos'),
|
||||||
'default' => true,
|
'default' => true,
|
||||||
),
|
),
|
||||||
array(
|
|
||||||
'id' => 'g_admin_notice',
|
|
||||||
'type' => 'switcher',
|
|
||||||
'title' => __('后台管理员通知', 'kratos'),
|
|
||||||
'subtitle' => __('启用/禁用后台管理员通知', 'kratos'),
|
|
||||||
'default' => true,
|
|
||||||
),
|
|
||||||
array(
|
array(
|
||||||
'id' => 'g_excerpt_length',
|
'id' => 'g_excerpt_length',
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
|
@ -1225,14 +1218,6 @@ CSF::createSection($prefix, array(
|
||||||
'type' => 'content',
|
'type' => 'content',
|
||||||
'content' => __('主题源码使用 <a href="https://github.com/seatonjiang/kratos/blob/main/LICENSE" target="_blank">GPL-3.0 协议</a> 进行许可,说明文档使用 <a href="https://creativecommons.org/licenses/by-nc-nd/4.0/" target="_blank">CC BY-NC-ND 4.0</a> 进行许可。', 'kratos'),
|
'content' => __('主题源码使用 <a href="https://github.com/seatonjiang/kratos/blob/main/LICENSE" target="_blank">GPL-3.0 协议</a> 进行许可,说明文档使用 <a href="https://creativecommons.org/licenses/by-nc-nd/4.0/" target="_blank">CC BY-NC-ND 4.0</a> 进行许可。', 'kratos'),
|
||||||
),
|
),
|
||||||
array(
|
|
||||||
'type' => 'subheading',
|
|
||||||
'content' => __('讨论交流', 'kratos'),
|
|
||||||
),
|
|
||||||
array(
|
|
||||||
'type' => 'content',
|
|
||||||
'content' => '<div style="max-width:800px;"><img style="width: 70%;height: auto;" src="' . get_template_directory_uri() . '/assets/img/options/discuss.png"></div>',
|
|
||||||
),
|
|
||||||
array(
|
array(
|
||||||
'type' => 'subheading',
|
'type' => 'subheading',
|
||||||
'content' => __('打赏支持', 'kratos'),
|
'content' => __('打赏支持', 'kratos'),
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue