-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathtopic_preview_topic.tpl
More file actions
59 lines (49 loc) · 2.22 KB
/
Copy pathtopic_preview_topic.tpl
File metadata and controls
59 lines (49 loc) · 2.22 KB
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
{assign var="oUser" value=$oTopic->getUser()}
<h3 class="profile-page-header">{$aLang.topic_preview}</h3>
<article class="topic topic-type-{$oTopic->getType()}">
<header class="topic-header">
<div class="date">
<time datetime="{date_format date=$oTopic->getDateAdd() format='c'}" title="{date_format date=$oTopic->getDateAdd() format='j F Y, H:i'}">
{date_format date=$oTopic->getDateAdd() hours_back="12" minutes_back="60" now="60" day="day H:i" format="j F Y, H:i"}
</time>
</div>
<h3 class="topic-title">
{$oTopic->getTitle()|escape:'html'}
</h3>
<ul class="info-top">
<li class="writer">{$aLang.author_topic}: <a href="{$oUser->getUserWebPath()}">{$oUser->getLogin()}</a></li>
</ul>
</header>
<div class="topic-content text">
{hook run='topic_preview_content_begin' topic=$oTopic}
{$oTopic->getText()}
{hook run='topic_preview_content_end' topic=$oTopic}
</div>
<footer class="topic-footer">
<ul class="topic-tags">
<li>{$aLang.block_tags}:</li>
{strip}
{if $oTopic->getTagsArray()}
{foreach from=$oTopic->getTagsArray() item=sTag name=tags_list}
<li>{if !$smarty.foreach.tags_list.first}, {/if}<a rel="tag" href="{router page='tag'}{$sTag|escape:'url'}/">{$sTag|escape:'html'}</a></li>
{/foreach}
{else}
<li>{$aLang.topic_tags_empty}</li>
{/if}
{/strip}
</ul>
<ul class="topic-info" style="background:none; height:auto">
{hook run='topic_preview_show_info' topic=$oTopic}
</ul>
{hook run='topic_preview_show_end' topic=$oTopic}
</footer>
</article>
<div class="button2 button-primary">
<em></em><span></span><button type="submit" name="submit_topic_publish" id="submit_topic_publish">{$aLang.topic_create_submit_publish}</button>
</div>
<div class="button2 button-primary l-b">
<em></em><span></span><button type="submit" name="submit_preview" onclick="jQuery('#text_preview').html('').hide(); return false;">{$aLang.topic_create_submit_preview_close}</button>
</div>
<div class="button2 button-primary l-b">
<em></em><span></span><button type="submit" name="submit_topic_save" id="submit_topic_save">{$aLang.topic_create_submit_save}</button>
</div>