-
Notifications
You must be signed in to change notification settings - Fork 354
/
leaving.php
executable file
·57 lines (51 loc) · 1.8 KB
/
leaving.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
<?php
/**
* 留言
*
* @package custom
*
**/
?>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<?php $this->need('public/include.php'); ?>
<script src="<?php _getAssets('assets/lib/[email protected]/draggabilly.min.js'); ?>"></script>
<script src="<?php _getAssets('assets/js/joe.leaving.min.js'); ?>"></script>
</head>
<body>
<div id="Joe">
<?php $this->need('public/header.php'); ?>
<div class="joe_container">
<div class="joe_main">
<div class="joe_detail" data-cid="<?php echo $this->cid ?>">
<?php $this->need('public/batten.php'); ?>
<div class="joe_detail__leaving">
<?php $this->comments()->to($comments); ?>
<?php if ($comments->have()) : ?>
<ul class="joe_detail__leaving-list">
<?php while ($comments->next()) : ?>
<li class="item">
<div class="user">
<img class="avatar lazyload" src="<?php _getAvatarLazyload(); ?>" data-src="<?php _getAvatarByMail($comments->mail) ?>" alt="用户头像" />
<div class="nickname"><?php $comments->author(); ?></div>
<div class="date"><?php $comments->date('Y/m/d'); ?></div>
</div>
<div class="wrapper">
<div class="content"><?php _parseLeavingReply($comments->content); ?></div>
</div>
</li>
<?php endwhile; ?>
</ul>
<?php else : ?>
<div class="joe_detail__leaving-none">暂无留言,期待第一个脚印。</div>
<?php endif; ?>
</div>
</div>
<?php $this->need('public/comment.php'); ?>
</div>
</div>
<?php $this->need('public/footer.php'); ?>
</div>
</body>
</html>