aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Hiebel <leuhmanu@mageia.org>2021-02-09 20:57:17 +0100
committerManuel Hiebel <leuhmanu@mageia.org>2021-02-09 20:57:17 +0100
commitce5a5f6603acae6ed248bfcdc67e22b804c3b71b (patch)
tree09fe86f8071cb1d207db547ac7f9966ba54b298f
parent1cd7a12b30b71ec4c7bcfb4b34328c93ff0fb982 (diff)
downloadwww-ce5a5f6603acae6ed248bfcdc67e22b804c3b71b.tar
www-ce5a5f6603acae6ed248bfcdc67e22b804c3b71b.tar.gz
www-ce5a5f6603acae6ed248bfcdc67e22b804c3b71b.tar.bz2
www-ce5a5f6603acae6ed248bfcdc67e22b804c3b71b.tar.xz
www-ce5a5f6603acae6ed248bfcdc67e22b804c3b71b.zip
Fix php
-rw-r--r--en/4/index.php4
-rw-r--r--en/8/index.php4
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>');