1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-05-19 17:28:23 +03:00

fix аватарок и ссылки на список черновиков

This commit is contained in:
Mzhelskiy Maxim 2012-06-26 21:30:13 +04:00
parent cb1c2f1dc7
commit a19dd20772
2 changed files with 4 additions and 2 deletions

View file

@ -354,7 +354,7 @@ class ModuleUser_EntityUser extends Entity {
if ($sPath=$this->getProfileAvatar()) {
return str_replace('_100x100',(($iSize==0)?"":"_{$iSize}x{$iSize}"),$sPath."?".date('His',strtotime($this->getProfileDate())));
} else {
return Config::Get('path.static.skin').'/images/avatar_'.$iSize.'x'.$iSize.'.jpg';
return Config::Get('path.static.skin').'/images/avatar_'.($this->getProfileSex()=='woman' ? 'male' : 'female').'_'.$iSize.'x'.$iSize.'.jpg';
}
}
/**

View file

@ -6,10 +6,12 @@
{strip}
<div class="modal-content">
<ul class="write-list">
{if $iUserCurrentCountTopicDraft}
<li class="write-item-type-draft">
<a href="{router page='topic'}saved/" class="write-item-image"></a>
<a href="{router page='topic'}saved/" class="write-item-link">{if $iUserCurrentCountTopicDraft}{$iUserCurrentCountTopicDraft} {$iUserCurrentCountTopicDraft|declension:$aLang.draft_declension:'russian'} {else} {$aLang.topic_menu_saved} {/if}</a>
<a href="{router page='topic'}saved/" class="write-item-link">{$iUserCurrentCountTopicDraft} {$iUserCurrentCountTopicDraft|declension:$aLang.draft_declension:'russian'}</a>
</li>
{/if}
<li class="write-item-type-topic">
<a href="{router page='topic'}add" class="write-item-image"></a>
<a href="{router page='topic'}add" class="write-item-link">{$aLang.block_create_topic_topic}</a>