forked from jnanamurti/developer-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtopic_preview_topic.tpl
52 lines (41 loc) · 1.95 KB
/
topic_preview_topic.tpl
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
{assign var="oUser" value=$oTopic->getUser()}
<h3 class="page-header">{$aLang.topic_preview}</h3>
<article class="topic topic-type-{$oTopic->getType()}">
<header class="topic-header">
<h1 class="topic-title">
{$oTopic->getTitle()|escape:'html'}
</h1>
<div class="topic-info">
<time datetime="{date_format date=$oTopic->getDateAdd() format='c'}" pubdate title="{date_format date=$oTopic->getDateAdd() format='j F Y, H:i'}">
{date_format date=$oTopic->getDateAdd() format="j F Y, H:i"}
</time>
</div>
</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="unstyled inline topic-tags">
<li><i class="icon-tags"></i></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="unstyled inline topic-info">
<li class="topic-info-author"><a rel="author" href="{$oUser->getUserWebPath()}">{$oUser->getLogin()}</a></li>
{hook run='topic_preview_show_info' topic=$oTopic}
</ul>
{hook run='topic_preview_show_end' topic=$oTopic}
</footer>
</article>
<button type="submit" name="submit_topic_publish" class="btn btn-primary fl-r" onclick="jQuery('#submit_topic_publish').trigger('click');">{$aLang.topic_create_submit_publish}</button>
<button type="submit" name="submit_preview" onclick="jQuery('#text_preview').html('').hide(); return false;" class="btn">{$aLang.topic_create_submit_preview_close}</button>
<button type="submit" name="submit_topic_save" class="btn" onclick="jQuery('#submit_topic_save').trigger('click');">{$aLang.topic_create_submit_save}</button>