mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
blocks MDL-22564 removed some commented out old code and set online users popup height and width to what they apparently should be
This commit is contained in:
parent
59fe61bcc6
commit
f816273a3e
@ -154,11 +154,10 @@ class block_online_users extends block_base {
|
|||||||
$this->content->text .= '<a href="'.$CFG->wwwroot.'/user/view.php?id='.$user->id.'&course='.$this->page->course->id.'" title="'.$timeago.'">'.$user->fullname.'</a></div>';
|
$this->content->text .= '<a href="'.$CFG->wwwroot.'/user/view.php?id='.$user->id.'&course='.$this->page->course->id.'" title="'.$timeago.'">'.$user->fullname.'</a></div>';
|
||||||
}
|
}
|
||||||
if ($canshowicon and ($USER->id != $user->id) and $user->username != 'guest') { // Only when logged in and messaging active etc
|
if ($canshowicon and ($USER->id != $user->id) and $user->username != 'guest') { // Only when logged in and messaging active etc
|
||||||
//<a title="'.get_string('messageselectadd').'" href="'.$CFG->wwwroot.'/message/discussion.php?id='.$user->id.'" onclick="this.target=\'message_'.$user->id.'\';return openpopup(\'/message/discussion.php?id='.$user->id.'\', \'message_'.$user->id.'\', \'menubar=0,location=0,scrollbars,status,resizable,width=400,height=500\', 0);">
|
|
||||||
$link = '/message/discussion.php?id='.$user->id;
|
$link = '/message/discussion.php?id='.$user->id;
|
||||||
$anchortagcontents = '<img class="iconsmall" src="'.$OUTPUT->pix_url('t/message') . '" alt="'. get_string('messageselectadd') .'" />';
|
$anchortagcontents = '<img class="iconsmall" src="'.$OUTPUT->pix_url('t/message') . '" alt="'. get_string('messageselectadd') .'" />';
|
||||||
|
|
||||||
$action = new popup_action('click', $link, 'message_'.$user->id);
|
$action = new popup_action('click', $link, 'message_'.$user->id, array('width'=>400,'height'=>500));
|
||||||
$anchortag = $OUTPUT->action_link($link, $anchortagcontents, $action, array('title'=>get_string('messageselectadd')));
|
$anchortag = $OUTPUT->action_link($link, $anchortagcontents, $action, array('title'=>get_string('messageselectadd')));
|
||||||
|
|
||||||
$this->content->text .= '<div class="message">'.$anchortag.'</div>';
|
$this->content->text .= '<div class="message">'.$anchortag.'</div>';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user