-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxingcheng.php
executable file
·108 lines (73 loc) · 2.94 KB
/
xingcheng.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<?php
/**
* xingcheng
*
* @package custom
*/
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.css">
<link href="<?php $this->options->themeUrl('css/bootstrap.min.css'); ?>" rel="stylesheet">
<link href="<?php $this->options->themeUrl('css/comment.css'); ?>" rel="stylesheet">
<link rel="stylesheet" href="<?php $this->options->themeUrl('css/xingcheng.css'); ?>" />
<title>行橙文化 - 留言板</title>
</head>
<body>
<div class="container">
<div class="xc_head">
<label class="xc_head_a"><a href="http://yx.uoffer.net"><span class="fa fa-angle-double-left fa-3x"></span></a></label>
<h3>GuestBook</h3>
</div>
<div class="picture">
<img src="<?php $this->options->themeUrl('images/header-img.png'); ?>" >
</div>
<div class="comment-box">
<!--方法定义-->
<?php function threadedComments($comments, $options) {
?>
<!-- 评论内容样式(新) -->
<ul class="comment-contents">
<li class="list-unstyled">
<label>
<span class="comment-username"><?php $comments->author(); ?></span>
<span class="comment-time"><?php $comments->date('Y/m/d H:i'); ?></span>
</label>
<p class="comment-content">
<?php $comments->content(); ?>
</p>
</li>
</ul>
<?php } ?>
<div>
<?php $this->comments()->to($comments); ?>
<?php if ($comments->have()): ?>
<?php $comments->listComments(); ?>
<?php endif; ?>
<form method="post" action="<?php $this->commentUrl() ?>" class="basic-grey" role="form" id="publish-box">
<h1>留言栏</h1>
<div style="margin:0 auto;">
<label>
<span>昵称 :</span>
<input type="text" name="author" id="author" class="text" value="<?php $this->remember('author'); ?>" required />
</label>
<label>
<span>Message :</span>
<textarea id="message" name="text" placeholder="Your Message to Us" required><?php $this->remember('text'); ?></textarea>
</label>
<label>
<span> </span>
<button type="submit" class="button"><?php _e('提交评论'); ?></button>
</label>
</div>
</form>
</div>
</div>
</div>
</body>
</html>