Changeset 58814 in spip-zone


Ignore:
Timestamp:
Feb 24, 2012, 4:18:07 PM (8 years ago)
Author:
cedric@…
Message:

supporter les PHP<5.3 pour le output json
ajustement CSS twitter

Location:
_plugins_/oembed
Files:
3 edited

Legend:

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

    r54732 r58814  
    11/* Oembed twitter */
    2 .oe-tweet-block {}
    3 .oe-tweet-user-screen_name,.oe-tweet-user-name {display: block;}
    4 .oe-tweet-user-block img {float:left;margin-right: 10px;margin-bottom:10px;}
    5 .oe-tweet-text {clear:left; font-size: 1.3em;margin: 10px 0;}
     2.oe-tweet-block {padding-left: 60px;position: relative;margin:0;}
     3.oe-tweet-text {}
     4.oe-tweet-user-block img {position: absolute;top:0;left:0;}
     5.oe-tweet-meta,.oe-tweet-user-block {display: inline;}
     6.oe-tweet-meta .via {display: none;}
    67
    78.oe-fb-user-block img {float:left;margin-right: 10px;margin-bottom:10px;}
  • _plugins_/oembed/oembed/output/json.php

    r54706 r58814  
    1414function oembed_output_json_dist($res, $output=true){
    1515
    16         $out = json_encode($res,JSON_HEX_TAG);
     16        $out = json_encode($res);
     17        $out = str_replace(array("<",">"),array("\u003C","\u003E"),$out);
     18
    1719        if (!$output)
    1820                return $out;
  • _plugins_/oembed/paquet.xml

    r58018 r58814  
    66        compatibilite="[3.0.0-beta;["
    77        logo="prive/themes/spip/images/oembed-32.png"
    8         schema="0.4.0"
     8        schema="0.4.1"
    99>
    1010
Note: See TracChangeset for help on using the changeset viewer.