This commit is contained in:
浪子
2025-07-07 13:47:59 +08:00
parent c7efd5abd6
commit 58b2e80883
4 changed files with 13 additions and 34 deletions
-6
View File
@@ -184,7 +184,6 @@
$deviceInfo = getBrowsersInfo($comments->agent);
$icons = getDeviceIcon($deviceInfo);
?>
<?php if (!empty($comments->options->showdevice) && $comments->options->showdevice == '1'): ?>
<!-- 系统信息 -->
<span class="mt10" title="<?php echo $deviceInfo['system'] . ' ' . $deviceInfo['systemVersion']; ?>">
<?php echo $icons['system']; ?>&nbsp;
@@ -194,8 +193,6 @@
: '未知系统';
?>
</span>
<?php endif; ?>
<?php if (!empty($comments->options->showbrowsers) && $comments->options->showbrowsers == '1'): ?>
<!-- 浏览器信息 -->
<span class="mt10" title="<?php echo $deviceInfo['browser'] . ' ' . $deviceInfo['version']; ?>">
<?php echo $icons['browser']; ?>&nbsp;
@@ -205,14 +202,11 @@
: '未知浏览器';
?>
</span>
<?php endif; ?>
<?php if (!empty($comments->options->showipregion) && $comments->options->showipregion == '1'): ?>
<!-- IP 地理位置 -->
<?php if($comments->ip): ?>
<span class="mt10" title="IP">
<i class="fa-solid fa-location-dot"></i>&nbsp;<?php echo get_ip_region($comments->ip); ?>
</span>
<?php endif; ?>
<?php endif; ?>
</div>
</div>