WP YouTube Lyte - Version 0.9.0

Version Description

  • you can now change player size from the default one (as proposed by Edward Owen); httpv://www.youtube.com/watch?v=_SQkWbRublY#size_step=-2 or httpv://youtu.be/_SQkWbRublY#size_step=+1 will change player size to one of the other available sizes in your choosen format (4:3 or 16:9)
  • added a smaller 16:9 size and re-arranged player sizes on the options-screen
  • Bugfix: changed lyte-div ID to force it to be xhtml-compliant (ID's can't start with a digit, hat tip: Ruben of ytuquelees.net
  • Bugfix: added version in js-call to avoid caching issues (lyte-min.js?ver=0.8.1) as experienced by some users and reported by Ryan of givemeshred.com
  • Upgrade to the "bonus feature" to fix things (consider this beta)
  • Languages: added Hebrew (by Sagive SEO) and Catalan (by Ruben of ytuquelees.net) translations and added completed Spanish version (thanks to Paulino Brener from Social Media Travelers)
  • tested succesfully on WordPress 3.3 (beta 2)
Download this release

Release Info

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

Code changes from version 0.8.0 to 0.9.0

external/donottrack-min.js CHANGED
@@ -1 +1 @@
1
- domwrite=document.write;document.write=sanitizer;var spy=['quantserve.com','media6degrees.com'];function sanitizer(tS){ttS=tS.toLowerCase();if((ttS.indexOf(unescape('%3Cscript'))!=-1)&&(ttS.indexOf(unescape('src='))!=-1)){for(x in spy){if(ttS.indexOf(spy[x])!=-1){tS=ttS.replace(/</g,'<!--').replace(/>/g,'-->');break;}}} writeOut(tS);} function writeOut(tS){document.write=domwrite;document.write(tS);document.write=sanitizer;} 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}}})();head=document.getElementsByTagName("script")[0].parentNode;aop.around({target:head,method:"insertBefore"},function(a){if(typeof a.arguments[0].src==="string"&&a.arguments[0].type==="text/javascript"){if(sanitizer(a.arguments[0].src)===true){a.arguments[0].src="/wp-content/plugins/wp-youtube-lyte/external/false.js"}}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 ADDED
@@ -0,0 +1,434 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var spy=['quantserve.com','media6degrees.com'];
2
+
3
+ /**
4
+ * jQuery AOP - jQuery plugin to add features of aspect-oriented programming (AOP) to jQuery.
5
+ * http://jquery-aop.googlecode.com/
6
+ *
7
+ * Licensed under the MIT license:
8
+ * http://www.opensource.org/licenses/mit-license.php
9
+ *
10
+ * Version: 1.3
11
+ *
12
+ * Cross-frame type detection based on Daniel Steigerwald's code (http://daniel.steigerwald.cz)
13
+ * http://gist.github.com/204554
14
+ *
15
+ */
16
+
17
+ (function() {
18
+
19
+ var _after = 1;
20
+ var _afterThrow = 2;
21
+ var _afterFinally = 3;
22
+ var _before = 4;
23
+ var _around = 5;
24
+ var _intro = 6;
25
+ var _regexEnabled = true;
26
+ var _arguments = 'arguments';
27
+ var _undef = 'undefined';
28
+
29
+ var getType = (function() {
30
+
31
+ var toString = Object.prototype.toString,
32
+ toStrings = {},
33
+ nodeTypes = { 1: 'element', 3: 'textnode', 9: 'document', 11: 'fragment' },
34
+ types = 'Arguments Array Boolean Date Document Element Error Fragment Function NodeList Null Number Object RegExp String TextNode Undefined Window'.split(' ');
35
+
36
+ for (var i = types.length; i--; ) {
37
+ var type = types[i], constructor = window[type];
38
+ if (constructor) {
39
+ try { toStrings[toString.call(new constructor)] = type.toLowerCase(); }
40
+ catch (e) { }
41
+ }
42
+ }
43
+
44
+ return function(item) {
45
+ return item == null && (item === undefined ? _undef : 'null') ||
46
+ item.nodeType && nodeTypes[item.nodeType] ||
47
+ typeof item.length == 'number' && (
48
+ item.callee && _arguments ||
49
+ item.alert && 'window' ||
50
+ item.item && 'nodelist') ||
51
+ toStrings[toString.call(item)];
52
+ };
53
+
54
+ })();
55
+
56
+ var isFunc = function(obj) { return getType(obj) == 'function'; };
57
+
58
+ /**
59
+ * Private weaving function.
60
+ */
61
+ var weaveOne = function(source, method, advice) {
62
+
63
+ var old = source[method];
64
+
65
+ // Work-around IE6/7 behavior on some native method that return object instances
66
+ if (advice.type != _intro && !isFunc(old)) {
67
+ var oldObject = old;
68
+ old = function() {
69
+ var code = arguments.length > 0 ? _arguments + '[0]' : '';
70
+
71
+ for (var i=1;i<arguments.length;i++) {
72
+ code += ',' + _arguments + '[' + i + ']';
73
+ }
74
+
75
+ return eval('oldObject(' + code + ');');
76
+ };
77
+ }
78
+
79
+ var aspect;
80
+ if (advice.type == _after || advice.type == _afterThrow || advice.type == _afterFinally)
81
+ aspect = function() {
82
+ var returnValue, exceptionThrown = null;
83
+
84
+ try {
85
+ returnValue = old.apply(this, arguments);
86
+ } catch (e) {
87
+ exceptionThrown = e;
88
+ }
89
+
90
+ if (advice.type == _after)
91
+ if (exceptionThrown == null)
92
+ returnValue = advice.value.apply(this, [returnValue, method]);
93
+ else
94
+ throw exceptionThrown;
95
+ else if (advice.type == _afterThrow && exceptionThrown != null)
96
+ returnValue = advice.value.apply(this, [exceptionThrown, method]);
97
+ else if (advice.type == _afterFinally)
98
+ returnValue = advice.value.apply(this, [returnValue, exceptionThrown, method]);
99
+
100
+ return returnValue;
101
+ };
102
+ else if (advice.type == _before)
103
+ aspect = function() {
104
+ advice.value.apply(this, [arguments, method]);
105
+ return old.apply(this, arguments);
106
+ };
107
+ else if (advice.type == _intro)
108
+ aspect = function() {
109
+ return advice.value.apply(this, arguments);
110
+ };
111
+ else if (advice.type == _around) {
112
+ aspect = function() {
113
+ var invocation = { object: this, args: Array.prototype.slice.call(arguments) };
114
+ return advice.value.apply(invocation.object, [{ arguments: invocation.args, method: method, proceed :
115
+ function() {
116
+ return old.apply(invocation.object, invocation.args);
117
+ }
118
+ }] );
119
+ };
120
+ }
121
+
122
+ aspect.unweave = function() {
123
+ source[method] = old;
124
+ pointcut = source = aspect = old = null;
125
+ };
126
+
127
+ source[method] = aspect;
128
+
129
+ return aspect;
130
+
131
+ };
132
+
133
+ /**
134
+ * Private method search
135
+ */
136
+ var search = function(source, pointcut, advice) {
137
+
138
+ var methods = [];
139
+
140
+ for (var method in source) {
141
+
142
+ var item = null;
143
+
144
+ // Ignore exceptions during method retrival
145
+ try {
146
+ item = source[method];
147
+ }
148
+ catch (e) { }
149
+
150
+ if (item != null && method.match(pointcut.method) && isFunc(item))
151
+ methods[methods.length] = { source: source, method: method, advice: advice };
152
+
153
+ }
154
+
155
+ return methods;
156
+ };
157
+
158
+ /**
159
+ * Private weaver and pointcut parser.
160
+ */
161
+ var weave = function(pointcut, advice) {
162
+
163
+ var source = typeof(pointcut.target.prototype) != _undef ? pointcut.target.prototype : pointcut.target;
164
+ var advices = [];
165
+
166
+ // If it's not an introduction and no method was found, try with regex...
167
+ if (advice.type != _intro && typeof(source[pointcut.method]) == _undef) {
168
+
169
+ // First try directly on target
170
+ var methods = search(pointcut.target, pointcut, advice);
171
+
172
+ // No method found, re-try directly on prototype
173
+ if (methods.length == 0)
174
+ methods = search(source, pointcut, advice);
175
+
176
+ for (var i in methods)
177
+ advices[advices.length] = weaveOne(methods[i].source, methods[i].method, methods[i].advice);
178
+
179
+ }
180
+ else
181
+ {
182
+ // Return as an array of one element
183
+ advices[0] = weaveOne(source, pointcut.method, advice);
184
+ }
185
+
186
+ return _regexEnabled ? advices : advices[0];
187
+
188
+ };
189
+
190
+ aop =
191
+ {
192
+ /**
193
+ * Creates an advice after the defined point-cut. The advice will be executed after the point-cut method
194
+ * has completed execution successfully, and will receive one parameter with the result of the execution.
195
+ * This function returns an array of weaved aspects (Function).
196
+ *
197
+ * @example jQuery.aop.after( {target: window, method: 'MyGlobalMethod'}, function(result) {
198
+ * alert('Returned: ' + result);
199
+ * return result;
200
+ * } );
201
+ * @result Array<Function>
202
+ *
203
+ * @example jQuery.aop.after( {target: String, method: 'indexOf'}, function(index) {
204
+ * alert('Result found at: ' + index + ' on:' + this);
205
+ * return index;
206
+ * } );
207
+ * @result Array<Function>
208
+ *
209
+ * @name after
210
+ * @param Map pointcut Definition of the point-cut to apply the advice. A point-cut is the definition of the object/s and method/s to be weaved.
211
+ * @option Object target Target object to be weaved.
212
+ * @option String method Name of the function to be weaved. Regex are supported, but not on built-in objects.
213
+ * @param Function advice Function containing the code that will get called after the execution of the point-cut. It receives one parameter
214
+ * with the result of the point-cut's execution. The function can choose to return this same value or a different one.
215
+ *
216
+ * @type Array<Function>
217
+ * @cat Plugins/General
218
+ */
219
+ after : function(pointcut, advice)
220
+ {
221
+ return weave( pointcut, { type: _after, value: advice } );
222
+ },
223
+
224
+ /**
225
+ * Creates an advice after the defined point-cut only for unhandled exceptions. The advice will be executed
226
+ * after the point-cut method only if the execution failed and an exception has been thrown. It will receive one
227
+ * parameter with the exception thrown by the point-cut method.
228
+ * This function returns an array of weaved aspects (Function).
229
+ *
230
+ * @example jQuery.aop.afterThrow( {target: String, method: 'indexOf'}, function(exception) {
231
+ * alert('Unhandled exception: ' + exception);
232
+ * return -1;
233
+ * } );
234
+ * @result Array<Function>
235
+ *
236
+ * @example jQuery.aop.afterThrow( {target: calculator, method: 'Calculate'}, function(exception) {
237
+ * console.log('Unhandled exception: ' + exception);
238
+ * throw exception;
239
+ * } );
240
+ * @result Array<Function>
241
+ *
242
+ * @name afterThrow
243
+ * @param Map pointcut Definition of the point-cut to apply the advice. A point-cut is the definition of the object/s and method/s to be weaved.
244
+ * @option Object target Target object to be weaved.
245
+ * @option String method Name of the function to be weaved. Regex are supported, but not on built-in objects.
246
+ * @param Function advice Function containing the code that will get called after the execution of the point-cut. It receives one parameter
247
+ * with the exception thrown by the point-cut method.
248
+ *
249
+ * @type Array<Function>
250
+ * @cat Plugins/General
251
+ */
252
+ afterThrow : function(pointcut, advice)
253
+ {
254
+ return weave( pointcut, { type: _afterThrow, value: advice } );
255
+ },
256
+
257
+ /**
258
+ * Creates an advice after the defined point-cut. The advice will be executed after the point-cut method
259
+ * regardless of its success or failure, and it will receive two parameters: one with the
260
+ * result of a successful execution or null, and another one with the exception thrown or null.
261
+ * This function returns an array of weaved aspects (Function).
262
+ *
263
+ * @example jQuery.aop.afterFinally( {target: window, method: 'MyGlobalMethod'}, function(result, exception) {
264
+ * if (exception == null)
265
+ * return 'Returned: ' + result;
266
+ * else
267
+ * return 'Unhandled exception: ' + exception;
268
+ * } );
269
+ * @result Array<Function>
270
+ *
271
+ * @name afterFinally
272
+ * @param Map pointcut Definition of the point-cut to apply the advice. A point-cut is the definition of the object/s and method/s to be weaved.
273
+ * @option Object target Target object to be weaved.
274
+ * @option String method Name of the function to be weaved. Regex are supported, but not on built-in objects.
275
+ * @param Function advice Function containing the code that will get called after the execution of the point-cut regardless of its success or failure.
276
+ * It receives two parameters, the first one with the result of a successful execution or null, and the second one with the
277
+ * exception or null.
278
+ *
279
+ * @type Array<Function>
280
+ * @cat Plugins/General
281
+ */
282
+ afterFinally : function(pointcut, advice)
283
+ {
284
+ return weave( pointcut, { type: _afterFinally, value: advice } );
285
+ },
286
+
287
+
288
+ /**
289
+ * Creates an advice before the defined point-cut. The advice will be executed before the point-cut method
290
+ * but cannot modify the behavior of the method, or prevent its execution.
291
+ * This function returns an array of weaved aspects (Function).
292
+ *
293
+ * @example jQuery.aop.before( {target: window, method: 'MyGlobalMethod'}, function() {
294
+ * alert('About to execute MyGlobalMethod');
295
+ * } );
296
+ * @result Array<Function>
297
+ *
298
+ * @example jQuery.aop.before( {target: String, method: 'indexOf'}, function(index) {
299
+ * alert('About to execute String.indexOf on: ' + this);
300
+ * } );
301
+ * @result Array<Function>
302
+ *
303
+ * @name before
304
+ * @param Map pointcut Definition of the point-cut to apply the advice. A point-cut is the definition of the object/s and method/s to be weaved.
305
+ * @option Object target Target object to be weaved.
306
+ * @option String method Name of the function to be weaved. Regex are supported, but not on built-in objects.
307
+ * @param Function advice Function containing the code that will get called before the execution of the point-cut.
308
+ *
309
+ * @type Array<Function>
310
+ * @cat Plugins/General
311
+ */
312
+ before : function(pointcut, advice)
313
+ {
314
+ return weave( pointcut, { type: _before, value: advice } );
315
+ },
316
+
317
+
318
+ /**
319
+ * Creates an advice 'around' the defined point-cut. This type of advice can control the point-cut method execution by calling
320
+ * the functions '.proceed()' on the 'invocation' object, and also, can modify the arguments collection before sending them to the function call.
321
+ * This function returns an array of weaved aspects (Function).
322
+ *
323
+ * @example jQuery.aop.around( {target: window, method: 'MyGlobalMethod'}, function(invocation) {
324
+ * alert('# of Arguments: ' + invocation.arguments.length);
325
+ * return invocation.proceed();
326
+ * } );
327
+ * @result Array<Function>
328
+ *
329
+ * @example jQuery.aop.around( {target: String, method: 'indexOf'}, function(invocation) {
330
+ * alert('Searching: ' + invocation.arguments[0] + ' on: ' + this);
331
+ * return invocation.proceed();
332
+ * } );
333
+ * @result Array<Function>
334
+ *
335
+ * @example jQuery.aop.around( {target: window, method: /Get(\d+)/}, function(invocation) {
336
+ * alert('Executing ' + invocation.method);
337
+ * return invocation.proceed();
338
+ * } );
339
+ * @desc Matches all global methods starting with 'Get' and followed by a number.
340
+ * @result Array<Function>
341
+ *
342
+ *
343
+ * @name around
344
+ * @param Map pointcut Definition of the point-cut to apply the advice. A point-cut is the definition of the object/s and method/s to be weaved.
345
+ * @option Object target Target object to be weaved.
346
+ * @option String method Name of the function to be weaved. Regex are supported, but not on built-in objects.
347
+ * @param Function advice Function containing the code that will get called around the execution of the point-cut. This advice will be called with one
348
+ * argument containing one function '.proceed()', the collection of arguments '.arguments', and the matched method name '.method'.
349
+ *
350
+ * @type Array<Function>
351
+ * @cat Plugins/General
352
+ */
353
+ around : function(pointcut, advice)
354
+ {
355
+ return weave( pointcut, { type: _around, value: advice } );
356
+ },
357
+
358
+ /**
359
+ * Creates an introduction on the defined point-cut. This type of advice replaces any existing methods with the same
360
+ * name. To restore them, just unweave it.
361
+ * This function returns an array with only one weaved aspect (Function).
362
+ *
363
+ * @example jQuery.aop.introduction( {target: window, method: 'MyGlobalMethod'}, function(result) {
364
+ * alert('Returned: ' + result);
365
+ * } );
366
+ * @result Array<Function>
367
+ *
368
+ * @example jQuery.aop.introduction( {target: String, method: 'log'}, function() {
369
+ * alert('Console: ' + this);
370
+ * } );
371
+ * @result Array<Function>
372
+ *
373
+ * @name introduction
374
+ * @param Map pointcut Definition of the point-cut to apply the advice. A point-cut is the definition of the object/s and method/s to be weaved.
375
+ * @option Object target Target object to be weaved.
376
+ * @option String method Name of the function to be weaved.
377
+ * @param Function advice Function containing the code that will be executed on the point-cut.
378
+ *
379
+ * @type Array<Function>
380
+ * @cat Plugins/General
381
+ */
382
+ introduction : function(pointcut, advice)
383
+ {
384
+ return weave( pointcut, { type: _intro, value: advice } );
385
+ },
386
+
387
+ /**
388
+ * Configures global options.
389
+ *
390
+ * @name setup
391
+ * @param Map settings Configuration options.
392
+ * @option Boolean regexMatch Enables/disables regex matching of method names.
393
+ *
394
+ * @example jQuery.aop.setup( { regexMatch: false } );
395
+ * @desc Disable regex matching.
396
+ *
397
+ * @type Void
398
+ * @cat Plugins/General
399
+ */
400
+ setup: function(settings)
401
+ {
402
+ _regexEnabled = settings.regexMatch;
403
+ }
404
+ };
405
+
406
+ })();
407
+
408
+ head=document.getElementsByTagName('script')[0].parentNode;
409
+
410
+ aop.around( {target: head, method: 'insertBefore'},
411
+ function(invocation) {
412
+ if ((typeof(invocation.arguments[0].src)==='string')&&(invocation.arguments[0].type==='text/javascript')) {
413
+ if (sanitizer(invocation.arguments[0].src)===true){
414
+ invocation.arguments[0].src='/wp-content/plugins/wp-youtube-lyte/external/false.js';
415
+ }
416
+ }
417
+ return invocation.proceed();
418
+ }
419
+ );
420
+
421
+ function sanitizer(tS) {
422
+ tS=tS.toLowerCase();
423
+ for (x in spy) {
424
+ if (tS.indexOf(spy[x]) !== -1) {
425
+ tS=true;
426
+ break;
427
+ }
428
+ }
429
+ return tS;
430
+ }
431
+
432
+ var a2a_config = a2a_config || {};a2a_config.no_3p=1;
433
+ var addthis_config = { data_use_cookies: false };
434
+ var _gaq=_gaq || [];_gaq.push(['_gat._anonymizeIp']);
external/false.js ADDED
File without changes
external/index.html ADDED
@@ -0,0 +1 @@
 
1
+ <html><body><p><a href="http://wordpress.org/extend/plugins/wp-youtube-lyte/">WP-YouTube-Lyte</a> is a WordPress plugin that 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/04/23/high-performance-youtube-embeds/" title="performance tests comparing youtube embeds with lyte embeds">reducing download size & rendering time substantially</a>. The plugin can optionally use <a href="http://apiblog.youtube.com/2010/07/new-way-to-embed-youtube-videos.html">YouTube's new experimental HTML5 embed code</a>, meaning you can have an entirely flash-less YouTube experience on your blog.</p><p>Up to date info on WP-YouTube-Lyte <a href="http://blog.futtta.be/tag/lyte/" title="more about Lyte on my blog">can be found on blog.futtta.be</a>, where you can also find <a href="http://blog.futtta.be/tag/wordpress" title="blog.futtta.be about WordPress">posts about WordPress</a> and <a href="http://blog.futtta.be/category/internet/" title="about browsers, development and mobile web on blog.futtta.be">Web Technology in general</a>.</p></body></html>
languages/index.html ADDED
@@ -0,0 +1 @@
 
1
+ <html><body><p><a href="http://wordpress.org/extend/plugins/wp-youtube-lyte/">WP-YouTube-Lyte</a> is a WordPress plugin that 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/04/23/high-performance-youtube-embeds/" title="performance tests comparing youtube embeds with lyte embeds">reducing download size & rendering time substantially</a>. The plugin can optionally use <a href="http://apiblog.youtube.com/2010/07/new-way-to-embed-youtube-videos.html">YouTube's new experimental HTML5 embed code</a>, meaning you can have an entirely flash-less YouTube experience on your blog.</p><p>Up to date info on WP-YouTube-Lyte <a href="http://blog.futtta.be/tag/lyte/" title="more about Lyte on my blog">can be found on blog.futtta.be</a>, where you can also find <a href="http://blog.futtta.be/tag/wordpress" title="blog.futtta.be about WordPress">posts about WordPress</a> and <a href="http://blog.futtta.be/category/internet/" title="about browsers, development and mobile web on blog.futtta.be">Web Technology in general</a>.</p></body></html>
languages/wp-youtube-lyte-ca_ES.mo ADDED
Binary file
languages/wp-youtube-lyte-ca_ES.po ADDED
@@ -0,0 +1,203 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ 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-21 12:43+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"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Poedit-Language: Catalan\n"
13
+
14
+ #: widget.php:74
15
+ msgid "Title:"
16
+ msgstr "Títol:"
17
+
18
+ #: widget.php:75
19
+ msgid "Size:"
20
+ msgstr "Tamany:"
21
+
22
+ #: widget.php:91
23
+ msgid "Type:"
24
+ msgstr "Tipus"
25
+
26
+ #: widget.php:99
27
+ msgid "audio"
28
+ msgstr ""
29
+
30
+ #: widget.php:100
31
+ msgid "video"
32
+ msgstr "vídeo"
33
+
34
+ #: widget.php:104
35
+ msgid "Youtube-URL:"
36
+ msgstr ""
37
+
38
+ #: widget.php:105
39
+ msgid "Text:"
40
+ 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
76
+ msgid "Watch this playlist on YouTube"
77
+ msgstr "Mirar aquesta llista de reproducció a YouTube"
78
+
79
+ #: wp-youtube-lyte.php:65
80
+ msgid "Watch this playlist"
81
+ msgstr "Mirar aquesta llista de reproducció"
82
+
83
+ #: wp-youtube-lyte.php:65
84
+ #: wp-youtube-lyte.php:78
85
+ #: wp-youtube-lyte.php:82
86
+ msgid "on YouTube"
87
+ msgstr "a YouTube"
88
+
89
+ #: wp-youtube-lyte.php:73
90
+ msgid "Watch this video on YouTube"
91
+ msgstr "Veure aquest vídeo a YouTube"
92
+
93
+ #: wp-youtube-lyte.php:78
94
+ #: wp-youtube-lyte.php:82
95
+ msgid "Watch this video"
96
+ msgstr "Veure aquest vídeo"
97
+
98
+ #: wp-youtube-lyte.php:78
99
+ msgid "or on"
100
+ msgstr "o damunt"
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 "Guardar Canvis"
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
176
+ #: options.php:107
177
+ msgid "WP YouTube Lyte"
178
+ 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"
190
+ 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 "Vídeo i audio de YouTube lleuger i de fàcil accés."
195
+
196
+ #. Author of the plugin/theme
197
+ msgid "Frank Goossens (futtta)"
198
+ msgstr "Frank Goossens (futtta)"
199
+
200
+ #. Author URI of the plugin/theme
201
+ msgid "http://blog.futtta.be/"
202
+ msgstr "http://blog.futtta.be/"
203
+
languages/wp-youtube-lyte-es_ES.mo CHANGED
Binary file
languages/wp-youtube-lyte-es_ES.po CHANGED
@@ -8,70 +8,70 @@ msgstr ""
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
- "PO-Revision-Date: 2011-10-18 13:46+0100\n"
12
  "Last-Translator: frank goossens <futtta@gmail.com>\n"
13
  "Language-Team: \n"
14
  "X-Poedit-Language: Spanish\n"
15
 
16
  #: widget.php:74
17
  msgid "Title:"
18
- msgstr ""
19
 
20
  #: widget.php:75
21
  msgid "Size:"
22
- msgstr ""
23
 
24
  #: widget.php:91
25
  msgid "Type:"
26
- msgstr ""
27
 
28
  #: widget.php:99
29
  msgid "audio"
30
- msgstr ""
31
 
32
  #: widget.php:100
33
  msgid "video"
34
- msgstr ""
35
 
36
  #: widget.php:104
37
  msgid "Youtube-URL:"
38
- msgstr ""
39
 
40
  #: widget.php:105
41
  msgid "Text:"
42
- msgstr ""
43
 
44
  #: player_sizes.inc.php:11
45
  msgid "Smaller 4:3 player"
46
- msgstr ""
47
 
48
  #: player_sizes.inc.php:16
49
  msgid "Smaller 16:9 player"
50
- msgstr ""
51
 
52
  #: player_sizes.inc.php:21
53
  msgid "Standard value, YouTube default for 4:3-ratio video"
54
- msgstr ""
55
 
56
  #: player_sizes.inc.php:26
57
  msgid "YouTube default for 16:9-ratio video"
58
- msgstr ""
59
 
60
  #: player_sizes.inc.php:31
61
  msgid "Larger 4:3 player"
62
- msgstr ""
63
 
64
  #: player_sizes.inc.php:36
65
  msgid "Larger 16:9 player"
66
- msgstr ""
67
 
68
  #: player_sizes.inc.php:41
69
  msgid "Maxi 4:3 player"
70
- msgstr ""
71
 
72
  #: player_sizes.inc.php:46
73
  msgid "Maxi 16:9 player"
74
- msgstr ""
75
 
76
  #: wp-youtube-lyte.php:60
77
  #: wp-youtube-lyte.php:64
@@ -103,93 +103,93 @@ msgstr "o en"
103
 
104
  #: options.php:37
105
  msgid "WP YouTube Lyte Settings"
106
- msgstr ""
107
 
108
  #: options.php:39
109
  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."
110
- msgstr ""
111
 
112
  #: options.php:40
113
  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>."
114
- msgstr ""
115
 
116
  #: options.php:41
117
  msgid "You can modify WP-YouTube-Lyte's behaviour by changing the following settings:"
118
- msgstr ""
119
 
120
  #: options.php:48
121
  msgid "Player size"
122
- msgstr ""
123
 
124
  #: options.php:65
125
  msgid "Add links below the embedded videos?"
126
- msgstr ""
127
 
128
  #: options.php:67
129
  msgid "Show links?"
130
- msgstr ""
131
 
132
  #: options.php:68
133
  msgid " Add YouTube-link."
134
- msgstr ""
135
 
136
  #: options.php:69
137
  msgid " Add both a YouTube and an <a href=\"http://icant.co.uk/easy-youtube/docs/index.html\" target=\"_blank\">Easy YouTube</a>-link."
138
- msgstr ""
139
 
140
  #: options.php:70
141
  msgid " Don't add any links."
142
- msgstr ""
143
 
144
  #: options.php:75
145
  msgid "Play video in HD if possible?"
146
- msgstr ""
147
 
148
  #: options.php:79
149
  msgid "Enable HD"
150
- msgstr ""
151
 
152
  #: options.php:80
153
  msgid "No HD, we're smallband!"
154
- msgstr ""
155
 
156
  #: options.php:85
157
  msgid "Bonus feature: "
158
- msgstr ""
159
 
160
  #: options.php:89
161
  msgid "Disable 3rd party tracking."
162
- msgstr ""
163
 
164
  #: options.php:90
165
  msgid "I don't mind 3rd party tracking (default)"
166
- msgstr ""
167
 
168
  #: options.php:97
169
  msgid "Save Changes"
170
- msgstr ""
171
 
172
  #: options.php:105
173
  msgid "futtta about"
174
- msgstr ""
175
 
176
  #. #-#-#-#-# plugin.pot (WP YouTube Lyte 0.8.0) #-#-#-#-#
177
  #. Plugin Name of the plugin/theme
178
  #: options.php:107
179
  msgid "WP YouTube Lyte"
180
- msgstr ""
181
 
182
  #: options.php:108
183
  msgid "WordPress"
184
- msgstr ""
185
 
186
  #: options.php:109
187
  msgid "Web Technology"
188
- msgstr ""
189
 
190
  #. Plugin URI of the plugin/theme
191
  msgid "http://blog.futtta.be/tag/lyte"
192
- msgstr ""
193
 
194
  #. Description of the plugin/theme
195
  msgid "Lite and accessible YouTube audio and video embedding."
@@ -197,9 +197,9 @@ msgstr "Video y audio de Youtube en su blog con rápido y fácil acceso."
197
 
198
  #. Author of the plugin/theme
199
  msgid "Frank Goossens (futtta)"
200
- msgstr ""
201
 
202
  #. Author URI of the plugin/theme
203
  msgid "http://blog.futtta.be/"
204
- msgstr ""
205
 
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2011-11-08 07:09+0100\n"
12
  "Last-Translator: frank goossens <futtta@gmail.com>\n"
13
  "Language-Team: \n"
14
  "X-Poedit-Language: Spanish\n"
15
 
16
  #: widget.php:74
17
  msgid "Title:"
18
+ msgstr "Título:"
19
 
20
  #: widget.php:75
21
  msgid "Size:"
22
+ msgstr "Tamaño:"
23
 
24
  #: widget.php:91
25
  msgid "Type:"
26
+ msgstr "Tipo:"
27
 
28
  #: widget.php:99
29
  msgid "audio"
30
+ msgstr "audio"
31
 
32
  #: widget.php:100
33
  msgid "video"
34
+ msgstr "video"
35
 
36
  #: widget.php:104
37
  msgid "Youtube-URL:"
38
+ msgstr "URL-de-YouTube:"
39
 
40
  #: widget.php:105
41
  msgid "Text:"
42
+ msgstr "Texto:"
43
 
44
  #: player_sizes.inc.php:11
45
  msgid "Smaller 4:3 player"
46
+ msgstr "Reproductor pequeño 4:3"
47
 
48
  #: player_sizes.inc.php:16
49
  msgid "Smaller 16:9 player"
50
+ msgstr "Reproductor pequeño 16:9"
51
 
52
  #: player_sizes.inc.php:21
53
  msgid "Standard value, YouTube default for 4:3-ratio video"
54
+ msgstr "Valor standard, por defecto video de YouTube son 4:3"
55
 
56
  #: player_sizes.inc.php:26
57
  msgid "YouTube default for 16:9-ratio video"
58
+ msgstr "Video de YouTube por defecto 16:9"
59
 
60
  #: player_sizes.inc.php:31
61
  msgid "Larger 4:3 player"
62
+ msgstr "Reproductor Grande 4:3"
63
 
64
  #: player_sizes.inc.php:36
65
  msgid "Larger 16:9 player"
66
+ msgstr "Reproductor Grande 16:9"
67
 
68
  #: player_sizes.inc.php:41
69
  msgid "Maxi 4:3 player"
70
+ msgstr "Reproductor Maxi 4:3"
71
 
72
  #: player_sizes.inc.php:46
73
  msgid "Maxi 16:9 player"
74
+ msgstr "Reproductor Maxi 16:9"
75
 
76
  #: wp-youtube-lyte.php:60
77
  #: wp-youtube-lyte.php:64
103
 
104
  #: options.php:37
105
  msgid "WP YouTube Lyte Settings"
106
+ msgstr "Configuración de WP YouTube Lyte"
107
 
108
  #: options.php:39
109
  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."
110
+ msgstr "WP YouTube Lyte inserta \"Lite YouTube Embeds\" en tu blog. Se ven y se sienten como video normales de YouTube insertados, pero no utilizan flash a menos que se haga clic, por lo tanto <a href=\"http://blog.futtta.be/2010/08/30/the-state-of-wp-youtube-lyte/\" target=\"_blank\"> achica el tamaño de la descarga y el tiempo de renderizado sustancialmente</ a>. Cuando se reproduce un video, WP-YouTube-Lyte puede activar <a href=\"http://apiblog.youtube.com/2010/07/new-way-to-embed-youtube-videos.html\" target=\"_blank\">El reproductor html5 de YouTube insertado</a> o la versión de Flash más antigua, dependiendo de las opciones escogidas abajo."
111
 
112
  #: options.php:40
113
  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>."
114
+ msgstr "Usted puede poner audio y video en sus entradas de blog y páginas agregando uno o más http<strong>v</strong> o http<strong>a</strong> enlaces de YouTube en su entrada de blog. Estos serán reemplazados automáticamente por WP YouTube Lyte con el código correcto (sin flash). Para añadir un vídeo, por ejemplo, escriba una dirección URL como <em>http<strong>v</strong>://www.youtube.com/watch?v=QQPSMRQnNlU</em> o <em>http<strong>v</strong>://www.youtube.com/playlist?list=PLA486E741B25F8E00</em> para una lista de reproducción. Si quiere un reproductor sólo de audio, introduzca <em>http<strong>a</strong>://www.youtube.com/watch?v=BIQIGR-kWtc</em>. Hay más información sobre la <a href=\"http://wordpress.org/extend/plugins/wp-youtube-lyte/faq/\" target=\"_blank\"> página wordpress.org de WP YouTube Lyte FAQ </a >."
115
 
116
  #: options.php:41
117
  msgid "You can modify WP-YouTube-Lyte's behaviour by changing the following settings:"
118
+ msgstr "Usted puede modificar el comportamiento de WP-YouTube-Lyte cambiando las siguientes configuraciones:"
119
 
120
  #: options.php:48
121
  msgid "Player size"
122
+ msgstr "Tamaño del reproductor:"
123
 
124
  #: options.php:65
125
  msgid "Add links below the embedded videos?"
126
+ msgstr "¿Agregar enlaces abajo de los videos insertados?"
127
 
128
  #: options.php:67
129
  msgid "Show links?"
130
+ msgstr "¿Mostrar los enlaces?"
131
 
132
  #: options.php:68
133
  msgid " Add YouTube-link."
134
+ msgstr "Agregue enlace de YouTube"
135
 
136
  #: options.php:69
137
  msgid " Add both a YouTube and an <a href=\"http://icant.co.uk/easy-youtube/docs/index.html\" target=\"_blank\">Easy YouTube</a>-link."
138
+ msgstr "Agregue ambos, enlace YouTube y un enlace de <a href=\"http://icant.co.uk/easy-youtube/docs/index.html\" target=\"_blank\">Easy YouTube</a>."
139
 
140
  #: options.php:70
141
  msgid " Don't add any links."
142
+ msgstr "No agregue ningún enlace."
143
 
144
  #: options.php:75
145
  msgid "Play video in HD if possible?"
146
+ msgstr "Reproducir el video en calidad HD si es posible?"
147
 
148
  #: options.php:79
149
  msgid "Enable HD"
150
+ msgstr "Habilitar HD"
151
 
152
  #: options.php:80
153
  msgid "No HD, we're smallband!"
154
+ msgstr "No HD 'banda pequeña)!"
155
 
156
  #: options.php:85
157
  msgid "Bonus feature: "
158
+ msgstr "Funcionalidad extra:"
159
 
160
  #: options.php:89
161
  msgid "Disable 3rd party tracking."
162
+ msgstr "Deshabilitar el seguimiento (tracking) de otras aplicaciones."
163
 
164
  #: options.php:90
165
  msgid "I don't mind 3rd party tracking (default)"
166
+ msgstr "No me molesta seguimiento (tracking) de otras aplicaciones (por defecto)"
167
 
168
  #: options.php:97
169
  msgid "Save Changes"
170
+ msgstr "Guarde los cambios"
171
 
172
  #: options.php:105
173
  msgid "futtta about"
174
+ msgstr "futtta sobre"
175
 
176
  #. #-#-#-#-# plugin.pot (WP YouTube Lyte 0.8.0) #-#-#-#-#
177
  #. Plugin Name of the plugin/theme
178
  #: options.php:107
179
  msgid "WP YouTube Lyte"
180
+ msgstr "WP YouTube Lyte"
181
 
182
  #: options.php:108
183
  msgid "WordPress"
184
+ msgstr "WordPress"
185
 
186
  #: options.php:109
187
  msgid "Web Technology"
188
+ msgstr "Tecnología de la Web"
189
 
190
  #. Plugin URI of the plugin/theme
191
  msgid "http://blog.futtta.be/tag/lyte"
192
+ msgstr "http://blog.futtta.be/tag/lyte"
193
 
194
  #. Description of the plugin/theme
195
  msgid "Lite and accessible YouTube audio and video embedding."
197
 
198
  #. Author of the plugin/theme
199
  msgid "Frank Goossens (futtta)"
200
+ msgstr "Frank Goossens (futtta)"
201
 
202
  #. Author URI of the plugin/theme
203
  msgid "http://blog.futtta.be/"
204
+ msgstr "http://blog.futtta.be/"
205
 
languages/wp-youtube-lyte-he_IL.mo ADDED
Binary file
languages/wp-youtube-lyte-he_IL.po ADDED
@@ -0,0 +1,207 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2010 WP YouTube Lyte
2
+ # This file is distributed under the same license as the WP YouTube Lyte package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: WP YouTube Lyte 0.8.0 In Hebrew\n"
6
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-youtube-lyte\n"
7
+ "POT-Creation-Date: 2011-10-12 13:51:40+00:00\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2011-10-20 23:58+0200\n"
12
+ "Last-Translator: שגיב SEO <info@sagive.co.il>\n"
13
+ "Language-Team: Sagive SEO <info@sagive.co.il>\n"
14
+ "X-Poedit-Language: Hebrew\n"
15
+ "X-Poedit-Country: ISRAEL\n"
16
+ "X-Poedit-SourceCharset: utf-8\n"
17
+
18
+ #: widget.php:74
19
+ msgid "Title:"
20
+ msgstr "כותרת:"
21
+
22
+ #: widget.php:75
23
+ msgid "Size:"
24
+ msgstr "גודל:"
25
+
26
+ #: widget.php:91
27
+ msgid "Type:"
28
+ msgstr "סוג:"
29
+
30
+ #: widget.php:99
31
+ msgid "audio"
32
+ msgstr "אודיו"
33
+
34
+ #: widget.php:100
35
+ msgid "video"
36
+ msgstr "וידאו"
37
+
38
+ #: widget.php:104
39
+ msgid "Youtube-URL:"
40
+ msgstr "יוטיוב-URL:"
41
+
42
+ #: widget.php:105
43
+ msgid "Text:"
44
+ msgstr "טקסט\""
45
+
46
+ #: player_sizes.inc.php:11
47
+ msgid "Smaller 4:3 player"
48
+ msgstr "נגן 4:3 קטן"
49
+
50
+ #: player_sizes.inc.php:16
51
+ msgid "Smaller 16:9 player"
52
+ msgstr "נגן 16:9 קטן"
53
+
54
+ #: player_sizes.inc.php:21
55
+ msgid "Standard value, YouTube default for 4:3-ratio video"
56
+ msgstr "ערך סטנדרטי, נגן יוטיוב ברירת מחדל 4:3 יחס צפייה"
57
+
58
+ #: player_sizes.inc.php:26
59
+ msgid "YouTube default for 16:9-ratio video"
60
+ msgstr "נגן יוטיוב ברירת מחדל 16:9 יחס צפייה"
61
+
62
+ #: player_sizes.inc.php:31
63
+ msgid "Larger 4:3 player"
64
+ msgstr "נגן גדול 4:3"
65
+
66
+ #: player_sizes.inc.php:36
67
+ msgid "Larger 16:9 player"
68
+ msgstr "נגן גדול 16:9"
69
+
70
+ #: player_sizes.inc.php:41
71
+ msgid "Maxi 4:3 player"
72
+ msgstr "נגן מקסי 4:3"
73
+
74
+ #: player_sizes.inc.php:46
75
+ msgid "Maxi 16:9 player"
76
+ msgstr "נגן מקסי 16:9"
77
+
78
+ #: wp-youtube-lyte.php:60
79
+ #: wp-youtube-lyte.php:64
80
+ msgid "Watch this playlist on YouTube"
81
+ msgstr "צפה ברשימת השמעה זאת ביוטיוב"
82
+
83
+ #: wp-youtube-lyte.php:65
84
+ msgid "Watch this playlist"
85
+ msgstr "צפה ברשימת השמעה זאת"
86
+
87
+ #: wp-youtube-lyte.php:65
88
+ #: wp-youtube-lyte.php:78
89
+ #: wp-youtube-lyte.php:82
90
+ msgid "on YouTube"
91
+ msgstr "ביוטיוב"
92
+
93
+ #: wp-youtube-lyte.php:73
94
+ msgid "Watch this video on YouTube"
95
+ msgstr "צפה בסרטון זה ביוטיוב"
96
+
97
+ #: wp-youtube-lyte.php:78
98
+ #: wp-youtube-lyte.php:82
99
+ msgid "Watch this video"
100
+ msgstr "צפה בסרטון זה"
101
+
102
+ #: wp-youtube-lyte.php:78
103
+ msgid "or on"
104
+ msgstr "או ב-"
105
+
106
+ #: options.php:37
107
+ msgid "WP YouTube Lyte Settings"
108
+ msgstr "הגדרות WP YouTube Lyte"
109
+
110
+ #: options.php:39
111
+ 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."
112
+ msgstr "התוסף WP YouTube Lyte מכניס \"Lite YouTube Embeds\" בבלוג שלך. אלו מרגישים ומתנהגים כמו סרטוני יוטיוב רגילים אך לא משתמשים בפלאש אלא אם לחצתם על האפשרות, בצורה כזאת <a href=\"http://blog.futtta.be/2010/08/30/the-state-of-wp-youtube-lyte/\" target=\"_blank\">מקטינים את זמן ההורדה בצורה משמעותית</a>. כאשר הסרטון מתנגן, WP-YouTube-Lyte תפעיל את <a href=\"http://apiblog.youtube.com/2010/07/new-way-to-embed-youtube-videos.html\" target=\"_blank\">הנגן HTML5 של יוטיוב</a> או את גרסת הפלאש הישנה בהתאם להגדרות למטה."
113
+
114
+ #: options.php:40
115
+ 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>."
116
+ msgstr "אתה יכול להטמיע סאונד וסרטונים על ידי הוספה בתוך הכתובת של הסרטון של http<strong>v</strong> או http<strong>a</strong> בפוסטים או בדפים שלך. אלה יוחלפו באופן אוטומטי על ידי WP YouTube Lyte עם הקוד הנכון. לדוגמה, כדי להוסיף סרטון אתה מדביק את הכתובת <em>http<strong>v</strong>://www.youtube.com/watch?v=QQPSMRQnNlU</em> או <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>. שימו לב לתוספת של האות V."
117
+
118
+ #: options.php:41
119
+ msgid "You can modify WP-YouTube-Lyte's behaviour by changing the following settings:"
120
+ msgstr "אתה יכול לשנות את ההתנהגות של WP-YouTube-Lyte בעזרת ההגדרות הבאות:"
121
+
122
+ #: options.php:48
123
+ msgid "Player size"
124
+ msgstr "גודל נגן"
125
+
126
+ #: options.php:65
127
+ msgid "Add links below the embedded videos?"
128
+ msgstr "להוסיף קישורים מתחת לסרטון המוטמע?"
129
+
130
+ #: options.php:67
131
+ msgid "Show links?"
132
+ msgstr "להציג קישורים?"
133
+
134
+ #: options.php:68
135
+ msgid " Add YouTube-link."
136
+ msgstr "הוספת קישור יוטיוב"
137
+
138
+ #: options.php:69
139
+ msgid " Add both a YouTube and an <a href=\"http://icant.co.uk/easy-youtube/docs/index.html\" target=\"_blank\">Easy YouTube</a>-link."
140
+ msgstr "הוסף קישור גם ליוטיוב וגם ל<a href=\"http://icant.co.uk/easy-youtube/docs/index.html\" target=\"_blank\">Easy YouTube</a>."
141
+
142
+ #: options.php:70
143
+ msgid " Don't add any links."
144
+ msgstr "אל תוסיף אף קישור."
145
+
146
+ #: options.php:75
147
+ msgid "Play video in HD if possible?"
148
+ msgstr "לנגן את הסרטון באיכות HD אם אפשר?"
149
+
150
+ #: options.php:79
151
+ msgid "Enable HD"
152
+ msgstr "הפעל HD"
153
+
154
+ #: options.php:80
155
+ msgid "No HD, we're smallband!"
156
+ msgstr "בלי HD, אין לנו רוחב פס!"
157
+
158
+ #: options.php:85
159
+ msgid "Bonus feature: "
160
+ msgstr "תכונת בונוס:"
161
+
162
+ #: options.php:89
163
+ msgid "Disable 3rd party tracking."
164
+ msgstr "כבה מעקב צד שלישי"
165
+
166
+ #: options.php:90
167
+ msgid "I don't mind 3rd party tracking (default)"
168
+ msgstr "לא מפריע לי מעקב צד שלישי (ברירת מחדל)"
169
+
170
+ #: options.php:97
171
+ msgid "Save Changes"
172
+ msgstr "שמור שינויים"
173
+
174
+ #: options.php:105
175
+ msgid "futtta about"
176
+ msgstr "אודות futta"
177
+
178
+ #. #-#-#-#-# plugin.pot (WP YouTube Lyte 0.8.0) #-#-#-#-#
179
+ #. Plugin Name of the plugin/theme
180
+ #: options.php:107
181
+ msgid "WP YouTube Lyte"
182
+ msgstr "WP YouTube Lyte"
183
+
184
+ #: options.php:108
185
+ msgid "WordPress"
186
+ msgstr "וורדפרס"
187
+
188
+ #: options.php:109
189
+ msgid "Web Technology"
190
+ msgstr "טכנולוגיית רשת"
191
+
192
+ #. Plugin URI of the plugin/theme
193
+ msgid "http://blog.futtta.be/tag/lyte"
194
+ msgstr "http://blog.futtta.be/tag/lyte"
195
+
196
+ #. Description of the plugin/theme
197
+ msgid "Lite and accessible YouTube audio and video embedding."
198
+ msgstr "טכנולוגייה קלה משקל להטמעה של סרטוני יוטיוב"
199
+
200
+ #. Author of the plugin/theme
201
+ msgid "Frank Goossens (futtta)"
202
+ msgstr "Frank Goossens (futtta)"
203
+
204
+ #. Author URI of the plugin/theme
205
+ msgid "http://blog.futtta.be/"
206
+ msgstr "http://blog.futtta.be/"
207
+
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="";if(this.className.indexOf("hidef")===-1){hidef=0}else{hidef=1}if(this.className.indexOf("playlist")===-1){eU="http://www.youtube.com/embed/"+this.id}else{eU="http://www.youtube.com/embed/p/"+this.id}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;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_"+lyte_id;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/"+lyte_id+"?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/'+lyte_id+'/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/"+lyte_id+"?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=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()
lyte/lyte.js CHANGED
@@ -14,6 +14,7 @@ function lyte() {
14
  lytes = getElementsByClassName("lyte", "div");
15
  for (var i = 0; i < lytes.length; i++) {
16
  lyte_id = lytes[i].id;
 
17
  p = doc.getElementById(lyte_id);
18
  p.className += " lP";
19
  pW = p.clientWidth;
@@ -21,7 +22,7 @@ function lyte() {
21
  pl = doc.createElement('div');
22
  p.appendChild(pl);
23
  p.onclick = plaYT;
24
- pl.id = "lyte_" + lyte_id;
25
  pl.className = "pL";
26
 
27
  if (p.className.indexOf('audio') !== -1) {
@@ -30,13 +31,13 @@ function lyte() {
30
  } else if (p.className.indexOf('playlist') !== -1){
31
  setStyle(pl, 'height:' + pH + 'px;width:' + pW + 'px;');
32
  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;\"/>";
33
- jsonUrl = "http://gdata.youtube.com/feeds/api/playlists/"+ lyte_id +"?v=2&alt=json-in-script&callback=parsePL&fields=id,title,entry"
34
  loadScript(jsonUrl)
35
  } else {
36
- setStyle(pl, 'height:' + pH + 'px;width:' + pW + 'px;background:url("http://img.youtube.com/vi/' + lyte_id + '/0.jpg") no-repeat scroll center -10px rgb(0, 0, 0);background-size:contain;');
37
  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;\"/>";
38
  if (p.className.indexOf('widget') === -1) {
39
- jsonUrl = "http://gdata.youtube.com/feeds/api/videos/" + lyte_id + "?fields=id,title&alt=json-in-script&callback=parseV";
40
  loadScript(jsonUrl)
41
  }
42
  }
@@ -45,6 +46,7 @@ function lyte() {
45
 
46
  function plaYT() {
47
  this.onclick = "";
 
48
 
49
  if (this.className.indexOf("hidef") === -1) {
50
  hidef=0;
@@ -53,9 +55,9 @@ function plaYT() {
53
  }
54
 
55
  if (this.className.indexOf("playlist") === -1) {
56
- eU="http://www.youtube.com/embed/" + this.id
57
  } else {
58
- eU="http://www.youtube.com/embed/p/" + this.id
59
  }
60
 
61
  this.innerHTML="<iframe class=\"youtube-player\" type=\"text/html\" width=\"" + this.clientWidth + "\" height=\"" + this.clientHeight + "\" src=\""+eU+"?autoplay=1&amp;rel=0&amp;egm=0&amp;iv_load_policy=3&amp;probably_logged_in=false&amp;hd="+hidef+"\" frameborder=\"0\"></iframe>"
14
  lytes = getElementsByClassName("lyte", "div");
15
  for (var i = 0; i < lytes.length; i++) {
16
  lyte_id = lytes[i].id;
17
+ vid = lyte_id.substring(4);
18
  p = doc.getElementById(lyte_id);
19
  p.className += " lP";
20
  pW = p.clientWidth;
22
  pl = doc.createElement('div');
23
  p.appendChild(pl);
24
  p.onclick = plaYT;
25
+ pl.id = "lyte_" + vid;
26
  pl.className = "pL";
27
 
28
  if (p.className.indexOf('audio') !== -1) {
31
  } else if (p.className.indexOf('playlist') !== -1){
32
  setStyle(pl, 'height:' + pH + 'px;width:' + pW + 'px;');
33
  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;\"/>";
34
+ jsonUrl = "http://gdata.youtube.com/feeds/api/playlists/"+ vid +"?v=2&alt=json-in-script&callback=parsePL&fields=id,title,entry"
35
  loadScript(jsonUrl)
36
  } else {
37
+ 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;');
38
  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;\"/>";
39
  if (p.className.indexOf('widget') === -1) {
40
+ jsonUrl = "http://gdata.youtube.com/feeds/api/videos/" + vid + "?fields=id,title&alt=json-in-script&callback=parseV";
41
  loadScript(jsonUrl)
42
  }
43
  }
46
 
47
  function plaYT() {
48
  this.onclick = "";
49
+ vid=this.id.substring(4);
50
 
51
  if (this.className.indexOf("hidef") === -1) {
52
  hidef=0;
55
  }
56
 
57
  if (this.className.indexOf("playlist") === -1) {
58
+ eU="http://www.youtube.com/embed/" + vid
59
  } else {
60
+ eU="http://www.youtube.com/embed/p/" + vid
61
  }
62
 
63
  this.innerHTML="<iframe class=\"youtube-player\" type=\"text/html\" width=\"" + this.clientWidth + "\" height=\"" + this.clientHeight + "\" src=\""+eU+"?autoplay=1&amp;rel=0&amp;egm=0&amp;iv_load_policy=3&amp;probably_logged_in=false&amp;hd="+hidef+"\" frameborder=\"0\"></iframe>"
options.php CHANGED
@@ -47,15 +47,17 @@ function lyte_settings_page() {
47
  <td>
48
  <fieldset><legend class="screen-reader-text"><span><?php _e("Player size","wp-youtube-lyte") ?></span></legend>
49
  <?php require 'player_sizes.inc.php';
50
- $i=0;
51
  if (is_bool(get_option('size'))) { $sel = (int) $pDefault; } else { $sel= (int) get_option('size'); }
52
- while ($pS=$pSize[$i]) {
53
- if ($pS[a]===true) {
54
- ?>
55
- <label title="<?php echo $pS[w]."X".$pS[h]; ?>"><input type="radio" name="size" class="l_size" value="<?php echo $i."\"";if($i===$sel) echo " checked";echo " /> ".$pS[w]."X".$pS[h]." (".$pS[t];?>)</label><br />
56
- <?php
 
 
 
57
  }
58
- $i++;
59
  }
60
  ?>
61
  </fieldset>
@@ -82,7 +84,7 @@ function lyte_settings_page() {
82
  </td>
83
  </tr>
84
  <tr valign="top">
85
- <th scope="row"><?php _e("Bonus feature: ","wp-youtube-lyte") ?><a href="http://blog.futtta.be/tag/donottrack" target="_blank">DoNotTrack</a></th>
86
  <td>
87
  <fieldset>
88
  <legend class="screen-reader-text"><span>Activate DoNotTrack</span></legend>
47
  <td>
48
  <fieldset><legend class="screen-reader-text"><span><?php _e("Player size","wp-youtube-lyte") ?></span></legend>
49
  <?php require 'player_sizes.inc.php';
 
50
  if (is_bool(get_option('size'))) { $sel = (int) $pDefault; } else { $sel= (int) get_option('size'); }
51
+ foreach (array("169","43") as $f) {
52
+ foreach ($pSizeOrder[$f] as $i) {
53
+ $pS=$pSize[$i];
54
+ if ($pS[a]===true) {
55
+ ?>
56
+ <label title="<?php echo $pS[w]."X".$pS[h]; ?>"><input type="radio" name="size" class="l_size" value="<?php echo $i."\"";if($i===$sel) echo " checked";echo " /> ".$pS[w]."X".$pS[h]." (".$pS[t];?>)</label><br />
57
+ <?php
58
+ }
59
  }
60
+ ?><br /><?php
61
  }
62
  ?>
63
  </fieldset>
84
  </td>
85
  </tr>
86
  <tr valign="top">
87
+ <th scope="row"><?php _e("Bonus feature: ","wp-youtube-lyte") ?><a href="http://blog.futtta.be/tag/donottrack" target="_blank">DoNotTrack (new version)</a></th>
88
  <td>
89
  <fieldset>
90
  <legend class="screen-reader-text"><span>Activate DoNotTrack</span></legend>
player_sizes.inc.php CHANGED
@@ -5,45 +5,62 @@ load_plugin_textdomain( 'wp-youtube-lyte', false, $plugin_dir );
5
 
6
  $pDefault=2;
7
 
 
 
 
 
 
 
8
  $pSize[0]['a']=true;
9
  $pSize[0]['w']=420;
10
  $pSize[0]['h']=315;
11
  $pSize[0]['t']=__("Smaller 4:3 player","wp-youtube-lyte");
 
12
 
13
  $pSize[1]['a']=true;
14
  $pSize[1]['w']=560;
15
  $pSize[1]['h']=315;
16
  $pSize[1]['t']=__("Smaller 16:9 player","wp-youtube-lyte");
 
17
 
18
  $pSize[2]['a']=true;
19
  $pSize[2]['w']=480;
20
  $pSize[2]['h']=360;
21
  $pSize[2]['t']=__("Standard value, YouTube default for 4:3-ratio video","wp-youtube-lyte");
 
22
 
23
  $pSize[3]['a']=true;
24
  $pSize[3]['w']=640;
25
  $pSize[3]['h']=360;
26
  $pSize[3]['t']=__("YouTube default for 16:9-ratio video","wp-youtube-lyte");
 
27
 
28
  $pSize[4]['a']=true;
29
  $pSize[4]['w']=640;
30
  $pSize[4]['h']=480;
31
  $pSize[4]['t']=__("Larger 4:3 player","wp-youtube-lyte");
 
32
 
33
  $pSize[5]['a']=true;
34
  $pSize[5]['w']=853;
35
  $pSize[5]['h']=480;
36
  $pSize[5]['t']=__("Larger 16:9 player","wp-youtube-lyte");
 
37
 
38
  $pSize[6]['a']=true;
39
  $pSize[6]['w']=960;
40
  $pSize[6]['h']=720;
41
  $pSize[6]['t']=__("Maxi 4:3 player","wp-youtube-lyte");
 
42
 
43
  $pSize[7]['a']=true;
44
  $pSize[7]['w']=1280;
45
  $pSize[7]['h']=720;
46
  $pSize[7]['t']=__("Maxi 16:9 player","wp-youtube-lyte");
 
 
 
 
47
 
48
  // widget sizes
49
  $wDefault=2;
5
 
6
  $pDefault=2;
7
 
8
+ $pSize[8]['a']=true;
9
+ $pSize[8]['w']=420;
10
+ $pSize[8]['h']=236;
11
+ $pSize[8]['t']=__("Mini 16:9 player","wp-youtube-lyte");
12
+ $pSize[8]['f']="169";
13
+
14
  $pSize[0]['a']=true;
15
  $pSize[0]['w']=420;
16
  $pSize[0]['h']=315;
17
  $pSize[0]['t']=__("Smaller 4:3 player","wp-youtube-lyte");
18
+ $pSize[0]['f']="43";
19
 
20
  $pSize[1]['a']=true;
21
  $pSize[1]['w']=560;
22
  $pSize[1]['h']=315;
23
  $pSize[1]['t']=__("Smaller 16:9 player","wp-youtube-lyte");
24
+ $pSize[1]['f']="169";
25
 
26
  $pSize[2]['a']=true;
27
  $pSize[2]['w']=480;
28
  $pSize[2]['h']=360;
29
  $pSize[2]['t']=__("Standard value, YouTube default for 4:3-ratio video","wp-youtube-lyte");
30
+ $pSize[2]['f']="43";
31
 
32
  $pSize[3]['a']=true;
33
  $pSize[3]['w']=640;
34
  $pSize[3]['h']=360;
35
  $pSize[3]['t']=__("YouTube default for 16:9-ratio video","wp-youtube-lyte");
36
+ $pSize[3]['f']="169";
37
 
38
  $pSize[4]['a']=true;
39
  $pSize[4]['w']=640;
40
  $pSize[4]['h']=480;
41
  $pSize[4]['t']=__("Larger 4:3 player","wp-youtube-lyte");
42
+ $pSize[4]['f']="43";
43
 
44
  $pSize[5]['a']=true;
45
  $pSize[5]['w']=853;
46
  $pSize[5]['h']=480;
47
  $pSize[5]['t']=__("Larger 16:9 player","wp-youtube-lyte");
48
+ $pSize[5]['f']="169";
49
 
50
  $pSize[6]['a']=true;
51
  $pSize[6]['w']=960;
52
  $pSize[6]['h']=720;
53
  $pSize[6]['t']=__("Maxi 4:3 player","wp-youtube-lyte");
54
+ $pSize[6]['f']="43";
55
 
56
  $pSize[7]['a']=true;
57
  $pSize[7]['w']=1280;
58
  $pSize[7]['h']=720;
59
  $pSize[7]['t']=__("Maxi 16:9 player","wp-youtube-lyte");
60
+ $pSize[7]['f']="169";
61
+
62
+ $pSizeOrder['169']=array(8,1,3,5,7);
63
+ $pSizeOrder['43']=array(0,2,4,6);
64
 
65
  // widget sizes
66
  $wDefault=2;
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === WP YouTube Lyte ===
2
  Contributors: futtta
3
- Tags: youtube, video, lyte, lite youtube embeds, html5 video, html5, widget, youtube audio, audio, playlist, youtube playlist, hd, performance, accessibility
4
  Requires at least: 2.9
5
- Tested up to: 3.2.1
6
- Stable tag: 0.8.0
7
 
8
  "Lite YouTube Embeds" look like normal YouTube embeds but don't use Flash, thus reducing download size & page rendering time.
9
 
@@ -11,9 +11,14 @@ Stable tag: 0.8.0
11
 
12
  WP YouTube Lyte inserts "Lite YouTube Embeds" in your blog. These look and feel like normal embedded YouTube, but only call the actual "fat" Flash or HTML5-player when clicked on, thereby [reducing download size & rendering time substantially](http://blog.futtta.be/2010/08/30/the-state-of-wp-youtube-lyte/) when embedding YouTube occasionally and improving page performance dramatically when you've got multiple YouTube video's on one and the same page.
13
 
14
- Just add a YouTube-link for a video or [an entire playlist](http://blog.futtta.be/?s=lyte+playlist) with "httpv" (or "httpa" to [embed YouTube's audio](http://blog.futtta.be/2011/04/19/audio-only-youtube-embedding-with-wp-youtube-lyte-0-7/) only) instead of "http" or add a Lyte widget to your sidebar and WP YouTube Lyte replaces that link with the correct performance-optimized code. When a visitor clicks the play-button, WP YouTube Lyte seamlessly initiates [YouTube's new embedded player](http://apiblog.youtube.com/2010/07/new-way-to-embed-youtube-videos.html).
 
 
 
 
 
15
 
16
- WP YouTube Lyte has been written with optimal performance as primary goal, but has been tested for maximum browser-compatibility (iPad included) while keeping an eye on accessibility. The plugin is fully multi-language, with support for Dutch, English, French, German, Spanish and Slovene.
17
 
18
  Feedback is welcome; see [info in the faq](http://wordpress.org/extend/plugins/wp-youtube-lyte/faq/) for bug reports/ feature requests and feel free to [rate and/or report on compatibility on wordpress.org](http://wordpress.org/extend/plugins/wp-youtube-lyte/).
19
 
@@ -46,7 +51,7 @@ and you're good to go!
46
  * The playlist-player currently does not work on iPad or iPhone, this is a known limitation of Youtube's playlist player and [is on the todo-list to get fixed](http://groups.google.com/group/youtube-api-gdata/browse_frm/thread/adbec924f43688e5#)
47
  * The new YouTube embed-code doesn't look great when using WP YouTube Lyte widgets in your sidebar. This is because YouTube's embedded player doesn't scale well for small sizes, this is something that YouTube should (and hopefully will) fix at a later stage.
48
  * Having the same YouTube-video on one page can cause WP YouTube Lyte to malfunction (as the YouTube id is used as the div's id in the DOM, and DOM id's are supposed to be unique)
49
- * As youtube-nocookie.com does not serve the HTML5-player, WP YouTube Lyte uses the youtube.com domain (which provides less privacy), but as youtube-nocookie.com servers HTML5-video, this will become the default domain for WP YouTube Lyte again,
50
 
51
  = I found a bug/ I would like a feature to be added! =
52
  * Just tell me, I like the feedback! Use the [Contact-page on my blog](http://blog.futtta.be/contact/), [leave a comment in a post about wp-youtube-lyte](http://blog.futtta.be/tag/wp-youtube-lyte/) or [create a new topic on the wordpress.org forum](http://wordpress.org/tags/wp-youtube-lyte?forum_id=10#postform).
@@ -57,6 +62,15 @@ and you're good to go!
57
  * [Rate my plugin on wordpress.org](http://wordpress.org/extend/plugins/wp-youtube-lyte/), even if you think it stinks ;-)
58
 
59
  == Changelog ==
 
 
 
 
 
 
 
 
 
60
  = 0.8.0 =
61
  * added support for playlists
62
  * added support for HD
@@ -67,7 +81,7 @@ and you're good to go!
67
 
68
  = 0.7.3 =
69
  * sdded support for youtu.be links
70
- * added sl_SI translation (thanks Mitja Miheli&#268; @arnes.si](http://www.arnes.si/))
71
  * load donottrack js in https if needed (thanks [Chris @campino2k.de](http://campino2k.de/))
72
  * tested & confirmed to work perfectly with wordpress 3.2.1
73
 
1
  === WP YouTube Lyte ===
2
  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.0
7
 
8
  "Lite YouTube Embeds" look like normal YouTube embeds but don't use Flash, thus reducing download size & page rendering time.
9
 
11
 
12
  WP YouTube Lyte inserts "Lite YouTube Embeds" in your blog. These look and feel like normal embedded YouTube, but only call the actual "fat" Flash or HTML5-player when clicked on, thereby [reducing download size & rendering time substantially](http://blog.futtta.be/2010/08/30/the-state-of-wp-youtube-lyte/) when embedding YouTube occasionally and improving page performance dramatically when you've got multiple YouTube video's on one and the same page.
13
 
14
+ Just add a YouTube-link for a video or [an entire playlist](http://blog.futtta.be/2011/10/11/wp-youtube-lyte-support-for-playlists-almost-included/) with "httpv" (or "httpa" to [embed YouTube's audio](http://blog.futtta.be/2011/04/19/audio-only-youtube-embedding-with-wp-youtube-lyte-0-7/) only) instead of "http" or add a Lyte widget to your sidebar and WP YouTube Lyte replaces that link with the correct performance-optimized code. When a visitor clicks the play-button, WP YouTube Lyte seamlessly initiates [YouTube's new embedded player](http://apiblog.youtube.com/2010/07/new-way-to-embed-youtube-videos.html). Some examples:
15
+ * httpv://www.youtube.com/watch?v=_SQkWbRublY (normal video embed)
16
+ * httpv://youtu.be/_SQkWbRublY (video embed with youtube-shortlink)
17
+ * httpa://www.youtube.com/watch?v=_SQkWbRublY (audio only embed)
18
+ * httpv://www.youtube.com/playlist?list=PLA486E741B25F8E00 (playlist embed)
19
+ * httpv://www.youtube.com/watch?v=_SQkWbRublY#stepSize=-1 (video player, one size smaller than what's configured as default)
20
 
21
+ WP YouTube Lyte has been written with optimal performance as primary goal, but has been tested for maximum browser-compatibility (iPad included) while keeping an eye on accessibility. The plugin is fully multi-language, with support for Catalan, Dutch, English, French, German, Hebrew, Spanish and Slovene.
22
 
23
  Feedback is welcome; see [info in the faq](http://wordpress.org/extend/plugins/wp-youtube-lyte/faq/) for bug reports/ feature requests and feel free to [rate and/or report on compatibility on wordpress.org](http://wordpress.org/extend/plugins/wp-youtube-lyte/).
24
 
51
  * The playlist-player currently does not work on iPad or iPhone, this is a known limitation of Youtube's playlist player and [is on the todo-list to get fixed](http://groups.google.com/group/youtube-api-gdata/browse_frm/thread/adbec924f43688e5#)
52
  * The new YouTube embed-code doesn't look great when using WP YouTube Lyte widgets in your sidebar. This is because YouTube's embedded player doesn't scale well for small sizes, this is something that YouTube should (and hopefully will) fix at a later stage.
53
  * Having the same YouTube-video on one page can cause WP YouTube Lyte to malfunction (as the YouTube id is used as the div's id in the DOM, and DOM id's are supposed to be unique)
54
+ * As youtube-nocookie.com does not serve the HTML5-player, WP YouTube Lyte uses the youtube.com domain (which provides less privacy), but as soon as youtube-nocookie.com serves HTML5-video, this will become the default domain for WP YouTube Lyte again.
55
 
56
  = I found a bug/ I would like a feature to be added! =
57
  * Just tell me, I like the feedback! Use the [Contact-page on my blog](http://blog.futtta.be/contact/), [leave a comment in a post about wp-youtube-lyte](http://blog.futtta.be/tag/wp-youtube-lyte/) or [create a new topic on the wordpress.org forum](http://wordpress.org/tags/wp-youtube-lyte?forum_id=10#postform).
62
  * [Rate my plugin on wordpress.org](http://wordpress.org/extend/plugins/wp-youtube-lyte/), even if you think it stinks ;-)
63
 
64
  == Changelog ==
65
+ = 0.9.0 =
66
+ * you can now change player size from the default one (as proposed by [Edward Owen](http://www.edwardlowen.com/)); httpv://www.youtube.com/watch?v=_SQkWbRublY#size_step=-2 or httpv://youtu.be/_SQkWbRublY#size_step=+1 will change player size to one of the other available sizes in your choosen format (4:3 or 16:9)
67
+ * added a smaller 16:9 size and re-arranged player sizes on the options-screen
68
+ * Bugfix: changed lyte-div ID to force it to be xhtml-compliant (ID's can't start with a digit, hat tip: Ruben of [ytuquelees.net](http://ytuquelees.net)
69
+ * Bugfix: added version in js-call to avoid caching issues (lyte-min.js?ver=0.8.1) as experienced by some users and reported by [Ryan of givemeshred.com](http://www.givemeshred.com)
70
+ * Upgrade to the "bonus feature" to [fix things](http://blog.futtta.be/2011/11/07/wp-privacy-quantcast-sneaks-back-in/) (consider this beta)
71
+ * Languages: added Hebrew (by [Sagive SEO](http://www.sagive.co.il/)) and Catalan (by Ruben of [ytuquelees.net](http://ytuquelees.net)) translations and added completed Spanish version (thanks to [Paulino Brener from Social Media Travelers](http://socialmediatravelers.com/ "Paulino Brener from Social Media Travelers, Your guide to your Social Media journey. We help businesses start or improve their Social Media presence."))
72
+ * tested succesfully on WordPress 3.3 (beta 2)
73
+
74
  = 0.8.0 =
75
  * added support for playlists
76
  * added support for HD
81
 
82
  = 0.7.3 =
83
  * sdded support for youtu.be links
84
+ * added sl_SI translation (thanks [Mitja Miheli&#268; @arnes.si](http://www.arnes.si/))
85
  * load donottrack js in https if needed (thanks [Chris @campino2k.de](http://campino2k.de/))
86
  * tested & confirmed to work perfectly with wordpress 3.2.1
87
 
widget.php CHANGED
@@ -6,9 +6,9 @@ class WYLWidget extends WP_Widget {
6
  parent::WP_Widget(false, $name = 'WP YouTube Lyte');
7
  }
8
 
9
- function widget($args, $instance) {
10
  extract( $args );
11
- global $wSize;
12
  $WYLtitle = apply_filters('widget_title', $instance['WYLtitle']);
13
  $WYLtext = apply_filters( 'widget_text', $instance['WYLtext'], $instance );
14
 
@@ -28,14 +28,16 @@ class WYLWidget extends WP_Widget {
28
  $WYLid=$WYLarr['v'];
29
  }
30
 
 
 
31
  $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__));
32
- $lyteSettings[0]=$wp_lyte_plugin_url."lyte/";
33
  ?>
34
 
35
  <?php echo $before_widget; ?>
36
  <?php if ( $WYLtitle ) echo $before_title . $WYLtitle . $after_title; ?>
37
  <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"><!--
38
- var bU='<?php echo $lyteSettings[0];?>';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[0]."lyte-min.js";?>';h=d.getElementsByTagName('script')[0];h.parentNode.insertBefore(lytescr, h)}};
39
  --></script></div>
40
  <div><?php echo $WYLtext ?></div>
41
  <?php echo $after_widget; ?>
6
  parent::WP_Widget(false, $name = 'WP YouTube Lyte');
7
  }
8
 
9
+ function widget($args, $instance) {
10
  extract( $args );
11
+ global $wSize, $wyl_version;
12
  $WYLtitle = apply_filters('widget_title', $instance['WYLtitle']);
13
  $WYLtext = apply_filters( 'widget_text', $instance['WYLtext'], $instance );
14
 
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/";
35
  ?>
36
 
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?".$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
@@ -1,111 +1,139 @@
1
- <?php
2
- /*
3
- 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.8.0
8
- Author URI: http://blog.futtta.be/
9
- Text Domain: wp-youtube-lyte
10
- Domain Path: /languages
11
- */
12
-
13
- $plugin_dir = basename(dirname(__FILE__)).'/languages';
14
- load_plugin_textdomain( 'wp-youtube-lyte', null, $plugin_dir );
15
-
16
- $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__));
17
-
18
- require_once(dirname(__FILE__).'/options.php');
19
- require_once(dirname(__FILE__).'/player_sizes.inc.php');
20
- require_once(dirname(__FILE__).'/widget.php');
21
-
22
- $lyteSettings[0]=$wp_lyte_plugin_url.'lyte/';
23
-
24
- $oSize = (int) get_option('size');
25
- if ((is_bool($oSize)) || ($pSize[$oSize]['a']===false)) { $sel = (int) $pDefault; } else { $sel= $oSize; }
26
-
27
- $lyteSettings[2]=$pSize[$sel]['w'];
28
- $lyteSettings[3]=$pSize[$sel]['h'];
29
- $lyteSettings[4]=get_option('show_links');
30
-
31
- function lyte_parse($the_content) {
32
- global $lyteSettings;
33
- if((strpos($the_content, "httpv")!==FALSE)||(strpos($the_content, "httpa")!==FALSE)) {
34
- $char_codes = array('&#215;','&#8211;');
35
- $replacements = array("x", "--");
36
- $the_content=str_replace($char_codes, $replacements, $the_content);
37
-
38
- if (get_option('hidef')==="1") {
39
- $hidefClass=" hidef";
40
- } else {
41
- $hidefClass="";
42
- }
43
-
44
- preg_match_all("/http(a|v):\/\/([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]*)/", $the_content, $matches, PREG_SET_ORDER);
45
-
46
- foreach($matches as $match) {
47
- if ($match[1]!=="a") {
48
- $divHeight=$lyteSettings[3];
49
- $audioClass="";
50
- } else {
51
- $audioClass=" audio";
52
- $divHeight=38;
53
- }
54
-
55
- if ($match[11]!="") {
56
- $plClass=" playlist";
57
- $vid=$match[11];
58
- switch ($lyteSettings[4]) {
59
- case "0":
60
- $noscript_post="<br />".__("Watch this playlist on YouTube","wp-youtube-lyte");
61
- $lytelinks_txt="";
62
- break;
63
- default:
64
- $noscript_post="<br />".__("Watch this playlist on YouTube","wp-youtube-lyte");
65
- $lytelinks_txt="<div class=\"lL\">".__("Watch this playlist","wp-youtube-lyte")." <a href=\"http://www.youtube.com/playlist?list=PL".$vid."\">".__("on YouTube","wp-youtube-lyte")."</a>.</div>";
66
- }
67
- $noscript="<noscript><a href=\"http://youtube.com//".$vid."\">".$noscript_post."</a></noscript>";
68
- } else if ($match[9]!="") {
69
- $plClass="";
70
- $vid=$match[9];
71
- switch ($lyteSettings[4]) {
72
- case "0":
73
- $noscript_post="<br />".__("Watch this video on YouTube","wp-youtube-lyte");
74
- $lytelinks_txt="";
75
- break;
76
- case "2":
77
- $noscript_post="";
78
- $lytelinks_txt="<div class=\"lL\">".__("Watch this video","wp-youtube-lyte")." <a href=\"http://youtu.be/".$vid."\">".__("on YouTube","wp-youtube-lyte")."</a> ".__("or on","wp-youtube-lyte")." <a href=\"http://icant.co.uk/easy-youtube/?http://www.youtube.com/watch?v=".$vid."\">Easy Youtube</a>.</div>";
79
- break;
80
- default:
81
- $noscript_post="";
82
- $lytelinks_txt="<div class=\"lL\">".__("Watch this video","wp-youtube-lyte")." <a href=\"http://youtu.be/".$vid."\">".__("on YouTube","wp-youtube-lyte")."</a>.</div>";
83
- }
84
- $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>";
85
- }
86
-
87
- $lytetemplate = "<div class=\"lyte".$audioClass.$hidefClass.$plClass."\" id=\"".$vid."\" style=\"width:".$lyteSettings[2]."px;height:".$divHeight."px;\">".$noscript."<script type=\"text/javascript\"><!-- \n var bU='".$lyteSettings[0]."';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[0]."lyte-min.js';h=d.getElementsByTagName('script')[0];h.parentNode.insertBefore(lytescr, h)}}; \n --></script></div>".$lytelinks_txt;
88
- $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);
89
- }
90
- }
91
- return $the_content;
92
- }
93
-
94
- add_filter('the_content', 'lyte_parse', 90);
95
-
96
- /* donottrack */
97
- $donottrack_js=$wp_lyte_plugin_url."external/donottrack-min.js";
98
-
99
- if ($_SERVER['HTTPS']) {
100
- $donottrack_js = str_replace( $donottrack_js, "http:","https:" );
101
- }
102
-
103
- function init_lyte_donottrack() {
104
- global $donottrack_js;
105
- wp_enqueue_script( 'donottrack',$donottrack_js );
106
- }
107
-
108
- if (get_option('donottrack')==="1") {
109
- add_action('init', 'init_lyte_donottrack');
110
- }
111
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ 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.0
8
+ Author URI: http://blog.futtta.be/
9
+ Text Domain: wp-youtube-lyte
10
+ Domain Path: /languages
11
+ */
12
+
13
+ $wyl_version="0.9.0";
14
+
15
+ $plugin_dir = basename(dirname(__FILE__)).'/languages';
16
+ load_plugin_textdomain( 'wp-youtube-lyte', null, $plugin_dir );
17
+
18
+ $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__));
19
+
20
+ require_once(dirname(__FILE__).'/options.php');
21
+ require_once(dirname(__FILE__).'/player_sizes.inc.php');
22
+ require_once(dirname(__FILE__).'/widget.php');
23
+
24
+ $oSize = (int) get_option('size');
25
+ if ((is_bool($oSize)) || ($pSize[$oSize]['a']===false)) { $sel = (int) $pDefault; } else { $sel=$oSize; }
26
+
27
+ $pSizeFormat=$pSize[$sel]['f'];
28
+ $j=0;
29
+ foreach ($pSizeOrder[$pSizeFormat] as $sizeId) {
30
+ $sArray[$j]['w']=(int) $pSize[$sizeId]['w'];
31
+ $sArray[$j]['h']=(int) $pSize[$sizeId]['h'];
32
+ if ($sizeId===$sel) $selSize=$j;
33
+ $j++;
34
+ }
35
+
36
+ $lyteSettings['sizeArray']=$sArray;
37
+ $lyteSettings['selSize']=$selSize;
38
+ $lyteSettings['path']=$wp_lyte_plugin_url.'lyte/';
39
+ $lyteSettings['links']=get_option('show_links');
40
+ $lyteSettings['version']=$wyl_version;
41
+
42
+ function lyte_parse($the_content) {
43
+ global $lyteSettings;
44
+
45
+ if((strpos($the_content, "httpv")!==FALSE)||(strpos($the_content, "httpa")!==FALSE)) {
46
+ $char_codes = array('&#215;','&#8211;');
47
+ $replacements = array("x", "--");
48
+ $the_content=str_replace($char_codes, $replacements, $the_content);
49
+
50
+ if (get_option('hidef')==="1") {
51
+ $hidefClass=" hidef";
52
+ } else {
53
+ $hidefClass="";
54
+ }
55
+
56
+ preg_match_all("/http(a|v):\/\/([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]*)/", $the_content, $matches, PREG_SET_ORDER);
57
+
58
+ foreach($matches as $match) {
59
+ preg_match("/stepSize\=([\+\-0-9]{2})/",$match[12],$sMatch);
60
+ if (!empty($sMatch)) {
61
+ $newSize=(int) $sMatch[1];
62
+ $newPos=(int) $lyteSettings['selSize']+$newSize;
63
+ if ($newPos<0) {
64
+ $newPos=0;
65
+ } else if ($newPos > count($lyteSettings['sizeArray'])-1) {
66
+ $newPos=count($lyteSettings['sizeArray'])-1;
67
+ }
68
+ $lyteSettings[2]=$lyteSettings['sizeArray'][$newPos]['w'];
69
+ $lyteSettings[3]=$lyteSettings['sizeArray'][$newPos]['h'];
70
+ } else {
71
+ $lyteSettings[2]=$lyteSettings['sizeArray'][$lyteSettings['selSize']]['w'];
72
+ $lyteSettings[3]=$lyteSettings['sizeArray'][$lyteSettings['selSize']]['h'];
73
+ }
74
+
75
+ if ($match[1]!=="a") {
76
+ $divHeight=$lyteSettings[3];
77
+ $audioClass="";
78
+ } else {
79
+ $audioClass=" audio";
80
+ $divHeight=34;
81
+ }
82
+
83
+ if ($match[11]!="") {
84
+ $plClass=" playlist";
85
+ $vid=$match[11];
86
+ switch ($lyteSettings['links']) {
87
+ case "0":
88
+ $noscript_post="<br>".__("Watch this playlist on YouTube","wp-youtube-lyte")."&lyte;.";
89
+ $noscript="<noscript><a href=\"http://youtube.com/playlist?list=PL".$vid."\">".$noscript_post."</a>.</noscript>";
90
+ $lytelinks_txt="";
91
+ break;
92
+ default:
93
+ $noscript="";
94
+ $lytelinks_txt="<div class=\"lL\">".__("Watch this playlist","wp-youtube-lyte")." <a href=\"http://www.youtube.com/playlist?list=PL".$vid."\">".__("on YouTube","wp-youtube-lyte")."</a>.</div>";
95
+ }
96
+ } else if ($match[9]!="") {
97
+ $plClass="";
98
+ $vid=$match[9];
99
+ switch ($lyteSettings['links']) {
100
+ case "0":
101
+ $noscript_post="<br>".__("Watch this video on YouTube","wp-youtube-lyte").".";
102
+ $lytelinks_txt="";
103
+ break;
104
+ case "2":
105
+ $noscript_post="";
106
+ $lytelinks_txt="<div class=\"lL\">".__("Watch this video","wp-youtube-lyte")." <a href=\"http://youtu.be/".$vid."\">".__("on YouTube","wp-youtube-lyte")."</a> ".__("or on","wp-youtube-lyte")." <a href=\"http://icant.co.uk/easy-youtube/?http://www.youtube.com/watch?v=".$vid."\">Easy Youtube</a>.</div>";
107
+ break;
108
+ default:
109
+ $noscript_post="";
110
+ $lytelinks_txt="<div class=\"lL\">".__("Watch this video","wp-youtube-lyte")." <a href=\"http://youtu.be/".$vid."\">".__("on YouTube","wp-youtube-lyte")."</a>.</div>";
111
+ }
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?".$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";
126
+
127
+ if ($_SERVER['HTTPS']) {
128
+ $donottrack_js = str_replace( $donottrack_js, "http:","https:" );
129
+ }
130
+
131
+ function init_lyte_donottrack() {
132
+ global $donottrack_js;
133
+ wp_enqueue_script( 'donottrack',$donottrack_js );
134
+ }
135
+
136
+ if (get_option('donottrack')==="1") {
137
+ add_action('init', 'init_lyte_donottrack');
138
+ }
139
+ ?>