WP YouTube Lyte - Version 0.9.3

Version Description

  • Bugfix: donottrack.js incorrectly handled document.write, causing javascript that depends on it to malfunction (reported by S.K., thanks for helping out!)
  • 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 for reporting & investigating)
  • 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
  • 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)
  • Languages: added a full French translation (thanks Serge of blogaf.org)
Download this release

Release Info

Developer futtta
Plugin Icon 128x128 WP YouTube Lyte
Version 0.9.3
Comparing to
See all releases

Code changes from version 0.9.2 to 0.9.3

external/donottrack-min.js CHANGED
@@ -1 +1 @@
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"])
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"])
external/donottrack.js CHANGED
@@ -406,6 +406,7 @@ var spy=['quantserve.com','media6degrees.com'];
406
  })();
407
 
408
  scriptParent=document.getElementsByTagName('script')[0].parentNode;
 
409
  aop.around( {target: scriptParent, method: 'insertBefore' },
410
  function(invocation) {
411
  if ((typeof(invocation.arguments[0].src)==='string')&&((invocation.arguments[0].tagName.toLowerCase()==='script')||(invocation.arguments[0].tagName.toLowerCase()==='img'))) {
@@ -424,8 +425,8 @@ aop.around( {target: document, method: 'write' },
424
  if (sanitizer(invocation.arguments[0])===true) {
425
  invocation.arguments[0]=invocation.arguments[0].replace(/</g,'<!-- ').replace(/>/g,' -->');
426
  }
427
- return invocation.proceed();
428
  }
 
429
  }
430
  );
431
 
406
  })();
407
 
408
  scriptParent=document.getElementsByTagName('script')[0].parentNode;
409
+
410
  aop.around( {target: scriptParent, method: 'insertBefore' },
411
  function(invocation) {
412
  if ((typeof(invocation.arguments[0].src)==='string')&&((invocation.arguments[0].tagName.toLowerCase()==='script')||(invocation.arguments[0].tagName.toLowerCase()==='img'))) {
425
  if (sanitizer(invocation.arguments[0])===true) {
426
  invocation.arguments[0]=invocation.arguments[0].replace(/</g,'<!-- ').replace(/>/g,' -->');
427
  }
 
428
  }
429
+ return invocation.proceed();
430
  }
431
  );
432
 
languages/wp-youtube-lyte-fr_BE.mo CHANGED
Binary file
languages/wp-youtube-lyte-fr_FR.mo CHANGED
Binary file
languages/wp-youtube-lyte-fr_FR.po CHANGED
@@ -3,7 +3,7 @@ msgstr ""
3
  "Project-Id-Version: WP YouTube Lyte\n"
4
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-youtube-lyte\n"
5
  "POT-Creation-Date: 2011-10-12 13:51:40+00:00\n"
6
- "PO-Revision-Date: 2011-10-17 14:35+0100\n"
7
  "Last-Translator: frank goossens <futtta@gmail.com>\n"
8
  "Language-Team: frank goossens ('futtta') <futtta@gmail.com>\n"
9
  "MIME-Version: 1.0\n"
@@ -21,19 +21,19 @@ msgstr "Taille:"
21
 
22
  #: widget.php:91
23
  msgid "Type:"
24
- msgstr ""
25
 
26
  #: widget.php:99
27
  msgid "audio"
28
- msgstr ""
29
 
30
  #: widget.php:100
31
  msgid "video"
32
- msgstr ""
33
 
34
  #: widget.php:104
35
  msgid "Youtube-URL:"
36
- msgstr "Youtube-URL:"
37
 
38
  #: widget.php:105
39
  msgid "Text:"
@@ -41,35 +41,35 @@ msgstr "Texte:"
41
 
42
  #: player_sizes.inc.php:11
43
  msgid "Smaller 4:3 player"
44
- msgstr ""
45
 
46
  #: player_sizes.inc.php:16
47
  msgid "Smaller 16:9 player"
48
- msgstr ""
49
 
50
  #: player_sizes.inc.php:21
51
  msgid "Standard value, YouTube default for 4:3-ratio video"
52
- msgstr ""
53
 
54
  #: player_sizes.inc.php:26
55
  msgid "YouTube default for 16:9-ratio video"
56
- msgstr ""
57
 
58
  #: player_sizes.inc.php:31
59
  msgid "Larger 4:3 player"
60
- msgstr ""
61
 
62
  #: player_sizes.inc.php:36
63
  msgid "Larger 16:9 player"
64
- msgstr ""
65
 
66
  #: player_sizes.inc.php:41
67
  msgid "Maxi 4:3 player"
68
- msgstr ""
69
 
70
  #: player_sizes.inc.php:46
71
  msgid "Maxi 16:9 player"
72
- msgstr ""
73
 
74
  #: wp-youtube-lyte.php:60
75
  #: wp-youtube-lyte.php:64
@@ -101,75 +101,75 @@ msgstr "ou sur"
101
 
102
  #: options.php:37
103
  msgid "WP YouTube Lyte Settings"
104
- msgstr ""
105
 
106
  #: options.php:39
107
  msgid "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 ""
109
 
110
  #: options.php:40
111
  msgid "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 ""
113
 
114
  #: options.php:41
115
  msgid "You can modify WP-YouTube-Lyte's behaviour by changing the following settings:"
116
- msgstr ""
117
 
118
  #: options.php:48
119
  msgid "Player size"
120
- msgstr ""
121
 
122
  #: options.php:65
123
  msgid "Add links below the embedded videos?"
124
- msgstr ""
125
 
126
  #: options.php:67
127
  msgid "Show links?"
128
- msgstr ""
129
 
130
  #: options.php:68
131
  msgid " Add YouTube-link."
132
- msgstr ""
133
 
134
  #: options.php:69
135
  msgid " 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 ""
137
 
138
  #: options.php:70
139
  msgid " Don't add any links."
140
- msgstr ""
141
 
142
  #: options.php:75
143
  msgid "Play video in HD if possible?"
144
- msgstr ""
145
 
146
  #: options.php:79
147
  msgid "Enable HD"
148
- msgstr ""
149
 
150
  #: options.php:80
151
  msgid "No HD, we're smallband!"
152
- msgstr ""
153
 
154
  #: options.php:85
155
  msgid "Bonus feature: "
156
- msgstr ""
157
 
158
  #: options.php:89
159
  msgid "Disable 3rd party tracking."
160
- msgstr ""
161
 
162
  #: options.php:90
163
  msgid "I don't mind 3rd party tracking (default)"
164
- msgstr ""
165
 
166
  #: options.php:97
167
  msgid "Save Changes"
168
- msgstr "Saufgardez"
169
 
170
  #: options.php:105
171
  msgid "futtta about"
172
- msgstr ""
173
 
174
  #. #-#-#-#-# plugin.pot (WP YouTube Lyte 0.8.0) #-#-#-#-#
175
  #. Plugin Name of the plugin/theme
@@ -179,11 +179,11 @@ msgstr "WP YouTube Lyte"
179
 
180
  #: options.php:108
181
  msgid "WordPress"
182
- msgstr ""
183
 
184
  #: options.php:109
185
  msgid "Web Technology"
186
- msgstr ""
187
 
188
  #. Plugin URI of the plugin/theme
189
  msgid "http://blog.futtta.be/tag/lyte"
@@ -191,7 +191,7 @@ msgstr "http://blog.futtta.be/tag/lyte"
191
 
192
  #. Description of the plugin/theme
193
  msgid "Lite and accessible YouTube audio and video embedding."
194
- msgstr "Intégration de audio et video YouTube légère et accessible."
195
 
196
  #. Author of the plugin/theme
197
  msgid "Frank Goossens (futtta)"
3
  "Project-Id-Version: WP YouTube Lyte\n"
4
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-youtube-lyte\n"
5
  "POT-Creation-Date: 2011-10-12 13:51:40+00:00\n"
6
+ "PO-Revision-Date: 2011-12-08 15:27+0100\n"
7
  "Last-Translator: frank goossens <futtta@gmail.com>\n"
8
  "Language-Team: frank goossens ('futtta') <futtta@gmail.com>\n"
9
  "MIME-Version: 1.0\n"
21
 
22
  #: widget.php:91
23
  msgid "Type:"
24
+ msgstr "Type:"
25
 
26
  #: widget.php:99
27
  msgid "audio"
28
+ msgstr "audio"
29
 
30
  #: widget.php:100
31
  msgid "video"
32
+ msgstr "video"
33
 
34
  #: widget.php:104
35
  msgid "Youtube-URL:"
36
+ msgstr "URL-de-YouTube :"
37
 
38
  #: widget.php:105
39
  msgid "Text:"
41
 
42
  #: player_sizes.inc.php:11
43
  msgid "Smaller 4:3 player"
44
+ msgstr "Petit lecteur 4:3"
45
 
46
  #: player_sizes.inc.php:16
47
  msgid "Smaller 16:9 player"
48
+ msgstr "Petit lecteur 16:9"
49
 
50
  #: player_sizes.inc.php:21
51
  msgid "Standard value, YouTube default for 4:3-ratio video"
52
+ msgstr "Valeur standard, taille par défaut de YouTube pour le ratio 4:3"
53
 
54
  #: player_sizes.inc.php:26
55
  msgid "YouTube default for 16:9-ratio video"
56
+ msgstr "Taille par défaut de YouTube pour le ratio 16:9"
57
 
58
  #: player_sizes.inc.php:31
59
  msgid "Larger 4:3 player"
60
+ msgstr "Grand lecteur 4:3"
61
 
62
  #: player_sizes.inc.php:36
63
  msgid "Larger 16:9 player"
64
+ msgstr "Grand lecteur 16:9"
65
 
66
  #: player_sizes.inc.php:41
67
  msgid "Maxi 4:3 player"
68
+ msgstr "Maxi lecteur 4:3"
69
 
70
  #: player_sizes.inc.php:46
71
  msgid "Maxi 16:9 player"
72
+ msgstr "Maxi lecteur 16:9"
73
 
74
  #: wp-youtube-lyte.php:60
75
  #: wp-youtube-lyte.php:64
101
 
102
  #: options.php:37
103
  msgid "WP YouTube Lyte Settings"
104
+ msgstr "Configuration de WP YouTube Lyte"
105
 
106
  #: options.php:39
107
  msgid "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 "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."
109
 
110
  #: options.php:40
111
  msgid "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 "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."
113
 
114
  #: options.php:41
115
  msgid "You can modify WP-YouTube-Lyte's behaviour by changing the following settings:"
116
+ msgstr "Vous pouvez modifier le comportement de WP-YouTube-Lyte en changeant les paramètres suivants :"
117
 
118
  #: options.php:48
119
  msgid "Player size"
120
+ msgstr "Taille du lecteur"
121
 
122
  #: options.php:65
123
  msgid "Add links below the embedded videos?"
124
+ msgstr "Ajouter des liens sous les vidéos incrustées ?"
125
 
126
  #: options.php:67
127
  msgid "Show links?"
128
+ msgstr "Montrer les liens ?"
129
 
130
  #: options.php:68
131
  msgid " Add YouTube-link."
132
+ msgstr "Ajouter un lien YouTube."
133
 
134
  #: options.php:69
135
  msgid " 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 "Ajouter un lien YouTube et un lien <a href=\"http://icant.co.uk/easy-youtube/docs/index.html\" target=\"_blank\">Easy YouTube</a>."
137
 
138
  #: options.php:70
139
  msgid " Don't add any links."
140
+ msgstr "N'ajouter aucun lien."
141
 
142
  #: options.php:75
143
  msgid "Play video in HD if possible?"
144
+ msgstr "Lire les vidéos en qualité HD si possible ?"
145
 
146
  #: options.php:79
147
  msgid "Enable HD"
148
+ msgstr "Activer HD"
149
 
150
  #: options.php:80
151
  msgid "No HD, we're smallband!"
152
+ msgstr "Pas de HD, nous sommes en bas débit."
153
 
154
  #: options.php:85
155
  msgid "Bonus feature: "
156
+ msgstr "Fonctionnalités supplémentaires :"
157
 
158
  #: options.php:89
159
  msgid "Disable 3rd party tracking."
160
+ msgstr "Désactiver le traçage externe."
161
 
162
  #: options.php:90
163
  msgid "I don't mind 3rd party tracking (default)"
164
+ msgstr "Je n'ai pas de problème avec le traçage externe (par défaut)"
165
 
166
  #: options.php:97
167
  msgid "Save Changes"
168
+ msgstr "Enregistrer"
169
 
170
  #: options.php:105
171
  msgid "futtta about"
172
+ msgstr "futtta à propos de"
173
 
174
  #. #-#-#-#-# plugin.pot (WP YouTube Lyte 0.8.0) #-#-#-#-#
175
  #. Plugin Name of the plugin/theme
179
 
180
  #: options.php:108
181
  msgid "WordPress"
182
+ msgstr "WordPress"
183
 
184
  #: options.php:109
185
  msgid "Web Technology"
186
+ msgstr "Technologies Web"
187
 
188
  #. Plugin URI of the plugin/theme
189
  msgid "http://blog.futtta.be/tag/lyte"
191
 
192
  #. Description of the plugin/theme
193
  msgid "Lite and accessible YouTube audio and video embedding."
194
+ msgstr "Insertion facile et légère de vidéos et de musiques YouTube"
195
 
196
  #. Author of the plugin/theme
197
  msgid "Frank Goossens (futtta)"
lyte/lyte-min.js CHANGED
@@ -1 +1 @@
1
- function loadScript(a){scr=doc.createElement("script");scr.src=a;scr.type="text/javascript";doc.getElementsByTagName("head")[0].appendChild(scr)}function setStyle(a,b){if(typeof a.setAttribute==="function")a.setAttribute("style",b);else if(typeof a.style.setAttribute==="object")a.style.setAttribute("cssText",b)}function drawTitle(a,b){p=doc.getElementById(a);c=doc.createElement("div");c.className="tC";p.appendChild(c);setStyle(c,"margin:-"+(p.clientHeight/2+15)+"px 5px;");t=doc.createElement("div");t.className="tT";c.appendChild(t);t.innerHTML=b}function parsePL(a){thumb=a.feed.entry[0].media$group.media$thumbnail[1].url;idu=a.feed.id.$t;id="lyte_"+idu.substring(idu.length-16);title="Playlist: "+a.feed.title.$t;pl=d.getElementById(id);pH=pl.style.height;pW=pl.style.width;setStyle(pl,"height:"+pH+";width:"+pW+';background:url("'+thumb+'") no-repeat scroll center -10px rgb(0, 0, 0); background-size:contain;');drawTitle(id,title)}function parseV(a){title=a.entry.title.$t;idu=a.entry.id.$t;id="lyte_"+idu.substring(idu.length-11);drawTitle(id,title)}function plaYT(){this.onclick="";vid=this.id.substring(4);if(this.className.indexOf("hidef")===-1){hidef=0}else{hidef=1}if(this.className.indexOf("playlist")===-1){eU="http://www.youtube.com/embed/"+vid}else{eU="http://www.youtube.com/embed/p/"+vid}this.innerHTML='<iframe class="youtube-player" type="text/html" width="'+this.clientWidth+'" height="'+this.clientHeight+'" src="'+eU+"?autoplay=1&rel=0&egm=0&iv_load_policy=3&probably_logged_in=false&hd="+hidef+'" frameborder="0"></iframe>'}function lyte(){lytes=getElementsByClassName("lyte","div");for(var a=0;a<lytes.length;a++){lyte_id=lytes[a].id;vid=lyte_id.substring(4);p=doc.getElementById(lyte_id);p.className+=" lP";pW=p.clientWidth;pH=p.clientHeight;pl=doc.createElement("div");p.appendChild(pl);p.onclick=plaYT;pl.id="lyte_"+vid;pl.className="pL";if(p.className.indexOf("audio")!==-1){setStyle(pl,"height:"+pH+"px;width:"+pW);pl.innerHTML='<img src="'+bU+"controls-"+pW+'.png" width="100%" id="ctrl" alt="" style="max-width:'+pW+'px;"/>'}else if(p.className.indexOf("playlist")!==-1){setStyle(pl,"height:"+pH+"px;width:"+pW+"px;");pl.innerHTML='<img src="'+bU+'play.png" alt="Click to play this playlist" style="margin-top:'+(pH/2-30)+'px;opacity:0.7;" onmouseover="this.style.opacity=1;" onmouseout="this.style.opacity=0.8;"/><img src="'+bU+"controls-"+pW+'.png" width="100%" id="ctrl" alt="" style="max-width:'+pW+'px;"/>';jsonUrl="http://gdata.youtube.com/feeds/api/playlists/"+vid+"?v=2&alt=json-in-script&callback=parsePL&fields=id,title,entry";loadScript(jsonUrl)}else{setStyle(pl,"height:"+pH+"px;width:"+pW+'px;background:url("http://img.youtube.com/vi/'+vid+'/0.jpg") no-repeat scroll center -10px rgb(0, 0, 0);background-size:contain;');pl.innerHTML='<img src="'+bU+'play.png" alt="Click to play this video" style="margin-top:'+(pH/2-30)+'px;opacity:0.7;" onmouseover="this.style.opacity=1;" onmouseout="this.style.opacity=0.8;"/><img src="'+bU+"controls-"+pW+'.png" width="100%" id="ctrl" alt="" style="max-width:'+pW+'px;"/>';if(p.className.indexOf("widget")===-1){jsonUrl="http://gdata.youtube.com/feeds/api/videos/"+vid+"?fields=id,title&alt=json-in-script&callback=parseV";loadScript(jsonUrl)}}}}var doc=document;var cI="lytecss";if(!doc.getElementById(cI)){lk=doc.createElement("link");lk.id=cI;lk.rel="stylesheet";lk.type="text/css";lk.href=bU+"lyte.css";doc.getElementsByTagName("head")[0].appendChild(lk)}var getElementsByClassName=function(a,b,c){if(doc.getElementsByClassName){getElementsByClassName=function(a,b,c){c=c||doc;var d=c.getElementsByClassName(a),e=b?new RegExp("\\b"+b+"\\b","i"):null,f=[],g;for(var h=0,i=d.length;h<i;h+=1){g=d[h];if(!e||e.test(g.nodeName)){f.push(g)}}return f}}else if(doc.evaluate){getElementsByClassName=function(a,b,c){b=b||"*";c=c||doc;var d=a.split(" "),e="",f="http://www.w3.org/1999/xhtml",g=doc.documentElement.namespaceURI===f?f:null,h=[],i,j;for(var k=0,l=d.length;k<l;k+=1){e+="[contains(concat(' ', @class, ' '), ' "+d[k]+" ')]"}try{i=doc.evaluate(".//"+b+e,c,g,0,null)}catch(m){i=doc.evaluate(".//"+b+e,c,null,0,null)}while(j=i.iterateNext()){h.push(j)}return h}}else{getElementsByClassName=function(a,b,c){b=b||"*";c=c||doc;var d=a.split(" "),e=[],f=b==="*"&&c.all?c.all:c.getElementsByTagName(b),g,h=[],i;for(var j=0,k=d.length;j<k;j+=1){e.push(new RegExp("(^|\\s)"+d[j]+"(\\s|$)"))}for(var l=0,m=f.length;l<m;l+=1){g=f[l];i=false;for(var n=0,o=e.length;n<o;n+=1){i=e[n].test(g.className);if(!i){break}}if(i){h.push(g)}}return h}}return getElementsByClassName(a,b,c)};lyte()
1
+ function loadScript(a){scr=doc.createElement("script");scr.src=a;scr.type="text/javascript";doc.getElementsByTagName("head")[0].appendChild(scr)}function setStyle(a,b){if(typeof a.setAttribute==="function")a.setAttribute("style",b);else if(typeof a.style.setAttribute==="object")a.style.setAttribute("cssText",b)}function drawTitle(a,b){p=doc.getElementById(a);c=doc.createElement("div");c.className="tC";p.appendChild(c);setStyle(c,"margin:-"+(p.clientHeight/2+15)+"px 5px;");t=doc.createElement("div");t.className="tT";c.appendChild(t);t.innerHTML=b}function parsePL(a){thumb=a.feed.entry[0].media$group.media$thumbnail[1].url;idu=a.feed.id.$t;id="lyte_"+idu.substring(idu.length-16);title="Playlist: "+a.feed.title.$t;pl=doc.getElementById(id);pH=pl.style.height;pW=pl.style.width;setStyle(pl,"height:"+pH+";width:"+pW+';background:url("'+thumb+'") no-repeat scroll center -10px rgb(0, 0, 0); background-size:contain;');drawTitle(id,title)}function parseV(a){title=a.entry.title.$t;idu=a.entry.id.$t;id="lyte_"+idu.substring(idu.length-11);drawTitle(id,title)}function plaYT(){this.onclick="";vid=this.id.substring(4);if(this.className.indexOf("hidef")===-1){hidef=0}else{hidef=1}if(this.className.indexOf("playlist")===-1){eU="http://www.youtube.com/embed/"+vid}else{eU="http://www.youtube.com/embed/p/"+vid}this.innerHTML='<iframe class="youtube-player" type="text/html" width="'+this.clientWidth+'" height="'+this.clientHeight+'" src="'+eU+"?autoplay=1&rel=0&egm=0&iv_load_policy=3&probably_logged_in=false&hd="+hidef+'" frameborder="0"></iframe>'}function lyte(){lytes=getElementsByClassName("lyte","div");for(var a=0;a<lytes.length;a++){lyte_id=lytes[a].id;vid=lyte_id.substring(4);p=doc.getElementById(lyte_id);p.className+=" lP";pW=p.clientWidth;pH=p.clientHeight;pl=doc.createElement("div");p.appendChild(pl);p.onclick=plaYT;pl.id="lyte_"+vid;pl.className="pL";if(p.className.indexOf("audio")!==-1){setStyle(pl,"height:"+pH+"px;width:"+pW);pl.innerHTML='<img src="'+bU+"controls-"+pW+'.png" width="100%" id="ctrl" alt="" style="max-width:'+pW+'px;"/>'}else if(p.className.indexOf("playlist")!==-1){setStyle(pl,"height:"+pH+"px;width:"+pW+"px;");pl.innerHTML='<img src="'+bU+'play.png" alt="Click to play this playlist" style="margin-top:'+(pH/2-30)+'px;opacity:0.7;" onmouseover="this.style.opacity=1;" onmouseout="this.style.opacity=0.8;"/><img src="'+bU+"controls-"+pW+'.png" width="100%" id="ctrl" alt="" style="max-width:'+pW+'px;"/>';jsonUrl="http://gdata.youtube.com/feeds/api/playlists/"+vid+"?v=2&alt=json-in-script&callback=parsePL&fields=id,title,entry";loadScript(jsonUrl)}else{setStyle(pl,"height:"+pH+"px;width:"+pW+'px;background:url("http://img.youtube.com/vi/'+vid+'/0.jpg") no-repeat scroll center -10px rgb(0, 0, 0);background-size:contain;');pl.innerHTML='<img src="'+bU+'play.png" alt="Click to play this video" style="margin-top:'+(pH/2-30)+'px;opacity:0.7;" onmouseover="this.style.opacity=1;" onmouseout="this.style.opacity=0.8;"/><img src="'+bU+"controls-"+pW+'.png" width="100%" id="ctrl" alt="" style="max-width:'+pW+'px;"/>';if(p.className.indexOf("widget")===-1){jsonUrl="http://gdata.youtube.com/feeds/api/videos/"+vid+"?fields=id,title&alt=json-in-script&callback=parseV";loadScript(jsonUrl)}}}}var doc=document;var cI="lytecss";var myUrl=doc.getElementById("lytescr").src;var bU=myUrl.substring(0,myUrl.lastIndexOf("/")+1);if(!doc.getElementById(cI)){lk=doc.createElement("link");lk.id=cI;lk.rel="stylesheet";lk.type="text/css";lk.href=bU+"lyte.css";doc.getElementsByTagName("head")[0].appendChild(lk)}var getElementsByClassName=function(a,b,c){if(doc.getElementsByClassName){getElementsByClassName=function(a,b,c){c=c||doc;var d=c.getElementsByClassName(a),e=b?new RegExp("\\b"+b+"\\b","i"):null,f=[],g;for(var h=0,i=d.length;h<i;h+=1){g=d[h];if(!e||e.test(g.nodeName)){f.push(g)}}return f}}else if(doc.evaluate){getElementsByClassName=function(a,b,c){b=b||"*";c=c||doc;var d=a.split(" "),e="",f="http://www.w3.org/1999/xhtml",g=doc.documentElement.namespaceURI===f?f:null,h=[],i,j;for(var k=0,l=d.length;k<l;k+=1){e+="[contains(concat(' ', @class, ' '), ' "+d[k]+" ')]"}try{i=doc.evaluate(".//"+b+e,c,g,0,null)}catch(m){i=doc.evaluate(".//"+b+e,c,null,0,null)}while(j=i.iterateNext()){h.push(j)}return h}}else{getElementsByClassName=function(a,b,c){b=b||"*";c=c||doc;var d=a.split(" "),e=[],f=b==="*"&&c.all?c.all:c.getElementsByTagName(b),g,h=[],i;for(var j=0,k=d.length;j<k;j+=1){e.push(new RegExp("(^|\\s)"+d[j]+"(\\s|$)"))}for(var l=0,m=f.length;l<m;l+=1){g=f[l];i=false;for(var n=0,o=e.length;n<o;n+=1){i=e[n].test(g.className);if(!i){break}}if(i){h.push(g)}}return h}}return getElementsByClassName(a,b,c)};lyte()
lyte/lyte.js CHANGED
@@ -1,6 +1,9 @@
1
  var doc = document;
2
  var cI = 'lytecss';
3
 
 
 
 
4
  if (!doc.getElementById(cI)) {
5
  lk = doc.createElement('link');
6
  lk.id = cI;
@@ -75,7 +78,7 @@ function parsePL(r) {
75
  idu=r.feed.id.$t
76
  id="lyte_"+idu.substring(idu.length - 16)
77
  title="Playlist: "+r.feed.title.$t
78
- pl=d.getElementById(id)
79
  pH=pl.style.height;
80
  pW=pl.style.width;
81
 
1
  var doc = document;
2
  var cI = 'lytecss';
3
 
4
+ var myUrl = doc.getElementById('lytescr').src;
5
+ var bU = myUrl.substring(0,myUrl.lastIndexOf('/')+1);
6
+
7
  if (!doc.getElementById(cI)) {
8
  lk = doc.createElement('link');
9
  lk.id = cI;
78
  idu=r.feed.id.$t
79
  id="lyte_"+idu.substring(idu.length - 16)
80
  title="Playlist: "+r.feed.title.$t
81
+ pl=doc.getElementById(id)
82
  pH=pl.style.height;
83
  pW=pl.style.width;
84
 
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: futtta
3
  Tags: youtube, video, lyte, lite youtube embeds, html5 video, html5, widget, youtube audio, audio, playlist, youtube playlist, hd, performance, accessibility, sidebar
4
  Requires at least: 2.9
5
  Tested up to: 3.3
6
- Stable tag: 0.9.2
7
 
8
  "Lite YouTube Embeds" look like normal YouTube embeds but don't use Flash, thus reducing download size & page rendering time.
9
 
@@ -64,6 +64,13 @@ and you're good to go!
64
 
65
  == Changelog ==
66
 
 
 
 
 
 
 
 
67
  = 0.9.2 =
68
  * solved bug with W3 Total Cache where the URL for lyte-min.js got broken (thanks to Serge of [blogaf.org](http://www.blogaf.org) for reporting and helping figure this out)
69
  * some [work on the bonus feature](http://blog.futtta.be/2011/11/16/applying-javascript-aop-magic-to-stop-3rd-party-tracking-in-wordpress/)
@@ -218,3 +225,8 @@ Accessibility enhancements (hat tip: Ricky Buchanan):
218
 
219
  = 0.1 =
220
  * Initial version
 
 
 
 
 
3
  Tags: youtube, video, lyte, lite youtube embeds, html5 video, html5, widget, youtube audio, audio, playlist, youtube playlist, hd, performance, accessibility, sidebar
4
  Requires at least: 2.9
5
  Tested up to: 3.3
6
+ Stable tag: 0.9.3
7
 
8
  "Lite YouTube Embeds" look like normal YouTube embeds but don't use Flash, thus reducing download size & page rendering time.
9
 
64
 
65
  == Changelog ==
66
 
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))
73
+
74
  = 0.9.2 =
75
  * solved bug with W3 Total Cache where the URL for lyte-min.js got broken (thanks to Serge of [blogaf.org](http://www.blogaf.org) for reporting and helping figure this out)
76
  * some [work on the bonus feature](http://blog.futtta.be/2011/11/16/applying-javascript-aop-magic-to-stop-3rd-party-tracking-in-wordpress/)
225
 
226
  = 0.1 =
227
  * Initial version
228
+
229
+ == Upgrade Notice ==
230
+
231
+ = 0.9.3 =
232
+ Bugfix release, especially important if you've activated DoNotTrack or if you use widgets.
widget.php CHANGED
@@ -18,7 +18,7 @@ class WYLWidget extends WP_Widget {
18
  $WYLaudio = apply_filters( 'widget_text', $instance['WYLaudio'], $instance );
19
  if ($WYLaudio!=="audio") $WYLaudio="";
20
 
21
- $WYLurl=esc_url($instance['WYLurl']);
22
 
23
  if (strpos($WYLurl,'youtu.be')) {
24
  $WYLid=substr(parse_url($WYLurl,PHP_URL_PATH),1,11);
@@ -28,7 +28,7 @@ class WYLWidget extends WP_Widget {
28
  $WYLid=$WYLarr['v'];
29
  }
30
 
31
- $WYLid="WYL_".$WYLid;
32
 
33
  $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__));
34
  $lyteSettings['path']=$wp_lyte_plugin_url."lyte/";
@@ -37,7 +37,7 @@ class WYLWidget extends WP_Widget {
37
  <?php echo $before_widget; ?>
38
  <?php if ( $WYLtitle ) echo $before_title . $WYLtitle . $after_title; ?>
39
  <div class="lyte widget <?php echo $WYLaudio; ?>" id="<?php echo $WYLid; ?>" style="width:<?php echo $wSize[$WYLsize]['w']; ?>px;height:<?php if($WYLaudio==="audio") {echo "25";} else {echo $wSize[$WYLsize]['h'];} ?>px;"><noscript><a href="http://youtu.be/<?php echo $WYLid;?>"><img src="http://img.youtube.com/vi/<?php echo $WYLid; ?>/default.jpg" alt="" /></a></noscript><script type="text/javascript"><!--
40
- var bU='<?php echo $lyteSettings['path'];?>';var d=document;if(d.addEventListener){d.addEventListener('DOMContentLoaded', insert, false)}else{window.onload=insert} function insert(){if(!d.getElementById('lytescr')){lytescr=d.createElement('script');lytescr.async=true;lytescr.id='lytescr';lytescr.src='<?php echo $lyteSettings['path']."lyte-min.js?wylver=".$wyl_version;?>';h=d.getElementsByTagName('script')[0];h.parentNode.insertBefore(lytescr, h)}};
41
  --></script></div>
42
  <div><?php echo $WYLtext ?></div>
43
  <?php echo $after_widget; ?>
18
  $WYLaudio = apply_filters( 'widget_text', $instance['WYLaudio'], $instance );
19
  if ($WYLaudio!=="audio") $WYLaudio="";
20
 
21
+ $WYLurl=esc_url(str_replace("httpv://","http://",$instance['WYLurl']));
22
 
23
  if (strpos($WYLurl,'youtu.be')) {
24
  $WYLid=substr(parse_url($WYLurl,PHP_URL_PATH),1,11);
28
  $WYLid=$WYLarr['v'];
29
  }
30
 
31
+ $WYLid="YLW_".$WYLid;
32
 
33
  $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__));
34
  $lyteSettings['path']=$wp_lyte_plugin_url."lyte/";
37
  <?php echo $before_widget; ?>
38
  <?php if ( $WYLtitle ) echo $before_title . $WYLtitle . $after_title; ?>
39
  <div class="lyte widget <?php echo $WYLaudio; ?>" id="<?php echo $WYLid; ?>" style="width:<?php echo $wSize[$WYLsize]['w']; ?>px;height:<?php if($WYLaudio==="audio") {echo "25";} else {echo $wSize[$WYLsize]['h'];} ?>px;"><noscript><a href="http://youtu.be/<?php echo $WYLid;?>"><img src="http://img.youtube.com/vi/<?php echo $WYLid; ?>/default.jpg" alt="" /></a></noscript><script type="text/javascript"><!--
40
+ (function(){ var d=document;if(d.addEventListener){d.addEventListener('DOMContentLoaded', insert, false)}else{window.onload=insert} function insert(){if(!d.getElementById('lytescr')){lytescr=d.createElement('script');lytescr.async=true;lytescr.id='lytescr';lytescr.src='<?php echo $lyteSettings['path']."lyte-min.js?wylver=".$wyl_version;?>';h=d.getElementsByTagName('script')[0];h.parentNode.insertBefore(lytescr, h)}}; }())
41
  --></script></div>
42
  <div><?php echo $WYLtext ?></div>
43
  <?php echo $after_widget; ?>
wp-youtube-lyte.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: WP YouTube Lyte
4
  Plugin URI: http://blog.futtta.be/tag/lyte
5
  Description: Lite and accessible YouTube audio and video embedding.
6
  Author: Frank Goossens (futtta)
7
- Version: 0.9.2
8
  Author URI: http://blog.futtta.be/
9
  Text Domain: wp-youtube-lyte
10
  Domain Path: /languages
@@ -112,14 +112,14 @@ function lyte_parse($the_content) {
112
  $noscript="<noscript><a href=\"http://youtu.be/".$vid."\"><img src=\"http://img.youtube.com/vi/".$vid."/0.jpg\" alt=\"\" width=\"".$lyteSettings[2]."\" height=\"".$divHeight."\" />".$noscript_post."</a></noscript>";
113
  }
114
 
115
- $lytetemplate = "<div class=\"lyte".$audioClass.$hidefClass.$plClass."\" id=\"WYL_".$vid."\" style=\"width:".$lyteSettings[2]."px;height:".$divHeight."px;\">".$noscript."<script type=\"text/javascript\"><!-- \n var bU='".$lyteSettings['path']."';var d=document;if(d.addEventListener){d.addEventListener('DOMContentLoaded', insert, false)}else{window.onload=insert} function insert(){if(!d.getElementById('lytescr')){lytescr=d.createElement('script');lytescr.async=true;lytescr.id='lytescr';lytescr.src='".$lyteSettings['path']."lyte-min.js?wylver=".$lyteSettings['version']."';h=d.getElementsByTagName('script')[0];h.parentNode.insertBefore(lytescr, h)}}; \n --></script></div>".$lytelinks_txt;
116
  $the_content = preg_replace("/(<p>)?http(v|a):\/\/([a-zA-Z0-9\-\_]+\.|)(youtube|youtu)(\.com|\.be)\/(((watch(\?v\=|\/v\/)|)([a-zA-Z0-9\-\_]{11}))|(playlist\?list\=PL([a-zA-Z0-9\-\_]{16})))([^\s<]*)(<\/p>)?/", $lytetemplate, $the_content, 1);
117
  }
118
  }
119
  return $the_content;
120
  }
121
 
122
- add_filter('the_content', 'lyte_parse', 90);
123
 
124
  /* donottrack */
125
  $donottrack_js=$wp_lyte_plugin_url."external/donottrack-min.js";
4
  Plugin URI: http://blog.futtta.be/tag/lyte
5
  Description: Lite and accessible YouTube audio and video embedding.
6
  Author: Frank Goossens (futtta)
7
+ Version: 0.9.3
8
  Author URI: http://blog.futtta.be/
9
  Text Domain: wp-youtube-lyte
10
  Domain Path: /languages
112
  $noscript="<noscript><a href=\"http://youtu.be/".$vid."\"><img src=\"http://img.youtube.com/vi/".$vid."/0.jpg\" alt=\"\" width=\"".$lyteSettings[2]."\" height=\"".$divHeight."\" />".$noscript_post."</a></noscript>";
113
  }
114
 
115
+ $lytetemplate = "<div class=\"lyte".$audioClass.$hidefClass.$plClass."\" id=\"WYL_".$vid."\" style=\"width:".$lyteSettings[2]."px;height:".$divHeight."px;\">".$noscript."<script type=\"text/javascript\"><!-- \n (function(){var d=document;if(d.addEventListener){d.addEventListener('DOMContentLoaded', insert, false)}else{window.onload=insert} function insert(){if(!d.getElementById('lytescr')){lytescr=d.createElement('script');lytescr.async=true;lytescr.id='lytescr';lytescr.src='".$lyteSettings['path']."lyte-min.js?wylver=".$lyteSettings['version']."';h=d.getElementsByTagName('script')[0];h.parentNode.insertBefore(lytescr, h)}};}()) \n --></script></div>".$lytelinks_txt;
116
  $the_content = preg_replace("/(<p>)?http(v|a):\/\/([a-zA-Z0-9\-\_]+\.|)(youtube|youtu)(\.com|\.be)\/(((watch(\?v\=|\/v\/)|)([a-zA-Z0-9\-\_]{11}))|(playlist\?list\=PL([a-zA-Z0-9\-\_]{16})))([^\s<]*)(<\/p>)?/", $lytetemplate, $the_content, 1);
117
  }
118
  }
119
  return $the_content;
120
  }
121
 
122
+ add_filter('the_content', 'lyte_parse', 4);
123
 
124
  /* donottrack */
125
  $donottrack_js=$wp_lyte_plugin_url."external/donottrack-min.js";