diff options
author | Claire Revillet <grenoya@mageia.org> | 2014-01-20 21:20:23 +0000 |
---|---|---|
committer | Claire Revillet <grenoya@mageia.org> | 2014-01-20 21:20:23 +0000 |
commit | 1668ed03260b419ccb999a013e8e12c2d5f3186a (patch) | |
tree | 5d30d8d03f219f258a5c4bc106b4a84553f3f589 /en | |
parent | 241379869c03b530c27802a8f73f610f0c15aafd (diff) | |
download | www-1668ed03260b419ccb999a013e8e12c2d5f3186a.tar www-1668ed03260b419ccb999a013e8e12c2d5f3186a.tar.gz www-1668ed03260b419ccb999a013e8e12c2d5f3186a.tar.bz2 www-1668ed03260b419ccb999a013e8e12c2d5f3186a.tar.xz www-1668ed03260b419ccb999a013e8e12c2d5f3186a.zip |
- change way to present downloadable manuals next to the html one
Diffstat (limited to 'en')
-rw-r--r-- | en/doc/index.php | 33 |
1 files changed, 19 insertions, 14 deletions
diff --git a/en/doc/index.php b/en/doc/index.php index 0cc61853a..fabd18175 100644 --- a/en/doc/index.php +++ b/en/doc/index.php @@ -28,23 +28,28 @@ function doc_list($languages, $link, $epub_link = null, $pdf_link = null) if ($locale == $lng) { $your_language_present = TRUE; if (is_null($epub_link) or is_null($pdf_link)) { - $your_language = sprintf($link . '<br/><br/>', $lng, $lng_name); + $your_language = sprintf($lng_name . ' ~> ' . $link . '<br/><br/>', $lng, $lng_name); } else { - $your_language = sprintf($link . ' <span style="font-size: 07pt;">( ' . $epub_link . ', ' . $pdf_link . ')</span><br/><br/>', $lng, $lng_name, $lng, $lng); + $your_language = sprintf($lng_name . ' ~> ' . $link . + ' <span style="font-size: 07pt;">( available downloads: ' . + $epub_link . ', ' . $pdf_link . ')</span><br/><br/>', + $lng, $lng, $lng); } } else { $other_languages_present = TRUE; if (is_null($epub_link) or is_null($pdf_link)) { - $others .= sprintf($link . '<br/>', $lng, $lng_name); + $others .= sprintf($lng_name . ' ~> ' . $link . '<br/>', $lng, $lng_name); } else { - $others .= sprintf($link . ' <span style="font-size: 07pt;">( ' . $epub_link . ', ' . $pdf_link . ')</span><br/>', $lng, $lng_name, $lng, $lng); + $others .= sprintf($lng_name . ' ~> ' . $link . + ' <span style="font-size: 07pt;">( ' . $epub_link . + ', ' . $pdf_link . ')</span><br/>', $lng, $lng, $lng); } } } if ($your_language_present) { - $text_your_language = _t('Documentation in your language:') . '<br/>'; + $text_your_language = _t('<span style="font-weight:bold">Documentation in your language:</span>') . '<br/>'; if ($other_languages_present) { - $text_others = _t('There are also:') . '<br/>'; + $text_others = _t('<span style="font-weight:bold">There are also:</span>') . '<br/>'; } } else { $text_your_language = _t('Please help <a href="../community/">us</a> translate it in your language.') . '<br/>'; @@ -75,18 +80,18 @@ function doc_list($languages, $link, $epub_link = null, $pdf_link = null) <h3>Mageia 4</h3> <div style="float: left; margin: 2em;"> <h4><?php _e('Installer')?></h4> - <p><?php + <p style="margin-left: 2em;"><?php $mga4_installer = array('ca','cs','de','el','en','eo','es','et','fr','id','nl','pl','pt_br','ro','ru','sv','tr','uk'); - doc_list($mga4_installer, '<a href="//doc.mageia.org/installer/4/%s/content/index.html">%s</a>', + doc_list($mga4_installer, '<a href="//doc.mageia.org/installer/4/%s/content/index.html">HTML</a>', '<a href="//doc.mageia.org/installer/4/%s/content/index.html">EPUB</a>', '<a href="//doc.mageia.org/installer/4/%s/content/index.html">PDF</a>'); ?></p> </div> <div style="float: right; margin: 2em;"> <h4><?php _e('Control Center')?></h4> - <p><?php + <p style="margin-left: 2em;"><?php $mga4_control_center = array('de','en','et','fr','id','nl','ru','tr','uk'); - doc_list($mga4_control_center, '<a href="//doc.mageia.org/mcc/4/%s/content/index.html">%s</a>', + doc_list($mga4_control_center, '<a href="//doc.mageia.org/mcc/4/%s/content/index.html">HTML</a>', '<a href="//doc.mageia.org/mcc/4/%s/content/index.html">EPUB</a>', '<a href="//doc.mageia.org/mcc/4/%s/content/index.html">PDF</a>'); ?></p> @@ -95,16 +100,16 @@ function doc_list($languages, $link, $epub_link = null, $pdf_link = null) <h3>Mageia 3</h3> <div style="float: left; margin: 2em;"> <h4><?php _e('Installer')?></h4> - <p><?php + <p style="margin-left: 2em;"><?php $mga3_installer = array('de','el','en','es','et','fr','nl','pt_br','ru','uk'); - doc_list($mga3_installer, '<a href="//doc.mageia.org/installer/3/%s/content/index.html">%s</a>'); + doc_list($mga3_installer, '<a href="//doc.mageia.org/installer/3/%s/content/index.html">HTML</a>'); ?></p> </div> <div style="float: right; margin: 2em;"> <h4><?php _e('Control Center')?></h4> - <p><?php + <p style="margin-left: 2em;"><?php $mga3_control_center = array('en','et','fr'); - doc_list($mga3_control_center, '<a href="//doc.mageia.org/mcc/3/%s/content/index.html">%s</a>'); + doc_list($mga3_control_center, '<a href="//doc.mageia.org/mcc/3/%s/content/index.html">HTML</a>'); ?></p> </div> </div> |