diff options
-rw-r--r-- | en/4/index.php | 4 | ||||
-rw-r--r-- | en/8/index.php | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/en/4/index.php b/en/4/index.php index da329c618..eacf6ce5e 100644 --- a/en/4/index.php +++ b/en/4/index.php @@ -78,7 +78,7 @@ for ($i = 0; $i < 12; $i++) { </ol> <div class="carousel-inner"> <?php -function carousel($src, $ttl, $active = ''){ +function carousel($src, $ttl, $active = false){ $div = sprintf('<div class="carousel-item%s">', $active ? ' active' : '') ; $div .= sprintf('<img class="d-block rounded-lg img-fluid"') ; $div .= sprintf (' src="%s" alt="%s" title="%s">',$src, $ttl, $ttl); @@ -88,7 +88,7 @@ function carousel($src, $ttl, $active = ''){ $div .= sprintf ('</div>'. PHP_EOL); echo $div; } - carousel('/g/4/kde.png', 'KDE', active ); + carousel('/g/4/kde.png', 'KDE', true ); carousel('/g/4/razorqt.png', 'RazorQT'); carousel('/g/4/xfce.png', 'XFCE'); carousel('/g/4/gnome.png', 'GNOME'); diff --git a/en/8/index.php b/en/8/index.php index 0ef4e163a..e0ad3cade 100644 --- a/en/8/index.php +++ b/en/8/index.php @@ -48,7 +48,7 @@ $dictionary = read_translation_file($locale, array('8', 'common_footer')); </ol> <div class="carousel-inner"> <?php - function carousel($src, $ttl ,$title, $text, $active = ''){ + function carousel($src, $ttl ,$title, $text, $active = false){ $div = sprintf('<div class="carousel-item%s">', $active ? ' active' : ''); $div .= sprintf('<img class="d-block rounded-lg img-fluid"'); $div .= sprintf (' src="%s" alt="%s" title="%s">',$src, $ttl, $ttl); @@ -62,7 +62,7 @@ $dictionary = read_translation_file($locale, array('8', 'common_footer')); echo $div; } //carousel('/g/path/to.png', 'alt text', 'TitleCaption', 'TextCaption', active); - carousel('/g/8/slide/live-plasma-1.png', 'live-plasma-1', _r('Welcome on Mageia'), _('Try without installing. ') . ' '. _r('Here is the Plasma Desktop'), active ); + carousel('/g/8/slide/live-plasma-1.png', 'live-plasma-1', _r('Welcome on Mageia'), _r('Try without installing.') . ' '. _r('Here is the Plasma Desktop'), true ); carousel('/g/8/slide/live-plasma-2.png', 'live-plasma-2', _r('Daily use'), _r('Access all your files') ); carousel('/g/8/slide/live-plasma-3.png', 'live-plasma-3', _r('Daily use'), _r('Watch all your media') ); carousel('/g/8/slide/live-plasma-4.png', 'live-plasma-4', _r('Install'), _r('If you are happy with the Mageia experience, you can then install it onto your hard drive from the Live media') . ' <a href="../doc/">'. _r('Doc'). '</a>'); |