move help menu and change class of menuitem li,s

darcs-hash:20080610194553-84dde-adf2c70341bda9e3c06e2513426cddbfdf4c5d53.gz
This commit is contained in:
Evan Prodromou 2008-06-10 15:45:53 -04:00
parent 36894e6a7f
commit c9a899781b

View File

@ -226,6 +226,8 @@ function common_nav_menu() {
$user = common_current_user(); $user = common_current_user();
common_element_start('ul', array('id' => 'nav')); common_element_start('ul', array('id' => 'nav'));
common_menu_item(common_local_url('public'), _t('Public')); common_menu_item(common_local_url('public'), _t('Public'));
common_menu_item(common_local_url('doc', array('title' => 'help')),
_t('Help'));
if ($user) { if ($user) {
common_menu_item(common_local_url('profilesettings'), common_menu_item(common_local_url('profilesettings'),
_t('Settings')); _t('Settings'));
@ -253,8 +255,6 @@ function common_foot_menu() {
common_element_start('ul', array('id' => 'nav_sub')); common_element_start('ul', array('id' => 'nav_sub'));
common_menu_item(common_local_url('doc', array('title' => 'about')), common_menu_item(common_local_url('doc', array('title' => 'about')),
_t('About')); _t('About'));
common_menu_item(common_local_url('doc', array('title' => 'help')),
_t('Help'));
common_menu_item(common_local_url('doc', array('title' => 'privacy')), common_menu_item(common_local_url('doc', array('title' => 'privacy')),
_t('Privacy')); _t('Privacy'));
common_menu_item(common_local_url('doc', array('title' => 'source')), common_menu_item(common_local_url('doc', array('title' => 'source')),
@ -267,7 +267,7 @@ function common_menu_item($url, $text, $title=NULL) {
if ($title) { if ($title) {
$attrs['title'] = $title; $attrs['title'] = $title;
} }
common_element_start('li', 'menuitem'); common_element_start('li');
common_element('a', $attrs, $text); common_element('a', $attrs, $text);
common_element_end('li'); common_element_end('li');
} }