Version Description
- Ported to WordPress 3.2.1 by replacing deprecated function get_rss() with fetch_feed()
- Added option to set maximum number of items for random video
- Version changed from major.minor.micro to to major.minor format
Download this release
Release Info
Developer | urkekg |
Plugin | YouTube Channel |
Version | 1.0 |
Comparing to | |
See all releases |
Code changes from version 0.1.3 to 1.0
- languages/youtube-channel-es_ES.mo +0 -0
- languages/youtube-channel-es_ES.po +163 -0
- languages/youtube-channel-sr_RS.mo +0 -0
- languages/youtube-channel-sr_RS.po +112 -111
- languages/youtube-channel-xx_XX.pot +131 -1
- readme.txt +10 -4
- youtube-channel.php +28 -16
languages/youtube-channel-es_ES.mo
ADDED
Binary file
|
languages/youtube-channel-es_ES.po
ADDED
@@ -0,0 +1,163 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: \n"
|
4 |
+
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2011-09-23 22:46+0200\n"
|
6 |
+
"PO-Revision-Date: \n"
|
7 |
+
"Last-Translator: \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-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:52
|
26 |
+
msgid "Aspect ratio (relative to width):"
|
27 |
+
msgstr "Aspecto de ratio (relativo al ancho):"
|
28 |
+
|
29 |
+
# @ youtube-channel
|
30 |
+
#: ../youtube-channel.php:68
|
31 |
+
msgid "Autoplay video"
|
32 |
+
msgstr "Reproducción automática"
|
33 |
+
|
34 |
+
# @ youtube-channel
|
35 |
+
#: ../youtube-channel.php:47
|
36 |
+
msgid "Channel:"
|
37 |
+
msgstr "Canal:"
|
38 |
+
|
39 |
+
# @ youtube-channel
|
40 |
+
#: ../youtube-channel.php:67
|
41 |
+
msgid "Fix height taken by controls"
|
42 |
+
msgstr "Fijar la altura tomada por los controles"
|
43 |
+
|
44 |
+
# @ youtube-channel
|
45 |
+
#: ../youtube-channel.php:49
|
46 |
+
msgid "Get random video from channel"
|
47 |
+
msgstr "Mostrar vídeo aleatorio del canal"
|
48 |
+
|
49 |
+
# @ youtube-channel
|
50 |
+
#: ../youtube-channel.php:51
|
51 |
+
msgid "Height"
|
52 |
+
msgstr "Alto"
|
53 |
+
|
54 |
+
# @ youtube-channel
|
55 |
+
#: ../youtube-channel.php:69
|
56 |
+
msgid "Hide player controls"
|
57 |
+
msgstr "Esconder controles de reproducción"
|
58 |
+
|
59 |
+
# @ youtube-channel
|
60 |
+
#: ../youtube-channel.php:70
|
61 |
+
msgid "Hide video info"
|
62 |
+
msgstr "Esconder info de vídeo"
|
63 |
+
|
64 |
+
#: ../youtube-channel.php:48
|
65 |
+
msgid "Maximum items to fetch:"
|
66 |
+
msgstr ""
|
67 |
+
|
68 |
+
# @ youtube-channel
|
69 |
+
#: ../youtube-channel.php:170
|
70 |
+
msgid "No items"
|
71 |
+
msgstr "No hay elementos"
|
72 |
+
|
73 |
+
# @ youtube-channel
|
74 |
+
#: ../youtube-channel.php:75
|
75 |
+
msgid "Open channel in new window/tab"
|
76 |
+
msgstr "Abrir canal en nueva ventana"
|
77 |
+
|
78 |
+
# @ youtube-channel
|
79 |
+
#: ../youtube-channel.php:74
|
80 |
+
msgid "Show link to channel"
|
81 |
+
msgstr "Mostrar enlace a canal"
|
82 |
+
|
83 |
+
# @ youtube-channel
|
84 |
+
#: ../youtube-channel.php:71
|
85 |
+
msgid "Show video title"
|
86 |
+
msgstr "Mostrar título"
|
87 |
+
|
88 |
+
# @ youtube-channel
|
89 |
+
#: ../youtube-channel.php:76
|
90 |
+
msgid "Use target=\"_blank\" (invalid XHTML)"
|
91 |
+
msgstr "Utilice objetivo = \"blank\" (XHTML no válido)"
|
92 |
+
|
93 |
+
# @ youtube-channel
|
94 |
+
#: ../youtube-channel.php:73
|
95 |
+
msgid "Visit YouTube Channel text:"
|
96 |
+
msgstr "Visitar canal de YouTube"
|
97 |
+
|
98 |
+
# @ youtube-channel
|
99 |
+
#: ../youtube-channel.php:231
|
100 |
+
#, php-format
|
101 |
+
msgid "Visit channel %1$s"
|
102 |
+
msgstr "Visitar canal %1$s"
|
103 |
+
|
104 |
+
# @ youtube-channel
|
105 |
+
#: ../youtube-channel.php:195
|
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:60
|
112 |
+
msgid "What to show?"
|
113 |
+
msgstr "¿Qué mostrar?"
|
114 |
+
|
115 |
+
# @ youtube-channel
|
116 |
+
#: ../youtube-channel.php:46
|
117 |
+
msgid "Widget Title:"
|
118 |
+
msgstr "Título de widget"
|
119 |
+
|
120 |
+
# @ youtube-channel
|
121 |
+
#: ../youtube-channel.php:50
|
122 |
+
msgid "Width"
|
123 |
+
msgstr "Ancho"
|
124 |
+
|
125 |
+
# @ youtube-channel
|
126 |
+
#: ../youtube-channel.php:23
|
127 |
+
msgid "YouTube Channel"
|
128 |
+
msgstr "Canal de YouTube"
|
129 |
+
|
130 |
+
# @ youtube-channel
|
131 |
+
#: ../youtube-channel.php:65
|
132 |
+
msgid "chromeless video"
|
133 |
+
msgstr "vídeo sin marco"
|
134 |
+
|
135 |
+
# @ youtube-channel
|
136 |
+
#: ../youtube-channel.php:54
|
137 |
+
msgid "custom"
|
138 |
+
msgstr "Personalizado"
|
139 |
+
|
140 |
+
# @ youtube-channel
|
141 |
+
#: ../youtube-channel.php:50 ../youtube-channel.php:51
|
142 |
+
msgid "default"
|
143 |
+
msgstr "por defecto"
|
144 |
+
|
145 |
+
# @ youtube-channel
|
146 |
+
#: ../youtube-channel.php:64
|
147 |
+
msgid "iframe (HTML5 player)"
|
148 |
+
msgstr "iframe (html5) - el bueno"
|
149 |
+
|
150 |
+
# @ youtube-channel
|
151 |
+
#: ../youtube-channel.php:234
|
152 |
+
msgid "in new window/tab"
|
153 |
+
msgstr "en nueva ventana/pestaña"
|
154 |
+
|
155 |
+
# @ youtube-channel
|
156 |
+
#: ../youtube-channel.php:63
|
157 |
+
msgid "object (flash player)"
|
158 |
+
msgstr "objeto (flash)"
|
159 |
+
|
160 |
+
# @ youtube-channel
|
161 |
+
#: ../youtube-channel.php:62
|
162 |
+
msgid "thumbnail"
|
163 |
+
msgstr "miniatura"
|
languages/youtube-channel-sr_RS.mo
CHANGED
Binary file
|
languages/youtube-channel-sr_RS.po
CHANGED
@@ -2,158 +2,159 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: \n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: \n"
|
6 |
"PO-Revision-Date: \n"
|
7 |
-
"Last-Translator:
|
8 |
"Language-Team: \n"
|
|
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
13 |
-
"X-Poedit-Language: \n"
|
14 |
-
"X-Poedit-Country: \n"
|
15 |
"X-Poedit-SourceCharset: utf-8\n"
|
16 |
-
"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
|
17 |
-
"X-
|
18 |
-
"X-Poedit-Bookmarks: \n"
|
19 |
"X-Poedit-SearchPath-0: .\n"
|
20 |
-
"X-Textdomain-Support: yes"
|
21 |
|
22 |
-
|
23 |
-
|
24 |
-
msgid "
|
25 |
-
msgstr "
|
26 |
|
27 |
-
|
28 |
-
|
29 |
-
msgid "
|
30 |
-
msgstr "
|
31 |
|
32 |
-
|
33 |
-
|
34 |
msgid "Channel:"
|
35 |
msgstr "Канал:"
|
36 |
|
37 |
-
|
38 |
-
|
|
|
|
|
|
|
|
|
|
|
39 |
msgid "Get random video from channel"
|
40 |
msgstr "Насумични видео са канала"
|
41 |
|
42 |
-
|
43 |
-
|
44 |
-
msgid "Width"
|
45 |
-
msgstr "Ширина"
|
46 |
-
|
47 |
-
#: youtube-channel.php:48
|
48 |
-
#: youtube-channel.php:49
|
49 |
-
#@ youtube-channel
|
50 |
-
msgid "default"
|
51 |
-
msgstr "подразумевано"
|
52 |
-
|
53 |
-
#: youtube-channel.php:49
|
54 |
-
#@ youtube-channel
|
55 |
msgid "Height"
|
56 |
msgstr "Висина"
|
57 |
|
58 |
-
|
59 |
-
|
60 |
-
msgid "Aspect ratio (relative to width):"
|
61 |
-
msgstr "Однос страница (база је ширина):"
|
62 |
-
|
63 |
-
#: youtube-channel.php:52
|
64 |
-
#@ youtube-channel
|
65 |
-
msgid "custom"
|
66 |
-
msgstr "прилагођено"
|
67 |
-
|
68 |
-
#: youtube-channel.php:58
|
69 |
-
#@ youtube-channel
|
70 |
-
msgid "What to show?"
|
71 |
-
msgstr "Шта да прикажем?"
|
72 |
-
|
73 |
-
#: youtube-channel.php:60
|
74 |
-
#@ youtube-channel
|
75 |
-
msgid "thumbnail"
|
76 |
-
msgstr "умањену слику"
|
77 |
-
|
78 |
-
#: youtube-channel.php:61
|
79 |
-
#@ youtube-channel
|
80 |
-
msgid "object (flash player)"
|
81 |
-
msgstr "објекат (флеш плејер)"
|
82 |
-
|
83 |
-
#: youtube-channel.php:62
|
84 |
-
#@ youtube-channel
|
85 |
-
msgid "iframe (HTML5 player)"
|
86 |
-
msgstr "уграђени фрејм (HTML5 плејер)"
|
87 |
-
|
88 |
-
#: youtube-channel.php:63
|
89 |
-
#@ youtube-channel
|
90 |
-
msgid "chromeless video"
|
91 |
-
msgstr "„chromeless“ видео"
|
92 |
-
|
93 |
-
#: youtube-channel.php:65
|
94 |
-
#@ youtube-channel
|
95 |
-
msgid "Fix height taken by controls"
|
96 |
-
msgstr "Поправи висину контрола"
|
97 |
-
|
98 |
-
#: youtube-channel.php:66
|
99 |
-
#@ youtube-channel
|
100 |
-
msgid "Autoplay video"
|
101 |
-
msgstr "Аутоматска репродукција"
|
102 |
-
|
103 |
-
#: youtube-channel.php:67
|
104 |
-
#@ youtube-channel
|
105 |
msgid "Hide player controls"
|
106 |
msgstr "Сакривање контрола"
|
107 |
|
108 |
-
|
109 |
-
|
110 |
msgid "Hide video info"
|
111 |
msgstr "Сакривање информација о видеу"
|
112 |
|
113 |
-
#: youtube-channel.php:
|
114 |
-
|
115 |
-
|
116 |
-
msgstr "Прикажи наслов видеа"
|
117 |
|
118 |
-
|
119 |
-
|
120 |
-
msgid "
|
121 |
-
msgstr "
|
|
|
|
|
|
|
|
|
|
|
122 |
|
123 |
-
|
124 |
-
|
125 |
msgid "Show link to channel"
|
126 |
msgstr "Прикажи везу до канала"
|
127 |
|
128 |
-
|
129 |
-
|
|
|
|
|
|
|
|
|
|
|
130 |
msgid "Use target=\"_blank\" (invalid XHTML)"
|
131 |
msgstr "Користи target=\"_blank\"<br />(даје невалидан XHTML)"
|
132 |
|
133 |
-
|
134 |
-
|
135 |
-
msgid "
|
136 |
-
msgstr "
|
|
|
|
|
|
|
|
|
|
|
|
|
137 |
|
138 |
-
|
|
|
139 |
#, php-format
|
140 |
-
#@ youtube-channel
|
141 |
msgid "Watch video %1$s published on %2$s"
|
142 |
msgstr "Погледај видео %1$s објављен дана %2$s"
|
143 |
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
msgstr "Посети канал %1$s"
|
149 |
|
150 |
-
|
151 |
-
|
152 |
-
msgid "
|
153 |
-
msgstr "
|
154 |
|
155 |
-
|
156 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
157 |
msgid "in new window/tab"
|
158 |
msgstr "у новом прозору/језичку"
|
159 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: \n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2011-09-23 22:46+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:52
|
21 |
+
msgid "Aspect ratio (relative to width):"
|
22 |
+
msgstr "Однос страница (база је ширина):"
|
23 |
|
24 |
+
# @ youtube-channel
|
25 |
+
#: ../youtube-channel.php:68
|
26 |
+
msgid "Autoplay video"
|
27 |
+
msgstr "Аутоматска репродукција"
|
28 |
|
29 |
+
# @ youtube-channel
|
30 |
+
#: ../youtube-channel.php:47
|
31 |
msgid "Channel:"
|
32 |
msgstr "Канал:"
|
33 |
|
34 |
+
# @ youtube-channel
|
35 |
+
#: ../youtube-channel.php:67
|
36 |
+
msgid "Fix height taken by controls"
|
37 |
+
msgstr "Поправи висину контрола"
|
38 |
+
|
39 |
+
# @ youtube-channel
|
40 |
+
#: ../youtube-channel.php:49
|
41 |
msgid "Get random video from channel"
|
42 |
msgstr "Насумични видео са канала"
|
43 |
|
44 |
+
# @ youtube-channel
|
45 |
+
#: ../youtube-channel.php:51
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
msgid "Height"
|
47 |
msgstr "Висина"
|
48 |
|
49 |
+
# @ youtube-channel
|
50 |
+
#: ../youtube-channel.php:69
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
msgid "Hide player controls"
|
52 |
msgstr "Сакривање контрола"
|
53 |
|
54 |
+
# @ youtube-channel
|
55 |
+
#: ../youtube-channel.php:70
|
56 |
msgid "Hide video info"
|
57 |
msgstr "Сакривање информација о видеу"
|
58 |
|
59 |
+
#: ../youtube-channel.php:48
|
60 |
+
msgid "Maximum items to fetch:"
|
61 |
+
msgstr "Максималан број видеа:"
|
|
|
62 |
|
63 |
+
# @ youtube-channel
|
64 |
+
#: ../youtube-channel.php:170
|
65 |
+
msgid "No items"
|
66 |
+
msgstr "Нема видео снимака"
|
67 |
+
|
68 |
+
# @ youtube-channel
|
69 |
+
#: ../youtube-channel.php:75
|
70 |
+
msgid "Open channel in new window/tab"
|
71 |
+
msgstr "Отвори канал у новом прозору"
|
72 |
|
73 |
+
# @ youtube-channel
|
74 |
+
#: ../youtube-channel.php:74
|
75 |
msgid "Show link to channel"
|
76 |
msgstr "Прикажи везу до канала"
|
77 |
|
78 |
+
# @ youtube-channel
|
79 |
+
#: ../youtube-channel.php:71
|
80 |
+
msgid "Show video title"
|
81 |
+
msgstr "Прикажи наслов видеа"
|
82 |
+
|
83 |
+
# @ youtube-channel
|
84 |
+
#: ../youtube-channel.php:76
|
85 |
msgid "Use target=\"_blank\" (invalid XHTML)"
|
86 |
msgstr "Користи target=\"_blank\"<br />(даје невалидан XHTML)"
|
87 |
|
88 |
+
# @ youtube-channel
|
89 |
+
#: ../youtube-channel.php:73
|
90 |
+
msgid "Visit YouTube Channel text:"
|
91 |
+
msgstr "Текст за везу „посети Јутјуб канал“:"
|
92 |
+
|
93 |
+
# @ youtube-channel
|
94 |
+
#: ../youtube-channel.php:231
|
95 |
+
#, php-format
|
96 |
+
msgid "Visit channel %1$s"
|
97 |
+
msgstr "Посети канал %1$s"
|
98 |
|
99 |
+
# @ youtube-channel
|
100 |
+
#: ../youtube-channel.php:195
|
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:60
|
107 |
+
msgid "What to show?"
|
108 |
+
msgstr "Шта да прикажем?"
|
|
|
109 |
|
110 |
+
# @ youtube-channel
|
111 |
+
#: ../youtube-channel.php:46
|
112 |
+
msgid "Widget Title:"
|
113 |
+
msgstr "Наслов виџета:"
|
114 |
|
115 |
+
# @ youtube-channel
|
116 |
+
#: ../youtube-channel.php:50
|
117 |
+
msgid "Width"
|
118 |
+
msgstr "Ширина"
|
119 |
+
|
120 |
+
# @ youtube-channel
|
121 |
+
#: ../youtube-channel.php:23
|
122 |
+
msgid "YouTube Channel"
|
123 |
+
msgstr "YouTube Channel"
|
124 |
+
|
125 |
+
# @ youtube-channel
|
126 |
+
#: ../youtube-channel.php:65
|
127 |
+
msgid "chromeless video"
|
128 |
+
msgstr "„chromeless“ видео"
|
129 |
+
|
130 |
+
# @ youtube-channel
|
131 |
+
#: ../youtube-channel.php:54
|
132 |
+
msgid "custom"
|
133 |
+
msgstr "прилагођено"
|
134 |
+
|
135 |
+
# @ youtube-channel
|
136 |
+
#: ../youtube-channel.php:50
|
137 |
+
#: ../youtube-channel.php:51
|
138 |
+
msgid "default"
|
139 |
+
msgstr "подразумевано"
|
140 |
+
|
141 |
+
# @ youtube-channel
|
142 |
+
#: ../youtube-channel.php:64
|
143 |
+
msgid "iframe (HTML5 player)"
|
144 |
+
msgstr "уграђени фрејм (HTML5 плејер)"
|
145 |
+
|
146 |
+
# @ youtube-channel
|
147 |
+
#: ../youtube-channel.php:234
|
148 |
msgid "in new window/tab"
|
149 |
msgstr "у новом прозору/језичку"
|
150 |
|
151 |
+
# @ youtube-channel
|
152 |
+
#: ../youtube-channel.php:63
|
153 |
+
msgid "object (flash player)"
|
154 |
+
msgstr "објекат (флеш плејер)"
|
155 |
+
|
156 |
+
# @ youtube-channel
|
157 |
+
#: ../youtube-channel.php:62
|
158 |
+
msgid "thumbnail"
|
159 |
+
msgstr "умањену слику"
|
160 |
+
|
languages/youtube-channel-xx_XX.pot
CHANGED
@@ -1 +1,131 @@
|
|
1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# SOME DESCRIPTIVE TITLE.
|
2 |
+
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
3 |
+
# This file is distributed under the same license as the PACKAGE package.
|
4 |
+
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
5 |
+
#
|
6 |
+
#, fuzzy
|
7 |
+
msgid ""
|
8 |
+
msgstr "Project-Id-Version: PACKAGE VERSION\n"
|
9 |
+
"Report-Msgid-Bugs-To: \n"
|
10 |
+
"POT-Creation-Date: 2011-09-23 22:46+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"
|
14 |
+
"Language: \n"
|
15 |
+
"MIME-Version: 1.0\n"
|
16 |
+
"Content-Type: text/plain; charset=CHARSET\n"
|
17 |
+
"Content-Transfer-Encoding: 8bit\n"
|
18 |
+
|
19 |
+
#: ../youtube-channel.php:52
|
20 |
+
msgid "Aspect ratio (relative to width):"
|
21 |
+
msgstr ""
|
22 |
+
|
23 |
+
#: ../youtube-channel.php:68
|
24 |
+
msgid "Autoplay video"
|
25 |
+
msgstr ""
|
26 |
+
|
27 |
+
#: ../youtube-channel.php:47
|
28 |
+
msgid "Channel:"
|
29 |
+
msgstr ""
|
30 |
+
|
31 |
+
#: ../youtube-channel.php:67
|
32 |
+
msgid "Fix height taken by controls"
|
33 |
+
msgstr ""
|
34 |
+
|
35 |
+
#: ../youtube-channel.php:49
|
36 |
+
msgid "Get random video from channel"
|
37 |
+
msgstr ""
|
38 |
+
|
39 |
+
#: ../youtube-channel.php:51
|
40 |
+
msgid "Height"
|
41 |
+
msgstr ""
|
42 |
+
|
43 |
+
#: ../youtube-channel.php:69
|
44 |
+
msgid "Hide player controls"
|
45 |
+
msgstr ""
|
46 |
+
|
47 |
+
#: ../youtube-channel.php:70
|
48 |
+
msgid "Hide video info"
|
49 |
+
msgstr ""
|
50 |
+
|
51 |
+
#: ../youtube-channel.php:48
|
52 |
+
msgid "Maximum items to fetch:"
|
53 |
+
msgstr ""
|
54 |
+
|
55 |
+
#: ../youtube-channel.php:170
|
56 |
+
msgid "No items"
|
57 |
+
msgstr ""
|
58 |
+
|
59 |
+
#: ../youtube-channel.php:75
|
60 |
+
msgid "Open channel in new window/tab"
|
61 |
+
msgstr ""
|
62 |
+
|
63 |
+
#: ../youtube-channel.php:74
|
64 |
+
msgid "Show link to channel"
|
65 |
+
msgstr ""
|
66 |
+
|
67 |
+
#: ../youtube-channel.php:71
|
68 |
+
msgid "Show video title"
|
69 |
+
msgstr ""
|
70 |
+
|
71 |
+
#: ../youtube-channel.php:76
|
72 |
+
msgid "Use target=\"_blank\" (invalid XHTML)"
|
73 |
+
msgstr ""
|
74 |
+
|
75 |
+
#: ../youtube-channel.php:73
|
76 |
+
msgid "Visit YouTube Channel text:"
|
77 |
+
msgstr ""
|
78 |
+
|
79 |
+
#: ../youtube-channel.php:231
|
80 |
+
#, php-format
|
81 |
+
msgid "Visit channel %1$s"
|
82 |
+
msgstr ""
|
83 |
+
|
84 |
+
#: ../youtube-channel.php:195
|
85 |
+
#, php-format
|
86 |
+
msgid "Watch video %1$s published on %2$s"
|
87 |
+
msgstr ""
|
88 |
+
|
89 |
+
#: ../youtube-channel.php:60
|
90 |
+
msgid "What to show?"
|
91 |
+
msgstr ""
|
92 |
+
|
93 |
+
#: ../youtube-channel.php:46
|
94 |
+
msgid "Widget Title:"
|
95 |
+
msgstr ""
|
96 |
+
|
97 |
+
#: ../youtube-channel.php:50
|
98 |
+
msgid "Width"
|
99 |
+
msgstr ""
|
100 |
+
|
101 |
+
#: ../youtube-channel.php:23
|
102 |
+
msgid "YouTube Channel"
|
103 |
+
msgstr ""
|
104 |
+
|
105 |
+
#: ../youtube-channel.php:65
|
106 |
+
msgid "chromeless video"
|
107 |
+
msgstr ""
|
108 |
+
|
109 |
+
#: ../youtube-channel.php:54
|
110 |
+
msgid "custom"
|
111 |
+
msgstr ""
|
112 |
+
|
113 |
+
#: ../youtube-channel.php:50 ../youtube-channel.php:51
|
114 |
+
msgid "default"
|
115 |
+
msgstr ""
|
116 |
+
|
117 |
+
#: ../youtube-channel.php:64
|
118 |
+
msgid "iframe (HTML5 player)"
|
119 |
+
msgstr ""
|
120 |
+
|
121 |
+
#: ../youtube-channel.php:234
|
122 |
+
msgid "in new window/tab"
|
123 |
+
msgstr ""
|
124 |
+
|
125 |
+
#: ../youtube-channel.php:63
|
126 |
+
msgid "object (flash player)"
|
127 |
+
msgstr ""
|
128 |
+
|
129 |
+
#: ../youtube-channel.php:62
|
130 |
+
msgid "thumbnail"
|
131 |
+
msgstr ""
|
readme.txt
CHANGED
@@ -2,9 +2,9 @@
|
|
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.0
|
6 |
-
Tested up to: 3.1
|
7 |
-
Stable tag:
|
8 |
|
9 |
Sidebar widget that display latest video thumbnail, playable flash object or chromeless video from YouTube Channel.
|
10 |
|
@@ -32,7 +32,7 @@ If you like this extension and you find it useful, please rate it on the right s
|
|
32 |
* Option to show link to channel
|
33 |
* Option to open channel in new tab/window
|
34 |
* Option to use target="_blank" instead of javascript window.open() for chanel link in new tab/window
|
35 |
-
* Translated to Serbian
|
36 |
|
37 |
= Credits =
|
38 |
Chromeless option borrowed from [Chromeless YouTube](http://wordpress.org/extend/plugins/chromeless-youtube/) extension.
|
@@ -55,6 +55,7 @@ Code improvements and textdomain adds done by [dimadin](http://wordpress.org/ext
|
|
55 |
|
56 |
== TODO ==
|
57 |
|
|
|
58 |
* Enable translations
|
59 |
* Option to force display of HD video (useless for small sized video?)
|
60 |
* Add option to show more than one (and how much) latest videos
|
@@ -67,6 +68,11 @@ I could not to find widget with link to channel and thumbnail instead of video o
|
|
67 |
|
68 |
== Changelog ==
|
69 |
|
|
|
|
|
|
|
|
|
|
|
70 |
= 0.1.3 =
|
71 |
* Uses selected() instead of if [dimadin]
|
72 |
* Uses sprintf for better i18n [dimadin]
|
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.0
|
6 |
+
Tested up to: 3.2.1
|
7 |
+
Stable tag: 1.0
|
8 |
|
9 |
Sidebar widget that display latest video thumbnail, playable flash object or chromeless video from YouTube Channel.
|
10 |
|
32 |
* Option to show link to channel
|
33 |
* Option to open channel in new tab/window
|
34 |
* Option to use target="_blank" instead of javascript window.open() for chanel link in new tab/window
|
35 |
+
* Translated to Serbian and Spanish
|
36 |
|
37 |
= Credits =
|
38 |
Chromeless option borrowed from [Chromeless YouTube](http://wordpress.org/extend/plugins/chromeless-youtube/) extension.
|
55 |
|
56 |
== TODO ==
|
57 |
|
58 |
+
* Add option to show favorite videos
|
59 |
* Enable translations
|
60 |
* Option to force display of HD video (useless for small sized video?)
|
61 |
* Add option to show more than one (and how much) latest videos
|
68 |
|
69 |
== Changelog ==
|
70 |
|
71 |
+
= 1.0 =
|
72 |
+
* Ported to WordPress 3.2.1 by replacing deprecated function get_rss() with fetch_feed()
|
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]
|
78 |
* Uses sprintf for better i18n [dimadin]
|
youtube-channel.php
CHANGED
@@ -4,7 +4,7 @@ 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:
|
8 |
Author URI: http://urosevic.net/
|
9 |
*/
|
10 |
|
@@ -28,6 +28,7 @@ class YouTube_Channel_Widget extends WP_Widget {
|
|
28 |
$title = esc_attr($instance['title']);
|
29 |
$channel = esc_attr($instance['channel']);
|
30 |
$getrnd = esc_attr($instance['getrnd']);
|
|
|
31 |
$goto_txt = esc_attr($instance['goto_txt']);
|
32 |
$showgoto = esc_attr($instance['showgoto']);
|
33 |
$popupgoto = esc_attr($instance['popupgoto']);
|
@@ -43,7 +44,8 @@ class YouTube_Channel_Widget extends WP_Widget {
|
|
43 |
$hideinfo = esc_attr($instance['hideinfo']);
|
44 |
?>
|
45 |
<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>
|
46 |
-
<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
|
|
|
47 |
<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>
|
48 |
<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>
|
49 |
<p><label for="<?php echo $this->get_field_id('height'); ?>"><?php _e('Height', 'youtube-channel'); ?> (<?php _e('default', 'youtube-channel'); ?> 165):<input class="widefat" id="<?php echo $this->get_field_id('height'); ?>" name="<?php echo $this->get_field_name('height'); ?>" type="text" value="<?php echo $height; ?>" /></label></p>
|
@@ -81,6 +83,7 @@ class YouTube_Channel_Widget extends WP_Widget {
|
|
81 |
$instance['title'] = strip_tags($new_instance['title']);
|
82 |
$instance['channel'] = strip_tags($new_instance['channel']);
|
83 |
$instance['getrnd'] = $new_instance['getrnd'];
|
|
|
84 |
$instance['goto_txt'] = strip_tags($new_instance['goto_txt']);
|
85 |
$instance['showgoto'] = $new_instance['showgoto'];
|
86 |
$instance['popupgoto'] = $new_instance['popupgoto'];
|
@@ -107,6 +110,10 @@ class YouTube_Channel_Widget extends WP_Widget {
|
|
107 |
$channel = $instance['channel'];
|
108 |
if ( $channel == "" ) { $channel = "urkekg"; }
|
109 |
|
|
|
|
|
|
|
|
|
110 |
// get hideinfo, autoplay and controls settings
|
111 |
$hideinfo = $instance['hideinfo'];
|
112 |
$autoplay = $instance['autoplay'];
|
@@ -127,6 +134,8 @@ class YouTube_Channel_Widget extends WP_Widget {
|
|
127 |
$height = $instance['height'];
|
128 |
if ( $height == "" ) { $height = 165; }
|
129 |
}
|
|
|
|
|
130 |
|
131 |
// which type to show
|
132 |
$to_show = $instance['to_show'];
|
@@ -145,32 +154,35 @@ class YouTube_Channel_Widget extends WP_Widget {
|
|
145 |
<?php
|
146 |
include_once(ABSPATH . WPINC . '/rss.php');
|
147 |
|
148 |
-
$
|
149 |
-
|
|
|
|
|
|
|
150 |
$getrnd = $instance['getrnd'];
|
151 |
if ( $getrnd ) {
|
152 |
-
$items =
|
153 |
} else {
|
154 |
-
$items =
|
155 |
}
|
156 |
}
|
157 |
-
|
158 |
-
if (empty($items)) {
|
159 |
echo __( 'No items' , 'youtube-channel' );
|
160 |
} else {
|
161 |
if ( $getrnd ) {
|
162 |
$item = $items[mt_rand(0, (count($items)-1))];
|
163 |
} else {
|
164 |
$item = $items[0];
|
|
|
165 |
}
|
166 |
-
|
|
|
167 |
$yt_id = $yt_id[3];
|
168 |
-
$yt_thumb = "http://
|
169 |
-
$yt_video =
|
170 |
-
$yt_title = $item
|
171 |
-
$yt_date = $item
|
172 |
-
// $
|
173 |
-
// $next_id = split(":", $next['guid']);
|
174 |
// $next_id = $yt_id[3];
|
175 |
|
176 |
// show video title?
|
@@ -182,7 +194,7 @@ class YouTube_Channel_Widget extends WP_Widget {
|
|
182 |
if ( $to_show == "thumbnail" ) {
|
183 |
$title = sprintf( __( 'Watch video %1$s published on %2$s' , 'youtube-channel' ), $yt_title, $yt_date );
|
184 |
echo <<<EOF
|
185 |
-
<a href="$yt_video" title="$title"><
|
186 |
EOF;
|
187 |
} else if ( $to_show == "chromeless" ) {
|
188 |
?>
|
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.0
|
8 |
Author URI: http://urosevic.net/
|
9 |
*/
|
10 |
|
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']);
|
33 |
$showgoto = esc_attr($instance['showgoto']);
|
34 |
$popupgoto = esc_attr($instance['popupgoto']);
|
44 |
$hideinfo = esc_attr($instance['hideinfo']);
|
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>
|
51 |
<p><label for="<?php echo $this->get_field_id('height'); ?>"><?php _e('Height', 'youtube-channel'); ?> (<?php _e('default', 'youtube-channel'); ?> 165):<input class="widefat" id="<?php echo $this->get_field_id('height'); ?>" name="<?php echo $this->get_field_name('height'); ?>" type="text" value="<?php echo $height; ?>" /></label></p>
|
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']);
|
88 |
$instance['showgoto'] = $new_instance['showgoto'];
|
89 |
$instance['popupgoto'] = $new_instance['popupgoto'];
|
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
|
116 |
+
|
117 |
// get hideinfo, autoplay and controls settings
|
118 |
$hideinfo = $instance['hideinfo'];
|
119 |
$autoplay = $instance['autoplay'];
|
134 |
$height = $instance['height'];
|
135 |
if ( $height == "" ) { $height = 165; }
|
136 |
}
|
137 |
+
// calculate image height based on width for 4:3 thumbnail
|
138 |
+
$imgfixedheight = $width / 4 * 3;
|
139 |
|
140 |
// which type to show
|
141 |
$to_show = $instance['to_show'];
|
154 |
<?php
|
155 |
include_once(ABSPATH . WPINC . '/rss.php');
|
156 |
|
157 |
+
$rss_url = 'http://gdata.youtube.com/feeds/base/users/'.$channel.'/uploads?alt=rss&v=2&orderby=published&client=ytapi-youtube-profile';
|
158 |
+
//$rss_url = 'http://www.youtube.com/rss/user/'.$channel.'/videos.rss';
|
159 |
+
$rss = fetch_feed($rss_url);
|
160 |
+
if ( !is_wp_error($rss) ) {
|
161 |
+
$maxitems = $rss->get_item_quantity($maxrnd); // max items in widget settings
|
162 |
$getrnd = $instance['getrnd'];
|
163 |
if ( $getrnd ) {
|
164 |
+
$items = $rss->get_items(0, $maxitems);
|
165 |
} else {
|
166 |
+
$items = $rss->get_items(0, 1); // set 0, 2 for next video
|
167 |
}
|
168 |
}
|
169 |
+
if ($maxitems == 0) {
|
|
|
170 |
echo __( 'No items' , 'youtube-channel' );
|
171 |
} else {
|
172 |
if ( $getrnd ) {
|
173 |
$item = $items[mt_rand(0, (count($items)-1))];
|
174 |
} else {
|
175 |
$item = $items[0];
|
176 |
+
//$next_item = $items[1];
|
177 |
}
|
178 |
+
|
179 |
+
$yt_id = split(":", $item->get_id());
|
180 |
$yt_id = $yt_id[3];
|
181 |
+
$yt_thumb = "http://img.youtube.com/vi/$yt_id/0.jpg";
|
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');
|
185 |
+
// $next_id = split(":", $next_item->get_id());
|
|
|
186 |
// $next_id = $yt_id[3];
|
187 |
|
188 |
// show video title?
|
194 |
if ( $to_show == "thumbnail" ) {
|
195 |
$title = sprintf( __( 'Watch video %1$s published on %2$s' , 'youtube-channel' ), $yt_title, $yt_date );
|
196 |
echo <<<EOF
|
197 |
+
<a href="$yt_video" title="$title"><div style="width: ${width}px; height: ${height}px; overflow: hidden; background: url($yt_thumb) 50% 50% no-repeat; background-size: ${width}px ${imgfixedheight}px;" title="$yt_title"></div></a>
|
198 |
EOF;
|
199 |
} else if ( $to_show == "chromeless" ) {
|
200 |
?>
|