$page = ($this->arg('page')) ? ($this->arg('page')+0) : 1;
- common_show_header(_t('Public timeline'), array($this, 'show_header'));
+ common_show_header(_t('Public timeline'),
+ array($this, 'show_header'), NULL,
+ array($this, 'show_top'));
# XXX: Public sidebar here?
common_show_footer();
}
+ function show_top($user) {
+
+ if (common_logged_in()) {
+ common_notice_form();
+ }
+
+ $this->views_menu();
+ }
+
function show_header() {
common_element('link', array('rel' => 'alternate',
'href' => common_local_url('publicrss'),
$nickname = $this->trimmed('nickname');
common_element_start('ul', array('id' => 'nav_views'));
+ common_menu_item(common_local_url('public'),
+ _t('Public'),
+ _t('Public stream'),
+ $action == 'public');
+ common_menu_item(common_local_url('all', array('nickname' =>
+ $nickname)),
+ _t('Personal'),
+ (($user->fullname) ? $user->fullname : $nickname) . _t(' and friends'),
+ $action == 'all');
common_menu_item(common_local_url('showstream', array('nickname' =>
$nickname)),
_t('Profile'),
($user->fullname) ? $user->fullname : $nickname,
$action == 'showstream');
- common_menu_item(common_local_url('all', array('nickname' =>
- $nickname)),
- _t('All'),
- _t('All'),
- $action == 'all');
common_element_end('ul');
}