aboutsummaryrefslogtreecommitdiffstats
path: root/en/index.php
blob: 5bcf30753ecdc05daacb9194eca129241b01b995 (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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
<?php
/**
*/
define('HLANG', true);
define('ALIGNMENT', 'Center');
require '../langs.php';
$dictionary = read_translation_file($locale, array('index', 'news', 'common_footer'));

?><!DOCTYPE html>
<html dir="ltr" lang="<?php echo $locale; ?>">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title><?php _g('Home of the Mageia project'); ?></title>
    <meta name="description" content="<?php _g('Mageia is a community-based Linux distribution, for desktop & server.'); ?>">
    <meta name="keywords" content="<?php _g('linux, mageia, free software, operating system, computer, laptop, desktop, server, headless, device, mobile, mandriva, mandrake'); ?>">
    <link type="text/plain" rel="author" href="/humans.txt">
    <?php
    foreach ($langs as $l => $name)
        if ($l != $locale)
            echo sprintf('<link rel="alternate" hreflang="%s" href="//www.mageia.org/%s/">', $l, $l);
    ?>
    <link rel="alternate" type="application/rss+xml" title="<?php _g('Mageia Blog (English)'); ?>" href="<?php _g('https://blog.mageia.org/en/?feed=rss'); ?>">
    <?php require '../analytics.php'; ?>
    <?php echo common_header(); ?>
    <style>

    hr { display: none; }
    ol, ul { margin: 0; padding: 0; list-style: none; }
    h1, h2 { font-size: 3rem; margin-top: 0; color: #fff !important; }
    #b1 { color: #fff !important; }

    a[hreflang]:after { color:#d0d0ff; font-style:italic; content: "\A0["attr(hreflang)"]"; }

    body {background:  #1c5f89;}
    #down {background:  #ffffff;}

    #master {
        padding: 2em;
        border: 1px solid red;
        margin: 2em;
        display: none;
    }

    #up, #down { margin: 0; padding: 0; }

    #up {
        padding-bottom: 0px;
        color: #fff;
        text-shadow: 0 0 1px #333;
        background:  #1c5f89;
    /*
        background: -webkit-radial-gradient(20% 350px, circle cover, #3494D3 0%, #2383C2 50%);
        background: -moz-radial-gradient(26% 370px, circle cover, #3494D3 0%, #2383C2 50%);
        background: -o-radial-gradient(20% 350px, circle cover, #3494D3 0%, #2383C2 50%);
        background: radial-gradient(20% 350px, circle cover, #3494D3 0%, #2383C2 50%);
    */
    }

    #up .container {
        padding-bottom: 40px;
    }

    ul#dl li { margin-bottom: 14px; }
    #dl-btn {
        display: block;
        color: #000;
        text-decoration: none;
        width: 280px;
        background: #E8EBEE;
        padding: 20px 20px 15px 20px;
        border-radius: 4px;
        text-shadow: none;
        box-shadow: 0 0 1px #333;
        /*
        background: #ff6020;
        background: -webkit-linear-gradient(top, #ff6600 0%, orange 100%);
        background: -moz-linear-gradient(top, #ff3000 0%, orange 100%);
        background: -o-linear-gradient(top, #ff3000 0%, orange 100%);
        background: linear-gradient(top, #ff3000 0%, orange 100%);
        /**/
    }
    #dl-btn-mageia {
        background: url(/g/3/logo_web.png) no-repeat;
        width: 204px;
        height: 82px;
        display: block;
        color: transparent;
        margin-bottom: 10px;
    }
    span.dl-btn {
        display: block;
    }
    span.dl-btn span.low {
        color: #777;
    }
    p.dl-info {
        padding: 0 20px;
        font-size: 85%;
    }
    p.dl-info a {
        color: #fff;
        text-shadow: none;
        text-decoration: none;
    }
    .dl-btn-other {
        display: block;
        width: 280px;
        padding: 10px 20px 10px 20px;
        background: rgba(255,255,255, 0.1);
        border-radius: 4px;
        color: #ddeeff;
        text-shadow: none;
        text-decoration: none;
        font-size: 85%;
    }
    .dl-btn-other:hover {
        background: rgba(255,255,255, 0.2);
        color: #fff;
    }
    #dl-btn:hover { box-shadow: 0 0 10px rgba(255,255,255,1); }
    #dl-btn:active { border-radius: 0; }

    #fnotes {
        text-align: center;
        font: 85%/1.2 Verdana,Arial,sans-serif;
        color: #f0f0f0;
    }
    #fnotes a { color: #aaa; text-decoration: none; }
    .free-dl { color: green; font-weight: bold; }
    
    #newslist {
        display: block;
        padding: 5px 10px;
        margin: 0px 70px;
        background: rgba(255,255,255, 0.1);
        border-radius: 4px;
        color: #ddeeff;
        text-shadow: none;
        font-size: 120%;
    }
    #newslist a {
        color: #ddeeff;
        text-decoration: none;
    }
    #newslist a:hover { color: #ffffff; }
    

    /* Landscape phones and down */
    @media (max-width: 480px) {}

    /* Landscape phone to portrait tablet */
    @media (max-width: 768px) {
        #newslist { margin: 0px; }
    }

    /* Portrait tablet to landscape and desktop */
    @media (max-width: 1000px) {
        h2 { margin: 0 0 .3em; line-height: 1.2; font-size: 200%; }

        ul#p { font-size: 90%; list-style: circle; padding: 0 0 0 2em; margin: 0; }
        #up { padding-bottom: 0; }
        #up > .container { padding: 1em; }
        #b1 { margin: 0; padding: 0 0 1em 0; }
        #navb li { margin: 1em 0 0 1em; float: left; }
        #navb li a {
            display: block;
            width: 222px;
            padding: 10px 20px 10px 20px;
            background: rgba(50,160,200, 0.1);
            border-radius: 4px;
            color: #68a;
            text-shadow: none;
            text-decoration: none;
            font-size: 75%;
        }
        .dl-btn-other:hover {
            background: rgba(255,255,255, 0.2);
            color: #fff;
        }
        #fnotes { clear: both; padding: 2em; text-align: left; }
    }

    @media (min-width: 1000px) {
        h2 { margin-bottom: 0.3em; }
        ul#p li:before { content: " > "; }
        #up {
            background: url(/g/7/background.png) no-repeat center;
            background-size: cover
        }
        #b1 { padding: 33px 70px 70px 70px; }
        #b2 { padding-left: 70px}

        #navb {
            padding: 0;
            margin: 0 auto;
            display: table;
            border-radius: 4px;
            margin-bottom: 20px;
        }
        #navb li {
            display: table-cell;
            padding: 0;
            border-right: 1px solid #f0f0f0;
        }
        #navb li:last-child { border: none; }
        #navb a {
            text-decoration: none;
            padding: 20px 1em 20px 1em;
            display: block;
            min-width: 80px;
            text-align: center;
            color: #444;
        }
        #navb a:hover {
            color: #2383C2;
        }
    }
    @media (min-width: 1200px) {}
    </style>
</head>
<body>
    <?php echo $hsnav?>
<div id="master">
    <h1><a href="about/"><?php _g('Mageia, a free, community-based Linux distribution for desktop & server.'); ?></a></h1>
</div>

<div id="up">
    <div class="container">
        <div>
        <?php
            include '../lib/news.php';
            $loc_planet_url = _r('https://planet.mageia.org/en/');
            $loc_blog_url   = _r('https://blog.mageia.org/en/');
            $eng_planet_url = 'https://planet.mageia.org/en/';
            $eng_blog_url   = 'https://blog.mageia.org/en/';
            $fresh_blog_post_titles = prepare_fresh_blog_post_titles($eng_planet_url, $eng_blog_url, $loc_planet_url, $loc_blog_url, 1, 1);
            $fresh_loc_posts     = $fresh_blog_post_titles[1];
            $num_fresh_loc_posts = $fresh_blog_post_titles[2];
            $fresh_eng_posts     = $fresh_blog_post_titles[4];
            $first_source        = $fresh_blog_post_titles[5];
            $num_fresh_eng_posts = count($fresh_eng_posts);
            if (0 < $num_fresh_loc_posts || 0 < $num_fresh_eng_posts) {
                $prefix  = '<span style="font-weight: bold;">';
                if ($first_source == 1) {
                    $prefix .= sprintf(_r('Latest news from our <a href="%s">localized planet</a>:'), $loc_planet_url);
                } else if ($first_source == 2) {
                    $prefix .= sprintf(_r('Latest news from our <a href="%s">localized blog</a>:'), $loc_blog_url);
                } else if ($first_source == 3) {
                    $prefix .= sprintf(_r('Latest news from our <a href="%s">English planet</a>:'), $eng_planet_url);
                } else if ($first_source == 4) {
                    $prefix .= sprintf(_r('Latest news from our <a href="%s">English blog</a>:'), $eng_blog_url);
                }
                $prefix .= '</span> ';

                if (0 < $num_fresh_loc_posts) {
                    show_feed($locale, null, '', '', 0, null, true, $prefix, $fresh_loc_posts);
                } else if (0 < $num_fresh_eng_posts) {
                    show_feed($locale, null, '', '', 0, null, true, $prefix, $fresh_eng_posts);
                }
            }
        ?>
        </div>
        <div class="row">
        <div class="col">
        <div id="b1">
            <h2><?php _g('Change your perspective'); ?></h2>
            <ul id="p"><?php
                _g('Stable, secure operating system for desktop &amp; server', null, 'li');
                _g('Free Software, coproduced by hundreds of people', null, 'li');
                _g('Elected governance, nonprofit organization', null, 'li');
                _g('You can be part of it', null, 'li');
            ?></ul>
        </div>
        <div id="b2">
            <ul id="dl">
                <li><a href="/<?php echo $locale ?>/downloads/" id="dl-btn">

                        <span id="dl-btn-mageia">Mageia</span>
                        <span style="font-size: 32px; color: green; float: right;"></span>
                        <span class="dl-btn free-dl"><?php _g('Mageia 7.1'); /* _g('Mageia 7.2'); */?></span>
                        <span class="dl-btn"><?php _g('released in July 2019'); ?></span>

                    </a>
                    <p class="dl-info">
                        <?php _g('<a href="%s" hreflang="en">Release notes</a>', array(_r('https://wiki.mageia.org/en/Mageia_7_Release_Notes'))); ?>,
                        <?php _g('<a href="%s" hreflang="en">errata</a>', array(_r('https://wiki.mageia.org/en/Mageia_7_Errata'))); ?>.


                    </p>
                </li>
                <li><a href="contribute/" class="dl-btn-other"><?php _g('<strong>Get involved</strong> in the next version'); ?></a>
        </li> 
        <li><a href="/downloads/prerelease/" class="dl-btn-other"><?php _g('Test'); ?> Mageia 8 beta1</a></li>

            </ul>
        </div>
       </div><!--col-->
  </div><!--row-->
    </div>
</div>
<?php echo common_footer($locale); ?>
</body>
</html>