Changeset 87068 in spip-zone


Ignore:
Timestamp:
Jan 10, 2015, 11:07:22 AM (5 years ago)
Author:
cedric@…
Message:

Reparer l'utilisation du modele player sur une URL simple qui n'est pas un document SPIP

Location:
_plugins_/player/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/player/trunk/modeles/player.html

    r60304 r87068  
    1919#SET{player,#ENV{player,#CONFIG{player/player_mp3,'neoplayer'}}}
    2020#SET{my_width,#ENV{width,120}}
    21 [(#GET{player}|=={pixplayer}|oui)#SET{my_width,#ENV{width,290}}]
    22 [(#GET{player}|=={neoplayer}|oui)#SET{my_width,#ENV{width,200}}]
    23 [(#GET{player}|=={dewplayer}|oui)#SET{my_width,#ENV{width,200}}]
     21[(#GET{player}|=={pixplayer}|oui)#SET{my_width,#ENV{largeur,#ENV{width,290}}}]
     22[(#GET{player}|=={neoplayer}|oui)#SET{my_width,#ENV{largeur,#ENV{width,200}}}]
     23[(#GET{player}|=={dewplayer}|oui)#SET{my_width,#ENV{largeur,#ENV{width,200}}}]
     24[(#GET{player}|=={mejs}|oui)#SET{my_width,#ENV{largeur,#ENV{width,400}}}]
    2425<dl class='spip_documents[ spip_documents_(#ENV{align})][ (#ENV{class})] spip_doc_player auto_player'[ style='float:(#ENV{align}|match{left|right});']>
     26#INCLURE**{fond=players/#GET{player}/player,env,player=#GET{player},my_width=#GET{my_width}}
    2527[
    2628<dt class='spip_doc_titre'[ style='width:(#GET{my_width}|min{350}|max{120,[(#GET{my_width})]})px;']><strong>(#TITRE)</strong></dt>][
    2729<dd class='spip_doc_descriptif #EDIT{descriptif}'[ style='margin-bottom:0;width:(#GET{my_width})px;']>(#DESCRIPTIF|PtoBR)[(#NOTES|PtoBR)]</dd>]
    28 #INCLURE**{fond=players/#GET{player}/player,env,player=#GET{player},my_width=#GET{my_width}}
    2930</dl>
  • _plugins_/player/trunk/players/mejs/player.html

    r87014 r87068  
    1 #SET{url,#ENV{url_document,''}}
    2 <BOUCLE_doc (DOCUMENTS) {id_document}{tout}>
    3 #SET{largeur,#ENV{largeur, #LARGEUR|?{#LARGEUR,400}}|max{120}}
     1#SET{url,#ENV{url_document,''}}#SET{id_document,''}#SET{largeur,0}
     2<BOUCLE_doc (DOCUMENTS) {id_document}{tout}>#SET{url,#FICHIER}#SET{id_document,#ID_DOCUMENT}#SET{largeur,#ENV{largeur,#LARGEUR}</BOUCLE_doc>
     3#SET{largeur,#ENV{largeur, #GET{largeur}|?{#GET{largeur},400}}|max{120}}
    44<dt class='spip_doc_titre player #ENV{player}'>
    55        <div class="mejs-audio-wrapper audio-wrapper"[ style='width:(#GET{largeur})px;max-width:100%;margin:0 auto;']>
    6                 <audio class="mejs mejs-#ID_DOCUMENT [ mejs-(#ENV{skin})][(#ENV{playlist}|oui)mejs-playlist]"
    7                        data-id="[(#VAL{mejs-#ID_DOCUMENT}|concat{#ENV{skin}}|md5)]"
    8                        src="#FICHIER"
     6                <audio class="mejs[ mejs-(#GET{id_document})][ mejs-(#ENV{skin})][(#ENV{playlist}|oui)mejs-playlist]"
     7                       data-id="[(#VAL{mejs-#GET{id_document}}|concat{'-',#GET{url},'-',#ENV{skin},}|md5)]"
     8                       src="#GET{url}"
    99                       type="#MIME_TYPE"
    1010                       data-mejsoptions='{"alwaysShowControls": true[,"loop":(#ENV{loop}|?{true,false})],"audioWidth":"100%"[,"audioHeight":"(#ENV{hauteur})"][,"startVolume":"(#ENV{volume})"][,"playlistSelector":"(#ENV{playlist})"]<B_feat>,"features":[<BOUCLE_feat(POUR){tableau #ENV{features}}{','}>"#VALEUR"</BOUCLE_feat>]</B_feat>}'
     
    1818        [(#ENV{skin}|oui)[<style>(#INCLURE{#CHEMIN{css/mejs-skin-#ENV{skin}.css}|sinon{#CHEMIN{lib/mejs/mejs-skins.css}}|url_absolue_css})</style>]]</span>
    1919</dt>
    20 </BOUCLE_doc>
     20
Note: See TracChangeset for help on using the changeset viewer.