Some layout and rendering adjustment for Realtime plugin

This commit is contained in:
Sarven Capadisli 2009-09-23 22:00:22 +00:00
parent 4d4bb089a5
commit ddb9518c99

View File

@ -213,9 +213,9 @@ class RealtimePlugin extends Plugin
'class' => 'user_in') 'class' => 'user_in')
: array('id' => $action->trimmed('action'))); : array('id' => $action->trimmed('action')));
$action->elementStart('div', array('id' => 'header'));
// XXX hack to deal with JS that tries to get the // XXX hack to deal with JS that tries to get the
// root url from page output // root url from page output
$action->elementStart('address'); $action->elementStart('address');
$action->element('a', array('class' => 'url', $action->element('a', array('class' => 'url',
'href' => common_local_url('public')), 'href' => common_local_url('public')),
@ -225,7 +225,9 @@ class RealtimePlugin extends Plugin
if (common_logged_in()) { if (common_logged_in()) {
$action->showNoticeForm(); $action->showNoticeForm();
} }
$action->showContent(); $action->elementEnd('div');
$action->showContentBlock();
$action->elementEnd('body'); $action->elementEnd('body');
return false; // No default processing return false; // No default processing
} }