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

Last change on this file since 43994 was 43994, checked in by patfr@…, 9 years ago

Inclure le titre et le descriptif dans la gestion de la largeur

File size: 8.0 KB
Line 
1[<!--(#REM)
2
3        // modeles/doc_player.html
4
5        // $LastChangedRevision: 18209 $
6        // $LastChangedBy: paladin@quesaco.org $
7        // $LastChangedDate: 2008-01-27 17:54:31 +0100 (dim., 27 janv. 2008) $
8
9Modele pour <doc> modifie pour le plugin Lecteur Flash pour MP3
10http://spip-zone.info/spip.php?article18
11
12Si le document est de format mp3, afficher la vignette si elle est personnalisee
13Afficher le TITRE, le DESCRIPTIF suivi du lecteur flash permettant de faire jouer ce fichier.
14
15Sinon, utiliser le comportement normal.
16
17
18-->]
19<BOUCLE_doc (DOCUMENTS) {id_document}{tout}>
20#SET{player,#ENV{player,#CONFIG{player,'neoplayer'}}}
21[(#GET{player}|=={pixplayer}|?{' ',''})#SET{my_width,#ENV{width,290}}]
22[(#GET{player}|=={neoplayer}|?{' ',''})#SET{my_width,#ENV{width,200}}]
23[(#GET{player}|=={dewplayer}|?{' ',''})#SET{my_width,#ENV{width,200}}]
24[(#GET{player}|=={eraplayer}|?{' ',''})#SET{my_width,#ENV{width,20}}]
25[<!--(#REM)
26
27        Document MP3 ?
28
29-->][(#TYPE_DOCUMENT|=={MP3}|?{
30<dl class='spip_document_#ID_DOCUMENT spip_documents[ spip_documents_(#ENV{align})][ (#ENV{class})] spip_lien_ok'[ style='float:(#ENV{align}|match{left|right});']>
31[(#ID_VIGNETTE|?{
32        <dt><a href="[(#ENV{lien}|sinon{#URL_DOCUMENT})]" type="#MIME_TYPE"[ class="(#ENV{lien_class})"] title='#TYPE_DOCUMENT - [(#TAILLE|taille_en_octets|texte_backend)]'>
33        <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>
34,
35        ''
36})]
37[
38<dt class='spip_doc_titre #EDIT{titre}'[ style='width:(#LOGO_DOCUMENT||largeur|min{350}|max{120,[(#GET{my_width})]})px;']><strong>(#TITRE)</strong></dt>][
39<dd class='spip_doc_descriptif #EDIT{descriptif}'[ style='width:(#LOGO_DOCUMENT||largeur|min{350}|max{120,[(#GET{my_width})]})px;']>(#DESCRIPTIF|PtoBR)[(#NOTES|PtoBR)]</dd>]
40[(#GET{player}|=={pixplayer}|?{' ',''})
41[<!--(#REM)
42
43        Pour voir les options de configuration : http://www.1pixelout.net/code/audio-player-wordpress-plugin/
44       
45-->]
46<dd class='spip_doc_descriptif'[ style='width:(#LOGO_DOCUMENT||largeur|min{350}|max{120,[(#GET{my_width})]})px;']>
47<object type='application/x-shockwave-flash' data='#CHEMIN{flash/pixplayer.swf}' id='audioplayer#ID_DOCUMENT' height='[(#ENV{height,24})]' width='[(#GET{my_width})]'>
48<param name="wmode" value="transparent" />
49<param name='movie' value='#CHEMIN{flash/pixplayer.swf}' />
50<param name='FlashVars' value='playerID=#ID_DOCUMENT&amp;bg=0x[(#ENV{bg,f8f8f8})]&amp;leftbg=0x[(#ENV{leftbg,eeeeee})]&amp;lefticon=0x[(#ENV{lefticon,666666})]&amp;rightbg=0x[(#ENV{rightbg,cccccc})]&amp;rightbghover=0x[(#ENV{rightbghover,999999})]&amp;righticon=0x[(#ENV{righticon,666666})]&amp;righticonhover=0x[(#ENV{righticonhover,FFFFFF})]&amp;text=0x[(#ENV{text,666666})]&amp;slider=0x[(#ENV{slider,666666})]&amp;track=0x[(#ENV{track,FFFFFF})]&amp;border=0x[(#ENV{border,666666})]&amp;loader=0x[(#ENV{loader,9FFFB8})]&amp;soundFile=#URL_DOCUMENT' />
51<param name='quality' value='high' />
52<param name='menu' value='false' />
53<param name='bgcolor' value='[(#ENV{bgcolor,#FFFFFF})]' />
54[<span><a href='(#URL_DOCUMENT)' rel='enclosure'>#URL_DOCUMENT</a></span>]
55</object>
56<script type="text/javascript">
57        if(typeof(ap_instances) == "undefined"){
58                jQuery.getScript("[(#CHEMIN{javascript/audio-player.js})]");
59        }
60</script></dd>
61][(#GET{player}|=={neoplayer}|?{' ',''})
62<dd class='spip_doc_descriptif'[ style='width:(#LOGO_DOCUMENT||largeur|min{350}|max{120,[(#GET{my_width})]})px;']>
63<object id="audioplayer#ID_DOCUMENT" type="application/x-shockwave-flash" data="#CHEMIN{flash/neoplayer_maxi.swf}" height="[(#ENV{height,20})]" width="[(#GET{my_width})]">
64<param name="wmode" value="transparent" />
65<param name="movie" value="#CHEMIN{flash/neoplayer_maxi.swf}" />
66<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=[(#GET{my_width})]&amp;height=20[&amp;autoplay=(#ENV{autostart,0})]" />
67[<span><a href='(#URL_DOCUMENT)' rel='enclosure'>#URL_DOCUMENT</a></span>]
68</object></dd>
69][(#GET{player}|=={dewplayer}|?{' ',''})
70<dd class='spip_doc_descriptif'[ style='width:(#LOGO_DOCUMENT||largeur|min{350}|max{120,[(#GET{my_width})]})px;']>
71<object type="application/x-shockwave-flash" data="#CHEMIN{flash/dewplayer.swf}" height="[(#ENV{height,20})]" width="[(#GET{my_width})]">
72<param name="wmode" value="transparent" />
73<param name="movie" value='#CHEMIN{flash/dewplayer.swf}' />
74<param name="FlashVars" value="son=[(#URL_DOCUMENT|url_absolue)]" />
75[<span><a href='(#URL_DOCUMENT)' rel='enclosure'>#URL_DOCUMENT</a></span>]
76</object></dd>
77][(#GET{player}|=={eraplayer}|?{' ',''})
78<dd class='spip_doc_descriptif'[ style='width:(#LOGO_DOCUMENT||largeur|min{350}|max{20,[(#GET{my_width})]})px;']>
79<object id="audioplayer#ID_DOCUMENT" type="application/x-shockwave-flash" data="#CHEMIN{flash/eraplayer.swf}" height="[(#ENV{height,20})]" width="[(#GET{my_width})]">
80        <param name="wmode" value="transparent" />
81        <param name="movie" value="#CHEMIN{flash/eraplayer.swf}" />
82        <param name="FlashVars" value="mp3=#URL_DOCUMENT" />
83        [<span><a href='(#URL_DOCUMENT)' rel='enclosure'>#URL_DOCUMENT</a></span>]
84</object></dd>
85]
86</dl>
87})]
88
89
90[<!--(#REM)
91
92        Document Flash (.flv) ?
93       
94        Documentation:
95        - player_flv_js.swf -> http://flv-player.net/players/js/documentation/
96        - player_flv_multi.swf -> http://flv-player.net/players/multi/documentation/
97        - player_flv_maxi -> http://flv-player.net/players/maxi/documentation/
98        - player_flv.swf -> http://flv-player.net/players/normal/documentation/
99        - player_flv_mini.swf -> http://flv-player.net/players/mini/documentation/
100
101
102-->][(#TYPE_DOCUMENT|=={Flash Video}|?{' '})
103#SET{largeur,#ENV{largeur,#LARGEUR|=={0}|?{400,#LARGEUR}}}
104#SET{hauteur,#ENV{hauteur,#HAUTEUR|=={0}|?{300,#HAUTEUR}}}
105<dl class='spip_document_#ID_DOCUMENT spip_documents[ spip_documents_(#ENV{align})][ (#ENV{class})] spip_lien_ok'[ style='float:(#ENV{align}|match{left|right});']>
106<dt class='spip_doc_titre'>
107<object type="application/x-shockwave-flash" data="#CHEMIN{flash/player_flv_maxi.swf}" width="#GET{largeur}" height="#GET{hauteur}">
108<param name="movie" value="#CHEMIN{flash/player_flv_maxi.swf}" />
109<param name="FlashVars" value="flv=[(#URL_DOCUMENT|url_absolue)]&amp;width=#GET{largeur}&amp;height=#GET{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|textebrut|urlencode)][(#LOGO_DOCUMENT||extraire_attribut{src}|match{flv.png$}|?{'',' '})&amp;startimage=[(#LOGO_DOCUMENT||extraire_attribut{src})]]&amp;ondoubleclick=fullscreen&amp;showfullscreen=1&amp;autoplay=[(#ENV{autoplay}|?{1,0})]" />
110<param name="allowFullScreen" value="true" />
111<param name="wmode" value="transparent" />
112[<strong>(#TITRE)</strong>]
113[<span><a href="(#URL_DOCUMENT)" rel="enclosure">#URL_DOCUMENT</a></span>]
114</object>
115</dt>
116[<dd class='spip_doc_descriptif'[ style='width:(#LOGO_DOCUMENT||largeur|min{350}|max{120})px;']>(#DESCRIPTIF|PtoBR)[(#NOTES|PtoBR)]</dd>]
117</dl>
118]
119
120
121[<!--(#REM)
122
123        Sinon : document normal
124       
125-->][(#TYPE_DOCUMENT|match{^(Flash Video|MP3)$}|?{'',' '})
126<dl class='spip_document_#ID_DOCUMENT spip_documents[ spip_documents_(#ENV{align})][ (#ENV{class})] spip_lien_ok'[ style='float:(#ENV{align}|match{left|right});']>
127<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>
128[
129<dt class='spip_doc_titre'[ style='width:(#LOGO_DOCUMENT||largeur|min{350}|max{120})px;']><strong>(#TITRE)</strong></dt>][
130<dd class='spip_doc_descriptif'[ style='width:(#LOGO_DOCUMENT||largeur|min{350}|max{120})px;']>(#DESCRIPTIF|PtoBR)[(#NOTES|PtoBR)]</dd>]
131</dl>
132]
133</BOUCLE_doc>
Note: See TracBrowser for help on using the repository browser.