Merge pull request #6494 from atm-florian/dev_easter_eggs_commit_strip

new : hidden easter egg to display commitstrip strip on login page
This commit is contained in:
Laurent Destailleur 2017-03-10 11:55:39 +01:00 committed by GitHub
commit 6484fb2a38

View File

@ -239,6 +239,18 @@ if (isset($conf->file->main_authentication) && preg_match('/openid/',$conf->file
</div></div>
<?php
}
if (!empty($conf->global->MAIN_EASTER_EGG_COMMITSTRIP)) {
if (substr($langs->defaultlang,0,2)=='fr') {
$xml = simplexml_load_file("http://www.commitstrip.com/fr/feed/");
} else {
$xml = simplexml_load_file("http://www.commitstrip.com/en/feed/");
}
$little = $xml->channel->item[0]->children('content',true);
print $little->encoded;
}
?>
<?php if ($main_home)