Changeset 93821 in spip-zone
- Timestamp:
- Dec 18, 2015, 12:41:07 PM (5 years ago)
- Location:
- _plugins_/qrcode/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/qrcode/trunk/paquet.xml
r93309 r93821 2 2 prefix="qrcode" 3 3 categorie="communication" 4 version="1. 0.5"4 version="1.1.0" 5 5 etat="dev" 6 6 compatibilite="[3.0.15;3.1.*]" -
_plugins_/qrcode/trunk/qrcode_fonctions.php
r91322 r93821 42 42 } 43 43 44 function filtre_qrcode($texte,$taille=false,$ecc=false ) {44 function filtre_qrcode($texte,$taille=false,$ecc=false,$link=false) { 45 45 $taille || ( $taille = lire_config('qrcode/taille') ) || ( $taille = 1 ) ; 46 46 $ecc || ( $ecc = lire_config('qrcode/ecc') ) || ( $ecc = 'L' ) ; … … 50 50 $width = ' width="'.largeur($filename).'"'; 51 51 $height = ' height="'.hauteur($filename).'"'; 52 return "<img$class$style src=\"$filename\"$width$height alt=\"qrcode:$texte\" title=\""._T('qrcode:aide')."\"/>" ; 52 if ($link) { 53 return "<a href=\"$texte\" title=\""._T('qrcode:aide')."\"><img$class$style src=\"$filename\"$width$height alt=\"qrcode:$texte\"/></a>" ; 54 } else { 55 return "<img$class$style src=\"$filename\"$width$height alt=\"qrcode:$texte\" title=\""._T('qrcode:aide')."\"/>" ; 56 } 53 57 } 54 58 ?>
Note: See TracChangeset
for help on using the changeset viewer.