Index: trunk/www/sites/www/aether/header.php
===================================================================
--- trunk/www/sites/www/aether/header.php (revision 1553616)
+++ trunk/www/sites/www/aether/header.php (revision 1553617)
@@ -1,136 +1,155 @@
+get('cssFiles', function (ItemInterface $item) {
+ $item->expiresAfter(600);
+ $fileContent = file_get_contents('https://cdn.kde.org/aether-devel/version/manifest.json');
+ $manifestData = json_decode($fileContent, true);
+ $boostrapcss = $manifestData['aether-devel/version/bootstrap.css'];
+ $aethercss = $manifestData['aether-devel/version/aether-kde-org.css'];
+
+ return [$boostrapcss, $aethercss];
+});
+
+?>
= htmlspecialchars($pageConfig['title']); ?> - KDE.org
-
-
+
+
+
-
');
}
}
echo ('');
}
if(@include_once ("functions.inc")) {
setup_site();
if (!isset($site_locale))
{
if (isset($_GET['site_locale']))
{
$site_locale = htmlentities($_GET['site_locale']);
setcookie('site_locale', $site_locale, time()+31536000, '/', "." . $_SERVER['SERVER_NAME']);
}
else
{
if (isset($_COOKIE['site_locale']))
{
$site_locale = htmlentities($_COOKIE['site_locale']);
}
else
{
if (!isset($default_site_locale))
{
$site_locale = "en";
}
else
{
$site_locale = $default_site_locale;
}
}
}
}
// set php locale
setlocale(LC_ALL, $site_locale);
// start up our i18n stuff
startTranslation($site_locale);
}
?>