summaryrefslogtreecommitdiff
path: root/demos/blog/protected/Pages/Posts/ListPost.page
blob: 15fc3d0c3f467e8955dca6cf14af320f6748359d (plain)
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
<com:TContent ID="Main">

<com:TRepeater ID="PostList" EnableViewState="false">
	<prop:ItemTemplate>
<div class="post">
<div class="post-title">
<%# $this->DataItem->Title %>
</div>
<div class="post-time">
<%# date('l, F j, Y \a\t h:i:s a',$this->DataItem->CreateTime) %>
</div>
<div class="post-content">
<%# $this->DataItem->Content %>
</div>
<div class="post-footer">
posted by
<%# '<a href="' . $this->Service->constructUrl('Users.ViewUser',array('id'=>$this->DataItem->AuthorID)) . '">' . $this->DataItem->AuthorName . '</a>' %>
|
<%# '<a href="' . $this->Service->constructUrl('Posts.ViewPost',array('id'=>$this->DataItem->ID)) . '">PermaLink</a>' %>
|
<%# '<a href="' . $this->Service->constructUrl('Posts.ViewPost',array('id'=>$this->DataItem->ID)) . '#comments">Comments (' . $this->DataItem->CommentCount . ')</a>' %>
</div>
</div>
	</prop:ItemTemplate>
</com:TRepeater>

</com:TContent>