-
Notifications
You must be signed in to change notification settings - Fork 4
/
page.visitor.php
75 lines (70 loc) · 4.56 KB
/
page.visitor.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
<?php
/**
* 访客中心
*
* @package custom
*/
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
$this->need('header.php');
?>
<link rel="stylesheet" href="<?php cjUrl('css/comments.css'); ?>">
<link rel="stylesheet" href="<?php cjUrl('lib/OwO/OwO.min.css'); ?>">
<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 cjUrl('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="margin:0.1rem;padding:10px;text-align: center;max-width: none;">
哈喽,<?php if($this->user->hasLogin()): ?><small style="color:orange">「</small><?php echo $this->user->screenName() ; ?><small style="color:orange">」</small><?php else : ?><?php if($this->remember('author',true)): ?><small style="color:orange">「</small><?php echo $this->remember('author',true); ?><small style="color:orange">」</small><?php endif; ?><?php endif; ?>,我们又见面了啦!✌️
</div>
</section>
</div>
</section>
<section id="wrapper" class="home">
<!--内容页下方ads -->
<?php if($this->options->postdownads): ?><?php $this->options->postdownads();?><?php endif; ?>
<h3 style="color:#2bbc8a;"><?php _e('您近期的回复:'); ?></h3>
<ol class="widget-list">
<?php if($this->user->hasLogin()): ?>
<?php $userMail = $this->user->mail; ?>
<?php else : ?>
<?php $userMail = $this->remember('mail',true); ?>
<?php endif; ?>
<?php $this->widget('Widget_Comments_RecentPlus', 'mail='.$userMail)->to($comments); ?>
<?php while($comments->next()): ?>
<li style="margin:1rem 0;border-bottom:1px dashed;">
<div class="d1">
<i class="fa fa-file-text-o"> </i> <?php $comments->title(); ?><span class="qrcodeimg"style="float:right;"><?php $comments->dateWord(); ?></span>
</div></br>
<div class="d2">
<i class="fa fa-comments-o"> </i>
<?php $comments->author(false); ?> : <a href="<?php $comments->permalink(); ?>" style="text-decoration:none;"><?php $comments->excerpt(64, '...'); ?></a>
</div>
</li>
<?php endwhile; ?>
</ol>
</section>
</div>
</body>
<?php $this->need('footer.php'); ?>