diff options
-rw-r--r-- | en/map/index.php | 144 | ||||
-rw-r--r-- | en/map/locales.php | 46 | ||||
-rw-r--r-- | en/map/map.css | 60 | ||||
l--------- | fr/map | 1 | ||||
-rw-r--r-- | map/index.php | 4 |
5 files changed, 255 insertions, 0 deletions
diff --git a/en/map/index.php b/en/map/index.php new file mode 100644 index 000000000..57c2f665f --- /dev/null +++ b/en/map/index.php @@ -0,0 +1,144 @@ +<?php + +define('HLANG', true); +require '../../langs.php'; +include 'locales.php'; + +$_t = i18n::get_strings($_t, $locale, $i18n_fallback_rules); + +$map = array( + 'about' => array( + 't' => _t('About Mageia'), + 'l' => '/{L}/about/', + 'i' => array( + array('t' => _t('Mission'), 'l' => '/{L}/about/'), + array('t' => _t('Projects'), 'l' => ''), + array('t' => _t('News'), 'l' => 'http://blog.mageia.org/'), + array('t' => _t('Contacts'), 'l' => '/en/contact/'), + array('t' => _t('Supporters'), 'l' => '/en/thank-you/'), + array('t' => _t('Governance'), 'l' => 'https://wiki.mageia.org/en/Org', + 'i' => array( + array('t' => _t('Board'), 'l' => 'https://wiki.mageia.org/en/Org_Board'), + array('t' => _t('Council'), 'l' => 'https://wiki.mageia.org/en/Org_Council'), + array('t' => _t('Teams'), 'l' => 'https://wiki.mageia.org/en/Special:Search?search=team') + ), + ), + array('t' => _t('Values'), 'l' => '/{L}/about/values/'), + array('t' => _t('Code of conduct'), 'l' => '/{L}/about/code-of-conduct/'), + array('t' => 'Mageia.Org', 'l' => '/{L}/about/', + 'i' => array( + array('t' => _t('Constitution'), 'l' => '/en/about/constitution/'), + array('t' => _t('Members'), 'l' => ''), + array('t' => _t('Reports'), 'l' => '/en/about/reports/') + ) + ), + array('t' => _t('Timeline'), 'l' => '/en/about/timeline/') + ) + ), + 'downloads' => array( + 't' => _t('Downloads'), + 'l' => '/{L}/downloads/', + 'i' => array( + array('t' => _t('2 (beta 3)'), 'l' => '/{L}/2/'), + array('t' => _t('1 (June 2011)'), 'l' => '/{L}/1/'), + array('t' => _t('Download mirrors'), 'l' => 'https://mirrors.mageia.org/') + ) + ), + 'support' => array( + 't' => _t('Support'), + 'l' => '/{L}/support/', + 'i' => array( + array('t' => _t('Software updates'), 'l' => '/{L}/support/'), // /updates + array('t' => _t('Product lifecycle'), 'l' => '/{L}/support/'), // /lifecycle + array('t' => _t('Community support'), 'l' => '/{L}/support'), + array('t' => _t('Professional support'), 'l' => 'https://wiki.mageia.org/en/Commercial_vendors'), + array('t' => _t('Compatible hardware'), 'l' => '/{L}/support/'), // /hardware + array('t' => _t('FAQ'), 'l' => ''), // /faq + ) + ), + 'community' => array( + 't' => _t('Community'), + 'l' => '/{L}/community/', + 'i' => array( + array('t' => _t('Planet'), 'l' => 'http://planet.mageia.org/'), + array('t' => _t('Blog'), 'l' => 'http://blog.mageia.org/'), + array('t' => _t('Calendar'), 'l' => '/{L}/calendar/'), + array('t' => _t('Mailing-lists'), 'l' => 'http://www.mageia.org/mailman/'), + array('t' => _t('Mailing-lists'), 'l' => 'http://ml.mageia.org/'), + array('t' => 'IRC', 'l' => 'http://wiki.mageia.org/en/IRC'), + array('t' => 'Forums', 'l' => 'http://forums.mageia.org/'), + array('t' => 'Wiki', 'l' => 'http://wiki.mageia.org/'), + array('t' => 'Bugzilla', 'l' => 'http://bugs.mageia.org/'), + + ) + ), + 'contribute' => array( + 't' => _t('Contribute'), + 'l' => '/{L}/contribute/', + 'i' => array( + array('t' => _t('Why contribute?'), 'l' => '/{L}/contribute/#why'), + array('t' => _t('How to contribute?'), 'l' => '/{L}/contribute/#how'), + array('t' => _t('Donate'), 'l' => '/{L}/donate/'), + ) + ), + 'you' => array( + 't' => _t('About you'), + 'l' => 'http://i.mageia.org/', + 'i' => array( + array('t' => _t('Your Mageia id'), 'l' => 'http://identity.mageia.org/'), + array('t' => _t('Privacy policy'), 'l' => '/{L}/about/policies/privacy/') + ) + ) +); +$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 _e('Mageia.org site map') ?></title> + <meta name="keywords" content="<?php _e('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 _e('Site Map'); ?></h1> + <div class="doc"> + <p><?php _e('welcome!')?></p> + <?php echo $sMap; ?> + <hr> + <!-- + TODO + <h2 id="search"><?php _e('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>
\ No newline at end of file diff --git a/en/map/locales.php b/en/map/locales.php new file mode 100644 index 000000000..025c6c445 --- /dev/null +++ b/en/map/locales.php @@ -0,0 +1,46 @@ +<?php + + +$_t = array( + 'en' => array( + 'welcome!' => '', + + + ), + 'fr' => array( + 'welcome!' => '', + 'Mageia.org site map' => 'Plan du site Mageia.org', + 'mageia, web site, map, sitemap' => 'mageia, site web, carte, plan', + 'Site Map' => 'Plan du site', + 'About Mageia' => 'À propos de Mageia', + 'Projects' => 'Projets', + 'News' => 'Actualités', + 'Downloads' => 'Téléchargements', + '2 (May 2012)' => '2 (mai 2012)', + '1 (June 2011)' => '1 (juin 2011)', + 'Download mirrors' => 'Serveurs miroirs', + 'Support' => 'Aide', + 'Community' => 'Communauté', + 'Software updates' => 'Mises à jour', + 'Product lifecycle' => 'Durée de vie', + 'Calendar' => 'Calendrier', + 'Contribute' => 'Contribuer', + 'About you' => 'Et vous', + 'Your Mageia id' => 'Votre compte Mageia', + 'Privacy policy' => 'Respect de la vie privée', + 'How to contribute?' => 'Comment contribuer ?', + 'Why contribute?' => 'Pourquoi contribuer ?', + 'Donate' => 'Dons', + 'Supporters' => 'Soutiens', + 'Governance' => 'Gouvernance', + 'Board' => 'Bureau', + 'Council' => 'Conseil', + 'Teams' => 'Équipes', + 'Values' => 'Principes', + 'Code of conduct' => 'Code de conduite', + 'Constitution' => 'Statuts', + 'Members' => 'Membres', + 'Reports' => 'Rapports', + 'Timeline' => 'Chronologie' + ) +);
\ No newline at end of file diff --git a/en/map/map.css b/en/map/map.css new file mode 100644 index 000000000..e82fa9d6f --- /dev/null +++ b/en/map/map.css @@ -0,0 +1,60 @@ +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; + alist-style-position: inside; + padding-left: 2em; +} +ul.map-bl > li { margin: 0; padding: 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: 200px; + 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 @@ -0,0 +1 @@ +../en/map
\ No newline at end of file diff --git a/map/index.php b/map/index.php new file mode 100644 index 000000000..d04f42edd --- /dev/null +++ b/map/index.php @@ -0,0 +1,4 @@ +<?php + +require_once '../langs.inc.php'; +relocate($langs, 'map/'); |