-
Notifications
You must be signed in to change notification settings - Fork 62
Expand file tree
/
Copy pathlinks.php
More file actions
executable file
·72 lines (68 loc) · 2.56 KB
/
Copy pathlinks.php
File metadata and controls
executable file
·72 lines (68 loc) · 2.56 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?php
/**
* 友情链接
*
* @package custom
*/
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
$this->need('header.php'); ?>
<div class="main">
<?php $this->need('module/head2.php');?>
<!--背景图片+logo-->
<div class="page_thumb blur">
<!-- 背景图片容器 -->
<div class="post_bg lazy-load" data-src="<?php echo $this->fields->thumb ? $this->fields->thumb : Helper::options()->themeUrl . '/static/img/friend.jpg';?>"></div>
<div class="pc">
<!-- 新增的菜单按钮 -->
<i class="iconfont icon-nav menu-button"></i>
<div class="page-head">
<?php if ($this->options->logoStyle == 'text') {?>
<h1><a href="<?php $this->options->siteUrl(); ?>"><?php $this->options->title();?></a><span class="soul">生活志</span></h1>
<?php }else{ ?>
<a class="logo" href="<?php $this->options->siteUrl(); ?>">
<img src="<?php echo $this->options->logoWhite ? $this->options->logoWhite : Helper::options()->themeUrl . '/static/img/logoWhite.svg'; ?>">
</a>
<?php }?>
</div>
</div>
<div class="m">
<h1 class="page-head"><?php $this->archiveTitle(' » ', ''); ?><span>My online friends</span></h1>
</div>
</div>
<div class="page-title animate__animated animate__fadeIn pc">
<h1><?php $this->title(); ?></h1>
</div>
<?php if (array_key_exists('Links', Typecho_Plugin::export()['activated'])):?>
<div class="links padding blur">
<?php Links_Plugin::output("
<li class='link'>
<a href='{url}' target='_blank'>
<img src='{image}' alt='{name}'/>
<div class='link-info'>
<h3>{name}</h3>
<span class='lite-black' title='{description}'>{description}</span>
</div>
</a>
</li>
", 0); ?>
</div>
<script>
window.oneblogLinkStatusUrl = <?php echo json_encode(rtrim($this->options->themeUrl, '/') . '/api/link-status.php'); ?>;
</script>
<?php else:?>
<div class="nodata blur">
<img src='<?php $this->options->themeUrl('static/img/nodata.svg'); ?>'></img>
<span>暂未启用Links插件,请先安装并启用该插件。</span>
</div>
<?php endif;?>
<div class="post_content padding animate__animated animate__fadeIn blur">
<h4 class="link-request">
<span>#</span>
友链要求
</h4>
<?php echo AutoLightbox($this->content);?>
</div>
<?php $this->need('comments.php'); ?>
<a id="gototop" class="hidden"><i class="iconfont icon-up"></i></a>
</div>
<?php $this->need('footer.php'); ?>