X-Git-Url: http://git.cyclocoop.org/?p=lhc%2Fweb%2Fclavette_www.git;a=blobdiff_plain;f=www%2Fecrire%2Finc%2Flien.php;h=55fc18b0a257d583a82e3d0d7d597a56e0ad7bb1;hp=9fc5d4804f281e93aaa85362630b2f8e146ed5e1;hb=cc641eb476987612f6d6df1a5417c1c5582a8ab8;hpb=7d84a490677fb716a1fd4df260f8eab35f6a8506 diff --git a/www/ecrire/inc/lien.php b/www/ecrire/inc/lien.php index 9fc5d48..55fc18b 100644 --- a/www/ecrire/inc/lien.php +++ b/www/ecrire/inc/lien.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * Copyright (c) 2001-2016 * * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James * * * * Ce programme est un logiciel libre distribue sous licence GNU/GPL. * @@ -255,7 +255,9 @@ function traiter_modeles($texte, $doublons=false, $echap='', $connect='', $liens $lien = array( 'href' => extraire_attribut($r[0],'href'), 'class' => extraire_attribut($r[0],'class'), - 'mime' => extraire_attribut($r[0],'type') + 'mime' => extraire_attribut($r[0],'type'), + 'title' => extraire_attribut($r[0],'title'), + 'hreflang' => extraire_attribut($r[0],'hreflang') ); $n = strlen($r[0]); $a -= $n; @@ -275,7 +277,7 @@ function traiter_modeles($texte, $doublons=false, $echap='', $connect='', $liens // dans les parametres, plutot que les liens echappes if (!is_null($liens)) $params = str_replace($liens[0], $liens[1], $params); - $modele = inclure_modele($type, $id, $params, $lien, $connect, $env); + $modele = inclure_modele($type, $id, $params, $lien, $connect, $env); // en cas d'echec, // si l'objet demande a une url, // creer un petit encadre vers elle