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.tpl

35 lines
1 KiB
Smarty

{**
* Стена
*}
{extends 'layouts/layout.user.tpl'}
{block 'layout_user_page_title'}
{$aLang.user_menu_profile_wall}
{/block}
{block 'layout_content' append}
{* Форма добавления записи *}
{if $oUserCurrent}
{include 'actions/ActionProfile/wall.form.tpl'}
{else}
{include 'components/alert/alert.tpl' sMods='info' sClasses='mt-15' mAlerts=$aLang.wall_add_quest}
{/if}
{if ! count($aWall)}
{include 'components/alert/alert.tpl' mAlerts=$aLang.wall_list_empty sMods='empty' sClasses='mt-15' sAttributes='id="wall-empty"'}
{/if}
{* Список записей *}
<div class="js-wall-entry-container" data-id="0">
{include 'actions/ActionProfile/wall.posts.tpl'}
</div>
{* Кнопка подгрузки записей *}
{if $iCountWall - count($aWall)}
{include 'components/more/more.tpl'
sClasses = 'js-more-wall'
iCount = $iCountWall - count($aWall)
sAttributes = "data-more-target=\".js-wall-entry-container[data-id=0]\" data-proxy-i-last-id=\"{$iWallLastId}\" "}
{/if}
{/block}