diff options
author | Claire Revillet <grenoya@mageia.org> | 2014-01-09 22:42:14 +0000 |
---|---|---|
committer | Claire Revillet <grenoya@mageia.org> | 2014-01-09 22:42:14 +0000 |
commit | 2a84ec61d9661f60aa29b98a60e4106d67506ea9 (patch) | |
tree | cc3b5247a65e5ecc5121d886c72041436ae33317 /en/doc/archive.php | |
parent | 000aa7f742687f4d59014acddef894089c5a0bb2 (diff) | |
download | www-2a84ec61d9661f60aa29b98a60e4106d67506ea9.tar www-2a84ec61d9661f60aa29b98a60e4106d67506ea9.tar.gz www-2a84ec61d9661f60aa29b98a60e4106d67506ea9.tar.bz2 www-2a84ec61d9661f60aa29b98a60e4106d67506ea9.tar.xz www-2a84ec61d9661f60aa29b98a60e4106d67506ea9.zip |
- creation of the archive page for the documentation of old mga versions
Diffstat (limited to 'en/doc/archive.php')
-rw-r--r-- | en/doc/archive.php | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/en/doc/archive.php b/en/doc/archive.php new file mode 100644 index 000000000..3e1f111a3 --- /dev/null +++ b/en/doc/archive.php @@ -0,0 +1,80 @@ +<?php +define('HLANG', true); +require '../../langs.php'; +_lang_load($locale, 'documentation'); + +function doc_list($languages, $link) +{ + global $locale; + global $langs; + $your_language = ''; + $others = ''; + $text_others = ''; + $your_language_present = FALSE; + $other_languages_present = FALSE; + foreach ($languages as $lng) { + // hopefully temporary exception for pt-br as convention for lang-abbrev in /langs.inc.php is different as link in doc.mageia.org + if ($lng == 'pt_br') { + $lng_name = $langs['pt-br']; + } else { + $lng_name = $langs[$lng]; + } + + if ($locale == $lng) { + $your_language_present = TRUE; + $your_language = sprintf($link . '<br/><br/>', $lng, $lng_name); + } else { + $other_languages_present = TRUE; + $others .= sprintf($link . '<br/>', $lng, $lng_name); + } + } + if ($your_language_present) { + $text_your_language = _t('Documentation in your language:'); + if ($other_languages_present) { + $text_others = _t('There are also:') . '<br/>'; + } + } else { + $text_your_language = _t('Please help <a href="../community/">us</a> translate it in your language.') . '<br/>'; + } + echo $text_your_language . $your_language . $text_others . $others; +} + +?><!DOCTYPE html> +<html lang="<?php echo $locale; ?>" dir="ltr"> +<head> + <meta charset="utf-8"> + <title><?php _e("Mageia Documentation's Archive")?></title> + <meta name="description" content="<?php _e('Old documentation for Mageia distribution and its tools.')?>"> + <meta name="keywords" content="<?php _e('doc,documentation,help,guide,installer,installation,mageia,linux')?>"> + <link rel="stylesheet" href="/g/style/all.css" type="text/css"> +</head> +<body class="doc"> + <?php echo $hsnav; ?> + <h1 id="mgnavt"><?php _e("Mageia Documentation's Archive")?></h1> + <div id="doc" class="yui-t7"> + <div id="bd" role="main"> + <div class="yui-g"> + <div class="para donate" style="padding-top: 2em;"> + <h2><?php _e('Some More documentation')?></h2> + <p><?php _e('You will find here the documentations for the versions of Mageia that have reached their End-Of-Life.')?><br/> + <?php _e('If you are looking for the current versions, see <a href="index.php">here</a>)')?></p> + <hr> + <h3>Mageia 2</h3> + <div style="float: left; margin: 2em;"> + <h4><?php _e('Installer')?></h4> + <p><?php + $mga2_installer = array('de','el','en','eo','fr','nl','pt_br','uk'); + doc_list($mga2_installer, '<a href="//doc.mageia.org/installer/2/%s/content/index.html">%s</a>'); + ?></p> + </div> + </div> + </div> + </div> + </div> + <div style="margin-left: 2em;"> + <hr> + <p><a href="//www.mageia.org/<?php echo $locale; ?>/map/"><?php _e('Mageia sitemap')?></a> + | <a href="//www.mageia.org/<?php echo $locale; ?>/support/"><?php _e('Support')?></a></p> + </div> +</body> +</html> |