Skip to content

Commit

Permalink
修复后台设置 ChatGPT问答的图标不显示的问题
Browse files Browse the repository at this point in the history
和页面模版:读者墙 未勾选“内部链接使用主题链接跳转页面”选项时,启用改设置的问题
  • Loading branch information
wuyueerhao committed Apr 28, 2023
1 parent 0c7dba1 commit d8911a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion inc/setting/options/OptionAi.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function get_fields(): array
return [
'key' => 'ai',
'label' => __('ChatGPT问答', PUOCK),
'icon' => 'fa-solid fa-robot',
'icon' => 'czs-robot',
'fields' => [
[
'id'=>'openai_enable',
Expand Down
3 changes: 2 additions & 1 deletion pages/template-reads.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
FROM $wpdb->comments WHERE user_id !=1 AND comment_approved =1 AND TO_DAYS(now()) - TO_DAYS(comment_date) < (".($year*365).")
group by comment_author_email order by num desc limit 0, 100";
$reads = $wpdb->get_results($sql);
$use_theme_link_forward = get_post_meta($post->ID,'use_theme_link_forward',true);
get_header();
?>

Expand All @@ -28,7 +29,7 @@
<?php foreach ($reads as $read): ?>
<div class="col col-6 col-md-4 col-lg-3 pl-0">
<div class="p-2 text-truncate text-nowrap">
<a href="<?php echo empty($read->url) ? 'javascript:void(0)':pk_go_link($read->url) ?>"
<a href="<?php echo $use_theme_link_forward ? pk_go_link($read->url) : $read->url; ?>"
<?php echo empty($read->url) ? '':'target="_blank"' ?> rel="nofollow">
<img data-bs-toggle="tooltip" <?php echo pk_get_lazy_img_info(get_avatar_url($read->mail),'md-avatar') ?>
title="<?php echo $read->name?>" alt="<?php echo $read->name?>">
Expand Down

0 comments on commit d8911a6

Please sign in to comment.