Version Description
- Added option to use the playlist instead of channel (suggested by Stacy)
Download this release
Release Info
Developer | urkekg |
Plugin | YouTube Channel |
Version | 1.1 |
Comparing to | |
See all releases |
Code changes from version 1.0 to 1.1
- languages/youtube-channel-es_ES.mo +0 -0
- languages/youtube-channel-es_ES.po +42 -37
- languages/youtube-channel-sr_RS.mo +0 -0
- languages/youtube-channel-sr_RS.po +37 -29
- languages/youtube-channel-xx_XX.pot +36 -28
- readme.txt +12 -9
- youtube-channel.php +33 -11
languages/youtube-channel-es_ES.mo
CHANGED
Binary file
|
languages/youtube-channel-es_ES.po
CHANGED
@@ -2,123 +2,126 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: \n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2011-09-
|
6 |
"PO-Revision-Date: \n"
|
7 |
-
"Last-Translator:
|
8 |
"Language-Team: \n"
|
9 |
"Language: \n"
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
"Content-Transfer-Encoding: 8bit\n"
|
13 |
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
14 |
-
"X-Poedit-Language: \n"
|
15 |
-
"X-Poedit-Country: \n"
|
16 |
"X-Poedit-SourceCharset: utf-8\n"
|
17 |
-
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
|
18 |
-
"_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
|
19 |
-
"X-Poedit-Basepath: \n"
|
20 |
-
"X-Poedit-Bookmarks: \n"
|
21 |
-
"X-Poedit-SearchPath-0: .\n"
|
22 |
"X-Textdomain-Support: yes\n"
|
|
|
23 |
|
24 |
# @ youtube-channel
|
25 |
-
#: ../youtube-channel.php:
|
26 |
msgid "Aspect ratio (relative to width):"
|
27 |
msgstr "Aspecto de ratio (relativo al ancho):"
|
28 |
|
29 |
# @ youtube-channel
|
30 |
-
#: ../youtube-channel.php:
|
31 |
msgid "Autoplay video"
|
32 |
msgstr "Reproducción automática"
|
33 |
|
34 |
# @ youtube-channel
|
35 |
-
#: ../youtube-channel.php:
|
36 |
msgid "Channel:"
|
37 |
msgstr "Canal:"
|
38 |
|
39 |
# @ youtube-channel
|
40 |
-
#: ../youtube-channel.php:
|
41 |
msgid "Fix height taken by controls"
|
42 |
msgstr "Fijar la altura tomada por los controles"
|
43 |
|
44 |
# @ youtube-channel
|
45 |
-
#: ../youtube-channel.php:
|
46 |
msgid "Get random video from channel"
|
47 |
msgstr "Mostrar vídeo aleatorio del canal"
|
48 |
|
49 |
# @ youtube-channel
|
50 |
-
#: ../youtube-channel.php:
|
51 |
msgid "Height"
|
52 |
msgstr "Alto"
|
53 |
|
54 |
# @ youtube-channel
|
55 |
-
#: ../youtube-channel.php:
|
56 |
msgid "Hide player controls"
|
57 |
msgstr "Esconder controles de reproducción"
|
58 |
|
59 |
# @ youtube-channel
|
60 |
-
#: ../youtube-channel.php:
|
61 |
msgid "Hide video info"
|
62 |
msgstr "Esconder info de vídeo"
|
63 |
|
64 |
-
#: ../youtube-channel.php:
|
65 |
msgid "Maximum items to fetch:"
|
66 |
-
msgstr ""
|
67 |
|
68 |
# @ youtube-channel
|
69 |
-
#: ../youtube-channel.php:
|
70 |
msgid "No items"
|
71 |
msgstr "No hay elementos"
|
72 |
|
73 |
# @ youtube-channel
|
74 |
-
#: ../youtube-channel.php:
|
75 |
msgid "Open channel in new window/tab"
|
76 |
msgstr "Abrir canal en nueva ventana"
|
77 |
|
|
|
|
|
|
|
|
|
78 |
# @ youtube-channel
|
79 |
-
#: ../youtube-channel.php:
|
80 |
msgid "Show link to channel"
|
81 |
msgstr "Mostrar enlace a canal"
|
82 |
|
83 |
# @ youtube-channel
|
84 |
-
#: ../youtube-channel.php:
|
85 |
msgid "Show video title"
|
86 |
msgstr "Mostrar título"
|
87 |
|
88 |
# @ youtube-channel
|
89 |
-
#: ../youtube-channel.php:
|
90 |
msgid "Use target=\"_blank\" (invalid XHTML)"
|
91 |
msgstr "Utilice objetivo = \"blank\" (XHTML no válido)"
|
92 |
|
|
|
|
|
|
|
|
|
93 |
# @ youtube-channel
|
94 |
-
#: ../youtube-channel.php:
|
95 |
msgid "Visit YouTube Channel text:"
|
96 |
msgstr "Visitar canal de YouTube"
|
97 |
|
98 |
# @ youtube-channel
|
99 |
-
#: ../youtube-channel.php:
|
100 |
#, php-format
|
101 |
msgid "Visit channel %1$s"
|
102 |
msgstr "Visitar canal %1$s"
|
103 |
|
104 |
# @ youtube-channel
|
105 |
-
#: ../youtube-channel.php:
|
106 |
#, php-format
|
107 |
msgid "Watch video %1$s published on %2$s"
|
108 |
msgstr "Ver vídeo %1$s publicado en %2$s"
|
109 |
|
110 |
# @ youtube-channel
|
111 |
-
#: ../youtube-channel.php:
|
112 |
msgid "What to show?"
|
113 |
msgstr "¿Qué mostrar?"
|
114 |
|
115 |
# @ youtube-channel
|
116 |
-
#: ../youtube-channel.php:
|
117 |
msgid "Widget Title:"
|
118 |
msgstr "Título de widget"
|
119 |
|
120 |
# @ youtube-channel
|
121 |
-
#: ../youtube-channel.php:
|
122 |
msgid "Width"
|
123 |
msgstr "Ancho"
|
124 |
|
@@ -128,36 +131,38 @@ msgid "YouTube Channel"
|
|
128 |
msgstr "Canal de YouTube"
|
129 |
|
130 |
# @ youtube-channel
|
131 |
-
#: ../youtube-channel.php:
|
132 |
msgid "chromeless video"
|
133 |
msgstr "vídeo sin marco"
|
134 |
|
135 |
# @ youtube-channel
|
136 |
-
#: ../youtube-channel.php:
|
137 |
msgid "custom"
|
138 |
msgstr "Personalizado"
|
139 |
|
140 |
# @ youtube-channel
|
141 |
-
#: ../youtube-channel.php:
|
|
|
142 |
msgid "default"
|
143 |
msgstr "por defecto"
|
144 |
|
145 |
# @ youtube-channel
|
146 |
-
#: ../youtube-channel.php:
|
147 |
msgid "iframe (HTML5 player)"
|
148 |
msgstr "iframe (html5) - el bueno"
|
149 |
|
150 |
# @ youtube-channel
|
151 |
-
#: ../youtube-channel.php:
|
152 |
msgid "in new window/tab"
|
153 |
msgstr "en nueva ventana/pestaña"
|
154 |
|
155 |
# @ youtube-channel
|
156 |
-
#: ../youtube-channel.php:
|
157 |
msgid "object (flash player)"
|
158 |
msgstr "objeto (flash)"
|
159 |
|
160 |
# @ youtube-channel
|
161 |
-
#: ../youtube-channel.php:
|
162 |
msgid "thumbnail"
|
163 |
msgstr "miniatura"
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: \n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2011-09-24 10:16+0200\n"
|
6 |
"PO-Revision-Date: \n"
|
7 |
+
"Last-Translator: Aleksandar Urošević <urke@users.sourceforge.net>\n"
|
8 |
"Language-Team: \n"
|
9 |
"Language: \n"
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
"Content-Transfer-Encoding: 8bit\n"
|
13 |
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
|
|
|
|
14 |
"X-Poedit-SourceCharset: utf-8\n"
|
15 |
+
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
|
|
|
|
|
|
|
|
|
16 |
"X-Textdomain-Support: yes\n"
|
17 |
+
"X-Poedit-SearchPath-0: .\n"
|
18 |
|
19 |
# @ youtube-channel
|
20 |
+
#: ../youtube-channel.php:56
|
21 |
msgid "Aspect ratio (relative to width):"
|
22 |
msgstr "Aspecto de ratio (relativo al ancho):"
|
23 |
|
24 |
# @ youtube-channel
|
25 |
+
#: ../youtube-channel.php:72
|
26 |
msgid "Autoplay video"
|
27 |
msgstr "Reproducción automática"
|
28 |
|
29 |
# @ youtube-channel
|
30 |
+
#: ../youtube-channel.php:49
|
31 |
msgid "Channel:"
|
32 |
msgstr "Canal:"
|
33 |
|
34 |
# @ youtube-channel
|
35 |
+
#: ../youtube-channel.php:71
|
36 |
msgid "Fix height taken by controls"
|
37 |
msgstr "Fijar la altura tomada por los controles"
|
38 |
|
39 |
# @ youtube-channel
|
40 |
+
#: ../youtube-channel.php:53
|
41 |
msgid "Get random video from channel"
|
42 |
msgstr "Mostrar vídeo aleatorio del canal"
|
43 |
|
44 |
# @ youtube-channel
|
45 |
+
#: ../youtube-channel.php:55
|
46 |
msgid "Height"
|
47 |
msgstr "Alto"
|
48 |
|
49 |
# @ youtube-channel
|
50 |
+
#: ../youtube-channel.php:73
|
51 |
msgid "Hide player controls"
|
52 |
msgstr "Esconder controles de reproducción"
|
53 |
|
54 |
# @ youtube-channel
|
55 |
+
#: ../youtube-channel.php:74
|
56 |
msgid "Hide video info"
|
57 |
msgstr "Esconder info de vídeo"
|
58 |
|
59 |
+
#: ../youtube-channel.php:52
|
60 |
msgid "Maximum items to fetch:"
|
61 |
+
msgstr "Máximo de elementos en busca de:"
|
62 |
|
63 |
# @ youtube-channel
|
64 |
+
#: ../youtube-channel.php:185
|
65 |
msgid "No items"
|
66 |
msgstr "No hay elementos"
|
67 |
|
68 |
# @ youtube-channel
|
69 |
+
#: ../youtube-channel.php:79
|
70 |
msgid "Open channel in new window/tab"
|
71 |
msgstr "Abrir canal en nueva ventana"
|
72 |
|
73 |
+
#: ../youtube-channel.php:50
|
74 |
+
msgid "Playlist:"
|
75 |
+
msgstr "Lista de reproducción:"
|
76 |
+
|
77 |
# @ youtube-channel
|
78 |
+
#: ../youtube-channel.php:78
|
79 |
msgid "Show link to channel"
|
80 |
msgstr "Mostrar enlace a canal"
|
81 |
|
82 |
# @ youtube-channel
|
83 |
+
#: ../youtube-channel.php:75
|
84 |
msgid "Show video title"
|
85 |
msgstr "Mostrar título"
|
86 |
|
87 |
# @ youtube-channel
|
88 |
+
#: ../youtube-channel.php:80
|
89 |
msgid "Use target=\"_blank\" (invalid XHTML)"
|
90 |
msgstr "Utilice objetivo = \"blank\" (XHTML no válido)"
|
91 |
|
92 |
+
#: ../youtube-channel.php:51
|
93 |
+
msgid "Use the playlist instead of channel"
|
94 |
+
msgstr "Use la lista de reproducción en lugar de canal"
|
95 |
+
|
96 |
# @ youtube-channel
|
97 |
+
#: ../youtube-channel.php:77
|
98 |
msgid "Visit YouTube Channel text:"
|
99 |
msgstr "Visitar canal de YouTube"
|
100 |
|
101 |
# @ youtube-channel
|
102 |
+
#: ../youtube-channel.php:253
|
103 |
#, php-format
|
104 |
msgid "Visit channel %1$s"
|
105 |
msgstr "Visitar canal %1$s"
|
106 |
|
107 |
# @ youtube-channel
|
108 |
+
#: ../youtube-channel.php:217
|
109 |
#, php-format
|
110 |
msgid "Watch video %1$s published on %2$s"
|
111 |
msgstr "Ver vídeo %1$s publicado en %2$s"
|
112 |
|
113 |
# @ youtube-channel
|
114 |
+
#: ../youtube-channel.php:64
|
115 |
msgid "What to show?"
|
116 |
msgstr "¿Qué mostrar?"
|
117 |
|
118 |
# @ youtube-channel
|
119 |
+
#: ../youtube-channel.php:48
|
120 |
msgid "Widget Title:"
|
121 |
msgstr "Título de widget"
|
122 |
|
123 |
# @ youtube-channel
|
124 |
+
#: ../youtube-channel.php:54
|
125 |
msgid "Width"
|
126 |
msgstr "Ancho"
|
127 |
|
131 |
msgstr "Canal de YouTube"
|
132 |
|
133 |
# @ youtube-channel
|
134 |
+
#: ../youtube-channel.php:69
|
135 |
msgid "chromeless video"
|
136 |
msgstr "vídeo sin marco"
|
137 |
|
138 |
# @ youtube-channel
|
139 |
+
#: ../youtube-channel.php:58
|
140 |
msgid "custom"
|
141 |
msgstr "Personalizado"
|
142 |
|
143 |
# @ youtube-channel
|
144 |
+
#: ../youtube-channel.php:54
|
145 |
+
#: ../youtube-channel.php:55
|
146 |
msgid "default"
|
147 |
msgstr "por defecto"
|
148 |
|
149 |
# @ youtube-channel
|
150 |
+
#: ../youtube-channel.php:68
|
151 |
msgid "iframe (HTML5 player)"
|
152 |
msgstr "iframe (html5) - el bueno"
|
153 |
|
154 |
# @ youtube-channel
|
155 |
+
#: ../youtube-channel.php:256
|
156 |
msgid "in new window/tab"
|
157 |
msgstr "en nueva ventana/pestaña"
|
158 |
|
159 |
# @ youtube-channel
|
160 |
+
#: ../youtube-channel.php:67
|
161 |
msgid "object (flash player)"
|
162 |
msgstr "objeto (flash)"
|
163 |
|
164 |
# @ youtube-channel
|
165 |
+
#: ../youtube-channel.php:66
|
166 |
msgid "thumbnail"
|
167 |
msgstr "miniatura"
|
168 |
+
|
languages/youtube-channel-sr_RS.mo
CHANGED
Binary file
|
languages/youtube-channel-sr_RS.po
CHANGED
@@ -2,7 +2,7 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: \n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2011-09-
|
6 |
"PO-Revision-Date: \n"
|
7 |
"Last-Translator: Aleksandar Urošević <urke@users.sourceforge.net>\n"
|
8 |
"Language-Team: \n"
|
@@ -17,103 +17,111 @@ msgstr ""
|
|
17 |
"X-Poedit-SearchPath-0: .\n"
|
18 |
|
19 |
# @ youtube-channel
|
20 |
-
#: ../youtube-channel.php:
|
21 |
msgid "Aspect ratio (relative to width):"
|
22 |
msgstr "Однос страница (база је ширина):"
|
23 |
|
24 |
# @ youtube-channel
|
25 |
-
#: ../youtube-channel.php:
|
26 |
msgid "Autoplay video"
|
27 |
msgstr "Аутоматска репродукција"
|
28 |
|
29 |
# @ youtube-channel
|
30 |
-
#: ../youtube-channel.php:
|
31 |
msgid "Channel:"
|
32 |
msgstr "Канал:"
|
33 |
|
34 |
# @ youtube-channel
|
35 |
-
#: ../youtube-channel.php:
|
36 |
msgid "Fix height taken by controls"
|
37 |
msgstr "Поправи висину контрола"
|
38 |
|
39 |
# @ youtube-channel
|
40 |
-
#: ../youtube-channel.php:
|
41 |
msgid "Get random video from channel"
|
42 |
msgstr "Насумични видео са канала"
|
43 |
|
44 |
# @ youtube-channel
|
45 |
-
#: ../youtube-channel.php:
|
46 |
msgid "Height"
|
47 |
msgstr "Висина"
|
48 |
|
49 |
# @ youtube-channel
|
50 |
-
#: ../youtube-channel.php:
|
51 |
msgid "Hide player controls"
|
52 |
msgstr "Сакривање контрола"
|
53 |
|
54 |
# @ youtube-channel
|
55 |
-
#: ../youtube-channel.php:
|
56 |
msgid "Hide video info"
|
57 |
msgstr "Сакривање информација о видеу"
|
58 |
|
59 |
-
#: ../youtube-channel.php:
|
60 |
msgid "Maximum items to fetch:"
|
61 |
msgstr "Максималан број видеа:"
|
62 |
|
63 |
# @ youtube-channel
|
64 |
-
#: ../youtube-channel.php:
|
65 |
msgid "No items"
|
66 |
msgstr "Нема видео снимака"
|
67 |
|
68 |
# @ youtube-channel
|
69 |
-
#: ../youtube-channel.php:
|
70 |
msgid "Open channel in new window/tab"
|
71 |
msgstr "Отвори канал у новом прозору"
|
72 |
|
|
|
|
|
|
|
|
|
73 |
# @ youtube-channel
|
74 |
-
#: ../youtube-channel.php:
|
75 |
msgid "Show link to channel"
|
76 |
msgstr "Прикажи везу до канала"
|
77 |
|
78 |
# @ youtube-channel
|
79 |
-
#: ../youtube-channel.php:
|
80 |
msgid "Show video title"
|
81 |
msgstr "Прикажи наслов видеа"
|
82 |
|
83 |
# @ youtube-channel
|
84 |
-
#: ../youtube-channel.php:
|
85 |
msgid "Use target=\"_blank\" (invalid XHTML)"
|
86 |
msgstr "Користи target=\"_blank\"<br />(даје невалидан XHTML)"
|
87 |
|
|
|
|
|
|
|
|
|
88 |
# @ youtube-channel
|
89 |
-
#: ../youtube-channel.php:
|
90 |
msgid "Visit YouTube Channel text:"
|
91 |
msgstr "Текст за везу „посети Јутјуб канал“:"
|
92 |
|
93 |
# @ youtube-channel
|
94 |
-
#: ../youtube-channel.php:
|
95 |
#, php-format
|
96 |
msgid "Visit channel %1$s"
|
97 |
msgstr "Посети канал %1$s"
|
98 |
|
99 |
# @ youtube-channel
|
100 |
-
#: ../youtube-channel.php:
|
101 |
#, php-format
|
102 |
msgid "Watch video %1$s published on %2$s"
|
103 |
msgstr "Погледај видео %1$s објављен дана %2$s"
|
104 |
|
105 |
# @ youtube-channel
|
106 |
-
#: ../youtube-channel.php:
|
107 |
msgid "What to show?"
|
108 |
msgstr "Шта да прикажем?"
|
109 |
|
110 |
# @ youtube-channel
|
111 |
-
#: ../youtube-channel.php:
|
112 |
msgid "Widget Title:"
|
113 |
msgstr "Наслов виџета:"
|
114 |
|
115 |
# @ youtube-channel
|
116 |
-
#: ../youtube-channel.php:
|
117 |
msgid "Width"
|
118 |
msgstr "Ширина"
|
119 |
|
@@ -123,38 +131,38 @@ msgid "YouTube Channel"
|
|
123 |
msgstr "YouTube Channel"
|
124 |
|
125 |
# @ youtube-channel
|
126 |
-
#: ../youtube-channel.php:
|
127 |
msgid "chromeless video"
|
128 |
msgstr "„chromeless“ видео"
|
129 |
|
130 |
# @ youtube-channel
|
131 |
-
#: ../youtube-channel.php:
|
132 |
msgid "custom"
|
133 |
msgstr "прилагођено"
|
134 |
|
135 |
# @ youtube-channel
|
136 |
-
#: ../youtube-channel.php:
|
137 |
-
#: ../youtube-channel.php:
|
138 |
msgid "default"
|
139 |
msgstr "подразумевано"
|
140 |
|
141 |
# @ youtube-channel
|
142 |
-
#: ../youtube-channel.php:
|
143 |
msgid "iframe (HTML5 player)"
|
144 |
msgstr "уграђени фрејм (HTML5 плејер)"
|
145 |
|
146 |
# @ youtube-channel
|
147 |
-
#: ../youtube-channel.php:
|
148 |
msgid "in new window/tab"
|
149 |
msgstr "у новом прозору/језичку"
|
150 |
|
151 |
# @ youtube-channel
|
152 |
-
#: ../youtube-channel.php:
|
153 |
msgid "object (flash player)"
|
154 |
msgstr "објекат (флеш плејер)"
|
155 |
|
156 |
# @ youtube-channel
|
157 |
-
#: ../youtube-channel.php:
|
158 |
msgid "thumbnail"
|
159 |
msgstr "умањену слику"
|
160 |
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: \n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2011-09-24 10:16+0200\n"
|
6 |
"PO-Revision-Date: \n"
|
7 |
"Last-Translator: Aleksandar Urošević <urke@users.sourceforge.net>\n"
|
8 |
"Language-Team: \n"
|
17 |
"X-Poedit-SearchPath-0: .\n"
|
18 |
|
19 |
# @ youtube-channel
|
20 |
+
#: ../youtube-channel.php:56
|
21 |
msgid "Aspect ratio (relative to width):"
|
22 |
msgstr "Однос страница (база је ширина):"
|
23 |
|
24 |
# @ youtube-channel
|
25 |
+
#: ../youtube-channel.php:72
|
26 |
msgid "Autoplay video"
|
27 |
msgstr "Аутоматска репродукција"
|
28 |
|
29 |
# @ youtube-channel
|
30 |
+
#: ../youtube-channel.php:49
|
31 |
msgid "Channel:"
|
32 |
msgstr "Канал:"
|
33 |
|
34 |
# @ youtube-channel
|
35 |
+
#: ../youtube-channel.php:71
|
36 |
msgid "Fix height taken by controls"
|
37 |
msgstr "Поправи висину контрола"
|
38 |
|
39 |
# @ youtube-channel
|
40 |
+
#: ../youtube-channel.php:53
|
41 |
msgid "Get random video from channel"
|
42 |
msgstr "Насумични видео са канала"
|
43 |
|
44 |
# @ youtube-channel
|
45 |
+
#: ../youtube-channel.php:55
|
46 |
msgid "Height"
|
47 |
msgstr "Висина"
|
48 |
|
49 |
# @ youtube-channel
|
50 |
+
#: ../youtube-channel.php:73
|
51 |
msgid "Hide player controls"
|
52 |
msgstr "Сакривање контрола"
|
53 |
|
54 |
# @ youtube-channel
|
55 |
+
#: ../youtube-channel.php:74
|
56 |
msgid "Hide video info"
|
57 |
msgstr "Сакривање информација о видеу"
|
58 |
|
59 |
+
#: ../youtube-channel.php:52
|
60 |
msgid "Maximum items to fetch:"
|
61 |
msgstr "Максималан број видеа:"
|
62 |
|
63 |
# @ youtube-channel
|
64 |
+
#: ../youtube-channel.php:185
|
65 |
msgid "No items"
|
66 |
msgstr "Нема видео снимака"
|
67 |
|
68 |
# @ youtube-channel
|
69 |
+
#: ../youtube-channel.php:79
|
70 |
msgid "Open channel in new window/tab"
|
71 |
msgstr "Отвори канал у новом прозору"
|
72 |
|
73 |
+
#: ../youtube-channel.php:50
|
74 |
+
msgid "Playlist:"
|
75 |
+
msgstr "Плејлиста:"
|
76 |
+
|
77 |
# @ youtube-channel
|
78 |
+
#: ../youtube-channel.php:78
|
79 |
msgid "Show link to channel"
|
80 |
msgstr "Прикажи везу до канала"
|
81 |
|
82 |
# @ youtube-channel
|
83 |
+
#: ../youtube-channel.php:75
|
84 |
msgid "Show video title"
|
85 |
msgstr "Прикажи наслов видеа"
|
86 |
|
87 |
# @ youtube-channel
|
88 |
+
#: ../youtube-channel.php:80
|
89 |
msgid "Use target=\"_blank\" (invalid XHTML)"
|
90 |
msgstr "Користи target=\"_blank\"<br />(даје невалидан XHTML)"
|
91 |
|
92 |
+
#: ../youtube-channel.php:51
|
93 |
+
msgid "Use the playlist instead of channel"
|
94 |
+
msgstr "Користи плејлисту уместо канала"
|
95 |
+
|
96 |
# @ youtube-channel
|
97 |
+
#: ../youtube-channel.php:77
|
98 |
msgid "Visit YouTube Channel text:"
|
99 |
msgstr "Текст за везу „посети Јутјуб канал“:"
|
100 |
|
101 |
# @ youtube-channel
|
102 |
+
#: ../youtube-channel.php:253
|
103 |
#, php-format
|
104 |
msgid "Visit channel %1$s"
|
105 |
msgstr "Посети канал %1$s"
|
106 |
|
107 |
# @ youtube-channel
|
108 |
+
#: ../youtube-channel.php:217
|
109 |
#, php-format
|
110 |
msgid "Watch video %1$s published on %2$s"
|
111 |
msgstr "Погледај видео %1$s објављен дана %2$s"
|
112 |
|
113 |
# @ youtube-channel
|
114 |
+
#: ../youtube-channel.php:64
|
115 |
msgid "What to show?"
|
116 |
msgstr "Шта да прикажем?"
|
117 |
|
118 |
# @ youtube-channel
|
119 |
+
#: ../youtube-channel.php:48
|
120 |
msgid "Widget Title:"
|
121 |
msgstr "Наслов виџета:"
|
122 |
|
123 |
# @ youtube-channel
|
124 |
+
#: ../youtube-channel.php:54
|
125 |
msgid "Width"
|
126 |
msgstr "Ширина"
|
127 |
|
131 |
msgstr "YouTube Channel"
|
132 |
|
133 |
# @ youtube-channel
|
134 |
+
#: ../youtube-channel.php:69
|
135 |
msgid "chromeless video"
|
136 |
msgstr "„chromeless“ видео"
|
137 |
|
138 |
# @ youtube-channel
|
139 |
+
#: ../youtube-channel.php:58
|
140 |
msgid "custom"
|
141 |
msgstr "прилагођено"
|
142 |
|
143 |
# @ youtube-channel
|
144 |
+
#: ../youtube-channel.php:54
|
145 |
+
#: ../youtube-channel.php:55
|
146 |
msgid "default"
|
147 |
msgstr "подразумевано"
|
148 |
|
149 |
# @ youtube-channel
|
150 |
+
#: ../youtube-channel.php:68
|
151 |
msgid "iframe (HTML5 player)"
|
152 |
msgstr "уграђени фрејм (HTML5 плејер)"
|
153 |
|
154 |
# @ youtube-channel
|
155 |
+
#: ../youtube-channel.php:256
|
156 |
msgid "in new window/tab"
|
157 |
msgstr "у новом прозору/језичку"
|
158 |
|
159 |
# @ youtube-channel
|
160 |
+
#: ../youtube-channel.php:67
|
161 |
msgid "object (flash player)"
|
162 |
msgstr "објекат (флеш плејер)"
|
163 |
|
164 |
# @ youtube-channel
|
165 |
+
#: ../youtube-channel.php:66
|
166 |
msgid "thumbnail"
|
167 |
msgstr "умањену слику"
|
168 |
|
languages/youtube-channel-xx_XX.pot
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
msgid ""
|
8 |
msgstr "Project-Id-Version: PACKAGE VERSION\n"
|
9 |
"Report-Msgid-Bugs-To: \n"
|
10 |
-
"POT-Creation-Date: 2011-09-
|
11 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
13 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
@@ -16,85 +16,93 @@ msgstr "Project-Id-Version: PACKAGE VERSION\n"
|
|
16 |
"Content-Type: text/plain; charset=CHARSET\n"
|
17 |
"Content-Transfer-Encoding: 8bit\n"
|
18 |
|
19 |
-
#: ../youtube-channel.php:
|
20 |
msgid "Aspect ratio (relative to width):"
|
21 |
msgstr ""
|
22 |
|
23 |
-
#: ../youtube-channel.php:
|
24 |
msgid "Autoplay video"
|
25 |
msgstr ""
|
26 |
|
27 |
-
#: ../youtube-channel.php:
|
28 |
msgid "Channel:"
|
29 |
msgstr ""
|
30 |
|
31 |
-
#: ../youtube-channel.php:
|
32 |
msgid "Fix height taken by controls"
|
33 |
msgstr ""
|
34 |
|
35 |
-
#: ../youtube-channel.php:
|
36 |
msgid "Get random video from channel"
|
37 |
msgstr ""
|
38 |
|
39 |
-
#: ../youtube-channel.php:
|
40 |
msgid "Height"
|
41 |
msgstr ""
|
42 |
|
43 |
-
#: ../youtube-channel.php:
|
44 |
msgid "Hide player controls"
|
45 |
msgstr ""
|
46 |
|
47 |
-
#: ../youtube-channel.php:
|
48 |
msgid "Hide video info"
|
49 |
msgstr ""
|
50 |
|
51 |
-
#: ../youtube-channel.php:
|
52 |
msgid "Maximum items to fetch:"
|
53 |
msgstr ""
|
54 |
|
55 |
-
#: ../youtube-channel.php:
|
56 |
msgid "No items"
|
57 |
msgstr ""
|
58 |
|
59 |
-
#: ../youtube-channel.php:
|
60 |
msgid "Open channel in new window/tab"
|
61 |
msgstr ""
|
62 |
|
63 |
-
#: ../youtube-channel.php:
|
|
|
|
|
|
|
|
|
64 |
msgid "Show link to channel"
|
65 |
msgstr ""
|
66 |
|
67 |
-
#: ../youtube-channel.php:
|
68 |
msgid "Show video title"
|
69 |
msgstr ""
|
70 |
|
71 |
-
#: ../youtube-channel.php:
|
72 |
msgid "Use target=\"_blank\" (invalid XHTML)"
|
73 |
msgstr ""
|
74 |
|
75 |
-
#: ../youtube-channel.php:
|
|
|
|
|
|
|
|
|
76 |
msgid "Visit YouTube Channel text:"
|
77 |
msgstr ""
|
78 |
|
79 |
-
#: ../youtube-channel.php:
|
80 |
#, php-format
|
81 |
msgid "Visit channel %1$s"
|
82 |
msgstr ""
|
83 |
|
84 |
-
#: ../youtube-channel.php:
|
85 |
#, php-format
|
86 |
msgid "Watch video %1$s published on %2$s"
|
87 |
msgstr ""
|
88 |
|
89 |
-
#: ../youtube-channel.php:
|
90 |
msgid "What to show?"
|
91 |
msgstr ""
|
92 |
|
93 |
-
#: ../youtube-channel.php:
|
94 |
msgid "Widget Title:"
|
95 |
msgstr ""
|
96 |
|
97 |
-
#: ../youtube-channel.php:
|
98 |
msgid "Width"
|
99 |
msgstr ""
|
100 |
|
@@ -102,30 +110,30 @@ msgstr ""
|
|
102 |
msgid "YouTube Channel"
|
103 |
msgstr ""
|
104 |
|
105 |
-
#: ../youtube-channel.php:
|
106 |
msgid "chromeless video"
|
107 |
msgstr ""
|
108 |
|
109 |
-
#: ../youtube-channel.php:
|
110 |
msgid "custom"
|
111 |
msgstr ""
|
112 |
|
113 |
-
#: ../youtube-channel.php:
|
114 |
msgid "default"
|
115 |
msgstr ""
|
116 |
|
117 |
-
#: ../youtube-channel.php:
|
118 |
msgid "iframe (HTML5 player)"
|
119 |
msgstr ""
|
120 |
|
121 |
-
#: ../youtube-channel.php:
|
122 |
msgid "in new window/tab"
|
123 |
msgstr ""
|
124 |
|
125 |
-
#: ../youtube-channel.php:
|
126 |
msgid "object (flash player)"
|
127 |
msgstr ""
|
128 |
|
129 |
-
#: ../youtube-channel.php:
|
130 |
msgid "thumbnail"
|
131 |
msgstr ""
|
7 |
msgid ""
|
8 |
msgstr "Project-Id-Version: PACKAGE VERSION\n"
|
9 |
"Report-Msgid-Bugs-To: \n"
|
10 |
+
"POT-Creation-Date: 2011-09-24 10:16+0200\n"
|
11 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
13 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
16 |
"Content-Type: text/plain; charset=CHARSET\n"
|
17 |
"Content-Transfer-Encoding: 8bit\n"
|
18 |
|
19 |
+
#: ../youtube-channel.php:56
|
20 |
msgid "Aspect ratio (relative to width):"
|
21 |
msgstr ""
|
22 |
|
23 |
+
#: ../youtube-channel.php:72
|
24 |
msgid "Autoplay video"
|
25 |
msgstr ""
|
26 |
|
27 |
+
#: ../youtube-channel.php:49
|
28 |
msgid "Channel:"
|
29 |
msgstr ""
|
30 |
|
31 |
+
#: ../youtube-channel.php:71
|
32 |
msgid "Fix height taken by controls"
|
33 |
msgstr ""
|
34 |
|
35 |
+
#: ../youtube-channel.php:53
|
36 |
msgid "Get random video from channel"
|
37 |
msgstr ""
|
38 |
|
39 |
+
#: ../youtube-channel.php:55
|
40 |
msgid "Height"
|
41 |
msgstr ""
|
42 |
|
43 |
+
#: ../youtube-channel.php:73
|
44 |
msgid "Hide player controls"
|
45 |
msgstr ""
|
46 |
|
47 |
+
#: ../youtube-channel.php:74
|
48 |
msgid "Hide video info"
|
49 |
msgstr ""
|
50 |
|
51 |
+
#: ../youtube-channel.php:52
|
52 |
msgid "Maximum items to fetch:"
|
53 |
msgstr ""
|
54 |
|
55 |
+
#: ../youtube-channel.php:185
|
56 |
msgid "No items"
|
57 |
msgstr ""
|
58 |
|
59 |
+
#: ../youtube-channel.php:79
|
60 |
msgid "Open channel in new window/tab"
|
61 |
msgstr ""
|
62 |
|
63 |
+
#: ../youtube-channel.php:50
|
64 |
+
msgid "Playlist:"
|
65 |
+
msgstr ""
|
66 |
+
|
67 |
+
#: ../youtube-channel.php:78
|
68 |
msgid "Show link to channel"
|
69 |
msgstr ""
|
70 |
|
71 |
+
#: ../youtube-channel.php:75
|
72 |
msgid "Show video title"
|
73 |
msgstr ""
|
74 |
|
75 |
+
#: ../youtube-channel.php:80
|
76 |
msgid "Use target=\"_blank\" (invalid XHTML)"
|
77 |
msgstr ""
|
78 |
|
79 |
+
#: ../youtube-channel.php:51
|
80 |
+
msgid "Use the playlist instead of channel"
|
81 |
+
msgstr ""
|
82 |
+
|
83 |
+
#: ../youtube-channel.php:77
|
84 |
msgid "Visit YouTube Channel text:"
|
85 |
msgstr ""
|
86 |
|
87 |
+
#: ../youtube-channel.php:253
|
88 |
#, php-format
|
89 |
msgid "Visit channel %1$s"
|
90 |
msgstr ""
|
91 |
|
92 |
+
#: ../youtube-channel.php:217
|
93 |
#, php-format
|
94 |
msgid "Watch video %1$s published on %2$s"
|
95 |
msgstr ""
|
96 |
|
97 |
+
#: ../youtube-channel.php:64
|
98 |
msgid "What to show?"
|
99 |
msgstr ""
|
100 |
|
101 |
+
#: ../youtube-channel.php:48
|
102 |
msgid "Widget Title:"
|
103 |
msgstr ""
|
104 |
|
105 |
+
#: ../youtube-channel.php:54
|
106 |
msgid "Width"
|
107 |
msgstr ""
|
108 |
|
110 |
msgid "YouTube Channel"
|
111 |
msgstr ""
|
112 |
|
113 |
+
#: ../youtube-channel.php:69
|
114 |
msgid "chromeless video"
|
115 |
msgstr ""
|
116 |
|
117 |
+
#: ../youtube-channel.php:58
|
118 |
msgid "custom"
|
119 |
msgstr ""
|
120 |
|
121 |
+
#: ../youtube-channel.php:54 ../youtube-channel.php:55
|
122 |
msgid "default"
|
123 |
msgstr ""
|
124 |
|
125 |
+
#: ../youtube-channel.php:68
|
126 |
msgid "iframe (HTML5 player)"
|
127 |
msgstr ""
|
128 |
|
129 |
+
#: ../youtube-channel.php:256
|
130 |
msgid "in new window/tab"
|
131 |
msgstr ""
|
132 |
|
133 |
+
#: ../youtube-channel.php:67
|
134 |
msgid "object (flash player)"
|
135 |
msgstr ""
|
136 |
|
137 |
+
#: ../youtube-channel.php:66
|
138 |
msgid "thumbnail"
|
139 |
msgstr ""
|
readme.txt
CHANGED
@@ -1,24 +1,24 @@
|
|
1 |
=== YouTube Channel ===
|
2 |
Contributors: urkekg
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=Q6Q762MQ97XJ6
|
4 |
-
Tags: youtube, channel, widget, widgets, youtube player, flash player, rss, feed, video, thumbnail, embed, sidebar, chromeless, iframe, html5
|
5 |
-
Requires at least: 3.2.
|
6 |
Tested up to: 3.2.1
|
7 |
-
Stable tag: 1.
|
8 |
|
9 |
-
Sidebar widget that display latest video thumbnail, playable flash object or chromeless video from YouTube Channel.
|
10 |
|
11 |
== Description ==
|
12 |
|
13 |
-
When you need to display sidebar widget with latest video from some YouTube channel, you can use customisable `YouTube Channel` plugin.
|
14 |
|
15 |
-
Simply insert widget to sidebar, set channel name and if you wish leave all options on default. You will get
|
16 |
|
17 |
If you like this extension and you find it useful, please rate it on the right side.
|
18 |
|
19 |
= Features =
|
20 |
-
* Display latest video from YouTube channel
|
21 |
-
* Option to get random video from channel
|
22 |
* Set custom widget title
|
23 |
* Custom set of width and height of video thumbnail/embeded object (default 220x165 px)
|
24 |
* Preferred aspect ratio relative to width (custom, 4:3, 16:10 and 16:9)
|
@@ -67,11 +67,14 @@ Code improvements and textdomain adds done by [dimadin](http://wordpress.org/ext
|
|
67 |
I could not to find widget with link to channel and thumbnail instead of video object, so I made this one.
|
68 |
|
69 |
== Changelog ==
|
|
|
|
|
70 |
|
71 |
= 1.0 =
|
72 |
-
* Ported to WordPress 3.2.1
|
73 |
* Added option to set maximum number of items for random video
|
74 |
* Version changed from major.minor.micro to to major.minor format
|
|
|
75 |
|
76 |
= 0.1.3 =
|
77 |
* Uses selected() instead of if [dimadin]
|
1 |
=== YouTube Channel ===
|
2 |
Contributors: urkekg
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=Q6Q762MQ97XJ6
|
4 |
+
Tags: youtube, channel, playlist, single, widget, widgets, youtube player, flash player, rss, feed, video, thumbnail, embed, sidebar, chromeless, iframe, html5
|
5 |
+
Requires at least: 3.2.1
|
6 |
Tested up to: 3.2.1
|
7 |
+
Stable tag: 1.1
|
8 |
|
9 |
+
Sidebar widget that display latest video thumbnail, playable flash object or chromeless video from YouTube Channel or Playlist.
|
10 |
|
11 |
== Description ==
|
12 |
|
13 |
+
When you need to display sidebar widget with latest video from some YouTube channel or playlist, you can use customisable `YouTube Channel` plugin.
|
14 |
|
15 |
+
Simply insert widget to sidebar, set channel name and if you wish leave all other options on default. You will get latest video from chosen YouTube channel embedded in sidebar widget, with link to channel on the bottom of the widget. If you wish to use playlist instead of channel, just set playlist ID and injoy!
|
16 |
|
17 |
If you like this extension and you find it useful, please rate it on the right side.
|
18 |
|
19 |
= Features =
|
20 |
+
* Display latest video from YouTube channel or playlist
|
21 |
+
* Option to get random video from channel or playlist
|
22 |
* Set custom widget title
|
23 |
* Custom set of width and height of video thumbnail/embeded object (default 220x165 px)
|
24 |
* Preferred aspect ratio relative to width (custom, 4:3, 16:10 and 16:9)
|
67 |
I could not to find widget with link to channel and thumbnail instead of video object, so I made this one.
|
68 |
|
69 |
== Changelog ==
|
70 |
+
= 1.1 =
|
71 |
+
* Added option to use the playlist instead of channel (suggested by Stacy)
|
72 |
|
73 |
= 1.0 =
|
74 |
+
* Ported to WordPress 3.2.1
|
75 |
* Added option to set maximum number of items for random video
|
76 |
* Version changed from major.minor.micro to to major.minor format
|
77 |
+
* Adds Spanish translation
|
78 |
|
79 |
= 0.1.3 =
|
80 |
* Uses selected() instead of if [dimadin]
|
youtube-channel.php
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
/*
|
3 |
Plugin Name: YouTube Channel
|
4 |
Plugin URI: http://blog.urosevic.net/wordpress/youtube-channel/
|
5 |
-
Description: <a href="widgets.php">Widget</a> that display latest video thumbnail, iframe (HTML5 video), object (Flash video) or chromeless video from YouTube Channel.
|
6 |
Author: Aleksandar Urošević
|
7 |
-
Version: 1.
|
8 |
Author URI: http://urosevic.net/
|
9 |
*/
|
10 |
|
@@ -27,6 +27,8 @@ class YouTube_Channel_Widget extends WP_Widget {
|
|
27 |
// outputs the options form on admin
|
28 |
$title = esc_attr($instance['title']);
|
29 |
$channel = esc_attr($instance['channel']);
|
|
|
|
|
30 |
$getrnd = esc_attr($instance['getrnd']);
|
31 |
$maxrnd = esc_attr($instance['maxrnd']);
|
32 |
$goto_txt = esc_attr($instance['goto_txt']);
|
@@ -45,6 +47,8 @@ class YouTube_Channel_Widget extends WP_Widget {
|
|
45 |
?>
|
46 |
<p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Widget Title:', 'youtube-channel'); ?><input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo $title; ?>" /></label></p>
|
47 |
<p><label for="<?php echo $this->get_field_id('channel'); ?>"><?php _e('Channel:', 'youtube-channel'); ?> <input class="widefat" id="<?php echo $this->get_field_id('channel'); ?>" name="<?php echo $this->get_field_name('channel'); ?>" type="text" value="<?php echo $channel; ?>" /></label></p>
|
|
|
|
|
48 |
<p><label for="<?php echo $this->get_field_id('maxrnd'); ?>"><?php _e('Maximum items to fetch:', 'youtube-channel'); ?> <input class="widefat" id="<?php echo $this->get_field_id('maxrnd'); ?>" name="<?php echo $this->get_field_name('maxrnd'); ?>" type="text" value="<?php echo $maxrnd; ?>" /></label><br />
|
49 |
<input class="checkbox" type="checkbox" <?php checked( (bool) $instance['getrnd'], true ); ?> id="<?php echo $this->get_field_id( 'getrnd' ); ?>" name="<?php echo $this->get_field_name( 'getrnd' ); ?>" /> <label for="<?php echo $this->get_field_id( 'getrnd' ); ?>"><?php _e('Get random video from channel', 'youtube-channel'); ?></label></p>
|
50 |
<p><label for="<?php echo $this->get_field_id('width'); ?>"><?php _e('Width', 'youtube-channel'); ?> (<?php _e('default', 'youtube-channel'); ?> 220):<input class="widefat" id="<?php echo $this->get_field_id('width'); ?>" name="<?php echo $this->get_field_name('width'); ?>" type="text" value="<?php echo $width; ?>" /></label></p>
|
@@ -82,6 +86,8 @@ class YouTube_Channel_Widget extends WP_Widget {
|
|
82 |
$instance = $old_instance;
|
83 |
$instance['title'] = strip_tags($new_instance['title']);
|
84 |
$instance['channel'] = strip_tags($new_instance['channel']);
|
|
|
|
|
85 |
$instance['getrnd'] = $new_instance['getrnd'];
|
86 |
$instance['maxrnd'] = $new_instance['maxrnd'];
|
87 |
$instance['goto_txt'] = strip_tags($new_instance['goto_txt']);
|
@@ -110,6 +116,11 @@ class YouTube_Channel_Widget extends WP_Widget {
|
|
110 |
$channel = $instance['channel'];
|
111 |
if ( $channel == "" ) { $channel = "urkekg"; }
|
112 |
|
|
|
|
|
|
|
|
|
|
|
113 |
// get max items for random video
|
114 |
$maxrnd = $instance['maxrnd'];
|
115 |
if ( $maxrnd < 1 ) { $maxrnd = 10; } // default 10
|
@@ -154,8 +165,12 @@ class YouTube_Channel_Widget extends WP_Widget {
|
|
154 |
<?php
|
155 |
include_once(ABSPATH . WPINC . '/rss.php');
|
156 |
|
157 |
-
$
|
158 |
-
|
|
|
|
|
|
|
|
|
159 |
$rss = fetch_feed($rss_url);
|
160 |
if ( !is_wp_error($rss) ) {
|
161 |
$maxitems = $rss->get_item_quantity($maxrnd); // max items in widget settings
|
@@ -175,10 +190,17 @@ class YouTube_Channel_Widget extends WP_Widget {
|
|
175 |
$item = $items[0];
|
176 |
//$next_item = $items[1];
|
177 |
}
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
182 |
$yt_video = $item->get_permalink();
|
183 |
$yt_title = esc_html( $item->get_title() );
|
184 |
$yt_date = $item->get_date('j F Y | g:i a');
|
@@ -208,14 +230,14 @@ EOF;
|
|
208 |
<?php
|
209 |
} else if ( $to_show == "iframe" ) {
|
210 |
?>
|
211 |
-
<iframe title="YouTube video player" width="<?php echo $width; ?>" height="<?php echo $height; ?>" src="http://www.youtube.com/embed/<?
|
212 |
<?php
|
213 |
} else { // default is object
|
214 |
?>
|
215 |
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="<?php echo $width; ?>" height="<?php echo $height; ?>">
|
216 |
-
<param name="movie" value="http://www.youtube.com
|
217 |
<!--[if !IE]>-->
|
218 |
-
<object type="application/x-shockwave-flash" data="http://www.youtube.com
|
219 |
<!--<![endif]-->
|
220 |
<!--[if !IE]>-->
|
221 |
</object>
|
2 |
/*
|
3 |
Plugin Name: YouTube Channel
|
4 |
Plugin URI: http://blog.urosevic.net/wordpress/youtube-channel/
|
5 |
+
Description: <a href="widgets.php">Widget</a> that display latest video thumbnail, iframe (HTML5 video), object (Flash video) or chromeless video from YouTube Channel or Playlist.
|
6 |
Author: Aleksandar Urošević
|
7 |
+
Version: 1.1
|
8 |
Author URI: http://urosevic.net/
|
9 |
*/
|
10 |
|
27 |
// outputs the options form on admin
|
28 |
$title = esc_attr($instance['title']);
|
29 |
$channel = esc_attr($instance['channel']);
|
30 |
+
$playlist = esc_attr($instance['playlist']);
|
31 |
+
$usepl = esc_attr($instance['usepl']);
|
32 |
$getrnd = esc_attr($instance['getrnd']);
|
33 |
$maxrnd = esc_attr($instance['maxrnd']);
|
34 |
$goto_txt = esc_attr($instance['goto_txt']);
|
47 |
?>
|
48 |
<p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Widget Title:', 'youtube-channel'); ?><input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo $title; ?>" /></label></p>
|
49 |
<p><label for="<?php echo $this->get_field_id('channel'); ?>"><?php _e('Channel:', 'youtube-channel'); ?> <input class="widefat" id="<?php echo $this->get_field_id('channel'); ?>" name="<?php echo $this->get_field_name('channel'); ?>" type="text" value="<?php echo $channel; ?>" /></label></p>
|
50 |
+
<p><label for="<?php echo $this->get_field_id('playlist'); ?>"><?php _e('Playlist:', 'youtube-channel'); ?> <input class="widefat" id="<?php echo $this->get_field_id('playlist'); ?>" name="<?php echo $this->get_field_name('playlist'); ?>" type="text" value="<?php echo $playlist; ?>" /></label>
|
51 |
+
<input class="checkbox" type="checkbox" <?php checked( (bool) $instance['usepl'], true ); ?> id="<?php echo $this->get_field_id( 'usepl' ); ?>" name="<?php echo $this->get_field_name( 'usepl' ); ?>" /> <label for="<?php echo $this->get_field_id( 'usepl' ); ?>"><?php _e('Use the playlist instead of channel', 'youtube-channel'); ?></label></p>
|
52 |
<p><label for="<?php echo $this->get_field_id('maxrnd'); ?>"><?php _e('Maximum items to fetch:', 'youtube-channel'); ?> <input class="widefat" id="<?php echo $this->get_field_id('maxrnd'); ?>" name="<?php echo $this->get_field_name('maxrnd'); ?>" type="text" value="<?php echo $maxrnd; ?>" /></label><br />
|
53 |
<input class="checkbox" type="checkbox" <?php checked( (bool) $instance['getrnd'], true ); ?> id="<?php echo $this->get_field_id( 'getrnd' ); ?>" name="<?php echo $this->get_field_name( 'getrnd' ); ?>" /> <label for="<?php echo $this->get_field_id( 'getrnd' ); ?>"><?php _e('Get random video from channel', 'youtube-channel'); ?></label></p>
|
54 |
<p><label for="<?php echo $this->get_field_id('width'); ?>"><?php _e('Width', 'youtube-channel'); ?> (<?php _e('default', 'youtube-channel'); ?> 220):<input class="widefat" id="<?php echo $this->get_field_id('width'); ?>" name="<?php echo $this->get_field_name('width'); ?>" type="text" value="<?php echo $width; ?>" /></label></p>
|
86 |
$instance = $old_instance;
|
87 |
$instance['title'] = strip_tags($new_instance['title']);
|
88 |
$instance['channel'] = strip_tags($new_instance['channel']);
|
89 |
+
$instance['playlist'] = strip_tags($new_instance['playlist']);
|
90 |
+
$instance['usepl'] = $new_instance['usepl'];
|
91 |
$instance['getrnd'] = $new_instance['getrnd'];
|
92 |
$instance['maxrnd'] = $new_instance['maxrnd'];
|
93 |
$instance['goto_txt'] = strip_tags($new_instance['goto_txt']);
|
116 |
$channel = $instance['channel'];
|
117 |
if ( $channel == "" ) { $channel = "urkekg"; }
|
118 |
|
119 |
+
// set playlist id
|
120 |
+
$playlist = $instance['playlist'];
|
121 |
+
if ( $playlist == "" ) { $playlist = "9DD839E3EB7475DF"; }
|
122 |
+
$usepl = $instance['usepl'];
|
123 |
+
|
124 |
// get max items for random video
|
125 |
$maxrnd = $instance['maxrnd'];
|
126 |
if ( $maxrnd < 1 ) { $maxrnd = 10; } // default 10
|
165 |
<?php
|
166 |
include_once(ABSPATH . WPINC . '/rss.php');
|
167 |
|
168 |
+
if ( $usepl ) {
|
169 |
+
$rss_url = 'http://gdata.youtube.com/feeds/api/playlists/'.$playlist.'?alt=rss&v=2&orderby=published';
|
170 |
+
} else {
|
171 |
+
$rss_url = 'http://gdata.youtube.com/feeds/base/users/'.$channel.'/uploads?alt=rss&v=2&orderby=published&client=ytapi-youtube-profile';
|
172 |
+
}
|
173 |
+
|
174 |
$rss = fetch_feed($rss_url);
|
175 |
if ( !is_wp_error($rss) ) {
|
176 |
$maxitems = $rss->get_item_quantity($maxrnd); // max items in widget settings
|
190 |
$item = $items[0];
|
191 |
//$next_item = $items[1];
|
192 |
}
|
193 |
+
|
194 |
+
if ( $usepl ) {
|
195 |
+
$yt_id = $item->get_link();
|
196 |
+
$yt_id = preg_replace('/^.*=(.*)&.*$/', '${1}', $yt_id);
|
197 |
+
$yt_url = "p/$playlist";
|
198 |
+
} else {
|
199 |
+
$yt_id = split(":", $item->get_id());
|
200 |
+
$yt_id = $yt_id[3];
|
201 |
+
$yt_url = "v/$yt_id";
|
202 |
+
}
|
203 |
+
$yt_thumb = "http://img.youtube.com/vi/$yt_id/0.jpg"; // zero for HD thumb
|
204 |
$yt_video = $item->get_permalink();
|
205 |
$yt_title = esc_html( $item->get_title() );
|
206 |
$yt_date = $item->get_date('j F Y | g:i a');
|
230 |
<?php
|
231 |
} else if ( $to_show == "iframe" ) {
|
232 |
?>
|
233 |
+
<iframe title="YouTube video player" width="<?php echo $width; ?>" height="<?php echo $height; ?>" src="http://www.youtube.com/embed/<? echo $yt_url."?enablejsapi=1"; if ( $controls ) { echo "&controls=0"; } if ( $hideinfo ) { echo "&showinfo=0"; } if ( $autoplay ) { echo "&autoplay=1"; } ?>" frameborder="0" allowfullscreen></iframe>
|
234 |
<?php
|
235 |
} else { // default is object
|
236 |
?>
|
237 |
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="<?php echo $width; ?>" height="<?php echo $height; ?>">
|
238 |
+
<param name="movie" value="http://www.youtube.com/<?php echo $yt_url; ?>?version=3<?php if ( $controls ) { echo "&controls=0"; } if ( $hideinfo ) { echo "&showinfo=0"; } if ( $autoplay ) { echo "&autoplay=1"; } ?>" />
|
239 |
<!--[if !IE]>-->
|
240 |
+
<object type="application/x-shockwave-flash" data="http://www.youtube.com/<?php echo $yt_url; ?>?version=3<?php if ( $controls ) { echo "&controls=0"; } if ( $hideinfo ) { echo "&showinfo=0"; } if ( $autoplay ) { echo "&autoplay=1"; } ?>" width="<?php echo $width; ?>" height="<?php echo $height; ?>">
|
241 |
<!--<![endif]-->
|
242 |
<!--[if !IE]>-->
|
243 |
</object>
|