Changeset 54467 in spip-zone


Ignore:
Timestamp:
Nov 14, 2011, 9:09:35 PM (8 years ago)
Author:
cedric@…
Message:

changer la largeur du modele soundcloud (en attendant de gerer des dimensions par provider)
modifier _inclus dans le formulaire editer_document quand on a un oembed pour avoir un apercu

Location:
_plugins_/oembed
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/oembed/oembed/posttraite_soundcloud_rich.php

    r54455 r54467  
    1111
    1212        $data['type'] = 'sound';
     13        $data['html'] = preg_replace(",width=['\"][0-9]+['\"],i",'width="100%"',$data['html']);
    1314
    1415        return $data;
  • _plugins_/oembed/oembed_pipelines.php

    r54455 r54467  
    1818        }
    1919        return $page;
     20}
     21
     22function oembed_formulaire_charger($flux){
     23        if ($flux['args']['form']=='editer_document'){
     24                if ($flux['data']['oembed']
     25                  AND !isset($flux['data']['apercu']))
     26                        $flux['data']['_inclus'] = 'embed';
     27        }
     28        return $flux;
    2029}
    2130
  • _plugins_/oembed/paquet.xml

    r54455 r54467  
    2222        <pipeline nom="pre_propre" inclure="oembed_pipelines.php" />
    2323        <pipeline nom="affichage_final" inclure="oembed_pipelines.php" />
     24        <pipeline nom="formulaire_charger" inclure="oembed_pipelines.php" />
    2425
    2526        <menu nom="configurer_oembed" titre="oembed:titre_oembed" parent="bando_configuration" icone="images/oembed-16.png" />
Note: See TracChangeset for help on using the changeset viewer.