aboutsummaryrefslogtreecommitdiffstats
path: root/en/map/index.php
blob: 107ed3ba1761e39d902837e43e58382f513c5a07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<?php
define('HLANG', true);
define('ALIGNMENT', 'Center');
require '../../langs.php';
$dictionary = read_translation_file($locale, array('map', 'common_footer'));

$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' => _r('https://wiki.mageia.org/en/Org'),
                'i' => array(
                    array('t' => _r('Board'),   'l' => _r('https://wiki.mageia.org/en/Org_Board')),
                    array('t' => _r('Council'), 'l' => _r('https://wiki.mageia.org/en/Org_Council')),
                    array('t' => _r('Teams'),   'l' => _r('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('6 (July 2017)'),      'l' => '/{L}/6/'),
            array('t' => _r('5 (June 2015)'),      '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('Alternative Downloads'),      'l' => '/{L}/downloads/alternative/'),
            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' => _r('https://wiki.mageia.org/en/Commercial_vendors')),
            array('t' => _r('Compatible hardware'),  'l' => '/{L}/support/'), // /hardware
            array('t' => _r('FAQ'),                  'l' => _r('https://wiki.mageia.org/en/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' => _r('https://wiki.mageia.org/en/Mailing_lists')),
            array('t' => 'IRC',               'l' => _r('https://wiki.mageia.org/en/IRC')),
            array('t' => _r('Forums'),        'l' => _r('https://forums.mageia.org/')),
            array('t' => 'Wiki',              'l' => _r('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' => _r('https://wiki.mageia.org/en/Privacy_policy'))
        )
    )
);
$t_li1 = '<li class="col-12 col-sm-6 col-md-4 col-xl-2 list-unstyled pb-2"><h2 id="%s"><a href="%s">%s</a></h2> <ul class="p-0">%s</ul></li>';
$t_li2 = '<li><a href="%s">%s</a> %s</li> ';
$t_li3 = '<li class="list-inline-item badge badge-info"><a class="p-1 text-white" href="%s">%s</a></li> ';

$sMap = '<ul id="map" class="row m-0 p-0">';
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 class="list-inline">';
            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/">
    <?php include '../../analytics.php'; ?>
    <?php echo common_header(); ?>
</head>
<body class="map">
    <?php echo $hsnav; ?>
    <h1 id="mgnavtitle"><?php _g('Site Map'); ?></h1>
    <div class="container mt-4" id="">
        <?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>
<?php echo common_footer($locale); ?>
</body>
</html>