Changeset 65642 in spip-zone
- Timestamp:
- Sep 6, 2012, 8:21:11 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/spip-bible/trunk/bible_fonctions.php
r65640 r65642 249 249 return afficher_references($t[0],$t[1],$t[2],$t[3],$t[4],$traduction,$separateur,$lang,$nommer_trad); 250 250 } 251 function afficher_references($livre,$cd,$vd,$cf,$vf,$trad,$separateur,$lang,$nommer_trad='true',$propre='oui' ){251 function afficher_references($livre,$cd,$vd,$cf,$vf,$trad,$separateur,$lang,$nommer_trad='true',$propre='oui',$url='oui'){ 252 252 $tableau_traduction = bible_tableau('traduction'); 253 253 $tableau_livres = bible_tableau('livres'); 254 $trad = $tableau_traduction[strtolower($trad)]['traduction']; 254 $trad = strtolower($trad); 255 $traduction = $tableau_traduction[$trad]['traduction']; 255 256 256 257 $livre_long = $tableau_livres[$lang][$livre] ; … … 260 261 $livre = str_replace('3','3 ',$livre); 261 262 262 $nommer_trad!='false' ? $bloc_fin = ' ({'.$trad.'})' : $bloc_fin = ''; 263 263 264 if ($nommer_trad=='true'){ 265 if ($url=='oui'){ 266 $url = bible_url_passage($livre,$cd,$vd,$cf,$vf,$trad,$lang); 267 $bloc_fin = " ({[$traduction->$url]})"; 268 } 269 else{ 270 $bloc_fin = " ({$traduction})" ; 271 } 272 } 273 else { 274 $bloc_fin=''; 275 } 264 276 if ($cd==$cf and $vd=='' and $vf==''){ 265 277 … … 288 300 289 301 $chaine.= $bloc_fin; 302 290 303 291 304 if ($propre!='non'){$chaine = propre($chaine);} 305 292 306 return $chaine; 293 307 308 } 309 function bible_url_passage($livre,$chapitre_debut,$verset_debut,$chapitre_fin,$verset_fin,$traduction,$lang){ 310 $tableau_traduction = bible_tableau('traduction'); 311 312 $gateway = $tableau_traduction[$traduction]['gateway']; 313 $wissen = $tableau_traduction[$traduction]['wissen']; 314 $unbound = $tableau_traduction[$traduction]['unbound']; 315 $lire = $tableau_traduction[$traduction]['lire']; 316 317 if ($lire){ 318 include_spip('traduction/lire'); 319 $url = generer_url_passage_lire($livre,$chapitre_debut,$verset_debut,$chapitre_fin,$verset_fin,$lire,$lang); 320 } 321 else if ($unbound){ 322 include_spip('traduction/unbound'); 323 $url = generer_url_passage_unbound($livre,$chapitre_debut,$verset_debut,$chapitre_fin,$verset_fin,$unbound,$lang); 324 } 325 else if ($wissen){ 326 $isaie == true ? $livre = str_replace('Es','Is',$livre) : $passage = $passage; 327 include_spip('traduction/wissen'); 328 $url = generer_url_passage_wissen($livre,$chapitre_debut,$verset_debut,$chapitre_fin,$verset_fin,$wissen,$lang); 329 330 } 331 332 else if ($gateway){ 333 include_spip('traduction/gateway'); 334 $url = generer_url_passage_gateway($livre,$chapitre_debut,$verset_debut,$chapitre_fin,$verset_fin,$gateway,$lang); 335 } 336 else{ 337 include_spip('traduction/'.$traduction); 338 $fonction= 'generer_url_passage_'.$traduction; 339 $url = $fonction($livre,$chapitre_debut,$verset_debut,$chapitre_fin,$verset_fin,$lang); 340 } 341 342 return $url; 294 343 } 295 344 function traduction_longue($i){
Note: See TracChangeset
for help on using the changeset viewer.