mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-06-16 14:50:48 +03:00
commit
b20d65354d
|
@ -484,7 +484,7 @@ class ModuleUser_EntityUser extends Entity
|
|||
}
|
||||
|
||||
if ($this->getProfileAvatar()) {
|
||||
return $this->Media_GetImageWebPath($this->getProfileAvatar(), $iSize);
|
||||
return $this->Media_GetImageWebPath($this->getProfileAvatar(), $iSize) . '?' . date('His', strtotime($this->getProfileDate()));
|
||||
} else {
|
||||
return $this->Media_GetImagePathBySize(Router::GetFixPathWeb(Config::Get('path.skin.assets.web')) . '/images/avatars/avatar_' . ($this->getProfileSex() == 'woman' ? 'female' : 'male') . '.png',
|
||||
$iSize);
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
{component_define_params params=[ 'topic', 'type', 'skipBlogs', 'blogs', 'classes' ]}
|
||||
|
||||
<form action="" method="POST" enctype="multipart/form-data" id="topic-add-form" class="{$classes} js-form-validate" data-content-action="{( $topic ) ? 'edit' : 'add'}">
|
||||
{hook run="form_add_topic_begin"}
|
||||
{hook run="form_add_topic_begin" topic=$topic}
|
||||
{block 'add_topic_form_begin'}{/block}
|
||||
|
||||
{* Выбор блога *}
|
||||
|
@ -158,7 +158,7 @@
|
|||
|
||||
|
||||
{block 'add_topic_form_end'}{/block}
|
||||
{hook run="form_add_topic_end"}
|
||||
{hook run="form_add_topic_end" topic=$topic}
|
||||
|
||||
|
||||
{* Скрытые поля *}
|
||||
|
|
|
@ -392,7 +392,7 @@ jQuery(document).ready(function($){
|
|||
},
|
||||
changeavatar: function ( event, _this, avatars ) {
|
||||
$( '.js-user-profile-avatar, .js-wall-entry[data-user-id=' + _this.option( 'params.target_id' ) + '] .ls-comment-avatar img' ).attr( 'src', avatars[ '64crop' ] + '?' + Math.random() );
|
||||
$( '.nav-item--userbar-username img' ).attr( 'src', avatars[ '24crop' ] + '?' + Math.random() );
|
||||
$( '.ls-nav-item--userbar-username img' ).attr( 'src', avatars[ '24crop' ] + '?' + Math.random() );
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue