Файл: templates/default/controllers/users/profile_closed.tpl.php
Строк: 50
<?php
$this->addJS('templates/default/js/jquery-ui.js');
$this->addCSS('templates/default/css/jquery-ui.css');
$this->setPageTitle($profile['nickname']);
$this->addBreadcrumb(LANG_USERS, href_to('users'));
$this->addBreadcrumb($profile['nickname']);
$tool_buttons = array();
if ($user->is_logged) {
if ($is_friends_on && !$is_own_profile){
if ($is_friend_profile){
$tool_buttons['friend_delete'] = array(
'title' => LANG_USERS_FRIENDS_DELETE,
'class' => 'user_delete',
'href' => $this->href_to('friend_delete', $profile['id'])
);
} else if(!$is_friend_req) {
$tool_buttons['friend_add'] = array(
'title' => LANG_USERS_FRIENDS_ADD,
'class' => 'user_add',
'href' => $this->href_to('friend_add', $profile['id'])
);
}
}
}
$buttons_hook = cmsEventsManager::hook('user_profile_buttons', array(
'profile' => $profile,
'buttons' => $tool_buttons
));
$tool_buttons = $buttons_hook['buttons'];
if (is_array($tool_buttons)){
foreach($tool_buttons as $button){
$this->addToolButton($button);
}
}
?>
<div id="user_profile_header">
<?php $this->renderChild('profile_header', array('profile'=>$profile, 'tabs'=>false, 'is_can_view'=>false)); ?>
</div>
<div id="user_profile">
<div id="left_column" class="column">
<div id="avatar" class="block">
<?php echo html_avatar_image($profile['avatar'], 'normal'); ?>
</div>
<div class="block">
<ul class="details">
<li>
<strong><?php echo LANG_USERS_PROFILE_REGDATE; ?>:</strong>
<?php echo string_date_age_max($profile['date_reg'], true); ?>
</li>
<li>
<strong><?php echo LANG_USERS_PROFILE_LOGDATE; ?>:</strong>
<?php echo $profile['is_online'] ? '<span class="online">'.LANG_ONLINE.'</span>' : string_date_age_max($profile['date_log'], true); ?>
</li>
</ul>
</div>
</div>
<div id="right_column" class="column">
<p><?php echo LANG_USERS_PROFILE_IS_HIDDEN; ?></p>
</div>
</div>