aboutsummaryrefslogtreecommitdiffstats
path: root/en/map
diff options
context:
space:
mode:
authorThomas Backlund <tmb@mageia.org>2014-10-12 12:27:45 +0300
committerThomas Backlund <tmb@mageia.org>2014-10-12 12:27:45 +0300
commit9ce6d646ff718cd62f6434c9a4c94e450436612a (patch)
tree3ee82e5db7c0aee44a5573d9d17035c6ecac697d /en/map
parenta0b2d09125d7911656fe4cb286f20643c4432281 (diff)
downloadwww-9ce6d646ff718cd62f6434c9a4c94e450436612a.tar
www-9ce6d646ff718cd62f6434c9a4c94e450436612a.tar.gz
www-9ce6d646ff718cd62f6434c9a4c94e450436612a.tar.bz2
www-9ce6d646ff718cd62f6434c9a4c94e450436612a.tar.xz
www-9ce6d646ff718cd62f6434c9a4c94e450436612a.zip
Revert "Updated Estonian translation"
Diffstat (limited to 'en/map')
-rw-r--r--en/map/index.php144
-rw-r--r--en/map/map.css57
2 files changed, 201 insertions, 0 deletions
diff --git a/en/map/index.php b/en/map/index.php
new file mode 100644
index 000000000..0dd771579
--- /dev/null
+++ b/en/map/index.php
@@ -0,0 +1,144 @@
+<?php
+
+define('HLANG', true);
+require '../../langs.php';
+$dictionary = read_translation_file($locale, 'map');
+
+$map = array(
+ 'about' => array(
+ 't' => _r('About Mageia'),
+ 'l' => '/{L}/about/',
+ 'i' => array(
+ array('t' => _r('Mission'), 'l' => '/{L}/about/'),
+ array('t' => _r('News'), 'l' => '//blog.mageia.org/'),
+ array('t' => _r('Contacts'), 'l' => '/{L}/contact/'),
+ array('t' => _r('Supporters'), 'l' => '/{L}/thank-you/'),
+ array('t' => _r('Governance'), 'l' => 'https://wiki.mageia.org/en/Org',
+ 'i' => array(
+ array('t' => _r('Board'), 'l' => 'https://wiki.mageia.org/en/Org_Board'),
+ array('t' => _r('Council'), 'l' => 'https://wiki.mageia.org/en/Org_Council'),
+ array('t' => _r('Teams'), 'l' => 'https://wiki.mageia.org/en/Contributing')
+ ),
+ ),
+ array('t' => _r('Values'), 'l' => '/{L}/about/values/'),
+ array('t' => _r('Code of conduct'), 'l' => '/{L}/about/code-of-conduct/'),
+ array('t' => 'Mageia.Org', 'l' => '/{L}/about/',
+ 'i' => array(
+ array('t' => _r('Constitution'), 'l' => '/{L}/about/constitution/'),
+ array('t' => _r('Reports'), 'l' => '/{L}/about/reports/')
+ )
+ ),
+ array('t' => _r('License'), 'l' => '/{L}/about/license/'),
+ array('t' => _r('Timeline'), 'l' => '/{L}/timeline/'),
+ array('t' => _r('Financial Infos'), 'l' => '//treasurer.mageia.org/'),
+ )
+ ),
+ 'downloads' => array(
+ 't' => _r('Downloads'),
+ 'l' => '/{L}/downloads/',
+ 'i' => array(
+ array('t' => _r('5 (in development)'), 'l' => '/{L}/5/'),
+ array('t' => _r('4 (February 2014)'), 'l' => '/{L}/4/'),
+ array('t' => _r('3 (May 2013)'), 'l' => '/{L}/3/'),
+ array('t' => _r('2 (May 2012)'), 'l' => '/{L}/2/'),
+ array('t' => _r('1 (June 2011)'), 'l' => '/{L}/1/'),
+ array('t' => _r('Download mirrors'), 'l' => '//mirrors.mageia.org/')
+ )
+ ),
+ 'support' => array(
+ 't' => _r('Support'),
+ 'l' => '/{L}/support/',
+ 'i' => array(
+ array('t' => _r('Software updates'), 'l' => '//advisories.mageia.org/'), // /updates
+ array('t' => _r('Product lifecycle'), 'l' => '/{L}/support/'), // /lifecycle
+ array('t' => _r('Official Documentation'),'l' => '/{L}/doc/'), // documentation
+ array('t' => _r('Community support'), 'l' => '/{L}/support'),
+ array('t' => _r('Professional support'), 'l' => 'https://wiki.mageia.org/en/Commercial_vendors'),
+ array('t' => _r('Compatible hardware'), 'l' => '/{L}/support/'), // /hardware
+ array('t' => _r('FAQ'), 'l' => 'https://wiki.mageia.org/en/FAQ'), // /faq
+ )
+ ),
+ 'community' => array(
+ 't' => _r('Community'),
+ 'l' => '/{L}/community/',
+ 'i' => array(
+ array('t' => _r('Planet'), 'l' => _r('https://planet.mageia.org/en/')),
+ array('t' => _r('Blog'), 'l' => _r('https://blog.mageia.org/en/')),
+ array('t' => _r('Calendar'), 'l' => '/{L}/calendar/'),
+ array('t' => _r('Mailing-lists'), 'l' => 'https://wiki.mageia.org/en/Mailing_lists'),
+ array('t' => 'IRC', 'l' => 'https://wiki.mageia.org/en/IRC'),
+ array('t' => _r('Forums'), 'l' => _r('https://forums.mageia.org/')),
+ array('t' => 'Wiki', 'l' => 'https://wiki.mageia.org/'),
+ array('t' => 'Bugzilla', 'l' => 'https://bugs.mageia.org/'),
+ array('t' => _r('People'), 'l' => '//people.mageia.org/'),
+ )
+ ),
+ 'contribute' => array(
+ 't' => _r('Contribute'),
+ 'l' => '/{L}/contribute/',
+ 'i' => array(
+ array('t' => _r('Why contribute?'), 'l' => '/{L}/contribute/#why'),
+ array('t' => _r('How to contribute?'), 'l' => '/{L}/contribute/#how'),
+ array('t' => _r('Donate'), 'l' => '/{L}/donate/'),
+ )
+ ),
+ 'you' => array(
+ 't' => _r('About you'),
+ 'l' => 'https://identity.mageia.org/',
+ 'i' => array(
+ array('t' => _r('Your Mageia id'), 'l' => 'https://identity.mageia.org/'),
+ array('t' => _r('Privacy policy'), 'l' => 'https://wiki.mageia.org/en/Privacy_policy')
+ )
+ )
+);
+$t_li1 = '<li class="map-b"><h2 id="%s"><a href="%s">%s</a></h2> <ul class="map-bl">%s</ul></li>';
+$t_li2 = '<li><a href="%s">%s</a> %s</li> ';
+$t_li3 = '<li><a href="%s">%s</a></li> ';
+
+$sMap = '<ul id="map">';
+foreach ($map as $k => $v) {
+ $l = '';
+ foreach ($v['i'] as $w) {
+ $sub = null;
+ if (array_key_exists('i', $w) && is_array($w['i'])) {
+ $sub = '<ul>';
+ foreach ($w['i'] as $x) {
+ $sub .= sprintf($t_li3,
+ str_replace('{L}', $locale, $x['l']), $x['t']);
+ }
+ $sub .= '</ul>';
+ }
+ $l .= sprintf($t_li2,
+ str_replace('{L}', $locale, $w['l']), $w['t'], $sub);
+ }
+ $sMap .= sprintf($t_li1,
+ $k, str_replace('{L}', $locale, $v['l']), $v['t'], $l);
+}
+$sMap .= '</ul>';
+
+?><!DOCTYPE html>
+<html dir="ltr" lang="<?php echo $locale; ?>">
+<head>
+ <meta charset="utf-8">
+ <title><?php echo _g('Mageia.org site map') ?></title>
+ <meta name="keywords" content="<?php _g('mageia, web site, map, sitemap'); ?>">
+ <meta name="robots" content="noindex,nofollow,nosnippet">
+ <link rel="canonical" href="/<?php echo $locale; ?>/map/">
+ <link rel="stylesheet" href="map.css">
+ <?php include '../../analytics.php'; ?>
+</head>
+<body class="map">
+ <?php echo $hsnav; ?>
+ <h1 id="mgnavtitle"><?php _g('Site Map'); ?></h1>
+ <div class="doc">
+ <?php echo $sMap; ?>
+ <div style="clear: both;"></div>
+ <hr>
+ <!--
+ TODO
+ <h2 id="search"><?php _g('You still can not find what you were looking for? Try searching mageia.org:')?></h2>
+ <p><form><input type="search"><input type="submit"></form></p>
+ -->
+ </div>
+</body>
+</html>
diff --git a/en/map/map.css b/en/map/map.css
new file mode 100644
index 000000000..ee5f32bc1
--- /dev/null
+++ b/en/map/map.css
@@ -0,0 +1,57 @@
+html, body { margin: 0; padding: 0;}
+body {
+ background: url(/g/images/cauldron_alpha_ln_1.png) no-repeat -20px 200px;
+ font-family: Verdana;
+ font-size: 12px;
+}
+a, a:link { color: #2383c2; text-decoration: none; }
+
+ul#map { margin: 0; padding: 0; list-style: none; }
+li.map-b { max-width: 200px; min-width: 140px; padding-right: 2em; }
+
+#map h2,
+#map h2 a { color: #000; }
+
+ul#map ul.map-bl a { padding: 0.2em; display: inline-block;}
+ul#map a:hover { background: #fafafa; color: #6bf; border-radius: 4px; }
+
+ul.map-bl {
+ margin: 0;
+ padding: 0;
+ list-style: disc;
+ padding-left: 2em;
+}
+ul.map-bl > li { margin: 0; padding: 0 0 0.3em 0; }
+ul.map-bl ul { margin: 0; padding: 0; list-style: none; font-size: 85%; }
+ul.map-bl ul li { display: inline; }
+ul.map-bl ul li a { background: #f0f0f0; }
+
+#lang_form { position: absolute; top: 0; right: 0; }
+
+/* Landscape phones and down */
+@media (max-width: 480px) {}
+
+/* Landscape phone to portrait tablet */
+@media (max-width: 768px) {}
+
+/* Portrait tablet to landscape and desktop */
+@media (max-width: 1200px) {
+ div.doc { margin: 0 2em; }
+ ul#map {
+
+ }
+ li.map-b {
+ width: 220px;
+ float: left;
+ }
+}
+
+@media (min-width: 1200px) {
+ #support { margin-top: 2em; }
+
+ div.doc { margin: 0 auto 0 auto; width: 1200px }
+ ul#map { display: table; margin-bottom: 6em; }
+ li.map-b { display: table-cell; }
+
+}
+#search { clear: both; padding-top: 3em; margin-top: 3em; } \ No newline at end of file