Last change
on this file since 231 was
80,
checked in by guille, 16 years ago
|
el plugin completo
|
-
Property svn:executable set to
*
|
File size:
1.5 KB
|
Rev | Line | |
---|
[80] | 1 | <B_lesfiles><div id="galerie-swf" class="listagebloc"> |
---|
| 2 | <a name="Lecteur"></a> |
---|
| 3 | <h2><:galerie_swf:></h2> |
---|
| 4 | <ul class="listageconteneur"> |
---|
| 5 | <?php |
---|
| 6 | $parametre="[(#REM|sinon{videovars}|trouveintheme{''})]"; |
---|
| 7 | <BOUCLE_voissiplus(DOCUMENTS){id_article}{extension==swf}{1,1}>$listheight=(int) "[(#REM|sinon{videolistheight}|trouveintheme{'80'})]";</BOUCLE_voissiplus> |
---|
| 8 | |
---|
| 9 | if ( "#ENV{largeur}" == "320") { |
---|
| 10 | $largeur="320"; |
---|
| 11 | $hauteur=240; |
---|
| 12 | } else if("#ENV{largeur}" == "totale_16"){ |
---|
| 13 | $largeur=trim("[(#ENV{conteneur}|=={'1'}|?{' ',''})#LARGEUR_CONTEXTE1][(#ENV{conteneur}|=={'2'}|?{' ',''})#LARGEUR_CONTEXTE2][(#ENV{conteneur}|=={'3'}|?{' ',''})#LARGEUR_CORPS]"); |
---|
| 14 | $hauteur=round(($largeur/16)*9); |
---|
| 15 | } else { |
---|
| 16 | $largeur=trim("[(#ENV{conteneur}|=={'1'}|?{' ',''})#LARGEUR_CONTEXTE1][(#ENV{conteneur}|=={'2'}|?{' ',''})#LARGEUR_CONTEXTE2][(#ENV{conteneur}|=={'3'}|?{' ',''})#LARGEUR_CORPS]"); |
---|
| 17 | $hauteur=round(($largeur/4)*3); |
---|
| 18 | } |
---|
| 19 | |
---|
| 20 | ?> |
---|
| 21 | <BOUCLE_lesfiles(DOCUMENTS){id_article}{mode=document}{extension==swf}{0,1}> |
---|
| 22 | <li id="video-viewer flv"> |
---|
| 23 | <embed |
---|
| 24 | type="application/x-shockwave-flash" allowfullscreen="true" |
---|
| 25 | src="#CHEMIN{swf/mediaplayer.swf}" style="" id="rotator" name="rotator" quality="high" flashvars="file=spip.php%3Fpage%3Dxml_swf%26id_article%3D#ID_ARTICLE&displayheight=<?php echo $hauteur; ?>&width=<?php echo $largeur; ?>&height=<?php echo $hauteur + $listheight + 20; if ($parametre) { echo "&". $parametre; } ?>" |
---|
| 26 | height="<?php echo $hauteur + $listheight + 20; ?>" |
---|
| 27 | width="<?php echo $largeur; ?>"> |
---|
| 28 | </li> |
---|
| 29 | </BOUCLE_lesfiles> |
---|
| 30 | </ul> |
---|
| 31 | </div> |
---|
| 32 | </B_lesfiles> |
---|
Note: See
TracBrowser
for help on using the repository browser.