From 2a2be4fadbfcb612060fbaa5acb9671beece11a2 Mon Sep 17 00:00:00 2001 From: Manuel Hiebel Date: Wed, 5 Jul 2017 08:24:42 +0200 Subject: Adapt nav to bootstrap don't show anymore map (it's already in the footer) add class sticky-top for nav to be always on the top modify inject, so we can use class on
  • --- lib.php | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/lib.php b/lib.php index 9824405..563561d 100644 --- a/lib.php +++ b/lib.php @@ -291,7 +291,7 @@ function _mgnav_html($wrap = false, $lang = 'en', $inject = null, $vhost = 'www. l10n::load($lang, $cache); $tn = array( - array('mageia', '//$S/$L/map/', 'Mageia', l10n::_t('Go to mageia.org site map.')), + //array('mageia', '//$S/$L/map/', 'Mageia', l10n::_t('Go to mageia.org site map.')), array('about', '//$S/$L/about/', l10n::_t('About us'), l10n::_t('Learn more about Mageia.')), array('downloads', '//$S/$L/downloads/', l10n::_t('Downloads'), l10n::_t('Download Mageia ISO and updates.')), array('support', '//$S/$L/support/', l10n::_t('Support'), l10n::_t('Get support from Mageia community.')), @@ -307,7 +307,7 @@ function _mgnav_html($wrap = false, $lang = 'en', $inject = null, $vhost = 'www. $s = array(); foreach ($tn as $i) { - $s[] = sprintf('
  • %s
  • ', + $s[] = sprintf('', str_replace( array('$L', '$S'), array($lang, $vhost), @@ -320,14 +320,24 @@ function _mgnav_html($wrap = false, $lang = 'en', $inject = null, $vhost = 'www. } if (!is_null($inject)) - $s[] = sprintf('
  • %s
  • ', $inject); + $s[] = sprintf('%s', $inject); $s = implode($s); - $h = sprintf('', $s); + $h = sprintf(' +
    + +
    ', $s); if ($wrap) - $h = sprintf('
    %s - + $h = sprintf('
    %s
    ', $h); if (!is_null($cache)) -- cgit v1.2.1