source: trunk/reference-skin/view.php @ 978

Revision 978, 2.9 KB checked in by ditto, 5 years ago (diff)

이미지 미리보기 추가

Line 
1<div id="post">
2        <!-- 글 제목 -->
3        <h1><?=$post->title?></h1>
4
5        <!-- 글 정보 -->
6        <dl class="metadata">
7                <dt>글쓴이</dt>
8                <dd><?=$post->author?></dd>
9
10                <dt>날짜</dt>
11                <dd><?=$post->date?></dd>
12               
13                <dt>조회수</dt>
14                <dd><?=$post->views?></dd>
15
16<? if ($post->trackback_url): ?>
17                <dt>트랙백 주소</dt>
18                <dd><?=$post->trackback_url?></dd>
19<? endif; ?>
20
21<? if ($post->category): ?>
22                <dt>분류</dt>
23                <dd><a href="<?=$post->category->url?>"><?=$post->category->name?></a></dd>
24<? endif; ?>
25
26<? if ($post->edited): ?>
27                <dt>수정 시각</dt>
28                <dd><?=$post->edited_by?> 님이 <?=$post->edited_at?>에 고침</dd>
29<? endif; ?>
30
31<? if ($newer_post): ?>
32                <dt>이전 글</dt>
33                <dd><a href="<?=$newer_post->url?>"><?=$newer_post->title?></a></dd>
34<? endif; ?>
35
36<? if ($older_post): ?>
37                <dt>다음 글</dt>
38                <dd><a href="<?=$older_post->url?>"><?=$older_post->title?></a></dd>
39<? endif; ?>
40        </dl>
41
42<? if ($attachments): ?>
43        <h2>첨부 파일</h2>
44        <ul id="attachments">
45        <? foreach ($attachments as $attachment): ?>
46                <li>
47                        <a href="<?=$attachment->url?>"><?=$attachment->filename?></a> (<?=$attachment->size?>)
48                        <? if ($attachment->thumbnail_url): ?><br /><img src="<?=$attachment->url?>" alt="<?=$attachment->filename?>" /><? endif; ?>
49                </li>
50        <? endforeach; ?>
51        </ul>
52<? endif; ?>
53
54        <!-- 글 내용 -->
55        <div class="body"><?=$post->body?></div>
56
57<? if ($signature): ?>
58        <!-- 사용자 서명 -->
59        <div class="signature"><?=$signature?></div>
60<? endif; ?>
61
62<? if ($trackbacks): ?>
63        <h2>트랙백</h2>
64        <ol id="trackbacks">
65        <? foreach ($trackbacks as $trackback): ?>
66                <li>
67                        <a href="<?=$trackback->url?>"><?=$trackback->title?></a> from <?=$trackback->blog_name?>
68                        <? if ($trackback->delete_url): ?><a href="<?=$trackback->delete_url?>">삭제</a><? endif; ?>
69                </li>
70        <? endforeach; ?>
71        </ol>
72<? endif; ?>
73
74        <h2>댓글</h2>
75        <ol id="comments">
76        <? foreach ($comments as $comment): ?>
77                <li class="comment" style="margin-left: <?=$comment->depth?>em">
78                        <span class="author"><?=$comment->author?></span>
79                        <span class="date"><?=$comment->date?></span>
80                        <span class="actions">
81                        <? if ($comment->reply_url): ?><a href="<?=$comment->reply_url?>">답글 달기</a><? endif; ?>
82                        <? if ($comment->delete_url): ?><a href="<?=$comment->delete_url?>">지우기</a><? endif; ?>
83                        <? if ($comment->edit_url): ?><a href="<?=$comment->edit_url?>">고치기</a><? endif; ?>
84                        </span>
85                        <div class="body"><?=$comment->body?></div>
86                </li>
87        <? endforeach; ?>
88        </ol>
89
90        <? include "comment_form.php"; ?>
91</div>
92
93<div id="meta-nav">
94<? if ($link_list): ?><a href="<?=$link_list?>">목록보기</a> <? endif; ?>
95<? if ($link_new_post): ?><a href="<?=$link_new_post?>">글쓰기</a> <? endif; ?>
96<? if ($link_edit): ?><a href="<?=$link_edit?>">고치기</a> <? endif; ?>
97<? if ($link_delete): ?><a href="<?=$link_delete?>">지우기</a> <? endif; ?>
98</div>
Note: See TracBrowser for help on using the repository browser.