Changeset 65569 in spip-zone


Ignore:
Timestamp:
Sep 5, 2012, 3:23:14 PM (7 years ago)
Author:
brunobergot@…
Message:

version 0.10.0 : brancher oembed sur le plugin ressource

Location:
_plugins_/oembed
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/oembed/oembed_pipelines.php

    r59403 r65569  
    198198}
    199199
     200/**
     201 * Se brancher sur le plugin ressource pour appliquer oembed à ses urls
     202 *
     203 * @param array $flux
     204 * @return array
     205 */
     206function oembed_ressource_meta($flux) {
     207        $src = $flux['args']['src'];
     208        if ($oembed = oembed($src) AND $oembed != $src)
     209                $flux['data']['extract'] = $oembed;
     210        return $flux;
     211}
     212
    200213include_spip('inc/config');
    201214if (!function_exists('lire_config')) { function lire_config($a=null,$b=null) { return $b; } }
  • _plugins_/oembed/paquet.xml

    r63373 r65569  
    22        prefix="oembed"
    33        categorie="multimedia"
    4         version="0.9.9"
     4        version="0.10.0"
    55        etat="test"
    66        compatibilite="[3.0.0-beta;["
     
    2424        <pipeline nom="formulaire_charger" inclure="oembed_pipelines.php" />
    2525        <pipeline nom="recuperer_fond" inclure="oembed_pipelines.php" />
     26        <pipeline nom="ressource_meta" inclure="oembed_pipelines.php" />
    2627        <pipeline nom="oembed_lister_providers" action="" />
    2728
  • _plugins_/oembed/plugin.xml

    r63373 r65569  
    88        </auteur>
    99        <version>
    10         0.9.9
     10        0.10.0
    1111        </version>
    1212        <etat>
Note: See TracChangeset for help on using the changeset viewer.