-
Notifications
You must be signed in to change notification settings - Fork 4
/
page.links.php
87 lines (83 loc) · 8.02 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?php
/**
* 友情链接
*
* @package custom
*/
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
$this->need('header.php');
?>
<body>
<div class="content index width mx-auto px3 my4">
<header id="header">
<a href="<?php $this->options->siteUrl();?>">
<div id="logo" style="background-image: url(<?php if($this->options->logoimg): ?><?php $this->options->logoimg();?><?php else : ?><?php $this->options->themeUrl('images/logo.png'); ?><?php endif; ?>);"></div>
<div id="title">
<h1 style="color:#2bbc8a;margin:1rem;font-size:36px;line-height:42px;"><?php $this->title() ?></h1>
</div>
</a>
<div id="nav">
<ul style ="padding-inline-start:0px;">
<li class="icon"><a href="#"><i class="fa fa-bars fa-2x"></i></a></li>
<li style ="padding:0px;margin:0px;"><b><a href="<?php $this->options->siteUrl();?>">首页</a></b></li>
<li style ="padding:0 0 0 5px;margin:0px;"><b><a href="<?php $this->options->siteUrl();?>music/" target="_blank" title="网易云音乐">音乐</a></b></li>
<?php $this->widget('Widget_Metas_Category_List')->to($categorys);while($categorys->next()):?>
<li style ="padding:0 0 0 5px;margin:0px;"><b><a href="<?php $categorys->permalink(); ?>"><?php $categorys->name(); ?></a></b></li>
<?php endwhile;?>
<?php $this->widget('Widget_Contents_Page_List')->parse('<li style ="padding:0 0 0 5px;margin:0px;"><b><a href="{permalink}">{title}</a></b></li>'); ?>
<li class="tooltip" data-msg="随机访问一位“十年之约”博友!" style ="padding:0 0 0 5px;margin:0px;"><b><a href="https://foreverblog.cn/go.html" rel="nofollow" target="_blank">虫洞</a></b></li>
<li class="tooltip" data-msg="随机访问一位“开往”博友!" style ="padding:0 0 0 5px;margin:0px;"><b><a href="https://www.travellings.cn/go.html" rel="nofollow" target="_blank">开往</a></b></li>
</ul>
</div>
</header>
<section id="wrapper" class="home">
<div id="Links-mian" class="main_element">
<section class="Links-content">
<div class="Total" style="padding-left:10px;"><span class="fa fa-link 3x"></span> 共 <b class="count" style="color:#2bbc8a;">0</b> 条 [随机排序]</div>
<div id="links-content" class="links-content flexbox">
<?php Links(); ?>
</div>
</section>
</div>
<div id="Links-mian" class="main_element">
<section class="Links-content1">
<div class="Total1" style="padding-left:10px;"><span class="fa fa-subway 3x" style="padding-right:10px;"></span> 博客组织</div>
<div id="links-content1" class="links-content flexbox">
<div class="links-card1 flex-yl link_a1" name="link_a1"><div class="links-list-item" style=""><a href="https://foreverblog.cn/blogs.html" title="十年之约" target="_blank" rel="nofollow"><img class="links-avatar lazy" alt="十年之约—虫洞" data-src="https://foreverblog.cn/favicon.ico" src="https://foreverblog.cn/favicon.ico"/><div class="links-item-info"><span class="links-item-name text-ell">十年之约</span><span class="links-item-desc text-ell" title="十年之约正式成员的博客">十年之约正式成员的博客</span></div></a></div></div>
<div class="links-card1 flex-yl link_a" name="link_a1"><div class="links-list-item" style=""><a href="https://www.travellings.cn" title="BlogFinder" target="_blank" rel="nofollow"><img class="links-avatar lazy" alt="BlogFinder" data-src="https://www.travellings.cn/assets/travelling.png" src="https://www.travellings.cn/assets/travelling.png"/><div class="links-item-info"><span class="links-item-name text-ell">开往</span><span class="links-item-desc text-ell" title="一个以跳转功能为主的友链接力项目,其名字“开往”取自“开放的网络”。">一个以跳转功能为主的友链接力项目,其名字“开往”取自“开放的网络”。</span></div></a></div></div>
<div class="links-card1 flex-yl link_a" name="link_a1"><div class="links-list-item" style=""><a href="https://storeweb.cn" title="个站商店-荒野孤灯-虫洞" target="_blank" rel="nofollow"><img class="links-avatar lazy" alt="个站商店" data-src="https://storeweb.cn/static/favicon.ico" src="https://storeweb.cn/static/favicon.ico"/><div class="links-item-info"><span class="links-item-name text-ell">个站商店</span><span class="links-item-desc text-ell" title="一个精致的,带社交元素的个人网站发布平台,博客收录网站">一个精致的,带社交元素的个人网站发布平台,博客收录网站</span></div></a></div></div>
<div class="links-card1 flex-yl link_a" name="link_a1"><div class="links-list-item" style=""><a href="https://bf.zzxworld.com" title="BlogFinder" target="_blank" rel="nofollow"><img class="links-avatar lazy" alt="BlogFinder" data-src="https://bf.zzxworld.com/images/favicon.png" src="https://bf.zzxworld.com/images/favicon.png"/><div class="links-item-info"><span class="links-item-name text-ell">BlogFinder</span><span class="links-item-desc text-ell" title="发现优秀的个人博客">发现优秀的个人博客</span></div></a></div></div>
<div class="links-card1 flex-yl link_a" name="link_a1"><div class="links-list-item" style=""><a href="https://boke.lu" title="boke.lu · 博客收录展示平台~" target="_blank" rel="nofollow"><img class="links-avatar lazy" alt="博客录" data-src="https://boke.lu/logo.png" src="https://boke.lu/logo.png"/><div class="links-item-info"><span class="links-item-name text-ell">博客录</span><span class="links-item-desc text-ell" title="boke.lu · 博客收录展示平台~">boke.lu · 博客收录展示平台~</span></div></a></div></div>
<div class="links-card1 flex-yl link_a" name="link_a1"><div class="links-list-item" style=""><a href="https://www.80srz.com/random.html" title="《荒野孤灯》随机文章" target="_blank"><img class="links-avatar lazy" alt="荒野孤灯" data-src="https://cravatar.cn/avatar/74f46cfaa3e14600f5f55619346b6e70.png?s=100&d=retro&r=y" src="https://cravatar.cn/avatar/74f46cfaa3e14600f5f55619346b6e70.png?s=100&d=retro&r=y"/><div class="links-item-info"><span class="links-item-name text-ell">荒野孤灯</span><span class="links-item-desc text-ell" title="《荒野孤灯》随机文章">随机阅读一篇文章~</span></div></a></div></div>
</div>
</section>
</div>
<article class="post" itemscope itemtype="http://schema.org/BlogPosting">
<div class="content" itemprop="articleBody">
<?php parseContent($this); ?>
</div>
</article>
<script>
var links = $(".Links-content").find(".links-card");
if (links.length> 0){
$(".Links-content").find(".Total .count").get(0).innerText=''+links.length+'';
}
var span=document.getElementById('links-content');
var spanItem=document.getElementsByName('link_a');
var random=function(){return Math.random()>0.5 ? -1 : 1};
var spanArr=new Array();
var k,m;
for(var i=0; i<spanItem.length; i++){
spanArr.push(spanItem[i]);
}
spanArr.sort(random);
for(k=0; k<spanArr.length; k++){
span.appendChild(spanArr[k]);
}
</script>
<!--内容页下方ads -->
<?php if($this->options->postdownads): ?><?php $this->options->postdownads();?><?php endif; ?>
<?php $this->need('comments.php'); ?>
</section>
</div>
<?php $this->need('footer.php'); ?>