Skip to content

Commit

Permalink
✨ 优化ua浏览器默认图标
Browse files Browse the repository at this point in the history
  • Loading branch information
Licoy committed Nov 1, 2022
1 parent 30f33ca commit fdd8e5f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions inc/fun/opt.php
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,8 @@ function pk_compatible()

function pk_get_comment_ua_os_icon($name)
{
switch ($name){
$prefix = "fa-brands ";
switch ($name) {
case "Android":
$res_class = "fa-android";
break;
Expand Down Expand Up @@ -310,10 +311,11 @@ function pk_get_comment_ua_os_icon($name)
$res_class = "fa-weixin";
break;
default:
$prefix = "fa ";
$res_class = "fa-tablet";
break;
}
return 'fa-brands '.$res_class;
return $prefix . $res_class;
}

// 二维码生成
Expand Down Expand Up @@ -427,7 +429,9 @@ function pk_debug_print_sql_list()
echo $out . "</script>";
}

function pk_get_excerpt_more_filter(){
function pk_get_excerpt_more_filter()
{
return '...';
}

add_filter('excerpt_more', 'pk_get_excerpt_more_filter');

0 comments on commit fdd8e5f

Please sign in to comment.