X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=www%2Fplugins-dist%2Ftextwheel%2Finc%2Flien.php;h=d5a980497d39ca446e1290165893531ac940ab78;hb=cc641eb476987612f6d6df1a5417c1c5582a8ab8;hp=3441c0c429784fb2ead88200a73a05c3643f9044;hpb=83e62ea97fafb78dde1372b78c1be4c71b5b1b58;p=lhc%2Fweb%2Fclavette_www.git diff --git a/www/plugins-dist/textwheel/inc/lien.php b/www/plugins-dist/textwheel/inc/lien.php index 3441c0c..d5a9804 100644 --- a/www/plugins-dist/textwheel/inc/lien.php +++ b/www/plugins-dist/textwheel/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. * @@ -507,7 +507,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; @@ -541,6 +543,8 @@ function traiter_modeles($texte, $doublons=false, $echap='', $connect='', $liens $contexte['lien'] = str_replace(""",'"', $lien['href']); $contexte['lien_class'] = $lien['class']; $contexte['lien_mime'] = $lien['mime']; + $contexte['lien_title'] = $lien['title']; + $contexte['lien_hreflang'] = $lien['hreflang']; } $modele = recuperer_fond("modeles/dist", $contexte, array(), $connect); }