aboutsummaryrefslogtreecommitdiffstats
path: root/en/2
diff options
context:
space:
mode:
authorRomain d'Alverny <rda@mageia.org>2012-05-22 19:47:07 +0000
committerRomain d'Alverny <rda@mageia.org>2012-05-22 19:47:07 +0000
commita001683b955f224fcd73b8448ba40451e0408204 (patch)
tree99e4f3804e4d7575b65816181c2f17c2a434a295 /en/2
parent33e9c62270cee8e528c8fbc82aa55bccc6eabaf4 (diff)
downloadwww-a001683b955f224fcd73b8448ba40451e0408204.tar
www-a001683b955f224fcd73b8448ba40451e0408204.tar.gz
www-a001683b955f224fcd73b8448ba40451e0408204.tar.bz2
www-a001683b955f224fcd73b8448ba40451e0408204.tar.xz
www-a001683b955f224fcd73b8448ba40451e0408204.zip
new pages for /2
Diffstat (limited to 'en/2')
-rw-r--r--en/2/download_index.php3
-rw-r--r--en/2/index.php113
-rw-r--r--en/2/nav.php46
3 files changed, 160 insertions, 2 deletions
diff --git a/en/2/download_index.php b/en/2/download_index.php
index 72feeba3a..a3b62f085 100644
--- a/en/2/download_index.php
+++ b/en/2/download_index.php
@@ -7,7 +7,7 @@ include 'locales.php';
$_t = i18n::get_strings($_t, $locale, $i18n_fallback_rules);
$_t['page_title'] = sprintf($_t['page_title'], 'Mageia 2', '');
-$_t['page_h1'] = sprintf($_t['page_h1'], 'Mageia 2', '');
+$_t['page_h1'] = '<a href="../2/">Mageia 2</a> &raquo; Download';
require '../downloads/get/lib.php';
?>
@@ -26,6 +26,7 @@ require '../downloads/get/lib.php';
<body class="release downloads">
<?php echo $hsnav; ?>
<h1 id="mgnavt"><?php _e('page_h1')?></h1>
+ <?php include '../2/nav.php'; ?>
<div id="doc4" class="yui-t7">
<div id="bd" role="main">
<div class="yui-ge bb1">
diff --git a/en/2/index.php b/en/2/index.php
index 3a67345e8..25aee72a6 100644
--- a/en/2/index.php
+++ b/en/2/index.php
@@ -1,2 +1,113 @@
<?php
-header('Location: /downloads/'); \ No newline at end of file
+
+define('HLANG', true);
+require '../../langs.php';
+include 'locales.php';
+
+$_t = array(
+ 'de' => array(
+ 'blog_url' => 'http://blog.mageia.org/de/',
+ 'planet_url' => 'http://planet.mageia.org/de/',
+ 'forum_url' => 'http://forums.mageia.org/de/',
+ ),
+ 'el' => array(
+ 'blog_url' => 'http://blog.mageia.org/el/',
+ ),
+ 'en' => array(
+ 'page_title' => 'Mageia Community',
+ 'page_h1' => 'Mageia Community Central',
+ 'blog_url' => 'http://blog.mageia.org/en/',
+ 'planet_url' => 'http://planet.mageia.org/en/',
+ 'forum_url' => 'https://forum.mageia.org/en/',
+ ),
+ 'es' => array(
+ 'blog_url' => 'http://blog.mageia.org/en/',
+ 'planet_url' => 'http://planet.mageia.org/es/'
+ ),
+ 'fr' => array(
+ 'page_title' => 'Communauté Mageia',
+ 'page_h1' => 'Portail de la communauté Mageia',
+ 'News' => 'Actualités',
+ 'How to contribute?' => 'Comment contribuer&nbsp;?',
+ 'Toolbox' => 'Boîte à outils',
+ 'blog_url' => 'http://blog.mageia.org/fr/',
+ 'planet_url' => 'http://planet.mageia.org/fr/',
+ 'forum_url' => 'http://forum.mageia.org/fr/'
+ ),
+ 'it' => array(
+ 'blog_url' => 'http://blog.mageia.org/it/',
+ 'planet_url' => 'http://planet.mageia.org/it/'
+ ),
+ 'nl' => array(
+ 'blog_url' => 'http://blog.mageia.org/nl/',
+ ),
+ 'pl' => array(
+ 'blog_url' => 'http://blog.mageia.org/pl/',
+ ),
+ 'pt' => array(
+ 'blog_url' => 'http://blog.mageia.org/pt/',
+ ),
+ 'ro' => array(
+ 'blog_url' => 'http://blog.mageia.org/ro/',
+ ),
+ 'ru' => array(
+ 'blog_url' => 'http://blog.mageia.org/ru/'
+ ),
+ 'tr' => array(
+ 'blog_url' => 'http://blog.mageia.org/tr/'
+ ),
+ 'uk' => array(
+ 'blog_url' => 'http://blog.mageia.org/uk/'
+ )
+);
+
+$_t = i18n::get_strings($_t, $locale, $i18n_fallback_rules);
+include '../../lib/news.php';
+
+?>
+<!DOCTYPE html>
+<html lang="<?php echo $locale; ?>">
+<head>
+ <meta charset="utf-8">
+ <title><?php _e('page_title')?></title>
+ <link rel="stylesheet" href="/g/style/all.css">
+ <style>
+ .para { text-align: left; float: left; width: 250px; display: block; border-right: 1px solid #eef; border-bottom: 1px solid #eef; }
+ hr { margin-top: 2em; }
+ </style>
+</head>
+<body class="downloads">
+ <?php echo $hsnav; ?>
+ <h1 id="mgnavtitle"><a href="../2/">Mageia 2</a> &raquo; <?php _e('for your server')?></h1>
+ <?php include '../2/nav.php'; ?>
+ <div class="para" style="width: 600px;">
+ <section>
+ <img src="/g/2/images/mageia-2-desktop.jpeg" alt="Mageia 2" style="width: 550px; display: block; margin: 2em auto 3em auto; box-shadow: 0 0 5px #aaa;">
+ <?php
+ _h('Mageia 2 is a GNU/Linux distribution for your computer, released by the <a href="%s">Mageia community</a>.',
+ array('../community'));
+
+ _h("What's new?", null, 'h2');
+
+ _h('Too much to include here! See the <a href="https://wiki.mageia.org/en/Mageia_2_Release_Notes">release notes</a> for an extensive exposé.');
+
+ _h('<a href="../downloads/" style="background: #1272B1; color: white; padding: 0.9em; margin: 1em; display: inline-block; text-shadow: 0 1px 6px #000; border-radius: 3px;">Download it right away!</a>');
+
+ _h('Mageia in context', null, 'h2');
+
+ _h('Mageia is both a Community and a Linux Distribution, with Mageia 2 being our second release.');
+
+ _h('Since the release of <a href="../1/">Mageia 1</a>, our offering has been consistently in the <a href="%s">top 10 of Distrowatch\'s most popular distributions</a>.',
+ array('http://distrowatch.com/popularity'));
+
+ _h('Mageia 2 is supported by the <a href="../about/">Mageia.org nonprofit organisation</a>, which is governed by a body of recognized and elected contributors.');
+ _h('Mageia 2 has been made by more than 100 people from all around the world.');
+
+ _h('Our work adds to the excellent work of the wider Linux and Free Software community. We aim to bring one of the best, most stable, reliable and enjoyable experience and platform we can make; for regular users, developers and businesses.');
+
+ _h('We welcome new contributors to any of the many different teams that go to make up Mageia the Community, and we encourage you to join us.');
+ ?>
+ </section>
+ </div>
+</body>
+</html> \ No newline at end of file
diff --git a/en/2/nav.php b/en/2/nav.php
new file mode 100644
index 000000000..e64e9b6b8
--- /dev/null
+++ b/en/2/nav.php
@@ -0,0 +1,46 @@
+<?php
+
+$_nt = array(
+ 'cs' => array('for-you' => 'Pro vás', 'dl' => 'Stáhnout', 'next' => 'A dále?', 'notes' => 'Poznámky'),
+ 'de' => array('for-you' => 'Für Sie', 'dl' => 'Download', 'next' => 'Und nun?', 'notes' => 'Release-Notes'),
+ 'el' => array('for-you' => 'Για εσάς', 'dl' => 'Λήψη', 'next' => 'Και μετά;', 'notes' => 'Σημειώσεις'),
+ 'en' => array('for-you' => 'For you', 'dl' => 'Download', 'next' => 'And next?', 'notes' => 'Notes'),
+ 'es' => array('for-you' => 'Para usted', 'dl' => 'Descargar', 'next' => '¿Y qué sigue?', 'notes' => 'Notas'),
+ 'et' => array('for-you' => 'Teie jaoks', 'dl' => 'Allalaadimine', 'next' => 'Ja mis edasi?', 'notes' => 'Märkmed'),
+ 'fr' => array('for-you' => 'Pour vous', 'dl' => 'Télécharger', 'next' => 'Et après&nbsp;?'),
+ 'it' => array('for-you' => 'Per voi', 'dl' => 'Scaricare', 'next' => 'E dopo&nbsp;?', 'notes' => 'Note'),
+ 'nb' => array('for-you' => 'For deg', 'dl' => 'Last ned', 'next' => 'Neste steg?', 'notes' => 'Merknader'),
+ 'nl' => array('for-you' => 'Voor u', 'dl' => 'Download', 'next' => 'En nu?', 'notes' => 'Opmerkingen'),
+ 'pt' => array('for-you' => 'Para si', 'dl' => 'Transferir', 'next' => 'E depois?', 'notes' => 'Notas'),
+ 'ro' => array('for-you' => 'Pentru voi', 'dl' => 'Descărcați', 'next' => 'Și după?', 'notes' => 'Notele ediției'),
+ 'tr' => array('for-you' => 'Sizin için', 'dl' => 'İndirin', 'next' => 'Peki sonra?', 'notes' => 'Notlar'),
+ 'uk' => array('for-you' => 'Для вас', 'dl' => 'Звантаження', 'next' => 'Що далі?', 'notes' => 'Нотатки'),
+ 'zh-tw' => array('for-you' => '為了您', 'dl' => '下載', 'next' => '下一步呢?', 'notes' => '通告')
+);
+
+if (array_key_exists($locale, $_nt))
+ $_nt = array_merge($_nt['en'], $_nt[$locale]);
+else
+ $_nt = $_nt['en'];
+
+$nav = array(
+ "/{$locale}/2/" => 'Mageia 2',
+ "/{$locale}/downloads/" => 'Download',
+ "/{$locale}/for-pc/" => 'For PC',
+ "/{$locale}/for-server/" => 'For server',
+);
+
+$sru = trim($_SERVER['REQUEST_URI']);
+
+$pnav = array();
+foreach ($nav as $k => $v) {
+ $pnav[] = sprintf('<li><a href="%s"%s>%s</a></li>',
+ $k,
+ $k == $sru ? ' class="sel"' : null,
+ $v);
+}
+$pnav = implode($pnav);
+
+echo <<<S
+<div id="mgnavsub"><ul id="mgnavsubl">{$pnav}</ul></div>
+S;