mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-01 05:55:02 +03:00
49 lines
2.1 KiB
Smarty
49 lines
2.1 KiB
Smarty
{assign var="oBlog" value=$oTopic->getBlog()}
|
|
{assign var="oUser" value=$oTopic->getUser()}
|
|
{assign var="oVote" value=$oTopic->getVote()}
|
|
|
|
|
|
<article class="topic topic-type-{$oTopic->getType()} js-topic">
|
|
<header class="topic-header">
|
|
<h1 class="topic-title">
|
|
{if $oTopic->getPublish() == 0}
|
|
<i class="icon-tag" title="{$aLang.topic_unpublish}"></i>
|
|
{/if}
|
|
|
|
{if $oTopic->getType() == 'link'}
|
|
<i class="icon-share-alt" title="{$aLang.topic_link}"></i>
|
|
{/if}
|
|
|
|
{if $bTopicList}
|
|
<a href="{$oTopic->getUrl()}">{$oTopic->getTitle()|escape:'html'}</a>
|
|
{else}
|
|
{$oTopic->getTitle()|escape:'html'}
|
|
{/if}
|
|
</h1>
|
|
|
|
|
|
{if $oTopic->getType() == 'link'}
|
|
<div class="topic-url">
|
|
<a href="{router page='link'}go/{$oTopic->getId()}/" title="{$aLang.topic_link_count_jump}: {$oTopic->getLinkCountJump()}">{$oTopic->getLinkUrl()}</a>
|
|
</div>
|
|
{/if}
|
|
|
|
|
|
<div class="topic-info">
|
|
<a href="{$oBlog->getUrlFull()}" class="topic-blog">{$oBlog->getTitle()|escape:'html'}</a>
|
|
|
|
<!--<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>-->
|
|
|
|
<ul class="actions">
|
|
{if $oUserCurrent and ($oUserCurrent->getId()==$oTopic->getUserId() or $oUserCurrent->isAdministrator() or $oBlog->getUserIsAdministrator() or $oBlog->getUserIsModerator() or $oBlog->getOwnerId()==$oUserCurrent->getId())}
|
|
<li><a href="{cfg name='path.root.web'}/{$oTopic->getType()}/edit/{$oTopic->getId()}/" title="{$aLang.topic_edit}" class="actions-edit">{$aLang.topic_edit}</a></li>
|
|
{/if}
|
|
|
|
{if $oUserCurrent and ($oUserCurrent->isAdministrator() or $oBlog->getUserIsAdministrator() or $oBlog->getOwnerId()==$oUserCurrent->getId())}
|
|
<li><a href="{router page='topic'}delete/{$oTopic->getId()}/?security_ls_key={$LIVESTREET_SECURITY_KEY}" title="{$aLang.topic_delete}" onclick="return confirm('{$aLang.topic_delete_confirm}');" class="actions-delete">{$aLang.topic_delete}</a></li>
|
|
{/if}
|
|
</ul>
|
|
</div>
|
|
</header> |