Commit 4282fd8b authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Provide alternate lang links

parent 6e945e32
......@@ -63,6 +63,12 @@ function StartHtml( $title, $color, $language,
<link rel="alternate" type="application/rss+xml" title="RSS - VideoLAN News" href="/videolan-news.rss" />
<link rel="alternate" type="application/rss+xml" title="RSS - Developers Blog" href="http://planet.videolan.org/rss20.xml" />
<?php if( isset($alternate_lang) ) {
foreach($alternate_lang as $lang) {
echo '<link rel="alternate" hreflang="'.$lang.'" href="index.'.$lang.'html" />';
}
} ?>
<link rel="stylesheet" type="text/css" href="/style/style.css" />
<?php if( isset($additional_css) ) {
......
......@@ -6,6 +6,8 @@
$additional_js = array("/js/slimbox2.js");
$additional_css= array("/js/css/slimbox2.css");
$alternate_lang = array( "fr", "de", "ru" );
require($_SERVER["DOCUMENT_ROOT"]."/include/header.php");
require($_SERVER["DOCUMENT_ROOT"]."/include/os-specific.php");
require($_SERVER["DOCUMENT_ROOT"]."/include/package.php");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment