source: spip-zone/_plugins_/_test_/Lecteur_multimedia/modeles/doc_player.html @ 7811

Last change on this file since 7811 was 7811, checked in by cedric@…, 14 years ago

urlencode du titre

  • Property svn:executable set to *
File size: 5.8 KB
Line 
1[(#REM)
2
3Modele pour <doc> modifié pour le plugin Lecteur Flash pour MP3
4http://spip-zone.info/spip.php?article18
5
6Si le document est de format mp3, afficher la vignette si elle est personnalisée
7Afficher le TITRE, le DESCRIPTIF suivi du lecteur flash permettant de faire jouer ce fichier.
8
9Sinon, utiliser le comportemant normal.
10
11
12]
13
14
15<BOUCLE_doc (DOCUMENTS) {id_document}>
16#SET{player,#ENV{player,#CONFIG{player,'neoplayer'}}}
17
18<div class='spip_document_#ID_DOCUMENT spip_documents[ spip_documents_(#ENV{align})][ (#ENV{class})] spip_lien_ok'[ style='float:(#ENV{align}|match{left|right});']>
19[(#TYPE_DOCUMENT|=={MP3}|?{
20[<dl class='spip_document_#ID_DOCUMENT spip_documents[ spip_documents_(#ENV{align})][ (#ENV{class})] spip_lien_ok'[ style='float:(#ENV{align}|match{left|right});']>
21(#ID_VIGNETTE|?{
22<dt><a href="[(#ENV{lien}|sinon{#URL_DOCUMENT})]" type="#MIME_TYPE"[ class="(#ENV{lien_class})"] title='#TYPE_DOCUMENT - [(#TAILLE|taille_en_octets|texte_backend)]'>
23<img src='[(#LOGO_DOCUMENT||extraire_attribut{src})]' width='[(#LOGO_DOCUMENT||largeur)]' height='[(#LOGO_DOCUMENT||hauteur)]' alt='#TYPE_DOCUMENT - [(#TAILLE|taille_en_octets|texte_backend)]' /></a></dt>
24,
25''
26})]
27[
28<dt class='spip_doc_titre'[ style='width:(#LOGO_DOCUMENT||largeur|min{350}|max{120})px;']><strong>(#TITRE)</strong></dt>][
29<dd class='spip_doc_descriptif'[ style='width:(#LOGO_DOCUMENT||largeur|min{350}|max{120})px;']>(#DESCRIPTIF)#NOTES</dd>]
30</dl>
31[(#GET{player}|=={pixplayer}|?{' ',''})
32<object type='application/x-shockwave-flash' data='#EVAL{_DIR_PLUGIN_PLAYER}pixplayer.swf' id='audioplayer#ID_DOCUMENT' height='24' width='290'>
33<param name="wmode" value="transparent" />
34<param name='movie' value='#EVAL{_DIR_PLUGIN_PLAYER}pixplayer.swf'>
35<param name='FlashVars' value='playerID=#ID_DOCUMENT&amp;bg=0xf8f8f8&amp;leftbg=0xeeeeee&amp;lefticon=0x666666&amp;rightbg=0xcccccc&amp;rightbghover=0x999999&amp;righticon=0x666666&amp;righticonhover=0xFFFFFF&amp;text=0x666666&amp;slider=0x666666&amp;track=0xFFFFFF&amp;border=0x666666&amp;loader=0x9FFFB8&amp;soundFile=#URL_DOCUMENT'>
36<param name='quality' value='high'>
37<param name='menu' value='false'>
38<param name='bgcolor' value='#FFFFFF'>
39[<span><a href='(#URL_DOCUMENT)' rel='enclosure'>#URL_DOCUMENT</a></span>]
40</object>
41]
42[(#GET{player}|=={neoplayer}|?{' ',''})
43<object id="audioplayer#ID_DOCUMENT" type="application/x-shockwave-flash" data="#EVAL{_DIR_PLUGIN_PLAYER}neoplayer_maxi.swf" width="200" height="20">
44<param name="wmode" value="transparent" />
45<param name="movie" value="#EVAL{_DIR_PLUGIN_PLAYER}neoplayer_maxi.swf" />
46<param name="FlashVars" value="mp3=#URL_DOCUMENT&amp;bgcolor1=ffffff&amp;bgcolor2=cccccc&amp;buttoncolor=999999&amp;buttonovercolor=0&amp;slidercolor1=cccccc&amp;slidercolor2=999999&amp;loadingcolor=ffff00&amp;sliderovercolor=666666&amp;textcolor=0&amp;showstop=1&amp;showinfo=0&amp;width=200&amp;height=20" />
47[<span><a href='(#URL_DOCUMENT)' rel='enclosure'>#URL_DOCUMENT</a></span>]
48</object>
49]
50
51[(#GET{player}|=={neoplayer_multi}|?{' ',''})
52<object id="audioplayer#ID_DOCUMENT" type="application/x-shockwave-flash" data="#EVAL{_DIR_PLUGIN_PLAYER}neoplayer_multi.swf" width="200" height="100">
53<param name="wmode" value="transparent" />
54<param name="movie" value="#EVAL{_DIR_PLUGIN_PLAYER}neoplayer_multi.swf" />
55<param name="FlashVars" value="mp3=#URL_DOCUMENT|#URL_DOCUMENT&amp;bgcolor1=ffffff&amp;bgcolor2=cccccc&amp;buttoncolor=999999&amp;buttonovercolor=0&amp;slidercolor1=cccccc&amp;slidercolor2=999999&amp;sliderovercolor=666666&amp;textcolor=0&amp;showstop=1&amp;showinfo=1" />
56[<span><a href='(#URL_DOCUMENT)' rel='enclosure'>#URL_DOCUMENT</a></span>]
57</object>
58]
59
60[(#GET{player}|=={dewplayer}|?{' ',''})
61<object type='application/x-shockwave-flash' data='#EVAL{_DIR_PLUGIN_PLAYER}dewplayer.swf' width='200' height='20'>
62<param name="wmode" value="transparent" />
63<param name='movie' value='#EVAL{_DIR_PLUGIN_PLAYER}dewplayer.swf'/>
64<param name="FlashVars" value='son=[(#URL_DOCUMENT|url_absolue)]'>
65[<span><a href='(#URL_DOCUMENT)' rel='enclosure'>#URL_DOCUMENT</a></span>]
66</object>
67]
68,
69''
70})]
71[(#TYPE_DOCUMENT|=={Flash Video}|?{' '})
72<object type="application/x-shockwave-flash" data="#EVAL{_DIR_PLUGIN_PLAYER}player_flv.swf" width="[(#LARGEUR|=={0}|?{400,#LARGEUR})]" height="[(#HAUTEUR|=={0}|?{300,#HAUTEUR})]">
73<param name="movie" value="#EVAL{_DIR_PLUGIN_PLAYER}player_flv.swf" />
74<param name="FlashVars" value="flv=[(#URL_DOCUMENT|url_absolue)]&amp;width=[(#LARGEUR|=={0}|?{400,#LARGEUR})]&amp;height=[(#HAUTEUR|=={0}|?{300,#HAUTEUR})]&amp;bgcolor1=ffffff&amp;bgcolor2=cccccc&amp;buttoncolor=999999&amp;buttonovercolor=0&amp;slidercolor1=cccccc&amp;slidercolor2=999999&amp;sliderovercolor=666666&amp;textcolor=0&amp;showstop=1&amp;title=[(#TITRE|urlencode)]&amp;startimage=[(#LOGO_DOCUMENT||extraire_attribut{src})]" />
75<param name="wmode" value="transparent" />
76[<span><a href="(#URL_DOCUMENT)" rel="enclosure">#URL_DOCUMENT</a></span>]
77</object>
78
79<dl class='spip_document_#ID_DOCUMENT spip_documents[ spip_documents_(#ENV{align})][ (#ENV{class})] spip_lien_ok'[ style='float:(#ENV{align}|match{left|right});']>
80[<dd class='spip_doc_descriptif'[ style='width:(#LOGO_DOCUMENT||largeur|min{350}|max{120})px;']>(#DESCRIPTIF)#NOTES</dd>]
81</dl>
82]
83
84[(#TYPE_DOCUMENT|match{^(Flash Video|MP3)$}|?{'',' '})
85<a href="[(#ENV{lien}|sinon{#URL_DOCUMENT})]" type="#MIME_TYPE"[ class="(#ENV{lien_class})"]><img src='[(#LOGO_DOCUMENT||extraire_attribut{src})]' width='[(#LOGO_DOCUMENT||largeur)]' height='[(#LOGO_DOCUMENT||hauteur)]' alt='#TYPE_DOCUMENT - [(#TAILLE|taille_en_octets)]' title='#TYPE_DOCUMENT - [(#TAILLE|taille_en_octets)]' /></a>
86[
87<div class='spip_doc_titre'[ style='width:(#LOGO_DOCUMENT||largeur|min{350}|max{120})px;']><strong>(#TITRE)</strong></div>][
88<div class='spip_doc_descriptif'[ style='width:(#LOGO_DOCUMENT||largeur|min{350}|max{120})px;']>(#DESCRIPTIF)#NOTES</div>]
89]
90</div>
91</BOUCLE_doc>
Note: See TracBrowser for help on using the repository browser.