index.php 13.7 KB
Newer Older
1
<?php
2 3 4 5 6

$language = "";
$title = _("VLC: Official site - Free multimedia solutions for all OS!");
$body_color = "blue";
$new_design = true;
7 8
$additional_js = array("/js/slick-init.js", "/js/slick.min.js");
$additional_css = array("/style/slick.min.css");
David Loiret's avatar
David Loiret committed
9
$show_sponsors_carousel = true;
10 11 12 13 14 15 16 17 18

require($_SERVER["DOCUMENT_ROOT"] . "/include/language.php");
require($_SERVER["DOCUMENT_ROOT"] . "/include/header.php");
require($_SERVER["DOCUMENT_ROOT"] . "/include/os-specific.php");
require($_SERVER["DOCUMENT_ROOT"] . "/include/package.php");
include($_SERVER["DOCUMENT_ROOT"] . "/include/news.php");
include($_SERVER["DOCUMENT_ROOT"] . "/include/magpierss/rss_fetch.inc");

/* Main page */
19
?>
20 21

<div class="container">
22
    <?php drawVLCdownloadSection(); ?>
23 24
</div>

25
<div class="container">
26
    <h1><?php echo _("Other projects from VideoLAN"); ?></h1>
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
27

28 29 30
    <div class="row">
        <div class="col-md-5 padding-bottom-24">
            <div class='audienceCallout'><?php echo _("For Everyone"); ?></div>
31 32
            <div class="row">
                <div class="col-sm-6 col-md-12 media margin-bottom">
33 34 35 36 37 38 39
                    <a href='/vlc/'>
                        <div class="media-left media-middle">
                            <?php image('VLC-IconSmall.png', "VLC icon", "media-object"); ?>
                        </div>
                        <div class="media-body">
                            <span class='productName'>VLC media player</span>
                            <span class='productDescription'><?php echo
40
                            _("VLC is a powerful media player playing most of the media codecs and video formats out there."); ?>
41 42
                            </span>
                        </div>
43
                    </a>
44 45
                </div>
                <div class="col-sm-6 col-md-12 media margin-bottom">
46 47 48 49 50 51 52 53 54 55
                    <a href='/vlmc/'>
                        <div class="media-left media-middle">
                            <?php image('VLMC-IconSmall.png', "VLMC icon", "media-object"); ?>
                        </div>
                        <div class="media-body">
                            <span class='productName'>VLMC</span>
                            <span class='productDescription'>
                                <?php echo _("VideoLAN Movie Creator is a non-linear editing software for video creation."); ?>
                            </span>
                        </div>
56
                    </a>
57 58
                </div>
            </div>
59
        </div>
60 61
        <div class="clearfix visible-sm-block"></div>
        <div class="col-sm-6 col-md-5 padding-bottom-24">
62 63 64 65 66 67 68 69 70 71 72 73 74
            <div class='audienceCallout'><?php echo _("For Professionals"); ?></div>
            <ul class="media-list">
                <li class="media">
                    <a href='/projects/dvblast.html'>
                        <div class="media-left media-middle">
                            <?php image('DVBlast-IconSmall.png', "DVBlast Icon", "media-object"); ?>
                        </div>
                        <div class="media-body">
                            <span class='productName'>DVBlast</span>
                            <span class='productDescription'>
                                <?php echo _("DVBlast is a simple and powerful MPEG-2/TS demux and streaming application."); ?>
                            </span>
                        </div>
75
                    </a>
76 77 78 79 80 81 82 83 84
                </li>
                <li class="media no-img">
                    <a href='/projects/multicat.html'>
                        <div class="media-body">
                            <span class='productName'>multicat</span>
                            <span class='productDescription'>
                                <?php echo _("multicat is a set of tools designed to easily and efficiently manipulate multicast streams and TS."); ?>
                            </span>
                        </div>
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
85
                    </a>
86 87 88 89 90 91 92 93 94 95 96 97
                </li>
                <li class="media">
                    <a href='/developers/x264.html'>
                        <div class="media-left media-middle">
                            <?php image('x264-IconSmall.png', "x264 Icon", "media-object"); ?>
                        </div>
                        <div class="media-body">
                            <span class='productName'>x264</span>
                            <span class='productDescription'>
                                <?php echo _("x264 is a free application for encoding video streams into the H.264/MPEG-4 AVC format."); ?>
                            </span>
                        </div>
98
                    </a>
99 100
                </li>
            </ul>
101
        </div>
102

103
        <div class="col-sm-6 col-md-2 padding-bottom-24">
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
104
            <div class='audienceCallout'><?php echo _("For Developers"); ?></div>
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
            <div class="row">
                <div class="col-xs-4 col-sm-12">
                    <a href='/developers/libdvdcss.html' class='noUnderline'>
                        <span class='productName padding-bottom-15'>libdvdcss</span>
                    </a>
                    <a href='/developers/libdvbpsi.html' class='noUnderline'>
                        <span class='productName padding-bottom-15'>libdvdpsi</span>
                    </a>
                    <a href='/vlc/libvlc.html' class='noUnderline'>
                        <span class='productName padding-bottom-15'>libVLC</span>
                    </a>
                </div>
                <div class="col-xs-4 col-sm-12">
                    <a href='/developers/libbluray.html' class='noUnderline'>
                        <span class='productName padding-bottom-15'>libbluray</span>
                    </a>
                    <a href='/developers/libaacs.html' class='noUnderline'>
                        <span class='productName padding-bottom-15'>libaacs</span>
                    </a>
                </div>
                <div class="col-xs-4 col-sm-12">
                    <a href='/developers/libdca.html' class='noUnderline'>
                        <span class='productName padding-bottom-15'>libdca</span>
                    </a>
                    <a href='/developers/bitstream.html' class='noUnderline'>
                        <span class='productName'>biTStream</span>
                    </a>
                </div>
            </div>
134
        </div>
135
    </div>
136 137 138
    <a href='/projects/' class="extra-info-link2">
        <?php echo _("View All Projects"); ?>
    </a>
139 140 141 142 143 144 145 146 147 148 149
</div>
<div class="container" style='padding-top: 20px;'>
    <h1><?php echo _("Help us out!"); ?></h1>

    <div class="row">
        <div class="col-md-4 padding-bottom-24">
            <div class='audienceCallout'><?php echo _("donate"); ?></div>
            <ul class="media-list">
                <li class="media">
                    <div class="media-left media-top">
                        <?php image("cash.png", "Donate to VLC", "media-object"); ?>
150
                    </div>
151 152 153 154 155 156 157 158 159
                    <div class="media-body">
                        <span class="productDescription">
                            <?php echo _("VideoLAN is a non-profit organization.") . "<br />";
                            echo _(" All our costs are met by donations we receive from our users. If you enjoy using a VideoLAN product, please donate to support us."); ?>
                            <br/>
                            <a href='/contribute.html' class='extraInfoLink' style='text-transform: uppercase; font-size: 13px; display: block; padding-top: 10px; clear: none'>
                                <?php echo _("Learn More"); ?>
                            </a>
                        </span>
160
                    </div>
161 162 163 164 165 166 167 168 169
                </li>
            </ul>
        </div>
        <div class="col-md-4 padding-bottom-24">
            <div class='audienceCallout'><?php echo _("Contribute"); ?></div>
            <ul class="media-list">
                <li class="media">
                    <div class="media-left media-top">
                        <?php image("tools.png", "Contribute Work to VLC", "media-object"); ?>
170
                    </div>
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
                    <div class="media-body">
                        <span class="productDescription">
                            <?php echo _("VideoLAN is open-source software.") . "<br />";
                            echo _("This means that if you have the skill and the desire to improve one of our products, your contributions are welcome"); ?>
                            <br/>
                            <a href='/contribute.html' class='extraInfoLink' style='text-transform: uppercase; font-size: 13px; display: block; padding-top: 10px; clear: none'>
                            <?php echo _("Learn More"); ?></a>
                        </span>
                    </div>
                </li>
            </ul>
        </div>
        <div class="col-md-4 padding-bottom-24">
            <div class='audienceCallout'><?php echo _("Spread the Word"); ?></div>
            <ul class="media-list">
                <li class="media">
                    <div class="media-left media-top">
                        <?php image("heart.png", "Spread VLC", "media-object"); ?>
                    </div>
                    <div class="media-body">
                        <span class="productDescription">
                            <?php echo _("We feel that VideoLAN has the best video software available at the best price: free. If you agree please help spread the word about our software."); ?>
                            <br/>
                            <a href='/contribute.html' class='extraInfoLink' style='text-transform: uppercase; font-size: 13px; display: block; padding-top: 10px; clear: none'>
                                <?php echo _("Learn More"); ?>
                            </a>
                        </span>
                    </div>
                </li>
            </ul>
201
        </div>
202 203 204
    </div>
</div>

205 206

<?php /* Begin news items */ ?>
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
207

208 209
<div class="container">
    <div class="row">
210

211 212 213 214
        <div class="col-md-6">
            <h1 style='margin-bottom: 13px;'><a href="/news.html"><?php echo _("News &amp; Updates"); ?></a>
            </h1>
            <?php shownews("full", 5); ?>
David Loiret's avatar
David Loiret committed
215
            <a href="/news.html" class="extra-info-link2 padding-top"><?php echo _("More News"); ?></a>
216 217 218 219
        </div>

        <div class="col-md-6">
            <h1 style='margin-bottom: 13px;'><a href="http://planet.videolan.org"><?php echo _("Development Blogs"); ?></a></h1>
220

221
            <div lang="en">
222 223 224 225 226 227 228 229 230 231
                <?php
                define('MAGPIE_INPUT_ENCODING', 'UTF-8');
                define('MAGPIE_OUTPUT_ENCODING', 'UTF-8');
                $rss = fetch_rss("http://planet.videolan.org/rss10.xml");
                $i = 0;
                $chars_per_entry = 240;
                $entries_per_column = 4;
                $columns = 1;
                foreach ($rss->items as $item) {
                    if (isset($item['link'])) {
Christoph Miebach's avatar
Christoph Miebach committed
232
                        echo '<p dir="ltr" style="text-align:left;">';
233
                        echo "<b><a href=\"" . $item['link'] . '" style="color: black;">' . htmlentities($item['title'], ENT_COMPAT, "UTF-8") . "</a></b></p>";
234
                        echo '<p dir="ltr" style="border-bottom: 1px dashed #CCC;padding-bottom:5px;margin-bottom:5px; text-align:left;">';
235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253
                        echo substr(strip_tags(html_entity_decode($item['content']['encoded'], ENT_COMPAT, "UTF-8")), 0, $chars_per_entry);
                        echo "<a href=\"" . $item['link'] . "\">[...]</a><br/>";
                        echo "</p>";
                        $i++;
                        if ($i >= $columns * $entries_per_column) break;
                        if ($i % $entries_per_column == 0) echo "</td><td>";
                    }
                }
                ?>
            </div>
            <?php /* Social and other BS */ ?>
            <div class="overflow-hidden">
                <h1 style="position:relative">
                    <?php echo _("Social media"); ?>
                    <span class="ltrFloatRight" <?php if (isRTL($language)) {
                        echo ' style="padding-left: 20px;"';
                    } else {
                        echo ' style="padding-right: 20px;"';
                    } ?>>
254 255 256 257 258 259
                        <a class="social" href="http://www.twitter.com/videolan">
                            <i class="icon-twitter"></i>
                        </a>
                        <a class="social" href="http://www.facebook.com/vlc.media.player">
                            <i class="icon-facebook"></i>
                        </a>
260 261
                    </span>
                </h1>
262
                <div lang=""><!-- tweets are often english, but some are french and we even retweeted arabic or similar, so the empty lang is intentional -->
263 264 265 266 267 268 269
                <?php
                $rss = fetch_rss("http://www.videolan.org/_twitter/userrss.php?xrt=0&xrp=1&c=40");
                $i = 0;
                $chars_per_entry = 240;
                $entries_per_column = 5;
                $columns = 1;
                foreach ($rss->items as $item) {
Christoph Miebach's avatar
Christoph Miebach committed
270
                    echo '<p dir="ltr" style="border-bottom: 1px dashed #CCC;padding-bottom:5px;margin-bottom:5px; text-align: left;">';
271 272 273 274 275 276 277
                    echo preg_replace(array('^(http://\S+)^is', '^(https://\S+)^is'), '<a href="$1">$1</a>', str_replace("videolan:", "<b>" . date("Y-m-d h:i", strtotime($item['pubdate'])) . "</b>", $item['title']));
                    echo "</p>";
                    $i++;
                    if ($i >= $columns * $entries_per_column) break;
                    if ($i % $entries_per_column == 0) echo "</td><td>";
                }
                ?>
278
                </div>
279 280 281
            </div>
        </div>
    </div>
282
</div>
283
<?php
284
footer('$Id$', $alternate_lang);
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
285 286
sf_money();
?>