aboutsummaryrefslogtreecommitdiffstats
path: root/en/timeline/index.php
blob: 4de3a8b9c61740060b01afebabec75e10748ea26 (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
<?php
define('HLANG', true);
define('ALIGNMENT', 'Center');
require '../../langs.php';
$dictionary = read_translation_file($locale, array('timeline', 'common_footer'));
$rtl = is_locale_rtl($locale);

/**
    * Output all events
    *
    * @param array $events
    *
    * @return string $timeline html code of all events
*/
function list_events($events = array(), $rtl = false)
{
    $indent = "\t\t\t\t";
    $timeline = '';
    foreach ($events as $year => $events_in_year) {
        $timeline .= "$indent<li class=\"tliy\">\n";
        $timeline .= "$indent\t<h2 " . ($rtl ? 'style="text-align: right;"' : '') . ">$year</h2>\n";
        $timeline .= "$indent\t<ul class=\"hl\">\n";
        foreach ($events_in_year as $month => $events_in_month) {
            $timeline .= "$indent\t\t<li class=\"tlim\">\n";
            $timeline .= "$indent\t\t\t<h3 " . ($rtl ? 'style="text-align: right;"' : '') . ">$month</h3>\n";
            $timeline .= "$indent\t\t\t<ul class=\"hl\">\n";
            foreach ($events_in_month as $event) {
                $timeline .= "$indent\t\t\t\t<li " . ($rtl ? 'style="text-align: right;"' : '') . " class=\"tlie\">$event</li>\n";
            }
            $timeline .= "$indent\t\t\t</ul>\n";
            $timeline .= "$indent\t\t</li>\n";
        }
        $timeline .= "$indent\t</ul>\n";
        $timeline .= "$indent</li>\n";
    }
    return $timeline;
}

$events = array(
    _r('2019') => array(
        _r('June') => array(sprintf(_r('<a href=%s>Mageia 7</a> is released.'), '"../7/"')),
    ),
    _r('2018') => array(
        _r('October') => array(sprintf(_r('<a href=%s>Mageia 6</a> updated to 6.1.'), '"../6/"')),
    ),
    _r('2017') => array(
        _r('July') => array(sprintf(_r('<a href=%s>Mageia 6</a> is released.'), '"../6/"')),
        _r('February') => array(_r('Seventh General Assembly during FOSDEM in Brussels, Belgium.')),
    ),
    _r('2016') => array(
        _r('December') => array(sprintf(_r('<a href=%s>Mageia 5</a> updated to 5.1.'), '"../5/"')),
        _r('February') => array(_r('Sixth General Assembly during FOSDEM in Brussels, Belgium.')),
    ),
    _r('2015') => array(
        _r('June') => array(sprintf(_r('<a href=%s>Mageia 5</a> is released.'), '"../5/"')),
        _r('February') => array(_r('Fifth General Assembly during FOSDEM in Brussels, Belgium.')),
    ),
    _r('2014') => array(
        _r('June') => array(sprintf(_r('<a href=%s>Mageia 4</a> updated to 4.1.'), '"../4/"')),
        _r('February') => array(
            _r('<a href="/4/">Mageia 4</a> is released.'),
            _r('Fourth General Assembly during FOSDEM in Brussels, Belgium.'),
        ),
    ),
    _r('2013') => array(
        _r('May') => array(_r('<a href="/3/">Mageia 3</a> is released.')),
        _r('February') => array(_r('Third General Assembly during FOSDEM in Brussels, Belgium.')),
    ),
    _r('2012') => array(
        _r('May') => array(_r('<a href="/2/">Mageia 2</a> is released.')),
        _r('February') => array(_r('Second General Assembly during FOSDEM in Brussels, Belgium.')),
    ),
    _r('2011') => array(
        _r('June') => array(_r('<a href="/1/">Mageia 1</a> is released.')),
        _r('February') => array(_r('First General Assembly during FOSDEM in Brussels, Belgium.')),
        _r('January') => array(_r('Build system is ready to run for the first alpha ISOs.')),
    ),
    _r('2010') => array(
        _r('End of year') => array(
            _r('With an incredible response, first donations and discussions abound.'),
            _r('Project gets structured, governance takes slowly shape (first board, teams).'),
        ),
        _r('September') => array(
            _r('Mageia starts as a <a href="../about/2010-sept-announcement.html">fork of Mandriva Linux</a>.'),
            _r('Mageia.Org is registered in Paris, France.'),
        ),
    ),
);
?>
<!DOCTYPE html>
<html <?php echo $rtl ? 'dir="rtl"' : 'dir="ltr"'?> lang="<?php echo $locale; ?>">
<head>
    <meta charset="utf-8">
    <title><?php _g('Mageia Timeline')?></title>
    <?php echo common_header(); ?>
    <style>
    .para {padding-top: 2em;}
    hr { margin-top: 2em; }
    #tl0 {
        list-style: none;
        margin: 0; padding: 0;
    }
    .tliy { list-style: none; }
    .tliy h2 { border-bottom: 1px solid #ddd; }
    .tlim { list-style: none; padding-bottom: 0.8em;}
    .tlim h3 { color: #777; font-size: 130%; }
    .tlie { margin-left: 4em; }
    </style>
    <link rel="canonical" href="/<?php echo $locale; ?>/timeline/">
    <?php include '../../analytics.php'; ?>
</head>
<body class="about">
    <?php echo $hsnav; ?>
    <h1 id="mgnavtitle"><?php _g('Mageia Timeline')?></h1>
    <div id="doc" class="yui-t7" style="margin-bottom: 0px;">
        <div id="bd" role="main">
            <div class="yui-g"><div class="para">
            <ul class="hl" id="tl0">
<?php echo list_events($events, $rtl); ?>
            </ul>
         </div></div>
      </div>
   </div>
<?php echo common_footer($locale); ?>
</body>
</html>