diff options
author | Romain d'Alverny <rda@mageia.org> | 2013-02-02 13:11:17 +0000 |
---|---|---|
committer | Romain d'Alverny <rda@mageia.org> | 2013-02-02 13:11:17 +0000 |
commit | c9d8dd90f8b93453dca67dbb444aa8ef77013625 (patch) | |
tree | 61569a5ff2385552838f99e233785e68087b7a61 /lib.php | |
parent | 2e0d9ce28bc81cb45ebcacc897e0faca73c9adb6 (diff) | |
download | nav-c9d8dd90f8b93453dca67dbb444aa8ef77013625.tar nav-c9d8dd90f8b93453dca67dbb444aa8ef77013625.tar.gz nav-c9d8dd90f8b93453dca67dbb444aa8ef77013625.tar.bz2 nav-c9d8dd90f8b93453dca67dbb444aa8ef77013625.tar.xz nav-c9d8dd90f8b93453dca67dbb444aa8ef77013625.zip |
Add Contact menu item.
Diffstat (limited to 'lib.php')
-rw-r--r-- | lib.php | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -216,7 +216,8 @@ function _mgnav_html($wrap = false, $lang = 'en', $inject = null, $vhost = 'www. array('support', '//$S/$L/support/', l10n::_t('Support'), l10n::_t('Get support from Mageia community.')), array('community', '//$S/$L/community/', l10n::_t('Community'), l10n::_t('')), array('contribute', '//$S/$L/contribute/', l10n::_t('Contribute'), l10n::_t('You too can build Mageia with us!')), - array('you', '//identity.mageia.org/', l10n::_t('You'), l10n::_t('Your Mageia online account.')) + array('you', '//identity.mageia.org/', l10n::_t('You'), l10n::_t('Your Mageia online account.')), + array('contact', '//$S/$L/contact/', l10n::_t('Contact'), l10n::_t('Contact Us')) // <search> ); @@ -238,7 +239,7 @@ function _mgnav_html($wrap = false, $lang = 'en', $inject = null, $vhost = 'www. $s[] = sprintf('<li>%s</li>', $inject); $s = implode($s); - $h = sprintf('<nav id="mgnav"><ul id="nav">%s</ul></nav>', $s); + $h = sprintf('<!--googleoff: all--><nav id="mgnav"><ul id="nav">%s</ul></nav><!--googleon: all-->', $s); if ($wrap) $h = sprintf('<header id="hmgn">%s</header>', $h); @@ -264,8 +265,9 @@ function _mgnav_style() */ function _lang_check($s = null) { - if (is_null($s)) + if (is_null($s)) { return 'en'; + } $supported = array( 'cs', |