summaryrefslogtreecommitdiff
path: root/page-links.php
diff options
context:
space:
mode:
authorEltrac Koalar <hi@guhub.cn>2022-08-22 12:51:57 +0800
committerEltrac Koalar <hi@guhub.cn>2022-08-22 12:51:57 +0800
commit3cdbb2a05ed864a301e1ded446296362669a63e2 (patch)
tree7be29abe068d239df1bd3f4ba4cab6dd6174f856 /page-links.php
parent1bf008fb92e50d26b9a7eda3af52fbbb7555d4e8 (diff)
:dizzy: Add: 增加友情链接随机排序选项
Diffstat (limited to 'page-links.php')
-rw-r--r--page-links.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/page-links.php b/page-links.php
index 73d990d..2c8ee8e 100644
--- a/page-links.php
+++ b/page-links.php
@@ -14,7 +14,8 @@ $this->need('includes/header.php');?>
<h1 class="post-title post-title-atpage page-title-atpage" itemprop="name headline"><?php $this->title() ?></h1>
</div>
<div class="links-container container-fluid">
- <?php Links_Plugin::output('
+ <?php if(Utils::isPluginAvailable('Links')) {
+ Links_Plugin::output('
<a href="{url}" target="_blank" title="{title}" class="links-item" no-linkTarget>
<div class="links-content">
<section class="links-avatar">
@@ -25,7 +26,10 @@ $this->need('includes/header.php');?>
<p class="links-description">{title}</p>
</section>
</div>
- </a>'); ?>
+ </a>'); }
+ else {
+ echo 'Links 插件未启用,若要使用友情连接功能,请安装并启用 Links 插件。';
+ }?>
</div>
<div class="post-content" itemprop="articleBody">
<?php $this->content(); ?>