|
|
|
@ -246,4 +246,23 @@ if (!function_exists('thumbshot')) {
|
|
|
|
|
* @deprecated
|
|
|
|
|
*/
|
|
|
|
|
function thumbshot($url_site, $refresh=false) { return thumbsites_fichier_thumbshot($url_site, $refresh);}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function thumbsites_crediter() {
|
|
|
|
|
|
|
|
|
|
$credit = '';
|
|
|
|
|
|
|
|
|
|
$service = lire_config('thumbsites/serveur', 'apercite');
|
|
|
|
|
include_spip('serveurs/' . $service);
|
|
|
|
|
if ($fonction_url_credit = charger_fonction("{$service}_url_credit", "serveurs", true)) {
|
|
|
|
|
// On acquiert l'url de crédit du serveur
|
|
|
|
|
$url = $fonction_url_credit();
|
|
|
|
|
// On détermine le nom affché pour le serveur
|
|
|
|
|
$nom = _T('thumbsites:cfg_itm_serveur_' . $service);
|
|
|
|
|
$lien = '<a href="' . $url . '">' . $nom . '</a>';
|
|
|
|
|
|
|
|
|
|
$credit = _T('thumbsites:credit_serveur', array('lien' => $lien));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return $credit;
|
|
|
|
|
}
|