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/blocks/block.userPhoto.tpl
Denis Shakhov 622053da55 Обновлен developer
* Частично обновлен дизайн
* Шаблон доработан для нормальной работы с последней версией фреймворка
* Synio в нерабочем состоянии!
2013-10-02 21:09:30 +07:00

31 lines
1.5 KiB
Smarty
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{**
* Блок с фотографией пользователя в профиле
*
* @styles css/blocks.css
* @scripts <framework>/js/livestreet/user.js
*}
{extends file='blocks/block.aside.base.tpl'}
{block name='block_type'}profile-photo{/block}
{block name='block_class'}js-ajax-photo-upload{/block}
{block name='block_content'}
<div class="profile-photo-wrapper">
<div class="status {if $oUserProfile->isOnline()}status-online{else}status-offline{/if}">{if $oUserProfile->isOnline()}{$aLang.user_status_online}{else}{$aLang.user_status_offline}{/if}</div>
<a href="{$oUserProfile->getUserWebPath()}">
<img src="{$oUserProfile->getProfileFotoPath()}" alt="{$oUserProfile->getLogin()} photo" class="profile-photo js-ajax-image-upload-image" />
</a>
</div>
{if $sAction=='settings' and $oUserCurrent and $oUserCurrent->getId() == $oUserProfile->getId()}
<p class="upload-photo">
<label for="foto" class="form-input-file">
<span class="js-ajax-image-upload-choose link-dotted">{if $oUserCurrent->getProfileFoto()}{$aLang.settings_profile_photo_change}{else}{$aLang.settings_profile_photo_upload}{/if}</span>
<input type="file" name="foto" id="foto" class="js-ajax-image-upload-file">
</label>
&nbsp;&nbsp;&nbsp;
<a href="#" class="js-ajax-image-upload-remove link-dotted" style="{if ! $oUserCurrent->getProfileFoto()}display:none;{/if}">{$aLang.settings_profile_foto_delete}</a>
</p>
{/if}
{/block}