WP YouTube Lyte - Version 0.8.0

Version Description

  • added support for playlists
  • added support for HD
  • dropped support for the legacy YouTube embed-code
  • updated UI elements to match new, dark YouTube player style
  • updated player sizes to match YouTube's
  • added new translations: Spanish (front-end strings, thanks to Paulino Brener @Social Media Travelers) and German (complete, by "der Tuxman")
Download this release

Release Info

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

Code changes from version 0.7.3 to 0.8.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;
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']);
languages/wp-youtube-lyte-de_DE.mo ADDED
Binary file
languages/wp-youtube-lyte-es_ES.mo ADDED
Binary file
languages/wp-youtube-lyte-es_ES.po ADDED
@@ -0,0 +1,205 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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\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-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
78
+ msgid "Watch this playlist on YouTube"
79
+ msgstr "Mire esta lista de reproducción en Youtube"
80
+
81
+ #: wp-youtube-lyte.php:65
82
+ msgid "Watch this playlist"
83
+ msgstr "Mire esta lista de reproducción"
84
+
85
+ #: wp-youtube-lyte.php:65
86
+ #: wp-youtube-lyte.php:78
87
+ #: wp-youtube-lyte.php:82
88
+ msgid "on YouTube"
89
+ msgstr "en Youtube"
90
+
91
+ #: wp-youtube-lyte.php:73
92
+ msgid "Watch this video on YouTube"
93
+ msgstr "Mire este video en YouTube"
94
+
95
+ #: wp-youtube-lyte.php:78
96
+ #: wp-youtube-lyte.php:82
97
+ msgid "Watch this video"
98
+ msgstr "Mire este video"
99
+
100
+ #: wp-youtube-lyte.php:78
101
+ msgid "or on"
102
+ 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."
196
+ 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
+
languages/wp-youtube-lyte-fr_BE.mo CHANGED
Binary file
languages/wp-youtube-lyte-fr_FR.mo CHANGED
Binary file
languages/wp-youtube-lyte-fr_FR.po 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-17 14:35+0100\n"
7
+ "Last-Translator: frank goossens <futtta@gmail.com>\n"
8
+ "Language-Team: frank goossens ('futtta') <futtta@gmail.com>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Poedit-Language: French\n"
13
+
14
+ #: widget.php:74
15
+ msgid "Title:"
16
+ msgstr "Titre:"
17
+
18
+ #: widget.php:75
19
+ msgid "Size:"
20
+ msgstr "Taille:"
21
+
22
+ #: widget.php:91
23
+ msgid "Type:"
24
+ msgstr ""
25
+
26
+ #: widget.php:99
27
+ msgid "audio"
28
+ msgstr ""
29
+
30
+ #: widget.php:100
31
+ msgid "video"
32
+ msgstr ""
33
+
34
+ #: widget.php:104
35
+ msgid "Youtube-URL:"
36
+ msgstr "Youtube-URL:"
37
+
38
+ #: widget.php:105
39
+ msgid "Text:"
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 "Regardez cette playlist sur YouTube"
78
+
79
+ #: wp-youtube-lyte.php:65
80
+ msgid "Watch this playlist"
81
+ msgstr "Regardez cette playlist"
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 "sur YouTube"
88
+
89
+ #: wp-youtube-lyte.php:73
90
+ msgid "Watch this video on YouTube"
91
+ msgstr "Regardez cette vidéo sur YouTube"
92
+
93
+ #: wp-youtube-lyte.php:78
94
+ #: wp-youtube-lyte.php:82
95
+ msgid "Watch this video"
96
+ msgstr "Regardez cette vidéo"
97
+
98
+ #: wp-youtube-lyte.php:78
99
+ msgid "or on"
100
+ msgstr "ou sur"
101
+
102
+ #: options.php:37
103
+ msgid "WP YouTube Lyte Settings"
104
+ msgstr ""
105
+
106
+ #: options.php:39
107
+ msgid "WP YouTube Lyte inserts \"Lite YouTube Embeds\" in your blog. These look and feel like normal embedded YouTube, but don't use Flash unless clicked on, thereby <a href=\"http://blog.futtta.be/2010/08/30/the-state-of-wp-youtube-lyte/\" target=\"_blank\">reducing download size & rendering time substantially</a>. When a video is played, WP-YouTube-Lyte can either activate <a href=\"http://apiblog.youtube.com/2010/07/new-way-to-embed-youtube-videos.html\" target=\"_blank\">YouTube's embedded html5-player</a> or the older Flash-version, depending on the settings below."
108
+ msgstr ""
109
+
110
+ #: options.php:40
111
+ msgid "You can place video and audio in your posts and pages by adding one or more http<strong>v</strong> or http<strong>a</strong> YouTube-links to your post. These will automatically be replaced by WP YouTube Lyte with the correct (flash-less) code. To add a video for example, you type a URL like <em>http<strong>v</strong>://www.youtube.com/watch?v=QQPSMRQnNlU</em> or <em>http<strong>v</strong>://www.youtube.com/playlist?list=PLA486E741B25F8E00</em> for a playlist. If you want an audio-only player, you enter <em>http<strong>a</strong>://www.youtube.com/watch?v=BIQIGR-kWtc</em>. There's more info on the <a href=\"http://wordpress.org/extend/plugins/wp-youtube-lyte/faq/\" target=\"_blank\">wordpress.org WP YouTube Lyte FAQ page</a>."
112
+ msgstr ""
113
+
114
+ #: options.php:41
115
+ msgid "You can modify WP-YouTube-Lyte's behaviour by changing the following settings:"
116
+ msgstr ""
117
+
118
+ #: options.php:48
119
+ msgid "Player size"
120
+ msgstr ""
121
+
122
+ #: options.php:65
123
+ msgid "Add links below the embedded videos?"
124
+ msgstr ""
125
+
126
+ #: options.php:67
127
+ msgid "Show links?"
128
+ msgstr ""
129
+
130
+ #: options.php:68
131
+ msgid " Add YouTube-link."
132
+ msgstr ""
133
+
134
+ #: options.php:69
135
+ msgid " Add both a YouTube and an <a href=\"http://icant.co.uk/easy-youtube/docs/index.html\" target=\"_blank\">Easy YouTube</a>-link."
136
+ msgstr ""
137
+
138
+ #: options.php:70
139
+ msgid " Don't add any links."
140
+ msgstr ""
141
+
142
+ #: options.php:75
143
+ msgid "Play video in HD if possible?"
144
+ msgstr ""
145
+
146
+ #: options.php:79
147
+ msgid "Enable HD"
148
+ msgstr ""
149
+
150
+ #: options.php:80
151
+ msgid "No HD, we're smallband!"
152
+ msgstr ""
153
+
154
+ #: options.php:85
155
+ msgid "Bonus feature: "
156
+ msgstr ""
157
+
158
+ #: options.php:89
159
+ msgid "Disable 3rd party tracking."
160
+ msgstr ""
161
+
162
+ #: options.php:90
163
+ msgid "I don't mind 3rd party tracking (default)"
164
+ msgstr ""
165
+
166
+ #: options.php:97
167
+ msgid "Save Changes"
168
+ msgstr "Saufgardez"
169
+
170
+ #: options.php:105
171
+ msgid "futtta about"
172
+ msgstr ""
173
+
174
+ #. #-#-#-#-# plugin.pot (WP YouTube Lyte 0.8.0) #-#-#-#-#
175
+ #. Plugin Name of the plugin/theme
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 "Intégration de audio et video YouTube légère et accessible."
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-nl_BE.mo CHANGED
Binary file
languages/wp-youtube-lyte-nl_NL.mo CHANGED
Binary file
languages/wp-youtube-lyte-nl_NL.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-17 14:31+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: Dutch\n"
13
+
14
+ #: widget.php:74
15
+ msgid "Title:"
16
+ msgstr "Titel:"
17
+
18
+ #: widget.php:75
19
+ msgid "Size:"
20
+ msgstr "Afmetingen:"
21
+
22
+ #: widget.php:91
23
+ msgid "Type:"
24
+ msgstr "Type:"
25
+
26
+ #: widget.php:99
27
+ msgid "audio"
28
+ msgstr "audio"
29
+
30
+ #: widget.php:100
31
+ msgid "video"
32
+ msgstr "video"
33
+
34
+ #: widget.php:104
35
+ msgid "Youtube-URL:"
36
+ msgstr "Youtube-URL:"
37
+
38
+ #: widget.php:105
39
+ msgid "Text:"
40
+ msgstr "Tekst:"
41
+
42
+ #: player_sizes.inc.php:11
43
+ msgid "Smaller 4:3 player"
44
+ msgstr "Kleiner 4:3 player"
45
+
46
+ #: player_sizes.inc.php:16
47
+ msgid "Smaller 16:9 player"
48
+ msgstr "Kleinere 16:9 player"
49
+
50
+ #: player_sizes.inc.php:21
51
+ msgid "Standard value, YouTube default for 4:3-ratio video"
52
+ msgstr "Standaard 4:3-ratio video"
53
+
54
+ #: player_sizes.inc.php:26
55
+ msgid "YouTube default for 16:9-ratio video"
56
+ msgstr "Standaard 16:9-ratio video"
57
+
58
+ #: player_sizes.inc.php:31
59
+ msgid "Larger 4:3 player"
60
+ msgstr "Grotere 4:3 player"
61
+
62
+ #: player_sizes.inc.php:36
63
+ msgid "Larger 16:9 player"
64
+ msgstr "Grotere 16:9 player"
65
+
66
+ #: player_sizes.inc.php:41
67
+ msgid "Maxi 4:3 player"
68
+ msgstr "Maxi 4:3 player"
69
+
70
+ #: player_sizes.inc.php:46
71
+ msgid "Maxi 16:9 player"
72
+ msgstr "Maxi 16:9 player"
73
+
74
+ #: wp-youtube-lyte.php:60
75
+ #: wp-youtube-lyte.php:64
76
+ msgid "Watch this playlist on YouTube"
77
+ msgstr "Bekijk deze playlist op YouTube"
78
+
79
+ #: wp-youtube-lyte.php:65
80
+ msgid "Watch this playlist"
81
+ msgstr "Bekijk deze playlist"
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 "op YouTube"
88
+
89
+ #: wp-youtube-lyte.php:73
90
+ msgid "Watch this video on YouTube"
91
+ msgstr "Bekijk deze video op YouTube"
92
+
93
+ #: wp-youtube-lyte.php:78
94
+ #: wp-youtube-lyte.php:82
95
+ msgid "Watch this video"
96
+ msgstr "Bekijk deze video"
97
+
98
+ #: wp-youtube-lyte.php:78
99
+ msgid "or on"
100
+ msgstr "of op"
101
+
102
+ #: options.php:37
103
+ msgid "WP YouTube Lyte Settings"
104
+ msgstr "WP YouTube Lyte instellingen"
105
+
106
+ #: options.php:39
107
+ msgid "WP YouTube Lyte inserts \"Lite YouTube Embeds\" in your blog. These look and feel like normal embedded YouTube, but don't use Flash unless clicked on, thereby <a href=\"http://blog.futtta.be/2010/08/30/the-state-of-wp-youtube-lyte/\" target=\"_blank\">reducing download size & rendering time substantially</a>. When a video is played, WP-YouTube-Lyte can either activate <a href=\"http://apiblog.youtube.com/2010/07/new-way-to-embed-youtube-videos.html\" target=\"_blank\">YouTube's embedded html5-player</a> or the older Flash-version, depending on the settings below."
108
+ msgstr "WP YouTube Lyte voegt \"Lite YouTube Embeds\" toe aan je blog. Die zien er uit als normale ingebedde YouTube video's, maar laden geen Flash of HTML5 voordat de bezoeker de video wilt bekijken, waardoor <a href=\"http://blog.futtta.be/2010/08/30/the-state-of-wp-youtube-lyte/\" target=\"_blank\">de hoeveelheid te downloaden informatie verminderd en de pagina sneller te zien is</a>."
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 "Je kunt video an audio in je blogposts opnemen door http<strong>v</strong> of http<strong>a</strong>-links in je post te plaatsen. WP YouTube Lyte zal die automatisch vervangen met de correcte (Flash-loze) code. Om bijvoorbeeld een nieuwe video toe te voegen, gebruik je iets als <em>http<strong>v</strong>://www.youtube.com/watch?v=QQPSMRQnNlU</em> of <em>http<strong>v</strong>://www.youtube.com/playlist?list=PLA486E741B25F8E00</em> voor een playlist. Wil je enkel audio, dan vervang je de http\"v\" in http\"a\", bv. <em>http<strong>a</strong>://www.youtube.com/watch?v=BIQIGR-kWtc</em>. Meer info vind je op de <a href=\"http://wordpress.org/extend/plugins/wp-youtube-lyte/faq/\" target=\"_blank\">wordpress.org WP YouTube Lyte FAQ pagina</a>."
113
+
114
+ #: options.php:41
115
+ msgid "You can modify WP-YouTube-Lyte's behaviour by changing the following settings:"
116
+ msgstr "Je kunt WP YouTube Lyte wijzigen met onderstaande instellingen:"
117
+
118
+ #: options.php:48
119
+ msgid "Player size"
120
+ msgstr "Afmetingen van de player"
121
+
122
+ #: options.php:65
123
+ msgid "Add links below the embedded videos?"
124
+ msgstr "Voeg links to onder de video?"
125
+
126
+ #: options.php:67
127
+ msgid "Show links?"
128
+ msgstr "Toon links?"
129
+
130
+ #: options.php:68
131
+ msgid " Add YouTube-link."
132
+ msgstr "Voeg YouTube-link toe"
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 "Voeg zowel een YouTube als een <a href=\"http://icant.co.uk/easy-youtube/docs/index.html\" target=\"_blank\">Easy YouTube</a>-link toe."
137
+
138
+ #: options.php:70
139
+ msgid " Don't add any links."
140
+ msgstr "Voeg geen links toe"
141
+
142
+ #: options.php:75
143
+ msgid "Play video in HD if possible?"
144
+ msgstr "Speel indien mogelijk in HD af?"
145
+
146
+ #: options.php:79
147
+ msgid "Enable HD"
148
+ msgstr "Ja, HD graag!"
149
+
150
+ #: options.php:80
151
+ msgid "No HD, we're smallband!"
152
+ msgstr "Geen HD, graag licht en luchtig"
153
+
154
+ #: options.php:85
155
+ msgid "Bonus feature: "
156
+ msgstr "Bonus:"
157
+
158
+ #: options.php:89
159
+ msgid "Disable 3rd party tracking."
160
+ msgstr "Tracking door derden stoppen"
161
+
162
+ #: options.php:90
163
+ msgid "I don't mind 3rd party tracking (default)"
164
+ msgstr "Laat die derden maar meekijken"
165
+
166
+ #: options.php:97
167
+ msgid "Save Changes"
168
+ msgstr "Bewaar"
169
+
170
+ #: options.php:105
171
+ msgid "futtta about"
172
+ msgstr "futtta over"
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 "WordPress"
183
+
184
+ #: options.php:109
185
+ msgid "Web Technology"
186
+ msgstr "Web Technologie"
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 "YouTube audio en video embedding \"light\"."
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-sl_SI.mo CHANGED
Binary file
languages/wp-youtube-lyte-sl_SI.po ADDED
@@ -0,0 +1,204 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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\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-17 12:46+0100\n"
12
+ "Last-Translator: frank goossens <futtta@gmail.com>\n"
13
+ "Language-Team: ARNES\n"
14
+
15
+ #: widget.php:74
16
+ msgid "Title:"
17
+ msgstr "Naslov:"
18
+
19
+ #: widget.php:75
20
+ msgid "Size:"
21
+ msgstr "Velikost:"
22
+
23
+ #: widget.php:91
24
+ msgid "Type:"
25
+ msgstr "Tip:"
26
+
27
+ #: widget.php:99
28
+ msgid "audio"
29
+ msgstr "zvok"
30
+
31
+ #: widget.php:100
32
+ msgid "video"
33
+ msgstr "video"
34
+
35
+ #: widget.php:104
36
+ msgid "Youtube-URL:"
37
+ msgstr "YouTube URL:"
38
+
39
+ #: widget.php:105
40
+ msgid "Text:"
41
+ msgstr "Besedilo:"
42
+
43
+ #: player_sizes.inc.php:11
44
+ msgid "Smaller 4:3 player"
45
+ msgstr "Manjši predvajalnik: razmerje 4:3"
46
+
47
+ #: player_sizes.inc.php:16
48
+ msgid "Smaller 16:9 player"
49
+ msgstr "Manjši predvajalnik: razmerje 16:9"
50
+
51
+ #: player_sizes.inc.php:21
52
+ msgid "Standard value, YouTube default for 4:3-ratio video"
53
+ msgstr "Standardna velikost: YouTubova privzeta velikost za video v razmerju 4:3"
54
+
55
+ #: player_sizes.inc.php:26
56
+ msgid "YouTube default for 16:9-ratio video"
57
+ msgstr "YouTubova privzeta velikost za video v razmerju 16:9"
58
+
59
+ #: player_sizes.inc.php:31
60
+ msgid "Larger 4:3 player"
61
+ msgstr "Večji predvajalnik: razmerje 4:3"
62
+
63
+ #: player_sizes.inc.php:36
64
+ msgid "Larger 16:9 player"
65
+ msgstr "Večji predvajalnik: razmerje 16:9"
66
+
67
+ #: player_sizes.inc.php:41
68
+ msgid "Maxi 4:3 player"
69
+ msgstr "Maksi predvajalnik: razmerje 4:3"
70
+
71
+ #: player_sizes.inc.php:46
72
+ msgid "Maxi 16:9 player"
73
+ msgstr "Maksi predvajalnik: razmerje 16:9"
74
+
75
+ #: wp-youtube-lyte.php:60
76
+ #: wp-youtube-lyte.php:64
77
+ msgid "Watch this playlist on YouTube"
78
+ msgstr "Oglej si seznam predvajanja na YouTube"
79
+
80
+ #: wp-youtube-lyte.php:65
81
+ msgid "Watch this playlist"
82
+ msgstr "Oglej si seznam predvajanja"
83
+
84
+ #: wp-youtube-lyte.php:65
85
+ #: wp-youtube-lyte.php:78
86
+ #: wp-youtube-lyte.php:82
87
+ msgid "on YouTube"
88
+ msgstr "na Youtube"
89
+
90
+ #: wp-youtube-lyte.php:73
91
+ msgid "Watch this video on YouTube"
92
+ msgstr "Oglej si posnetek na YouTube"
93
+
94
+ #: wp-youtube-lyte.php:78
95
+ #: wp-youtube-lyte.php:82
96
+ msgid "Watch this video"
97
+ msgstr "Oglej si posnetek"
98
+
99
+ #: wp-youtube-lyte.php:78
100
+ msgid "or on"
101
+ msgstr "ali na"
102
+
103
+ #: options.php:37
104
+ msgid "WP YouTube Lyte Settings"
105
+ msgstr "Nastavitve za WP YouTube Lyte"
106
+
107
+ #: options.php:39
108
+ 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."
109
+ msgstr "WP YouTube Lyte v vaš blog doda vstavke \"Lite YouTube\". Ti so na izgled enaki klasičnim YouTube vstavkom, a ne uporabljajo tehnologije Flash, če uporabnik nanje ne klikne. S tem se čas, potreben za njihovo nalaganje in prikaz, <a href=\"http://blog.futtta.be/2010/08/30/the-state-of-wp-youtube-lyte/\" target=\"_blank\">izjemno zmanjša</a>. Odvisno od spodnjih nastavitev, lahko WP-YouTube-Lyte za predvajanje videa uporabi <a href=\"http://apiblog.youtube.com/2010/07/new-way-to-embed-youtube-videos.html\" target=\"_blank\">YouTubov HTML5 predvajalnik</a> ali pa starejši Flash predvajalnik."
110
+
111
+ #: options.php:40
112
+ 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>."
113
+ msgstr "Prispevkom in stranem lahko dodate video in zvok tako, da dodate eno ali več http<strong>v</strong> ali http<strong>a</strong> YouTube povezav. WP YouTube Lyte jih bo samodejno zamenjal s pravilno povezavo brez Flash-a. Če želite dodati naprimer video, vpišite URL <em>http<strong>v</strong>://www.youtube.com/watch?v=QQPSMRQnNlU</em> ali <em>http<strong>v</strong>://www.youtube.com/playlist?list=PLA486E741B25F8E00</em> za seznam predvajanja. Če želite predvajati le zvok, vpišite <em>http<strong>a</strong>://www.youtube.com/watch?v=BIQIGR-kWtc</em>. Za več informacij si preberite več na <a href=\"http://wordpress.org/extend/plugins/wp-youtube-lyte/faq/\" target=\"_blank\">WordPressovi strani za WP YouTube Lyte</a>."
114
+
115
+ #: options.php:41
116
+ msgid "You can modify WP-YouTube-Lyte's behaviour by changing the following settings:"
117
+ msgstr "Delovanje vtičnika WP YouTube Lyte lahko spremenite z naslednjimi nastavitvami:"
118
+
119
+ #: options.php:48
120
+ msgid "Player size:"
121
+ msgstr "Velikost predvajalnika:"
122
+
123
+ #: options.php:65
124
+ msgid "Add links below the embedded videos?"
125
+ msgstr "Dodaj povezave pod vdelan video:"
126
+
127
+ #: options.php:67
128
+ msgid "Show links?"
129
+ msgstr "Prikaži povezave?"
130
+
131
+ #: options.php:68
132
+ msgid " Add YouTube-link."
133
+ msgstr " Dodaj povezavo na YouTube."
134
+
135
+ #: options.php:69
136
+ msgid " Add both a YouTube and an <a href=\"http://icant.co.uk/easy-youtube/docs/index.html\" target=\"_blank\">Easy YouTube</a>-link."
137
+ msgstr " Dodaj povezavo na YouTube in na <a href=\"http://icant.co.uk/easy-youtube/docs/index.html\" target=\"_blank\">Easy YouTube</a>."
138
+
139
+ #: options.php:70
140
+ msgid " Don't add any links."
141
+ msgstr " Ne dodaj povezav."
142
+
143
+ #: options.php:75
144
+ msgid "Play video in HD if possible?"
145
+ msgstr "Kjer je možno, predvajaj video v visoki ločljivosti (HD):"
146
+
147
+ #: options.php:79
148
+ msgid "Enable HD"
149
+ msgstr "Omogoči HD (širokopasovna povezava)"
150
+
151
+ #: options.php:80
152
+ msgid "No HD, we're smallband!"
153
+ msgstr "Brez HD"
154
+
155
+ #: options.php:85
156
+ msgid "Bonus feature: "
157
+ msgstr "Dodatna možnost: "
158
+
159
+ #: options.php:89
160
+ msgid "Disable 3rd party tracking."
161
+ msgstr "Onemogoči sledenje s strani tretje osebe."
162
+
163
+ #: options.php:90
164
+ msgid "I don't mind 3rd party tracking (default)"
165
+ msgstr "Omgoči sledenje s strani tretje osebe (privzeto)."
166
+
167
+ #: options.php:97
168
+ msgid "Save Changes"
169
+ msgstr "Shrani spremembe"
170
+
171
+ #: options.php:105
172
+ msgid "futtta about"
173
+ msgstr "futtta o"
174
+
175
+ #. #-#-#-#-# plugin.pot (WP YouTube Lyte 0.8.0) #-#-#-#-#
176
+ #. Plugin Name of the plugin/theme
177
+ #: options.php:107
178
+ msgid "WP YouTube Lyte"
179
+ msgstr "WP Youtube Lyte"
180
+
181
+ #: options.php:108
182
+ msgid "WordPress"
183
+ msgstr "WordPress"
184
+
185
+ #: options.php:109
186
+ msgid "Web Technology"
187
+ msgstr "spletnih tehnologijah"
188
+
189
+ #. Plugin URI of the plugin/theme
190
+ msgid "http://blog.futtta.be/tag/lyte"
191
+ msgstr "http://blog.futtta.be/tag/lyte"
192
+
193
+ #. Description of the plugin/theme
194
+ msgid "Lite and accessible YouTube audio and video embedding."
195
+ msgstr "Preprosto vstavljanje YouTube posnetkov."
196
+
197
+ #. Author of the plugin/theme
198
+ msgid "Frank Goossens (futtta)"
199
+ msgstr "Frank Goossens (futtta)"
200
+
201
+ #. Author URI of the plugin/theme
202
+ msgid "http://blog.futtta.be/"
203
+ msgstr "http://blog.futta.be/"
204
+
languages/wp-youtube-lyte.pot CHANGED
@@ -2,9 +2,9 @@
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.7.1\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-youtube-lyte\n"
7
- "POT-Creation-Date: 2011-04-22 10:00:18+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -12,46 +12,199 @@ msgstr ""
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
14
 
15
- #: options.php:93
16
- msgid "Save Changes"
17
  msgstr ""
18
 
19
- #: wp-youtube-lyte.php:57
20
- msgid "Watch this video on YouTube"
21
  msgstr ""
22
 
23
- #: wp-youtube-lyte.php:62 wp-youtube-lyte.php:66
24
- msgid "Watch this video"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
  msgstr ""
26
 
27
- #: wp-youtube-lyte.php:62 wp-youtube-lyte.php:66
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
  msgid "on YouTube"
29
  msgstr ""
30
 
31
- #: wp-youtube-lyte.php:62
 
 
 
 
 
 
 
 
32
  msgid "or on"
33
  msgstr ""
34
 
35
- #: widget.php:65
36
- msgid "Title:"
37
  msgstr ""
38
 
39
- #: widget.php:66
40
- msgid "Size:"
 
 
 
 
 
 
 
 
41
  msgstr ""
42
 
43
- #: widget.php:82
44
- msgid "Youtube-URL:"
 
 
 
 
 
 
 
 
 
 
 
45
  msgstr ""
46
 
47
- #: widget.php:83
48
- msgid "Text:"
 
 
 
 
 
 
 
 
 
 
49
  msgstr ""
50
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
51
  #. Plugin Name of the plugin/theme
 
52
  msgid "WP YouTube Lyte"
53
  msgstr ""
54
 
 
 
 
 
 
 
 
 
55
  #. Plugin URI of the plugin/theme
56
  msgid "http://blog.futtta.be/tag/lyte"
57
  msgstr ""
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\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"
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
14
 
15
+ #: widget.php:74
16
+ msgid "Title:"
17
  msgstr ""
18
 
19
+ #: widget.php:75
20
+ msgid "Size:"
21
  msgstr ""
22
 
23
+ #: widget.php:91
24
+ msgid "Type:"
25
+ msgstr ""
26
+
27
+ #: widget.php:99
28
+ msgid "audio"
29
+ msgstr ""
30
+
31
+ #: widget.php:100
32
+ msgid "video"
33
+ msgstr ""
34
+
35
+ #: widget.php:104
36
+ msgid "Youtube-URL:"
37
+ msgstr ""
38
+
39
+ #: widget.php:105
40
+ msgid "Text:"
41
+ msgstr ""
42
+
43
+ #: player_sizes.inc.php:11
44
+ msgid "Smaller 4:3 player"
45
+ msgstr ""
46
+
47
+ #: player_sizes.inc.php:16
48
+ msgid "Smaller 16:9 player"
49
+ msgstr ""
50
+
51
+ #: player_sizes.inc.php:21
52
+ msgid "Standard value, YouTube default for 4:3-ratio video"
53
  msgstr ""
54
 
55
+ #: player_sizes.inc.php:26
56
+ msgid "YouTube default for 16:9-ratio video"
57
+ msgstr ""
58
+
59
+ #: player_sizes.inc.php:31
60
+ msgid "Larger 4:3 player"
61
+ msgstr ""
62
+
63
+ #: player_sizes.inc.php:36
64
+ msgid "Larger 16:9 player"
65
+ msgstr ""
66
+
67
+ #: player_sizes.inc.php:41
68
+ msgid "Maxi 4:3 player"
69
+ msgstr ""
70
+
71
+ #: player_sizes.inc.php:46
72
+ msgid "Maxi 16:9 player"
73
+ msgstr ""
74
+
75
+ #: wp-youtube-lyte.php:60 wp-youtube-lyte.php:64
76
+ msgid "Watch this playlist on YouTube"
77
+ msgstr ""
78
+
79
+ #: wp-youtube-lyte.php:65
80
+ msgid "Watch this playlist"
81
+ msgstr ""
82
+
83
+ #: wp-youtube-lyte.php:65 wp-youtube-lyte.php:78 wp-youtube-lyte.php:82
84
  msgid "on YouTube"
85
  msgstr ""
86
 
87
+ #: wp-youtube-lyte.php:73
88
+ msgid "Watch this video on YouTube"
89
+ msgstr ""
90
+
91
+ #: wp-youtube-lyte.php:78 wp-youtube-lyte.php:82
92
+ msgid "Watch this video"
93
+ msgstr ""
94
+
95
+ #: wp-youtube-lyte.php:78
96
  msgid "or on"
97
  msgstr ""
98
 
99
+ #: options.php:37
100
+ msgid "WP YouTube Lyte Settings"
101
  msgstr ""
102
 
103
+ #: options.php:39
104
+ msgid ""
105
+ "WP YouTube Lyte inserts \"Lite YouTube Embeds\" in your blog. These look and "
106
+ "feel like normal embedded YouTube, but don't use Flash unless clicked on, "
107
+ "thereby <a href=\"http://blog.futtta.be/2010/08/30/the-state-of-wp-youtube-"
108
+ "lyte/\" target=\"_blank\">reducing download size & rendering time "
109
+ "substantially</a>. When a video is played, WP-YouTube-Lyte can either "
110
+ "activate <a href=\"http://apiblog.youtube.com/2010/07/new-way-to-embed-"
111
+ "youtube-videos.html\" target=\"_blank\">YouTube's embedded html5-player</a> "
112
+ "or the older Flash-version, depending on the settings below."
113
  msgstr ""
114
 
115
+ #: options.php:40
116
+ msgid ""
117
+ "You can place video and audio in your posts and pages by adding one or more "
118
+ "http<strong>v</strong> or http<strong>a</strong> YouTube-links to your post. "
119
+ "These will automatically be replaced by WP YouTube Lyte with the correct "
120
+ "(flash-less) code. To add a video for example, you type a URL like "
121
+ "<em>http<strong>v</strong>://www.youtube.com/watch?v=QQPSMRQnNlU</em> or "
122
+ "<em>http<strong>v</strong>://www.youtube.com/playlist?"
123
+ "list=PLA486E741B25F8E00</em> for a playlist. If you want an audio-only "
124
+ "player, you enter <em>http<strong>a</strong>://www.youtube.com/watch?"
125
+ "v=BIQIGR-kWtc</em>. There's more info on the <a href=\"http://wordpress.org/"
126
+ "extend/plugins/wp-youtube-lyte/faq/\" target=\"_blank\">wordpress.org WP "
127
+ "YouTube Lyte FAQ page</a>."
128
  msgstr ""
129
 
130
+ #: options.php:41
131
+ msgid ""
132
+ "You can modify WP-YouTube-Lyte's behaviour by changing the following "
133
+ "settings:"
134
+ msgstr ""
135
+
136
+ #: options.php:48
137
+ msgid "Player size"
138
+ msgstr ""
139
+
140
+ #: options.php:65
141
+ msgid "Add links below the embedded videos?"
142
  msgstr ""
143
 
144
+ #: options.php:67
145
+ msgid "Show links?"
146
+ msgstr ""
147
+
148
+ #: options.php:68
149
+ msgid " Add YouTube-link."
150
+ msgstr ""
151
+
152
+ #: options.php:69
153
+ msgid ""
154
+ " Add both a YouTube and an <a href=\"http://icant.co.uk/easy-youtube/docs/"
155
+ "index.html\" target=\"_blank\">Easy YouTube</a>-link."
156
+ msgstr ""
157
+
158
+ #: options.php:70
159
+ msgid " Don't add any links."
160
+ msgstr ""
161
+
162
+ #: options.php:75
163
+ msgid "Play video in HD if possible?"
164
+ msgstr ""
165
+
166
+ #: options.php:79
167
+ msgid "Enable HD"
168
+ msgstr ""
169
+
170
+ #: options.php:80
171
+ msgid "No HD, we're smallband!"
172
+ msgstr ""
173
+
174
+ #: options.php:85
175
+ msgid "Bonus feature: "
176
+ msgstr ""
177
+
178
+ #: options.php:89
179
+ msgid "Disable 3rd party tracking."
180
+ msgstr ""
181
+
182
+ #: options.php:90
183
+ msgid "I don't mind 3rd party tracking (default)"
184
+ msgstr ""
185
+
186
+ #: options.php:97
187
+ msgid "Save Changes"
188
+ msgstr ""
189
+
190
+ #: options.php:105
191
+ msgid "futtta about"
192
+ msgstr ""
193
+
194
+ #. #-#-#-#-# plugin.pot (WP YouTube Lyte 0.8.0) #-#-#-#-#
195
  #. Plugin Name of the plugin/theme
196
+ #: options.php:107
197
  msgid "WP YouTube Lyte"
198
  msgstr ""
199
 
200
+ #: options.php:108
201
+ msgid "WordPress"
202
+ msgstr ""
203
+
204
+ #: options.php:109
205
+ msgid "Web Technology"
206
+ msgstr ""
207
+
208
  #. Plugin URI of the plugin/theme
209
  msgid "http://blog.futtta.be/tag/lyte"
210
  msgstr ""
lyte/controls-1280.png ADDED
Binary file
lyte/controls-150.png CHANGED
Binary file
lyte/controls-160.png CHANGED
Binary file
lyte/controls-180.png CHANGED
Binary file
lyte/controls-420.png ADDED
Binary file
lyte/controls-425.png DELETED
Binary file
lyte/controls-480.png CHANGED
Binary file
lyte/controls-560.png CHANGED
Binary file
lyte/controls-640.png CHANGED
Binary file
lyte/controls-853.png CHANGED
Binary file
lyte/controls-960.png ADDED
Binary file
lyte/controls-newtube-150.png DELETED
Binary file
lyte/controls-newtube-160.png DELETED
Binary file
lyte/controls-newtube-180.png DELETED
Binary file
lyte/controls-newtube-425.png DELETED
Binary file
lyte/controls-newtube-480.png DELETED
Binary file
lyte/controls-newtube-560.png DELETED
Binary file
lyte/controls-newtube-640.png DELETED
Binary file
lyte/controls-newtube-853.png DELETED
Binary file
lyte/lyte-min.js CHANGED
@@ -1,16 +1 @@
1
- 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);}
2
- function lyte(){lytes=getElementsByClassName("lyte","div");for(var i=0;i<lytes.length;i++){lyte_id=lytes[i].id;p=doc.getElementById(lyte_id);p.className+=" lP";pW=p.clientWidth;pH=p.clientHeight;if((p.className.indexOf('widget')===-1)&&(p.className.indexOf('audio')===-1)){jsonUrl="http://gdata.youtube.com/feeds/api/videos/"+lyte_id+"?fields=id,title&alt=json-in-script&callback=parseMe";loadScript(jsonUrl)}
3
- 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+'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-"+nT+pW+".png\" width=\"100%\" id=\"ctrl\" alt=\"\" style=\"max-width:"+pW+"px;\"/>";}else{setStyle(pl,'height:'+pH+'px;width:'+pW);pl.innerHTML="<img src=\""+bU+"controls-"+nT+pW+".png\" width=\"100%\" id=\"ctrl\" alt=\"\" style=\"max-width:"+pW+"px;\"/>";}}}
4
- function plaYT(){this.onclick="";if(nT=="newtube-"){this.innerHTML="<iframe class=\"youtube-player\" type=\"text/html\" width=\""+this.clientWidth+"\" height=\""+this.clientHeight+"\" src=\"http://www.youtube.com/embed/"+this.id+"?autoplay=1&rel=0&egm=0&iv_load_policy=3&probably_logged_in=false\" frameborder=\"0\"></iframe>"}else{this.innerHTML="<embed src=\"http://www.youtube-nocookie.com/v/"+this.id+"&autoplay=1&rel=0&egm=0&fs=1&iv_load_policy=3&probably_logged_in=false\" type=\"application/x-shockwave-flash\" allowfullscreen=\"true\" id=\"lyte_"+this.id+"\" wmode=\"transparent\" width=\""+this.clientWidth+"\" height=\""+this.clientHeight+"\" allowscriptaccess=\"always\"></embed>"}}
5
- function parseMe(r){title=r.entry.title.$t;idu=r.entry.id.$t;p=doc.getElementById("lyte_"+idu.substring((idu.length-11)));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=title;}
6
- function setStyle(e,s){if(typeof e.setAttribute==="function")e.setAttribute('style',s);else if(typeof e.style.setAttribute==="object")e.style.setAttribute('cssText',s)}
7
- function loadScript(url){scr=doc.createElement('script');scr.src=url;scr.type='text/javascript';doc.getElementsByTagName('head')[0].appendChild(scr)}
8
- var getElementsByClassName=function(className,tag,elm){if(doc.getElementsByClassName){getElementsByClassName=function(className,tag,elm){elm=elm||doc;var elements=elm.getElementsByClassName(className),nodeName=(tag)?new RegExp("\\b"+tag+"\\b","i"):null,returnElements=[],current;for(var i=0,il=elements.length;i<il;i+=1){current=elements[i];if(!nodeName||nodeName.test(current.nodeName)){returnElements.push(current)}}
9
- return returnElements}}else if(doc.evaluate){getElementsByClassName=function(className,tag,elm){tag=tag||"*";elm=elm||doc;var classes=className.split(" "),classesToCheck="",xhtmlNamespace="http://www.w3.org/1999/xhtml",namespaceResolver=(doc.documentElement.namespaceURI===xhtmlNamespace)?xhtmlNamespace:null,returnElements=[],elements,node;for(var j=0,jl=classes.length;j<jl;j+=1){classesToCheck+="[contains(concat(' ', @class, ' '), ' "+classes[j]+" ')]"}
10
- try{elements=doc.evaluate(".//"+tag+classesToCheck,elm,namespaceResolver,0,null)}catch(e){elements=doc.evaluate(".//"+tag+classesToCheck,elm,null,0,null)}
11
- while((node=elements.iterateNext())){returnElements.push(node)}
12
- return returnElements}}else{getElementsByClassName=function(className,tag,elm){tag=tag||"*";elm=elm||doc;var classes=className.split(" "),classesToCheck=[],elements=(tag==="*"&&elm.all)?elm.all:elm.getElementsByTagName(tag),current,returnElements=[],match;for(var k=0,kl=classes.length;k<kl;k+=1){classesToCheck.push(new RegExp("(^|\\s)"+classes[k]+"(\\s|$)"))}
13
- for(var l=0,ll=elements.length;l<ll;l+=1){current=elements[l];match=false;for(var m=0,ml=classesToCheck.length;m<ml;m+=1){match=classesToCheck[m].test(current.className);if(!match){break}}
14
- if(match){returnElements.push(current)}}
15
- return returnElements}}
16
- return getElementsByClassName(className,tag,elm)};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="";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()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lyte/lyte.js CHANGED
@@ -18,39 +18,71 @@ function lyte() {
18
  p.className += " lP";
19
  pW = p.clientWidth;
20
  pH = p.clientHeight;
21
- if ((p.className.indexOf('widget') === -1) && (p.className.indexOf('audio') === -1)){
22
- jsonUrl = "http://gdata.youtube.com/feeds/api/videos/" + lyte_id + "?fields=id,title&alt=json-in-script&callback=parseMe";
23
- loadScript(jsonUrl)
24
- }
25
  pl = doc.createElement('div');
26
  p.appendChild(pl);
27
  p.onclick = plaYT;
28
  pl.id = "lyte_" + lyte_id;
29
  pl.className = "pL";
30
 
31
- if (p.className.indexOf('audio') === -1){
32
- 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;');
33
- 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-" + nT + pW + ".png\" width=\"100%\" id=\"ctrl\" alt=\"\" style=\"max-width:" + pW + "px;\"/>";
34
- } else {
35
  setStyle(pl, 'height:' + pH + 'px;width:' + pW);
36
- pl.innerHTML = "<img src=\"" + bU + "controls-" + nT + pW + ".png\" width=\"100%\" id=\"ctrl\" alt=\"\" style=\"max-width:" + pW + "px;\"/>";
 
 
 
 
 
 
 
 
 
 
 
 
37
  }
38
  }
39
  }
40
 
41
  function plaYT() {
42
  this.onclick = "";
43
- if (nT=="newtube-") {
44
- this.innerHTML = "<iframe class=\"youtube-player\" type=\"text/html\" width=\"" + this.clientWidth + "\" height=\"" + this.clientHeight + "\" src=\"http://www.youtube.com/embed/" + this.id + "?autoplay=1&amp;rel=0&amp;egm=0&amp;iv_load_policy=3&amp;probably_logged_in=false\" frameborder=\"0\"></iframe>"
 
 
 
 
 
 
 
45
  } else {
46
- this.innerHTML = "<embed src=\"http://www.youtube-nocookie.com/v/" + this.id + "&amp;autoplay=1&amp;rel=0&amp;egm=0&amp;fs=1&amp;iv_load_policy=3&amp;probably_logged_in=false\" type=\"application/x-shockwave-flash\" allowfullscreen=\"true\" id=\"lyte_" + this.id + "\" wmode=\"transparent\" width=\"" + this.clientWidth + "\" height=\"" + this.clientHeight + "\" allowscriptaccess=\"always\"></embed>"
47
  }
 
 
48
  }
49
 
50
- function parseMe(r) {
51
  title = r.entry.title.$t;
52
  idu = r.entry.id.$t;
53
- p = doc.getElementById("lyte_" + idu.substring((idu.length - 11)));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
54
  c = doc.createElement('div');
55
  c.className = "tC";
56
  p.appendChild(c);
18
  p.className += " lP";
19
  pW = p.clientWidth;
20
  pH = p.clientHeight;
 
 
 
 
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) {
 
 
 
28
  setStyle(pl, 'height:' + pH + 'px;width:' + pW);
29
+ pl.innerHTML = "<img src=\"" + bU + "controls-" + pW + ".png\" width=\"100%\" id=\"ctrl\" alt=\"\" style=\"max-width:" + pW + "px;\"/>";
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
  }
43
  }
44
  }
45
 
46
  function plaYT() {
47
  this.onclick = "";
48
+
49
+ if (this.className.indexOf("hidef") === -1) {
50
+ hidef=0;
51
+ } else {
52
+ hidef=1;
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>"
62
  }
63
 
64
+ function parseV(r) {
65
  title = r.entry.title.$t;
66
  idu = r.entry.id.$t;
67
+ id = "lyte_" + idu.substring(idu.length - 11);
68
+ drawTitle(id,title);
69
+ }
70
+
71
+ function parsePL(r) {
72
+ thumb=r.feed.entry[0].media$group.media$thumbnail[1].url
73
+ idu=r.feed.id.$t
74
+ id="lyte_"+idu.substring(idu.length - 16)
75
+ title="Playlist: "+r.feed.title.$t
76
+ pl=d.getElementById(id)
77
+ pH=pl.style.height;
78
+ pW=pl.style.width;
79
+
80
+ setStyle(pl, 'height:' + pH + ';width:' + pW + ';background:url("'+thumb+'") no-repeat scroll center -10px rgb(0, 0, 0); background-size:contain;')
81
+ drawTitle(id,title)
82
+ }
83
+
84
+ function drawTitle(id,title) {
85
+ p = doc.getElementById(id);
86
  c = doc.createElement('div');
87
  c.className = "tC";
88
  p.appendChild(c);
options.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
- $plugin_dir = basename(dirname(__FILE__)).'/languages';
3
- load_plugin_textdomain( 'wp-youtube-lyte', false, $plugin_dir );
4
 
5
  $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__));
6
 
@@ -14,9 +14,9 @@ function lyte_create_menu() {
14
  }
15
 
16
  function register_lyte_settings() {
17
- register_setting( 'lyte-settings-group', 'newTube' );
18
  register_setting( 'lyte-settings-group', 'show_links' );
19
  register_setting( 'lyte-settings-group', 'size' );
 
20
  register_setting( 'lyte-settings-group', 'donottrack' );
21
  }
22
 
@@ -37,20 +37,11 @@ function lyte_settings_page() {
37
  <h2><?php _e("WP YouTube Lyte Settings","wp-youtube-lyte") ?></h2>
38
  <div style="float:left;width:70%;">
39
  <p><?php _e("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.","wp-youtube-lyte") ?></p>
40
- <p><?php _e("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>. 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>.","wp-youtube-lyte") ?></p>
41
  <p><?php _e("You can modify WP-YouTube-Lyte's behaviour by changing the following settings:","wp-youtube-lyte") ?></p>
42
  <form method="post" action="options.php">
43
  <?php settings_fields( 'lyte-settings-group' ); ?>
44
  <table class="form-table">
45
- <tr valign="top">
46
- <th scope="row"><?php _e("Play video using Flash or HTML5-video?","wp-youtube-lyte") ?></th>
47
- <td>
48
- <fieldset><legend class="screen-reader-text"><span>Use Flash or HTML5 video?</span></legend>
49
- <label title="embed HTML5 video"><input type="radio" name="newTube" value="1" <?php if (get_option('newTube')==="1") echo "checked" ?> /> <?php _e("Embed HTML5 video (uses <a href=\"http://apiblog.youtube.com/2010/07/new-way-to-embed-youtube-videos.html\" target=\"_blank\">the new YouTube embed-code</a>)","wp-youtube-lyte") ?></label><br />
50
- <label title="normal YouTube embeds with Flash video"><input type="radio" name="newTube" value="0" <?php if (get_option('newTube')!=="1") echo "checked" ?> /> <?php _e("Old-style YouTube embeds with Flash video.","wp-youtube-lyte") ?></label><br />
51
- </fieldset>
52
- </td>
53
- </tr>
54
  <tr valign="top">
55
  <th scope="row">Player size:</th>
56
  <td>
@@ -80,6 +71,16 @@ function lyte_settings_page() {
80
  </fieldset>
81
  </td>
82
  </tr>
 
 
 
 
 
 
 
 
 
 
83
  <tr valign="top">
84
  <th scope="row"><?php _e("Bonus feature: ","wp-youtube-lyte") ?><a href="http://blog.futtta.be/tag/donottrack" target="_blank">DoNotTrack</a></th>
85
  <td>
1
  <?php
2
+ $plugin_dir = basename(dirname(__FILE__)).'/languages';
3
+ load_plugin_textdomain( 'wp-youtube-lyte', false, $plugin_dir );
4
 
5
  $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__));
6
 
14
  }
15
 
16
  function register_lyte_settings() {
 
17
  register_setting( 'lyte-settings-group', 'show_links' );
18
  register_setting( 'lyte-settings-group', 'size' );
19
+ register_setting( 'lyte-settings-group', 'hidef' );
20
  register_setting( 'lyte-settings-group', 'donottrack' );
21
  }
22
 
37
  <h2><?php _e("WP YouTube Lyte Settings","wp-youtube-lyte") ?></h2>
38
  <div style="float:left;width:70%;">
39
  <p><?php _e("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.","wp-youtube-lyte") ?></p>
40
+ <p><?php _e("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>.","wp-youtube-lyte") ?></p>
41
  <p><?php _e("You can modify WP-YouTube-Lyte's behaviour by changing the following settings:","wp-youtube-lyte") ?></p>
42
  <form method="post" action="options.php">
43
  <?php settings_fields( 'lyte-settings-group' ); ?>
44
  <table class="form-table">
 
 
 
 
 
 
 
 
 
45
  <tr valign="top">
46
  <th scope="row">Player size:</th>
47
  <td>
71
  </fieldset>
72
  </td>
73
  </tr>
74
+ <tr valign="top">
75
+ <th scope="row"><?php _e("Play video in HD if possible?","wp-youtube-lyte") ?></th>
76
+ <td>
77
+ <fieldset>
78
+ <legend class="screen-reader-text"><span>HD or not?</span></legend>
79
+ <label title="Enable HD?"><input type="radio" name="hidef" value="1" <?php if (get_option('hidef')==="1") echo "checked" ?> /><?php _e("Enable HD","wp-youtube-lyte") ?></label><br />
80
+ <label title="Don't enable HD playback"><input type="radio" name="hidef" value="0" <?php if (get_option('hidef')!=="1") echo "checked" ?> /><?php _e("No HD, we're smallband!","wp-youtube-lyte") ?></label>
81
+ </fieldset>
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>
player_sizes.inc.php CHANGED
@@ -6,35 +6,45 @@ load_plugin_textdomain( 'wp-youtube-lyte', false, $plugin_dir );
6
  $pDefault=2;
7
 
8
  $pSize[0]['a']=true;
9
- $pSize[0]['w']=425;
10
- $pSize[0]['h']=344;
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']=340;
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']=385;
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']=385;
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']=505;
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']=505;
36
  $pSize[5]['t']=__("Larger 16:9 player","wp-youtube-lyte");
37
 
 
 
 
 
 
 
 
 
 
 
38
  // widget sizes
39
  $wDefault=2;
40
  $wSize[1]['h']=125;
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;
50
  $wSize[1]['h']=125;
readme.txt CHANGED
@@ -1,17 +1,19 @@
1
  === WP YouTube Lyte ===
2
  Contributors: futtta
3
- Tags: youtube, video, lyte, lite youtube embeds, html5 video, html5, widget, youtube audio, audio
4
  Requires at least: 2.9
5
  Tested up to: 3.2.1
6
- Stable tag: 0.7.3
7
 
8
  "Lite YouTube Embeds" look like normal YouTube embeds but don't use Flash, thus reducing download size & page rendering time.
9
 
10
  == Description ==
11
 
12
- WP YouTube Lyte inserts "Lite YouTube Embeds" in your blog. These look and feel like normal embedded YouTube, but don't use Flash, thereby [reducing download size & rendering time substantially](http://blog.futtta.be/2010/08/30/the-state-of-wp-youtube-lyte/). Just add a YouTube-link with "httpv" (or "httpa" if you only want to [embed YouTube's audio](http://blog.futtta.be/2011/04/19/audio-only-youtube-embedding-with-wp-youtube-lyte-0-7/)) instead of "http" and WP YouTube Lyte will replace that link with the correct (flash-less) code. When a video is played, WP YouTube Lyte can activate [YouTube's embedded html5-player](http://apiblog.youtube.com/2010/07/new-way-to-embed-youtube-videos.html) or the older Flash-version.
13
 
14
- WP-Youtube-lyte can be used together with [Smart Youtube](http://wordpress.org/extend/plugins/smart-youtube/ "Great plugin"). In that case WP-Youtube-lyte will take care of the default embeds (httpv), while Smart Youtube continues to parse other types (httpvh, httpvhd, httpvp, ...).
 
 
15
 
16
  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/).
17
 
@@ -24,15 +26,16 @@ Just install form your Wordpress "Plugins|Add New" screen and all will be well.
24
  3. Place a link to a YouTube clip like this; httpv://www.youtube.com/watch?v=_SQkWbRublY
25
 
26
  == Frequently Asked Questions ==
27
- = What does "experimental html5 video support" mean? =
28
- HTML5 video will not be visible for everyone (see requirements), some visitors will see the fallback Flash video instead.
 
29
 
30
  = What are the requirements to see embedded YouTube HTML5 video? =
31
- * It only works in browsers that support the h264 (Safari, Chrome, IE9) or WebM (currently development versions of Chrome, Opera and Firefox) video codecs
32
- * You have to be enrolled in the [YouTube html5 beta](http://www.youtube.com/html5)
33
 
34
  = Does WP YouTube Lyte protect my visitor's privacy? =
35
- As opposed to some of the [most important](http://blog.futtta.be/2010/12/15/wordpress-com-stats-trojan-horse-for-quantcast-tracking/) [plugins](http://blog.futtta.be/2010/01/22/add-to-any-removed-from-here/) there is no 3rd party tracking code in WP YouTube Lyte.
36
 
37
  = Can I use WP YouTube Lyte for a custom field? =
38
  As tested and confirmed by [rumultik.ru's Dimitri](http://rumultik.ru) (thanks for that man!), this indeed does work. Just pass the httpv url of such a field to lyte_parse like this:
@@ -40,10 +43,10 @@ As tested and confirmed by [rumultik.ru's Dimitri](http://rumultik.ru) (thanks f
40
  and you're good to go!
41
 
42
  = Any bugs/ issues should I know about? =
43
- * The new YouTube HTML5-embed-code is a work in progress, positioning of video isn't always perfect when fallback Flash-version is used.
44
- * If you're using the HTML5-version and you have a WP-YouTube-Lyte widget in your sidebar, you'll notice how the controls at the bottom overlap. This is because YouTube's new embed code doesn't scale down to small sizes too great. The normal (Flash-based) player omits most controls in this case, I would expect the HTML5-version to do this as well in a not to distant future.
45
  * 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)
46
- * the normal version does not work on iPad (and probably iPhone), the HTML5-version does
47
 
48
  = I found a bug/ I would like a feature to be added! =
49
  * 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).
@@ -54,10 +57,18 @@ and you're good to go!
54
  * [Rate my plugin on wordpress.org](http://wordpress.org/extend/plugins/wp-youtube-lyte/), even if you think it stinks ;-)
55
 
56
  == Changelog ==
 
 
 
 
 
 
 
 
57
  = 0.7.3 =
58
- * sdded support for youtu.be links (why didn't I do that earlier, .be-ing Belgian myself?)
59
- * added sl_SI translation (thanks Dizzy Streak @[arnes.si](http://www.arnes.si/)!)
60
- * load donottrack js in https if needed (thanks Chris @[campino2k.de](http://campino2k.de/)
61
  * tested & confirmed to work perfectly with wordpress 3.2.1
62
 
63
  = 0.7.2 =
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
 
10
  == Description ==
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
 
26
  3. Place a link to a YouTube clip like this; httpv://www.youtube.com/watch?v=_SQkWbRublY
27
 
28
  == Frequently Asked Questions ==
29
+
30
+ = What does "html5 video support" mean? =
31
+ When playing, HTML5 video will not be visible for everyone (see requirements). Indeed some visitors will see the fallback Flash video instead.
32
 
33
  = What are the requirements to see embedded YouTube HTML5 video? =
34
+ * It only works in browsers that support the h264 (Safari, Chrome, IE9) or WebM (currently Chrome, Opera and Firefox) video codecs
35
+ * Your visitor has to be enrolled in the [YouTube html5 beta](http://www.youtube.com/html5)
36
 
37
  = Does WP YouTube Lyte protect my visitor's privacy? =
38
+ As opposed to some of the [most important](http://blog.futtta.be/2010/12/15/wordpress-com-stats-trojan-horse-for-quantcast-tracking/) [plugins](http://blog.futtta.be/2010/01/22/add-to-any-removed-from-here/) there is no 3rd party tracking code in WP YouTube Lyte, but YouTube off course does see visitor requests coming in (see also the youtube-nocookie.com remark in Bugs/Issues below).
39
 
40
  = Can I use WP YouTube Lyte for a custom field? =
41
  As tested and confirmed by [rumultik.ru's Dimitri](http://rumultik.ru) (thanks for that man!), this indeed does work. Just pass the httpv url of such a field to lyte_parse like this:
43
  and you're good to go!
44
 
45
  = Any bugs/ issues should I know about? =
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
  * [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
63
+ * dropped support for the legacy YouTube embed-code
64
+ * updated UI elements to match new, dark YouTube player style
65
+ * updated player sizes to match YouTube's
66
+ * added new translations: Spanish (front-end strings, thanks to [Paulino Brener @Social Media Travelers](http://socialmediatravelers.com/)) and German (complete, by ["der Tuxman"](http://tuxproject.de/blog))
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
 
74
  = 0.7.2 =
widget.php CHANGED
@@ -30,15 +30,12 @@ class WYLWidget extends WP_Widget {
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
- if (get_option('newTube')==="1") {
35
- $lyteSettings[1]="newtube-";
36
- }
37
  ?>
 
38
  <?php echo $before_widget; ?>
39
  <?php if ( $WYLtitle ) echo $before_title . $WYLtitle . $after_title; ?>
40
  <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"><!--
41
- var bU='<?php echo $lyteSettings[0];?>';var nT='<?php echo $lyteSettings[1];?>';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)}};
42
  --></script></div>
43
  <div><?php echo $WYLtext ?></div>
44
  <?php echo $after_widget; ?>
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; ?>
wp-youtube-lyte.php CHANGED
@@ -4,8 +4,10 @@ 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.7.3
8
  Author URI: http://blog.futtta.be/
 
 
9
  */
10
 
11
  $plugin_dir = basename(dirname(__FILE__)).'/languages';
@@ -19,10 +21,6 @@ require_once(dirname(__FILE__).'/widget.php');
19
 
20
  $lyteSettings[0]=$wp_lyte_plugin_url.'lyte/';
21
 
22
- if (get_option('newTube')==="1") {
23
- $lyteSettings[1]="newtube-";
24
- }
25
-
26
  $oSize = (int) get_option('size');
27
  if ((is_bool($oSize)) || ($pSize[$oSize]['a']===false)) { $sel = (int) $pDefault; } else { $sel= $oSize; }
28
 
@@ -36,8 +34,14 @@ function lyte_parse($the_content) {
36
  $char_codes = array('&#215;','&#8211;');
37
  $replacements = array("x", "--");
38
  $the_content=str_replace($char_codes, $replacements, $the_content);
39
-
40
- preg_match_all("/http(a|v):\/\/([a-zA-Z0-9\-\_]+\.|)(youtube|youtu)(\.com|\.be)\/(watch(\?v\=|\/v\/)|)([a-zA-Z0-9\-\_]{11})([^<\s]*)/", $the_content, $matches, PREG_SET_ORDER);
 
 
 
 
 
 
41
 
42
  foreach($matches as $match) {
43
  if ($match[1]!=="a") {
@@ -45,29 +49,43 @@ function lyte_parse($the_content) {
45
  $audioClass="";
46
  } else {
47
  $audioClass=" audio";
48
- if ($lyteSettings[1]=="newtube-"){
49
- $divHeight=33;
50
- } else {
51
- $divHeight=25;
52
- }
53
  }
54
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
55
  switch ($lyteSettings[4]) {
56
  case "0":
57
  $noscript_post="<br />".__("Watch this video on YouTube","wp-youtube-lyte");
58
  $lytelinks_txt="";
59
  break;
60
- case "2":
61
- $noscript_post="";
62
- $lytelinks_txt="<div class=\"lL\">".__("Watch this video","wp-youtube-lyte")." <a href=\"http://youtu.be/".$match[7]."\">".__("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=".$match[7]."\">Easy Youtube</a>.</div>";
63
  break;
64
  default:
65
- $noscript_post="";
66
- $lytelinks_txt="<div class=\"lL\">".__("Watch this video","wp-youtube-lyte")." <a href=\"http://youtu.be/".$match[7]."\">".__("on YouTube","wp-youtube-lyte")."</a>.</div>";
67
  }
 
 
68
 
69
- $lytetemplate = "<div class=\"lyte".$audioClass."\" id=\"".$match[7]."\" style=\"width:".$lyteSettings[2]."px;height:".$divHeight."px;\"><noscript><a href=\"http://youtu.be/".$match[7]."\"><img src=\"http://img.youtube.com/vi/".$match[7]."/0.jpg\" alt=\"\" width=\"".$lyteSettings[2]."\" height=\"".$divHeight."\" />".$noscript_post."</a></noscript><script type=\"text/javascript\"><!-- \n var nT='".$lyteSettings[1]."';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;
70
- $the_content = preg_replace("/(<p>)?http(v|a):\/\/([a-zA-Z0-9\-\_]+\.|)(youtube|youtu)(\.com|\.be)\/(watch(\?v\=|\/v\/)|)([a-zA-Z0-9\-\_]{11})([^\s<]*)(<\/p>)?/", $lytetemplate, $the_content, 1);
71
  }
72
  }
73
  return $the_content;
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';
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
 
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") {
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;