Last change
on this file since 682 was
80,
checked in by guille, 16 years ago
|
el plugin completo
|
-
Property svn:executable set to
*
|
File size:
1.3 KB
|
Line | |
---|
1 | #CACHE{0}<BOUCLE_rotator(ARTICLES){id_article}> |
---|
2 | <B_galerieima><?php $chemin1 = "#CHEMIN{swf/playlistima.xml}"; |
---|
3 | $fp = fopen ($chemin1, "w+"); |
---|
4 | $fp2="<playlist version=\"1\" xmlns=\"http://xspf.org/ns/0/\">\n<trackList>\n"; |
---|
5 | ?> |
---|
6 | <BOUCLE_galerieima(DOCUMENTS){id_article}{mode=document}{extension==jpg|png|gif}{par num titre}{par id_document}> |
---|
7 | <?php |
---|
8 | $urlDocPlayer="#URL_SITE_SPIP/".trim("[(#ENV{conteneur}|=={1}|?{' ',''})[(#FICHIER||image_reduire{#LARGEUR_CONTEXTE1,0}|extraire_attribut{src})]][(#ENV{conteneur}|=={2}|?{' ',''})[(#FICHIER||image_reduire{#LARGEUR_CONTEXTE2,0}|extraire_attribut{src})]][(#ENV{conteneur}|=={3}|?{' ',''})[(#FICHIER||image_reduire{#LARGEUR_CORPS,0}|extraire_attribut{src})]]"); |
---|
9 | $titreDocPlayer='[(#TITRE|supprimer_numero|no_accent|texte_script|sinon{<:sans_titre:>})]'; |
---|
10 | $DescriptifDocPlayer='[(#DESCRIPTIF|no_accent|texte_script|sinon{<:pas_de_descriptif:>})]'; |
---|
11 | $identifier='#ID_DOCUMENT'; |
---|
12 | |
---|
13 | $fp2.=" <track>\n"; |
---|
14 | $fp2.=" <title>$DescriptifDocPlayer </title>\n"; |
---|
15 | $fp2.=" <creator>$titreDocPlayer</creator>\n"; |
---|
16 | $fp2.=" <info>#URL_SITE_SPIP/#URL_DOCUMENT</info>\n"; |
---|
17 | $fp2.=" <location>$urlDocPlayer</location>\n"; |
---|
18 | $fp2.=" <identifier>$identifier</identifier>\n"; |
---|
19 | $fp2.="</track>\n"; |
---|
20 | ?> |
---|
21 | </BOUCLE_galerieima> |
---|
22 | <?php |
---|
23 | $fp2.="</trackList>\n</playlist>\n"; |
---|
24 | $fp3 = fwrite ($fp, $fp2); |
---|
25 | $p3 = fclose ($fp); |
---|
26 | ?> |
---|
27 | </B_galerieima> |
---|
28 | |
---|
29 | </BOUCLE_rotator> |
---|
Note: See
TracBrowser
for help on using the repository browser.