WordPress.org

Plugin Directory

Changeset 472497


Ignore:
Timestamp:
12/08/11 16:05:02 (6 years ago)
Author:
futtta
Message:

push fixes to trunk

Location:
wp-youtube-lyte/trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • wp-youtube-lyte/trunk/external/donottrack-min.js

    r464584 r472497  
    1 function sanitizer(a){a=a.toLowerCase();for(x in spy){if(a.indexOf(spy[x])!==-1){a=true;break}}return a}var spy=["quantserve.com","media6degrees.com"];(function(){var _after=1;var _afterThrow=2;var _afterFinally=3;var _before=4;var _around=5;var _intro=6;var _regexEnabled=true;var _arguments="arguments";var _undef="undefined";var getType=function(){var a=Object.prototype.toString,b={},c={1:"element",3:"textnode",9:"document",11:"fragment"},d="Arguments Array Boolean Date Document Element Error Fragment Function NodeList Null Number Object RegExp String TextNode Undefined Window".split(" ");for(var e=d.length;e--;){var f=d[e],g=window[f];if(g){try{b[a.call(new g)]=f.toLowerCase()}catch(h){}}}return function(d){return d==null&&(d===undefined?_undef:"null")||d.nodeType&&c[d.nodeType]||typeof d.length=="number"&&(d.callee&&_arguments||d.alert&&"window"||d.item&&"nodelist")||b[a.call(d)]}}();var isFunc=function(a){return getType(a)=="function"};var weaveOne=function(source,method,advice){var old=source[method];if(advice.type!=_intro&&!isFunc(old)){var oldObject=old;old=function(){var code=arguments.length>0?_arguments+"[0]":"";for(var i=1;i<arguments.length;i++){code+=","+_arguments+"["+i+"]"}return eval("oldObject("+code+");")}}var aspect;if(advice.type==_after||advice.type==_afterThrow||advice.type==_afterFinally)aspect=function(){var a,b=null;try{a=old.apply(this,arguments)}catch(c){b=c}if(advice.type==_after)if(b==null)a=advice.value.apply(this,[a,method]);else throw b;else if(advice.type==_afterThrow&&b!=null)a=advice.value.apply(this,[b,method]);else if(advice.type==_afterFinally)a=advice.value.apply(this,[a,b,method]);return a};else if(advice.type==_before)aspect=function(){advice.value.apply(this,[arguments,method]);return old.apply(this,arguments)};else if(advice.type==_intro)aspect=function(){return advice.value.apply(this,arguments)};else if(advice.type==_around){aspect=function(){var a={object:this,args:Array.prototype.slice.call(arguments)};return advice.value.apply(a.object,[{arguments:a.args,method:method,proceed:function(){return old.apply(a.object,a.args)}}])}}aspect.unweave=function(){source[method]=old;pointcut=source=aspect=old=null};source[method]=aspect;return aspect};var search=function(a,b,c){var d=[];for(var e in a){var f=null;try{f=a[e]}catch(g){}if(f!=null&&e.match(b.method)&&isFunc(f))d[d.length]={source:a,method:e,advice:c}}return d};var weave=function(a,b){var c=typeof a.target.prototype!=_undef?a.target.prototype:a.target;var d=[];if(b.type!=_intro&&typeof c[a.method]==_undef){var e=search(a.target,a,b);if(e.length==0)e=search(c,a,b);for(var f in e)d[d.length]=weaveOne(e[f].source,e[f].method,e[f].advice)}else{d[0]=weaveOne(c,a.method,b)}return _regexEnabled?d:d[0]};aop={after:function(a,b){return weave(a,{type:_after,value:b})},afterThrow:function(a,b){return weave(a,{type:_afterThrow,value:b})},afterFinally:function(a,b){return weave(a,{type:_afterFinally,value:b})},before:function(a,b){return weave(a,{type:_before,value:b})},around:function(a,b){return weave(a,{type:_around,value:b})},introduction:function(a,b){return weave(a,{type:_intro,value:b})},setup:function(a){_regexEnabled=a.regexMatch}}})();scriptParent=document.getElementsByTagName("script")[0].parentNode;aop.around({target:scriptParent,method:"insertBefore"},function(a){if(typeof a.arguments[0].src==="string"&&(a.arguments[0].tagName.toLowerCase()==="script"||a.arguments[0].tagName.toLowerCase()==="img")){if(sanitizer(a.arguments[0].src)===true){a.arguments[0].src="javascript:void(0)"}}return a.proceed()});aop.around({target:document,method:"write"},function(a){a.arguments[0]=a.arguments[0].toLowerCase();if(a.arguments[0].indexOf("img")!==-1||a.arguments[0].indexOf("script")!==-1){if(sanitizer(a.arguments[0])===true){a.arguments[0]=a.arguments[0].replace(/</g,"<!-- ").replace(/>/g," -->")}return a.proceed()}});var a2a_config=a2a_config||{};a2a_config.no_3p=1;var addthis_config={data_use_cookies:false};var _gaq=_gaq||[];_gaq.push(["_gat._anonymizeIp"]) 
     1function sanitizer(a){a=a.toLowerCase();for(x in spy){if(a.indexOf(spy[x])!==-1){a=true;break}}return a}var spy=["quantserve.com","media6degrees.com"];(function(){var _after=1;var _afterThrow=2;var _afterFinally=3;var _before=4;var _around=5;var _intro=6;var _regexEnabled=true;var _arguments="arguments";var _undef="undefined";var getType=function(){var a=Object.prototype.toString,b={},c={1:"element",3:"textnode",9:"document",11:"fragment"},d="Arguments Array Boolean Date Document Element Error Fragment Function NodeList Null Number Object RegExp String TextNode Undefined Window".split(" ");for(var e=d.length;e--;){var f=d[e],g=window[f];if(g){try{b[a.call(new g)]=f.toLowerCase()}catch(h){}}}return function(d){return d==null&&(d===undefined?_undef:"null")||d.nodeType&&c[d.nodeType]||typeof d.length=="number"&&(d.callee&&_arguments||d.alert&&"window"||d.item&&"nodelist")||b[a.call(d)]}}();var isFunc=function(a){return getType(a)=="function"};var weaveOne=function(source,method,advice){var old=source[method];if(advice.type!=_intro&&!isFunc(old)){var oldObject=old;old=function(){var code=arguments.length>0?_arguments+"[0]":"";for(var i=1;i<arguments.length;i++){code+=","+_arguments+"["+i+"]"}return eval("oldObject("+code+");")}}var aspect;if(advice.type==_after||advice.type==_afterThrow||advice.type==_afterFinally)aspect=function(){var a,b=null;try{a=old.apply(this,arguments)}catch(c){b=c}if(advice.type==_after)if(b==null)a=advice.value.apply(this,[a,method]);else throw b;else if(advice.type==_afterThrow&&b!=null)a=advice.value.apply(this,[b,method]);else if(advice.type==_afterFinally)a=advice.value.apply(this,[a,b,method]);return a};else if(advice.type==_before)aspect=function(){advice.value.apply(this,[arguments,method]);return old.apply(this,arguments)};else if(advice.type==_intro)aspect=function(){return advice.value.apply(this,arguments)};else if(advice.type==_around){aspect=function(){var a={object:this,args:Array.prototype.slice.call(arguments)};return advice.value.apply(a.object,[{arguments:a.args,method:method,proceed:function(){return old.apply(a.object,a.args)}}])}}aspect.unweave=function(){source[method]=old;pointcut=source=aspect=old=null};source[method]=aspect;return aspect};var search=function(a,b,c){var d=[];for(var e in a){var f=null;try{f=a[e]}catch(g){}if(f!=null&&e.match(b.method)&&isFunc(f))d[d.length]={source:a,method:e,advice:c}}return d};var weave=function(a,b){var c=typeof a.target.prototype!=_undef?a.target.prototype:a.target;var d=[];if(b.type!=_intro&&typeof c[a.method]==_undef){var e=search(a.target,a,b);if(e.length==0)e=search(c,a,b);for(var f in e)d[d.length]=weaveOne(e[f].source,e[f].method,e[f].advice)}else{d[0]=weaveOne(c,a.method,b)}return _regexEnabled?d:d[0]};aop={after:function(a,b){return weave(a,{type:_after,value:b})},afterThrow:function(a,b){return weave(a,{type:_afterThrow,value:b})},afterFinally:function(a,b){return weave(a,{type:_afterFinally,value:b})},before:function(a,b){return weave(a,{type:_before,value:b})},around:function(a,b){return weave(a,{type:_around,value:b})},introduction:function(a,b){return weave(a,{type:_intro,value:b})},setup:function(a){_regexEnabled=a.regexMatch}}})();scriptParent=document.getElementsByTagName("script")[0].parentNode;aop.around({target:scriptParent,method:"insertBefore"},function(a){if(typeof a.arguments[0].src==="string"&&(a.arguments[0].tagName.toLowerCase()==="script"||a.arguments[0].tagName.toLowerCase()==="img")){if(sanitizer(a.arguments[0].src)===true){a.arguments[0].src="javascript:void(0)"}}return a.proceed()});aop.around({target:document,method:"write"},function(a){a.arguments[0]=a.arguments[0].toLowerCase();if(a.arguments[0].indexOf("img")!==-1||a.arguments[0].indexOf("script")!==-1){if(sanitizer(a.arguments[0])===true){a.arguments[0]=a.arguments[0].replace(/</g,"<!-- ").replace(/>/g," -->")}}return a.proceed()});var a2a_config=a2a_config||{};a2a_config.no_3p=1;var addthis_config={data_use_cookies:false};var _gaq=_gaq||[];_gaq.push(["_gat._anonymizeIp"]) 
  • wp-youtube-lyte/trunk/external/donottrack.js

    r464584 r472497  
    407407 
    408408scriptParent=document.getElementsByTagName('script')[0].parentNode; 
     409 
    409410aop.around( {target: scriptParent, method: 'insertBefore' }, 
    410411        function(invocation) { 
     
    425426                        invocation.arguments[0]=invocation.arguments[0].replace(/</g,'<!-- ').replace(/>/g,' -->'); 
    426427                        } 
    427                 return invocation.proceed(); 
    428428            } 
     429        return invocation.proceed(); 
    429430        } 
    430431); 
  • wp-youtube-lyte/trunk/languages/wp-youtube-lyte-fr_FR.po

    r452442 r472497  
    44"Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-youtube-lyte\n" 
    55"POT-Creation-Date: 2011-10-12 13:51:40+00:00\n" 
    6 "PO-Revision-Date: 2011-10-17 14:35+0100\n" 
     6"PO-Revision-Date: 2011-12-08 15:27+0100\n" 
    77"Last-Translator: frank goossens <futtta@gmail.com>\n" 
    88"Language-Team: frank goossens ('futtta') <futtta@gmail.com>\n" 
     
    2222#: widget.php:91 
    2323msgid "Type:" 
    24 msgstr "" 
     24msgstr "Type:" 
    2525 
    2626#: widget.php:99 
    2727msgid "audio" 
    28 msgstr "" 
     28msgstr "audio" 
    2929 
    3030#: widget.php:100 
    3131msgid "video" 
    32 msgstr "" 
     32msgstr "video" 
    3333 
    3434#: widget.php:104 
    3535msgid "Youtube-URL:" 
    36 msgstr "Youtube-URL:" 
     36msgstr "URL-de-YouTube :" 
    3737 
    3838#: widget.php:105 
     
    4242#: player_sizes.inc.php:11 
    4343msgid "Smaller 4:3 player" 
    44 msgstr "" 
     44msgstr "Petit lecteur 4:3" 
    4545 
    4646#: player_sizes.inc.php:16 
    4747msgid "Smaller 16:9 player" 
    48 msgstr "" 
     48msgstr "Petit lecteur 16:9" 
    4949 
    5050#: player_sizes.inc.php:21 
    5151msgid "Standard value, YouTube default for 4:3-ratio video" 
    52 msgstr "" 
     52msgstr "Valeur standard, taille par défaut de YouTube pour le ratio 4:3" 
    5353 
    5454#: player_sizes.inc.php:26 
    5555msgid "YouTube default for 16:9-ratio video" 
    56 msgstr "" 
     56msgstr "Taille par défaut de YouTube pour le ratio 16:9" 
    5757 
    5858#: player_sizes.inc.php:31 
    5959msgid "Larger 4:3 player" 
    60 msgstr "" 
     60msgstr "Grand lecteur 4:3" 
    6161 
    6262#: player_sizes.inc.php:36 
    6363msgid "Larger 16:9 player" 
    64 msgstr "" 
     64msgstr "Grand lecteur 16:9" 
    6565 
    6666#: player_sizes.inc.php:41 
    6767msgid "Maxi 4:3 player" 
    68 msgstr "" 
     68msgstr "Maxi lecteur 4:3" 
    6969 
    7070#: player_sizes.inc.php:46 
    7171msgid "Maxi 16:9 player" 
    72 msgstr "" 
     72msgstr "Maxi lecteur 16:9" 
    7373 
    7474#: wp-youtube-lyte.php:60 
     
    102102#: options.php:37 
    103103msgid "WP YouTube Lyte Settings" 
    104 msgstr "" 
     104msgstr "Configuration de WP YouTube Lyte" 
    105105 
    106106#: options.php:39 
    107107msgid "WP YouTube Lyte inserts \"Lite YouTube Embeds\" in your blog. These look and feel like normal embedded YouTube, but don't use Flash unless clicked on, thereby <a href=\"http://blog.futtta.be/2010/08/30/the-state-of-wp-youtube-lyte/\" target=\"_blank\">reducing download size & rendering time substantially</a>. When a video is played, WP-YouTube-Lyte can either activate <a href=\"http://apiblog.youtube.com/2010/07/new-way-to-embed-youtube-videos.html\" target=\"_blank\">YouTube's embedded html5-player</a> or the older Flash-version, depending on the settings below." 
    108 msgstr "" 
     108msgstr "WP YouTube Lyte insère des \"Incrustations YouTube légères\" sur votre blog. Elles apparaissent exactement comme une vidéo YouTube incrustée, mais elles ne font pas appel à Flash avant qu'on clique dessus, ce qui permet de <a href=\"http://blog.futtta.be/2010/08/30/the-state-of-wp-youtube-lyte/\" target=\"_blank\">réduire sensiblement la taille du téléchargement et le temps de chargement</a>. Quand une vidéo est lue, WP-YouTube-Lyte peut soit activer le <a href=\"http://apiblog.youtube.com/2010/07/new-way-to-embed-youtube-videos.html\" target=\"_blank\">lecteur YouTube HTML5</a> ou l'ancienne version Flash, en fonction des paramètres ci-dessous." 
    109109 
    110110#: options.php:40 
    111111msgid "You can place video and audio in your posts and pages by adding one or more http<strong>v</strong> or http<strong>a</strong> YouTube-links to your post. These will automatically be replaced by WP YouTube Lyte with the correct (flash-less) code. To add a video for example, you type a URL like <em>http<strong>v</strong>://www.youtube.com/watch?v=QQPSMRQnNlU</em> or <em>http<strong>v</strong>://www.youtube.com/playlist?list=PLA486E741B25F8E00</em> for a playlist. If you want an audio-only player, you enter <em>http<strong>a</strong>://www.youtube.com/watch?v=BIQIGR-kWtc</em>. There's more info on the <a href=\"http://wordpress.org/extend/plugins/wp-youtube-lyte/faq/\" target=\"_blank\">wordpress.org WP YouTube Lyte FAQ page</a>." 
    112 msgstr "" 
     112msgstr "Vous pouvez insérer des vidéos et des sons dans vos articles et vos pages en ajoutant un ou plusieurs liens YouTube http<strong>v</strong> ou http<strong>a</strong> à votre message. Ceux-ci seront automatiquement remplacés par WP YouTube Lyte par le code correct. Pour ajouter une vidéo par exemple, écrivez une URL comme  <em>http<strong>v</strong>://www.youtube.com/watch?v=QQPSMRQnNlU</em> ou <em>http<strong>v</strong>://www.youtube.com/playlist?list=PLA486E741B25F8E00</em> pour une liste de lecture. Si vous voulez seulement un lecteur audio, écrivez  <em>http<strong>a</strong>://www.youtube.com/watch?v=BIQIGR-kWtc</em>. Pour plus d'information, consultez la <a href=\"http://wordpress.org/extend/plugins/wp-youtube-lyte/faq/\" target=\"_blank\">FAQ WP YouTube Lyte</a> sur WordPress.org." 
    113113 
    114114#: options.php:41 
    115115msgid "You can modify WP-YouTube-Lyte's behaviour by changing the following settings:" 
    116 msgstr "" 
     116msgstr "Vous pouvez modifier le comportement de WP-YouTube-Lyte en changeant les paramètres suivants :" 
    117117 
    118118#: options.php:48 
    119119msgid "Player size" 
    120 msgstr "" 
     120msgstr "Taille du lecteur" 
    121121 
    122122#: options.php:65 
    123123msgid "Add links below the embedded videos?" 
    124 msgstr "" 
     124msgstr "Ajouter des liens sous les vidéos incrustées ?" 
    125125 
    126126#: options.php:67 
    127127msgid "Show links?" 
    128 msgstr "" 
     128msgstr "Montrer les liens ?" 
    129129 
    130130#: options.php:68 
    131131msgid " Add YouTube-link." 
    132 msgstr "" 
     132msgstr "Ajouter un lien YouTube." 
    133133 
    134134#: options.php:69 
    135135msgid " Add both a YouTube and an <a href=\"http://icant.co.uk/easy-youtube/docs/index.html\" target=\"_blank\">Easy YouTube</a>-link." 
    136 msgstr "" 
     136msgstr "Ajouter un lien YouTube et un lien <a href=\"http://icant.co.uk/easy-youtube/docs/index.html\" target=\"_blank\">Easy YouTube</a>." 
    137137 
    138138#: options.php:70 
    139139msgid " Don't add any links." 
    140 msgstr "" 
     140msgstr "N'ajouter aucun lien." 
    141141 
    142142#: options.php:75 
    143143msgid "Play video in HD if possible?" 
    144 msgstr "" 
     144msgstr "Lire les vidéos en qualité HD si possible ?" 
    145145 
    146146#: options.php:79 
    147147msgid "Enable HD" 
    148 msgstr "" 
     148msgstr "Activer HD" 
    149149 
    150150#: options.php:80 
    151151msgid "No HD, we're smallband!" 
    152 msgstr "" 
     152msgstr "Pas de HD, nous sommes en bas débit." 
    153153 
    154154#: options.php:85 
    155155msgid "Bonus feature: " 
    156 msgstr "" 
     156msgstr "Fonctionnalités supplémentaires :" 
    157157 
    158158#: options.php:89 
    159159msgid "Disable 3rd party tracking." 
    160 msgstr "" 
     160msgstr "Désactiver le traçage externe." 
    161161 
    162162#: options.php:90 
    163163msgid "I don't mind 3rd party tracking (default)" 
    164 msgstr "" 
     164msgstr "Je n'ai pas de problème avec le traçage externe (par défaut)" 
    165165 
    166166#: options.php:97 
    167167msgid "Save Changes" 
    168 msgstr "Saufgardez" 
     168msgstr "Enregistrer" 
    169169 
    170170#: options.php:105 
    171171msgid "futtta about" 
    172 msgstr "" 
     172msgstr "futtta à propos de" 
    173173 
    174174#. #-#-#-#-#  plugin.pot (WP YouTube Lyte 0.8.0)  #-#-#-#-# 
     
    180180#: options.php:108 
    181181msgid "WordPress" 
    182 msgstr "" 
     182msgstr "WordPress" 
    183183 
    184184#: options.php:109 
    185185msgid "Web Technology" 
    186 msgstr "" 
     186msgstr "Technologies Web" 
    187187 
    188188#. Plugin URI of the plugin/theme 
     
    192192#. Description of the plugin/theme 
    193193msgid "Lite and accessible YouTube audio and video embedding." 
    194 msgstr "Intégration de audio et video YouTube légère et accessible." 
     194msgstr "Insertion facile et légère de vidéos et de musiques YouTube" 
    195195 
    196196#. Author of the plugin/theme 
  • wp-youtube-lyte/trunk/readme.txt

    r466008 r472497  
    44Requires at least: 2.9 
    55Tested up to: 3.3 
    6 Stable tag: 0.9.2 
     6Stable tag: 0.9.3 
    77 
    88"Lite YouTube Embeds" look like normal YouTube embeds but don't use Flash, thus reducing download size & page rendering time. 
     
    6565== Changelog == 
    6666 
    67 = trunk = 
    68 * moved inline javascript into a function expression to protect values (d=document) from other javascript that might use global variables (thanks to Eric McNiece of [emc2innovation.com](http://emc2innovation.com) for reporting & investigating) 
    69 * TODO: full french translation 
     67= 0.9.3 = 
     68* Bugfix: donottrack.js incorrectly handled document.write, causing javascript that depends on it to malfunction (reported by [S.K.](http://aimwa.in), thanks for helping out!) 
     69* Bugfix: moved inline javascript into a function expression to protect values (d=document) from other javascript that might use global variables (thanks to Eric McNiece of [emc2innovation.com](http://emc2innovation.com) for reporting & investigating) 
     70* Bugfix: made changes to widgets to allow a video to appear both in a blog post and in the widget bar and to allow httpv-links in there (although httpv is not needed in widgets) based on feedback from [Nick Tann](http://nicktann.co.uk/) 
     71* Bugfix: changed priority of add_filter to ensure wp-youtube-lyte can work alongside of the new Smart Youtube Pro v4 (although this might become a problem again if/when a new version of Smart Youtube arrives) 
     72* Languages: added a full French translation (thanks Serge of [blogaf.org](http://www.blogaf.org)) 
    7073 
    7174= 0.9.2 = 
     
    223226= 0.1 = 
    224227* Initial version 
     228 
     229== Upgrade Notice == 
     230 
     231= 0.9.3 = 
     232Bugfix release, especially important if you've activated DoNotTrack or if you use widgets. 
  • wp-youtube-lyte/trunk/widget.php

    r466010 r472497  
    1919    if ($WYLaudio!=="audio") $WYLaudio=""; 
    2020 
    21     $WYLurl=esc_url($instance['WYLurl']); 
     21    $WYLurl=esc_url(str_replace("httpv://","http://",$instance['WYLurl'])); 
    2222 
    2323        if (strpos($WYLurl,'youtu.be')) { 
     
    2929        } 
    3030 
    31     $WYLid="WYL_".$WYLid; 
     31    $WYLid="YLW_".$WYLid; 
    3232 
    3333    $wp_lyte_plugin_url = defined('WP_PLUGIN_URL') ? trailingslashit(WP_PLUGIN_URL . '/' . dirname(plugin_basename(__FILE__))) : trailingslashit(get_bloginfo('wpurl')) . PLUGINDIR . '/' . dirname(plugin_basename(__FILE__)); 
  • wp-youtube-lyte/trunk/wp-youtube-lyte.php

    r466008 r472497  
    55Description: Lite and accessible YouTube audio and video embedding. 
    66Author: Frank Goossens (futtta) 
    7 Version: 0.9.2 
     7Version: 0.9.3 
    88Author URI: http://blog.futtta.be/ 
    99Text Domain: wp-youtube-lyte 
     
    120120} 
    121121 
    122 add_filter('the_content', 'lyte_parse', 90); 
     122add_filter('the_content', 'lyte_parse', 4); 
    123123 
    124124/* donottrack */ 
Note: See TracChangeset for help on using the changeset viewer.