1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-05 16:04:24 +03:00
ifhub.club/application/frontend/skin/synio/actions/ActionProfile/wall.tpl

44 lines
1.2 KiB
Smarty

{**
* Стена
*}
{extends file='layouts/layout.user.tpl'}
{block name='layout_content'}
<script>
ls.wall.init({
login:'{$oUserProfile->getLogin()}'
});
jQuery(document).ready(function($){
$("textarea").charCount({
allowed: 250,
warning: 0
});
});
</script>
{if $oUserCurrent}
<form class="wall-submit">
<textarea rows="4" id="wall-text" class="width-full js-wall-reply-parent-text"></textarea>
<button type="button" onclick="ls.wall.add(jQuery('#wall-text').val(),0);" class="button button-primary js-button-wall-submit">{$aLang.wall_add_submit}</button>
</form>
{else}
{include file='alert.tpl' sAlertStyle='info' mAlerts=$aLang.wall_add_quest sAlertAttributes='id="wall-note-list-empty"'}
{/if}
{if ! count($aWall)}
{include file='alert.tpl' mAlerts=$aLang.wall_list_empty sAlertStyle='empty' sAlertAttributes='id="wall-note-list-empty"'}
{/if}
<div id="wall-container" class="wall">
{include file='actions/ActionProfile/wall.posts.tpl'}
</div>
{if $iCountWall - count($aWall)}
<div onclick="return ls.wall.loadNext();" id="wall-button-next" class="get-more">
{$aLang.wall_load_more} (<span id="wall-count-next">{$iCountWall-count($aWall)}</span>)
</div>
{/if}
{/block}