Skip to content

Commit

Permalink
🐛 修复一些小问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Licoy committed Jan 8, 2021
1 parent b152b6e commit 82fbbfd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions inc/fun/comment-ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ function pk_comment_ajax(){
$comment_approved_str = '<p class="c-sub mt-1"><i class="czs-warning-l mr-1"></i>您的评论正在等待审核!</p>';
}

wp_set_comment_cookies($comment, $user);

echo '<div id="comment-'.get_comment_ID().'" class="post-comment">
<div class="info clearfix">
<div class="float-left">'.get_avatar( $comment, 64,'','',array('class'=>'md-avatar') ).'</div>
Expand Down
8 changes: 4 additions & 4 deletions inc/fun/core.php
Original file line number Diff line number Diff line change
Expand Up @@ -596,13 +596,13 @@ function pk_get_main_menu($mobile=false){
if(is_user_logged_in()){
$user = get_currentuserinfo();
$avatar = get_avatar_url($user->user_email);
$out .= '<li><a data-no-instant class="p-2" data-toggle="tooltip" title="用户中心" href="'.get_edit_profile_url().'"><img alt="用户中心" src="'.$avatar.'" class="min-avatar"></a></li>';
$out .= '<li><a data-no-instant data-toggle="tooltip" title="用户中心" href="'.get_edit_profile_url().'"><img alt="用户中心" src="'.$avatar.'" class="min-avatar"></a></li>';
}
if(!$mobile){
if(pk_is_checked('theme_mode_s')){
$out .= '<li><a class="p-2 colorMode" data-toggle="tooltip" title="模式切换" href="javascript:void(0)"><i class="czs-moon-l"></i></a></li>';
$out .= '<li><a class="colorMode" data-toggle="tooltip" title="模式切换" href="javascript:void(0)"><i class="czs-moon-l"></i></a></li>';
}
$out .= '<li><a class="p-2 search-modal-btn" data-toggle="tooltip" title="搜索" href="javascript:void(0)"><i class="czs-search-l"></i></a></li>';
$out .= '<li><a class="search-modal-btn" data-toggle="tooltip" title="搜索" href="javascript:void(0)"><i class="czs-search-l"></i></a></li>';
}
$out .= '</ul>';
return $out;
Expand Down Expand Up @@ -653,7 +653,7 @@ function pk_get_menu_obj_to_html($menus,&$out,$mobile=false,$dpath_cur=1,$max_dp
$cur = $menu->current ? 'menu-current' : '';
$out .= "<li id='menu-item-{$menu->ID}' class='menu-item-{$menu->ID} {$classes} {$child_class} {$cur}'>";
if(!$mobile){
$out .= "<a class='p-2' href='{$menu->url}'>{$menu->title}";
$out .= "<a href='{$menu->url}'>{$menu->title}";
}else{
$link = count($menu->children)>0 ? "#menu-sub-".$menu->ID : $menu->url;
$out .= '<a href="'.$link.'" data-toggle="collapse">'.$menu->title;
Expand Down
2 changes: 1 addition & 1 deletion inc/fun/short-code.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ function pk_reply_read($attr, $content = null) {
}
}else{
if (isset($_COOKIE['comment_author_email_' . COOKIEHASH])) {
$email = str_replace('%40', '@', $_COOKIE['comment_author_email_' . COOKIEHASH]);
$email = $_COOKIE['comment_author_email_' . COOKIEHASH];
}
}
if(empty($email)){
Expand Down

0 comments on commit 82fbbfd

Please sign in to comment.