Changeset 59468 in spip-zone


Ignore:
Timestamp:
Mar 16, 2012, 5:29:35 PM (8 years ago)
Author:
cedric@…
Message:

Ajouts CSS et un filtre oembed a utiliser sur une url

Location:
_plugins_/oembed
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/oembed/css/oembed.css

    r59461 r59468  
    1919.oe-reference {}
    2020.oe-cite {}
     21
     22figure.oe-image-block {border: 1px solid #eee;background: #fff;text-align: center;width:80%;margin: 3em auto;overflow:hidden;padding:4px;}
     23figure.oe-image-block img {background: #fff;padding-bottom:4px;}
     24figure.oe-image-block figcaption {background:#eee;padding: 10px;text-align: left;}
     25
     26.oe-video-block {margin:3em auto;}
  • _plugins_/oembed/oembed_fonctions.php

    r55031 r59468  
    3939        return $texte;
    4040}
     41
     42function oembed($url){
     43        if (oembed_verifier_provider($url)) {
     44                $fond = recuperer_fond('modeles/oembed',array('url'=>$url,'lien'=>''));
     45                if ($fond = trim($fond))
     46                        return $fond;
     47        }
     48
     49        return $url;
     50}
     51
    4152?>
  • _plugins_/oembed/paquet.xml

    r59461 r59468  
    22        prefix="oembed"
    33        categorie="multimedia"
    4         version="0.9.5"
     4        version="0.9.6"
    55        etat="test"
    66        compatibilite="[3.0.0-beta;["
  • _plugins_/oembed/plugin.xml

    r59461 r59468  
    88        </auteur>
    99        <version>
    10         0.9.5
     10        0.9.6
    1111        </version>
    1212        <etat>
Note: See TracChangeset for help on using the changeset viewer.