File "audio.html"

Full path: /home/argothem/www/organecyberpresse/plugins/auto/player/v4.3.0/modeles/audio.html
File size: 1.81 KB
MIME-type: text/html
Charset: utf-8

[<!--(#REM)

	// modeles/doc_player.html

	// $LastChangedRevision: 18209 $
	// $LastChangedBy: paladin@quesaco.org $
	// $LastChangedDate: 2008-01-27 17:54:31 +0100 (dim., 27 janv. 2008) $

Modele pour <doc> modifie pour le plugin Lecteur Flash pour MP3
http://spip-zone.info/spip.php?article18

Si le document est de format mp3, afficher la vignette si elle est personnalisee
Afficher le TITRE, le DESCRIPTIF suivi du lecteur flash permettant de faire jouer ce fichier.

Sinon, utiliser le comportement normal.


-->]
<BOUCLE_audio (DOCUMENTS types_documents) {id_document=#ENV{id,#ENV{id_document}}} {tout}>
[(#SET{legende,#INCLURE{fond=modeles/document_legende, env}|trim})]
#SET{player,#ENV{player,#CONFIG{player/player_mp3,'retroplayer'}}}
#SET{my_width,#ENV{largeur,#ENV{width,0}}}
#SET{logo,#LOGO_DOCUMENT{vignette}}
[(#GET{logo}|oui)
#SET{my_width,#GET{logo}|largeur|max{120,#GET{my_width}}}
#SET{logo,#GET{logo}|vider_attribut{class}|image_reduire{#GET{my_width},*}}]
<div
  class="[(#ID_DOCUMENT|medias_modele_document_standard_classes{audio})] spip_document_player spip_documents_player spip_doc_player"[
  (#ID_DOCUMENT|medias_modele_document_standard_attributs{audio})
]>
	<figure class="spip_doc_inner">
		[(#ID_VIGNETTE|et{#ENV{afficher_vignette}|!={non}}|oui)
		<a href="[(#ENV{lien}|sinon{#URL_DOCUMENT})]" type="#MIME_TYPE" class="spip_doc_lien[ (#ENV{lien_class})]" title='#TYPE_DOCUMENT - [(#TAILLE|taille_en_octets|texte_backend)]'>
		<img src='[(#GET{logo}|extraire_attribut{src})]' class="spip_doc_logo" width='[(#GET{logo}|largeur)]' height='[(#GET{logo}|hauteur)]' alt='#TYPE_DOCUMENT - [(#TAILLE|taille_en_octets|texte_backend)]' /></a>
		]
		#INCLURE**{fond=players/#GET{player}/player,env,player=#GET{player},largeur=#GET{my_width}}
	#GET{legende}
	</figure>
</div>
</BOUCLE_audio>
<INCLURE{fond=modeles/file,env} />
<//B_audio>