diff options
-rw-r--r-- | css/source.css | 21 | ||||
-rw-r--r-- | lib.php | 8 |
2 files changed, 24 insertions, 5 deletions
diff --git a/css/source.css b/css/source.css index 4e41062..a3f4f78 100644 --- a/css/source.css +++ b/css/source.css @@ -4,7 +4,6 @@ * TODO top nav must stay on top when scrolling (reduced or full) * */ - /** Global rules for *.mageia.org */ /* body { @@ -28,6 +27,7 @@ h3 a { } /** Specific to navigation elements */ + #hmgn { margin: 0; padding: 0; } #mgnav { margin: 0; padding: 0; @@ -83,7 +83,8 @@ h3 a { .contribute #mgnav .contribute, .bugs-mageia-org #mgnav .contribute, .contrib #mgnav .contrib, -.you #mgnav .you +.you #mgnav .you, +.contact #mgnav .contact { font-weight: bold; background: transparent; @@ -99,6 +100,22 @@ h3 a { /* }} */ } +/* +h1, +h2, +h3 { + font-family: "Century Gothic", "Trebuchet MS", Arial, sans-serif; + font-weight: normal; + color: #3494d3; +} + +h2 a, +h3 a { + color: #3494d3; + text-decoration: none; +} +*/ + #mgnavtitle, /* deprecated */ #mgnavt /* preferred */ { @@ -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', |