aboutsummaryrefslogtreecommitdiffstats
path: root/en/doc/index.php
diff options
context:
space:
mode:
authorFilip Komar <filip@mageia.org>2013-12-29 15:16:44 +0000
committerFilip Komar <filip@mageia.org>2013-12-29 15:16:44 +0000
commiteaf8988c4d359e08ffa822a4c72403559f80f51f (patch)
treeb96e8f17dbc0e9372d8dd42e828d834bda513891 /en/doc/index.php
parentc534442ba3dae762a8d96e611ec0b8660fd86016 (diff)
downloadwww-eaf8988c4d359e08ffa822a4c72403559f80f51f.tar
www-eaf8988c4d359e08ffa822a4c72403559f80f51f.tar.gz
www-eaf8988c4d359e08ffa822a4c72403559f80f51f.tar.bz2
www-eaf8988c4d359e08ffa822a4c72403559f80f51f.tar.xz
www-eaf8988c4d359e08ffa822a4c72403559f80f51f.zip
links moved to arrays as preparation for further manipulation on doc entry page
Diffstat (limited to 'en/doc/index.php')
-rw-r--r--en/doc/index.php61
1 files changed, 40 insertions, 21 deletions
diff --git a/en/doc/index.php b/en/doc/index.php
index bc44cc464..77658c9bd 100644
--- a/en/doc/index.php
+++ b/en/doc/index.php
@@ -25,35 +25,54 @@ _lang_load($locale, 'documentation');
<h3>Mageia 3</h3>
<div style="float: left; margin: 2em;">
<h4><?php _e('Installer')?></h4>
- <p><a href="//doc.mageia.org/installer/3/de/content/index.html">Deutsch</a><br/>
- <a href="//doc.mageia.org/installer/3/el/content/index.html">Ελληνικά</a><br/>
- <a href="//doc.mageia.org/installer/3/en/content/index.html">English</a><br/>
- <a href="//doc.mageia.org/installer/3/es/content/index.html">Español</a><br/>
- <a href="//doc.mageia.org/installer/3/et/content/index.html">Eesti</a><br/>
- <a href="//doc.mageia.org/installer/3/fr/content/index.html">Français</a><br/>
- <a href="//doc.mageia.org/installer/3/nl/content/index.html">Nederlands</a><br/>
- <a href="//doc.mageia.org/installer/3/pt_br/content/index.html">Português do Brasil</a><br/>
- <a href="//doc.mageia.org/installer/3/ru/content/index.html">Pусский</a><br/>
- <a href="//doc.mageia.org/installer/3/uk/content/index.html">Українська</a></p>
+ <p><?php
+ $mga3_installer = array(
+ array('de', 'Deutsch'),
+ array('el', 'Ελληνικά'),
+ array('en', 'English'),
+ array('es', 'Español'),
+ array('et', 'Eesti'),
+ array('fr', 'Français'),
+ array('nl', 'Nederlands'),
+ array('pt_br', 'Português do Brasil'),
+ array('ru', 'Pусский'),
+ array('uk', 'Українська'),
+ );
+ foreach ($mga3_installer as $lng) {
+ echo sprintf('<a href="//doc.mageia.org/installer/3/%s/content/index.html">%s</a><br/>', $lng[0], $lng[1]);
+ } ?></p>
</div>
<div style="float: right; margin: 2em;">
<h4><?php _e('Control Center')?></h4>
- <p><a href="//doc.mageia.org/mcc/3/en/content/index.html">English</a><br/>
- <a href="//doc.mageia.org/mcc/3/et/content/index.html">Eesti</a><br/>
- <a href="//doc.mageia.org/mcc/3/fr/content/index.html">Français</a><br/></p>
+ <p><?php
+ $mga3_control_center = array(
+ array('en', 'English'),
+ array('et', 'Eesti'),
+ array('fr', 'Français'),
+ );
+ foreach ($mga3_control_center as $lng) {
+ echo sprintf('<a href="//doc.mageia.org/mcc/3/%s/content/index.html">%s</a><br/>', $lng[0], $lng[1]);
+ } ?></p>
</div>
<hr style="clear: both;">
<h3>Mageia 2</h3>
<div style="float: left; margin: 2em;">
<h4><?php _e('Installer')?></h4>
- <p><a href="//doc.mageia.org/installer/2/de/content/index.html">Deutsch</a><br/>
- <a href="//doc.mageia.org/installer/2/el/content/index.html">Ελληνικά</a><br/>
- <a href="//doc.mageia.org/installer/2/en/content/index.html">English</a><br/>
- <a href="//doc.mageia.org/installer/2/eo/content/index.html">Esperanto</a><br/>
- <a href="//doc.mageia.org/installer/2/fr/content/index.html">Français</a><br/>
- <a href="//doc.mageia.org/installer/2/nl/content/index.html">Nederlands</a><br/>
- <a href="//doc.mageia.org/installer/2/pt_br/content/index.html">Português do Brasil</a><br/>
- <a href="//doc.mageia.org/installer/2/uk/content/index.html">Українська</a><br/></p>
+ <p><?php
+ $mga2_installer = array(
+ array('de', 'Deutsch'),
+ array('el', 'Ελληνικά'),
+ array('en', 'English'),
+ array('eo', 'Esperanto'),
+ array('fr', 'Français'),
+ array('nl', 'Nederlands'),
+ array('pt_br', 'Português do Brasil'),
+ array('uk', 'Українська'),
+
+ );
+ foreach ($mga2_installer as $lng) {
+ echo sprintf('<a href="//doc.mageia.org/installer/2/%s/content/index.html">%s</a><br/>', $lng[0], $lng[1]);
+ } ?></p>
</div>
</div>
</div>