1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-08 17:34:26 +03:00
ifhub.club/application/frontend/skin/developer/actions/ActionProfile/wall.posts.tpl
2014-01-13 13:33:20 +07:00

33 lines
1.3 KiB
Smarty

{**
* Список постов на стене
*
* @param array $aWall Список постов
*}
{foreach $aWall as $oPost}
{$aPostComments = $oPost->getLastReplyWall()}
{* Запись *}
{include 'actions/ActionProfile/wall.entry.tpl' oWallEntry=$oPost bWallEntryShowReply=!$aPostComments sWallEntryClasses='wall-post'}
<div class="wall-comments js-wall-comment-wrapper" data-id="{$oPost->getId()}">
{* Кнопка подгрузки комментариев *}
{if count($aPostComments) < $oPost->getCountReply()}
<div class="get-more get-more-wall-comments js-wall-get-more" data-id="{$oPost->getId()}">
{$aLang.wall_load_reply_more} <span class="js-wall-get-more-count">{$oPost->getCountReply()}</span> {$oPost->getCountReply()|declension:$aLang.comment_declension}
</div>
{/if}
{* Комментарии *}
<div class="js-wall-entry-container" data-id="{$oPost->getId()}">
{if $aPostComments}
{include 'actions/ActionProfile/wall.comments.tpl' aReplyWall=$aPostComments}
{/if}
</div>
{* Форма добавления комментария *}
{if $oUserCurrent}
{include 'actions/ActionProfile/wall.form.tpl' iWallFormId=$oPost->getId() bWallFormDisplay=$aPostComments sWallFormPlaceholder=$aLang.wall_reply_placeholder}
{/if}
</div>
{/foreach}