chore: add default content

pull/409/head^2
Seaton Jiang 2021-08-20 16:13:22 +08:00
parent 56a16859d6
commit ba50701689
No known key found for this signature in database
GPG Key ID: 0E05070D261ACFEA
2 changed files with 25 additions and 2 deletions

View File

@ -46,7 +46,7 @@
</p>
<?php
$sitename = get_bloginfo('name');
echo '<p>' . kratos_option('s_copyright', 'COPYRIGHT © 2021 ' . $sitename . '. ALL RIGHTS RESERVED.') . '</p>';
echo '<p>' . kratos_option('s_copyright', 'COPYRIGHT © ' . date('Y') . ' ' . $sitename . '. ALL RIGHTS RESERVED.') . '</p>';
echo '<p>THEME <a href="https://github.com/vtrois/kratos" target="_blank" rel="nofollow">KRATOS</a> MADE BY <a href="https://www.vtrois.com/" target="_blank" rel="nofollow">VTROIS</a></p>';
if (kratos_option('s_icp')) {
echo '<p><a href="https://beian.miit.gov.cn/" target="_blank" rel="nofollow">' . kratos_option('s_icp') . '</a></p>';

View File

@ -455,6 +455,10 @@ CSF::createSection($prefix, array(
),
'default' => array(
'g_cos' => false,
'g_cos_bucketname' => '',
'g_cos_url' => '',
'g_cos_accesskey' => '',
'g_cos_secretkey' => '',
),
),
array(
@ -531,7 +535,12 @@ CSF::createSection($prefix, array(
),
'default' => array(
'g_imgx' => false,
'g_imgx_region' => 'cn-north-1'
'g_imgx_region' => 'cn-north-1',
"g_imgx_serviceid" => "",
"g_imgx_url" => "",
"g_imgx_tmp" => "",
"g_imgx_accesskey" => "",
"g_imgx_secretkey" => "",
),
),
),
@ -947,6 +956,20 @@ CSF::createSection($prefix, array(
'placeholder' => __('mailto:xxxxx@example.com', 'kratos'),
),
),
'default' => array(
"s_sina_url" => "",
"s_bilibili_url" => "",
"s_coding_url" => "",
"s_gitee_url" => "",
"s_douban_url" => "",
"s_twitter_url" => "",
"s_telegram_url" => "",
"s_linkedin_url" => "",
"s_youtube_url" => "",
"s_github_url" => "",
"s_stackflow_url" => "",
"s_email_url" => ""
),
),
),
));