1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-08 09:24:25 +03:00
ifhub.club/templates/skin/developer/actions/ActionProfile/wall.posts.tpl
Denis Shakhov aadeb5a6cf Доработка шаблонов
* Исправлено именование некоторых файлов
* Оптимизация стилей
* Оптимизация шаблонов
* Мелкие исправления
2013-06-30 10:02:51 +07:00

66 lines
2.5 KiB
Smarty

{**
* Список записей на стене
*}
{foreach from=$aWall item=oWall}
{$oWallUser = $oWall->getUser()}
{$aReplyWall = $oWall->getLastReplyWall()}
<div id="wall-item-{$oWall->getId()}" class="js-wall-item comment-wrapper">
<div class="comment">
<a href="{$oWallUser->getUserWebPath()}">
<img src="{$oWallUser->getProfileAvatarPath(48)}" alt="avatar" class="comment-avatar" />
</a>
<ul class="comment-info">
<li class="comment-author"><a href="{$oWallUser->getUserWebPath()}">{$oWallUser->getLogin()}</a></li>
<li class="comment-date">
<time datetime="{date_format date=$oWall->getDateAdd() format='c'}">
{date_format date=$oWall->getDateAdd() hours_back="12" minutes_back="60" now="60" day="day H:i" format="j F Y, H:i"}
</time>
</li>
{if $oWall->isAllowDelete()}
<li><a href="#" onclick="return ls.wall.remove({$oWall->getId()});" class="link-dotted">{$aLang.wall_action_delete}</a></li>
{/if}
</ul>
<div class="comment-content text">
{$oWall->getText()}
</div>
{if $oUserCurrent and ! $aReplyWall}
<ul class="comment-actions">
<li><a href="#" class="link-dotted" onclick="return ls.wall.toggleReply({$oWall->getId()});">{$aLang.wall_action_reply}</a></li>
</ul>
{/if}
</div>
{if count($aReplyWall) < $oWall->getCountReply()}
<a href="#" onclick="return ls.wall.loadReplyNext({$oWall->getId()});" id="wall-reply-button-next-{$oWall->getId()}" class="get-more get-more-wall-comments">
<span class="wall-more-inner">
{$aLang.wall_load_reply_more}
<span id="wall-reply-count-next-{$oWall->getId()}">{$oWall->getCountReply()}</span>
{$oWall->getCountReply()|declension:$aLang.comment_declension:'russian'}
</span>
</a>
{/if}
<div id="wall-reply-container-{$oWall->getId()}" class="comment-wrapper">
{if $aReplyWall}
{include file='actions/ActionProfile/wall.comments.tpl'}
{/if}
</div>
{if $oUserCurrent}
<form class="wall-submit wall-submit-reply" {if !$aReplyWall}style="display: none"{/if}>
<textarea rows="4"
id="wall-reply-text-{$oWall->getId()}"
class="input-text input-width-full js-wall-reply-text"
placeholder="{$aLang.wall_reply_placeholder}"
onclick="return ls.wall.expandReply({$oWall->getId()});"></textarea>
<button type="button" onclick="ls.wall.addReply(jQuery('#wall-reply-text-{$oWall->getId()}').val(), {$oWall->getId()});" class="button button-primary js-button-wall-submit">{$aLang.wall_reply_submit}</button>
</form>
{/if}
</div>
{/foreach}