fix: article copyright function

pull/409/head^2
Seaton Jiang 2021-08-20 12:56:42 +08:00
parent 46dc189c7a
commit 27b0cc0a0e
No known key found for this signature in database
GPG Key ID: 0E05070D261ACFEA
2 changed files with 3 additions and 3 deletions

View File

@ -614,7 +614,7 @@ CSF::createSection($prefix, array(
'type' => 'switcher',
'title' => __('附加功能', 'kratos'),
'subtitle' => __('启用/禁用文章自动保存、修订版本功能', 'kratos'),
'default' => false,
'default' => true,
),
array(
'id' => 'g_article_widgets',

View File

@ -118,7 +118,7 @@ $select_col = $col_array[kratos_option('g_article_widgets', 'two_side')];
}
?>
</div>
<?php if (kratos_option('g_cc_switch', false)) {
<?php if (kratos_option('g_cc_switch', false, 'g_cc_fieldset')) {
$cc_array = array(
'one' => __('知识共享署名 4.0 国际许可协议', 'kratos'),
'two' => __('知识共享署名-非商业性使用 4.0 国际许可协议', 'kratos'),
@ -127,7 +127,7 @@ $select_col = $col_array[kratos_option('g_article_widgets', 'two_side')];
'five' => __('知识共享署名-相同方式共享 4.0 国际许可协议', 'kratos'),
'six' => __('知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议', 'kratos'),
);
$select_cc = $cc_array[kratos_option('g_cc', 'one')];
$select_cc = $cc_array[kratos_option('g_cc', 'one', 'g_cc_fieldset')];
echo '<div class="copyright"><span class="text-center">';
printf(__('本作品采用 %s 进行许可', 'kratos'), $select_cc);
echo '</span></div>';