diff --git a/footer.php b/footer.php index 100247d..03d5f20 100644 --- a/footer.php +++ b/footer.php @@ -36,10 +36,10 @@

'; + $socials = array('s_sina_url', 's_bilibili_url', 's_douban_url', 's_coding_url', 's_gitee_url', 's_twitter_url', 's_telegram_url', 's_linkedin_url', 's_youtube_url', 's_github_url', 's_stackflow_url', 's_email_url'); + foreach ($socials as $value) { + if (kratos_option($value, '', 's_social_fieldset')) { + echo ''; } } ?> diff --git a/inc/theme-options.php b/inc/theme-options.php index 8584319..d9de9d0 100644 --- a/inc/theme-options.php +++ b/inc/theme-options.php @@ -847,7 +847,7 @@ CSF::createSection($prefix, array( 'icon' => 'fas fa-arrow-right', 'fields' => array( array( - 'id' => 's_social_domestic_fieldset', + 'id' => 's_social_fieldset', 'type' => 'fieldset', 'fields' => array( array( @@ -887,7 +887,7 @@ CSF::createSection($prefix, array( ), ), array( - 'id' => 's_social_overseas_fieldset', + 'id' => 's_social_fieldset', 'type' => 'fieldset', 'fields' => array( array( @@ -933,7 +933,7 @@ CSF::createSection($prefix, array( ), ), array( - 'id' => 's_social_domestic_fieldset', + 'id' => 's_social_fieldset', 'type' => 'fieldset', 'fields' => array( array(