-
Notifications
You must be signed in to change notification settings - Fork 55
/
page-links.php
54 lines (54 loc) · 2.24 KB
/
page-links.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php
/**
* 友链页面
*
* @package custom
*/
if (!defined("__TYPECHO_ROOT_DIR__")) {
exit();
} ?>
<!DOCTYPE html>
<html lang="zh">
<?php $this->need("header.php"); ?>
<body class="jasmine-body" data-prismjs-copy="点击复制" data-prismjs-copy-error="按Ctrl+C复制" data-prismjs-copy-success="内容已复制!">
<div class="jasmine-container grid grid-cols-12">
<?php $this->need("component/sidebar-left.php"); ?>
<div class="flex col-span-12 lg:col-span-8 flex-col lg:border-x-2 border-stone-100 dark:border-neutral-600 lg:pt-0 lg:px-6 pb-10 px-3">
<?php $this->need("component/menu.php"); ?>
<div class="flex flex-col gap-y-12">
<div></div>
<?php $this->need("component/post-title.php"); ?>
<div class="markdown-body dark:!bg-[#161829] dark:!bg-[#0d1117] !text-neutral-900 dark:!text-gray-400" itemprop="articleBody">
<?php echo handleContent($this->content); ?>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
<?php if (isPluginAvailable("Links")) {
Links_Plugin::output('<a href="{url}" target="_blank" title="{title}">
<div class=" flex gap-x-2 p-4 border border-stone-100 hover:border-stone-300 dark:border-neutral-600 rounded shadow">
<section class="w-14 h-14 min-w-fit min-h-fit">
<img src="{image}"class="w-14 h-14 min-w-fit min-h-fit rounded-full" loading="lazy"/>
</section>
<section class="flex flex-col justify-center gap-y-2">
<h4 class="text-sm ">{name}</h4>
<p class="line-clamp-1 text-sm dark:text-gray-350">{title}</p>
</section>
</div>
</a>');
} else {
echo '<span class="col-span-3"> <a class="text-orange-400" href="https://github.com/typecho-fans/plugins/releases/download/plugins-H_to_L/Links.zip" target="_blank">Links 插件</a> 未启用,若要使用友情链接功能,请先安装并启用。</span>';
} ?>
</div>
<div class="border-b-2 border-stone-100 dark:border-neutral-600"></div>
<div>
<?php $this->need("comments.php"); ?>
</div>
</div>
</div>
<div class="hidden lg:col-span-3 lg:block" id="sidebar-right">
<?php $this->need("component/sidebar.php"); ?>
</div>
</div>
<?php $this->need("footer.php"); ?>
</div>
</body>
</html>