feat: add douban icon, this is an example (#359)

pull/369/head
Seaton Jiang 2021-04-15 12:32:05 +08:00
parent f749e0c032
commit 1eeb4928c7
No known key found for this signature in database
GPG Key ID: C1086BAE716FF138
8 changed files with 29 additions and 9 deletions

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -20,6 +20,9 @@ Created by iconfont
/>
<missing-glyph />
<glyph glyph-name="douban" unicode="&#58949;" d="M482.496999 830.109964c-2.704442-0.245858-11.555342-0.983433-19.668668-1.721008-28.396639-2.581513-65.890036-10.694838-93.42617-20.037455-113.586555-38.845618-204.062425-117.397359-257.905402-224.09988C70.807203 503.610084 55.809844 410.306843 68.840336 319.339256c14.628571-100.801921 65.398319-197.055462 140.016327-265.035294 69.332053-63.062665 152.92389-101.785354 247.210564-114.32413 23.848259-3.196158 89.615366-3.196158 112.480192 0 32.330372 4.548379 70.315486 13.522209 92.811525 22.004322 61.341657 22.987755 106.087875 49.663385 151.32581 90.107082 84.821128 75.970228 137.434814 184.516687 146.162785 301.176471 6.515246 88.877791-15.857863 183.041537-61.833373 259.380552-44.869148 74.618007-107.071309 132.517647-183.902041 170.871549-48.434094 24.339976-94.655462 38.353902-145.793998 44.377431-14.87443 1.721008-73.634574 3.319088-84.821128 2.212725z m276.590636-171.117407c12.047059-5.531813 16.472509-12.784634 16.595438-26.429772 0-13.768067-5.163025-21.020888-17.82473-25.446338-7.006963-2.458583-9.711405-2.458583-243.030972-2.458584-209.348379 0-236.884514 0.245858-244.383193 1.966867-13.768067 3.073229-20.529172 9.834334-21.758464 21.881392-1.966867 19.545738 6.146459 29.257143 27.904922 33.067948 1.721008 0.245858 109.529892 0.491717 239.711885 0.368787l236.638655-0.122929 6.146459-2.827371z m-50.40096-133.009364c14.505642-3.933733 22.373109-8.113325 31.10108-16.472509 9.465546-9.096759 13.890996-16.595438 18.070588-30.855222 2.9503-9.834334 3.319088-14.259784 4.425451-40.566626 1.229292-35.034814-0.245858-78.67467-3.196159-89.738296-6.515246-24.831693-22.127251-41.795918-45.237935-49.294598-9.834334-3.196158-10.940696-3.319088-54.334694-4.302521-58.514286-1.229292-240.572389-1.229292-295.644658 0.12293-47.573589 1.106363-51.87611 1.598079-65.27539 8.727971-9.957263 5.285954-21.881393 17.578872-26.67563 27.290276-7.990396 16.226651-8.97383 22.987755-9.711405 67.242257-1.229292 74.863866 2.458583 93.057383 22.25018 111.619688 8.482113 7.867467 16.718367 12.415846 28.396639 15.857863 11.432413 3.196158 47.327731 3.687875 225.57503 3.442017l160.422569-0.368788 9.834334-2.704442z m-335.596639-263.191356c7.990396-2.212725 15.980792-11.678271 30.978151-36.878752 7.37575-12.415846 15.857863-27.044418 18.808164-32.453301 10.44898-19.176951 14.751501-25.077551 20.77503-28.642497l5.654741-3.319088 59.989436-0.368787c40.689556-0.245858 61.464586 0.122929 64.906603 0.983433 8.727971 2.335654 14.259784 9.096759 27.536134 32.822089 15.489076 27.904922 30.609364 52.490756 36.141177 58.514286 11.432413 12.784634 28.396639 14.013926 40.320768 2.9503 9.342617-8.482113 12.047059-17.947659 8.8509-29.74886-0.737575-2.704442-5.408884-11.8012-10.32605-20.283313s-11.678271-21.020888-15.120288-27.904922c-6.884034-13.645138-7.006963-12.415846 1.598079-15.489076 2.212725-0.737575 26.552701-1.598079 60.84994-2.089796 54.94934-0.860504 57.407923-0.983433 63.923169-3.687875 15.120288-6.023529 21.266747-18.316447 17.087155-33.805522-1.843938-6.638175-10.080192-14.505642-18.439375-17.333013-6.392317-2.212725-16.34958-2.335654-275.238416-2.335654-260.486915 0-268.723169 0.122929-274.623769 2.335654-8.482113 3.196158-14.87443 9.465546-17.333014 16.718367-1.598079 5.040096-1.721008 7.129892-0.491716 14.136855 1.843938 10.44898 6.761104 16.472509 16.841296 20.529172 6.884034 2.704442 8.113325 2.704442 71.29892 3.196158 51.138535 0.368788 64.169028 0.737575 63.80024 1.966867-0.368788 0.860504-7.006963 13.153421-14.87443 27.167347-17.701801 31.838655-19.545738 36.509964-18.931092 48.065306 0.491717 11.678271 4.179592 17.210084 14.628571 22.496038 8.113325 4.056663 13.39928 4.671309 21.389676 2.458584zM340.513806 468.206483c-9.096759-3.073229-14.997359-9.711405-17.82473-20.037455-1.721008-6.638175-1.966867-12.292917-1.59808-38.353902 0.614646-34.543097 1.721008-40.689556 8.850901-47.696519 7.867467-7.867467 11.92413-8.482113 64.046098-9.588475 58.391357-1.106363 205.168788-1.106363 250.160865 0 31.592797 0.737575 34.17431 0.983433 40.07491 3.687875 13.276351 5.9006 17.210084 13.768067 18.808163 37.247539 1.352221 20.406242-0.122929 51.138535-2.9503 58.760144-2.704442 7.744538-9.588475 14.382713-17.087155 16.595438-5.285954 1.598079-29.380072 1.843938-170.871549 1.843938-158.332773-0.122929-165.093878-0.122929-171.609123-2.458583z" horiz-adv-x="1024" />
<glyph glyph-name="card-new" unicode="&#58946;" d="M601.441 896H5.502c136.026-136.65 272.176-273.425 408.326-410.075 204.85-204.6 409.7-409.325 614.55-613.925 0.25 198.605 0.375 397.334 0.625 595.939C886.483 610.5840000000001 743.962 753.354 601.44 896zM465.416 583.104c16.612 66.327 33.225 132.653 49.713 199.104v0.625c-6.995-7.37-13.99-14.74-20.984-22.234-34.35-34.225-68.7-68.325-103.175-102.55l-17.987 17.987L516.878 819.931c8.619-8.37 17.237-16.738 25.731-25.232-3.997-17.237-7.994-34.35-11.991-51.587-11.742-47.59-23.608-95.18-35.35-142.646v-0.624c7.995 8.619 15.989 17.237 23.983 25.731 32.227 31.977 64.328 63.953 96.554 95.93 5.746-5.996 11.617-11.991 17.363-17.987L489.273 559.621c-7.87 7.87-15.863 15.614-23.857 23.483z m157.634-156.51l-95.305 95.305L671.64 665.794h0.624c31.227-31.352 62.33-62.704 93.557-94.181-5.371-5.247-10.743-10.368-16.239-15.614l-74.32 74.32h-1.874l-43.218-43.218c23.733-24.232 47.59-48.34 71.323-72.572l-16.238-16.238c-23.608 23.733-47.216 47.59-70.699 71.323h-1.249c-16.737-16.613-33.6-33.226-50.338-49.714v-1.249c25.981-26.23 51.962-52.336 77.943-78.567-5.87-4.247-11.866-8.869-17.862-13.49z m156.51-157.635l-20.36 20.36c29.354 49.964 58.707 99.927 88.186 149.89-13.99-8.368-27.98-16.737-41.97-25.231-36.348-20.36-72.696-40.72-109.17-61.205-6.745 6.995-13.615 13.99-20.36 20.985 34.975 60.705 69.95 121.535 104.924 182.241l20.36-20.36C770.192 485.05 739.215 434.463 708.238 384v-0.625c51.962 29.729 103.924 59.582 155.886 89.31l18.61-18.611c-30.227-51.213-60.33-102.3-90.558-153.513a10978.93 10978.93 0 0 1 31.227 19.236c41.345 23.233 82.69 46.341 124.16 69.574h0.624c5.996-6.245 11.991-12.366 17.987-18.611-62.33-33.85-124.534-67.826-186.613-101.8z" horiz-adv-x="1059" />

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -3,7 +3,7 @@
* 主题页脚
* @author Seaton Jiang <seaton@vtrois.com>
* @license MIT License
* @version 2020.12.14
* @version 2021.04.15
*/
?>
<div class="k-footer">
@ -33,7 +33,7 @@
<div class="col-12 text-center">
<p class="social">
<?php
$social = array('s_sina', 's_bilibili', 's_coding', 's_gitee', 's_twitter', 's_telegram', 's_linkedin', 's_youtube', 's_github', 's_stackflow', 's_email');
$social = array('s_sina', 's_bilibili', 's_douban', 's_coding', 's_gitee', 's_twitter', 's_telegram', 's_linkedin', 's_youtube', 's_github', 's_stackflow', 's_email');
foreach ($social as $social) {
if (kratos_option($social)) {
echo '<a target="_blank" rel="nofollow" href="' . kratos_option($social . '_url') . '"><i class="kicon i-' . str_replace("s_", "", $social) . '"></i></a>';

View File

@ -3,7 +3,7 @@
* 主题选项
* @author Seaton Jiang <seaton@vtrois.com>
* @license MIT License
* @version 2021.03.11
* @version 2021.04.15
*/
function getrobots()
@ -707,6 +707,19 @@ function kratos_options()
'type' => 'text',
);
$options[] = array(
'desc' => __('豆瓣', 'kratos'),
'id' => 's_douban',
'type' => 'checkbox',
);
$options[] = array(
'id' => 's_douban_url',
'placeholder' => __('例如https://www.douban.com/people/xxxxx', 'kratos'),
'class' => 'hidden',
'type' => 'text',
);
$options[] = array(
'desc' => __('海外平台', 'kratos'),
'type' => 'info',