WP Embed Facebook - Version 2.0.5

Version Description

  • Improved [embed] shortcode compatibility !
  • Added new 'photos' attribute for shortcode used only on albums
  • Added 'type' parameter to wpemfb_template filter
  • Fixed https on all templates
  • Fixed like and comment links on single post raw
  • Fixed forced app token only if it has app
  • Fixed admin shortcode references
  • Fixed removed unused options on uninstall
  • Fixed translations strings
  • Fixed notice on installations with no FB App
Download this release

Release Info

Developer poxtron
Plugin Icon 128x128 WP Embed Facebook
Version 2.0.5
Comparing to
See all releases

Code changes from version 2.0.4 to 2.0.5

lang/wp-embed-facebook-en_US.mo DELETED
Binary file
lang/wp-embed-facebook-en_US.po DELETED
@@ -1,208 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
4
- "Project-Id-Version: WP Embed Facebook\n"
5
- "POT-Creation-Date: 2015-08-04 20:44-0500\n"
6
- "PO-Revision-Date: 2015-08-04 20:44-0500\n"
7
- "Language-Team: Miguel Sirvent <miguel.sirvent@gmail.com>\n"
8
- "MIME-Version: 1.0\n"
9
- "Content-Type: text/plain; charset=UTF-8\n"
10
- "Content-Transfer-Encoding: 8bit\n"
11
- "X-Generator: Poedit 1.8.4\n"
12
- "X-Poedit-Basepath: ..\n"
13
- "X-Poedit-WPHeader: wp-embed-facebook.php\n"
14
- "X-Poedit-SourceCharset: UTF-8\n"
15
- "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
16
- "esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
17
- "_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
18
- "Last-Translator: Miguel Sirvent <miguel.sirvent@gmail.com>\n"
19
- "Language: en_US\n"
20
- "X-Poedit-SearchPath-0: .\n"
21
- "X-Poedit-SearchPathExcluded-0: *.js\n"
22
-
23
- #: lib/admin.php:187
24
- msgid "Facebook application data"
25
- msgstr ""
26
-
27
- #: lib/admin.php:188
28
- msgid "App ID"
29
- msgstr ""
30
-
31
- #: lib/admin.php:189
32
- msgid "App Secret"
33
- msgstr ""
34
-
35
- #: lib/admin.php:192
36
- msgid "General Options"
37
- msgstr ""
38
-
39
- #: lib/admin.php:194
40
- msgid "Template to use"
41
- msgstr ""
42
-
43
- #: lib/admin.php:210
44
- msgid "Embed Max-Width"
45
- msgstr ""
46
-
47
- #: lib/admin.php:211
48
- msgid "Number of Photos <br>on Embedded Albums"
49
- msgstr ""
50
-
51
- #: lib/admin.php:212
52
- msgid "Show follow button <br>on Embedded Profiles"
53
- msgstr ""
54
-
55
- #: lib/admin.php:214
56
- msgid "Embedded Fan Pages"
57
- msgstr ""
58
-
59
- #: lib/admin.php:215
60
- msgid "Show like button"
61
- msgstr ""
62
-
63
- #: lib/admin.php:216
64
- msgid "Show latest posts"
65
- msgstr ""
66
-
67
- #: lib/admin.php:217
68
- msgid "Number of posts"
69
- msgstr ""
70
-
71
- #: lib/admin.php:218
72
- msgid "Show events on local time"
73
- msgstr ""
74
-
75
- #: lib/admin.php:220
76
- msgid "Raw Embedded Options"
77
- msgstr ""
78
-
79
- #: lib/admin.php:221
80
- msgid "Embed Videos Raw"
81
- msgstr ""
82
-
83
- #: lib/admin.php:222
84
- msgid "Embed Photos Raw"
85
- msgstr ""
86
-
87
- #: lib/admin.php:223
88
- msgid "Use Facebook embed code on raw videos"
89
- msgstr ""
90
-
91
- #: lib/admin.php:230
92
- msgid "Advanced Options"
93
- msgstr ""
94
-
95
- #: lib/admin.php:231
96
- msgid "Enqueue Styles"
97
- msgstr ""
98
-
99
- #: lib/admin.php:232
100
- msgid "Add fb-root on top of content"
101
- msgstr ""
102
-
103
- #: lib/admin.php:233
104
- msgid "Enqueue Lightbox script"
105
- msgstr ""
106
-
107
- #: lib/admin.php:234
108
- msgid "Enqueue WPEmbedFB script"
109
- msgstr ""
110
-
111
- #: lib/admin.php:235
112
- msgid "Enqueue Facebook SDK"
113
- msgstr ""
114
-
115
- #: lib/admin.php:240
116
- msgid "Save"
117
- msgstr ""
118
-
119
- #: lib/admin.php:245
120
- msgid "Premium Version Available"
121
- msgstr ""
122
-
123
- #: lib/admin.php:247
124
- msgid "Only $6.99 USD"
125
- msgstr ""
126
-
127
- #: lib/admin.php:250
128
- msgid "Check it out"
129
- msgstr ""
130
-
131
- #: lib/admin.php:254
132
- msgid "Events with cover"
133
- msgstr ""
134
-
135
- #: lib/admin.php:257
136
- msgid "Fan Page Full Embed"
137
- msgstr ""
138
-
139
- #: lib/admin.php:260
140
- msgid "One Year Premium Support"
141
- msgstr ""
142
-
143
- #: lib/admin.php:265
144
- msgid "More information"
145
- msgstr ""
146
-
147
- #: lib/admin.php:268
148
- msgid "Plugin Web Site"
149
- msgstr ""
150
-
151
- #: lib/core.php:218
152
- msgid "Add Facebook App ID and Secret on admin to make this plugin work."
153
- msgstr ""
154
-
155
- #: lib/core.php:219
156
- msgid "WP Embed Facebook Settings"
157
- msgstr ""
158
-
159
- #: lib/core.php:220
160
- msgid "Your Facebook Apps"
161
- msgstr ""
162
-
163
- #: lib/core.php:292
164
- msgid "Error"
165
- msgstr ""
166
-
167
- #: lib/core.php:434
168
- #, php-format
169
- msgid "%d people like this."
170
- msgstr ""
171
-
172
- #: templates/classic/event.php:33 templates/default/event.php:30
173
- #: templates/default/event.php:33
174
- msgid "@ "
175
- msgstr ""
176
-
177
- #: templates/classic/event.php:37 templates/default/event.php:37
178
- msgid "Creator: "
179
- msgstr ""
180
-
181
- #: templates/default/com-page.php:23 templates/default/com-page.php:24
182
- #: templates/default/page.php:37 templates/default/page.php:38
183
- msgid "Web Site"
184
- msgstr ""
185
-
186
- #. Plugin Name of the plugin/theme
187
- msgid "WP Embed Facebook"
188
- msgstr ""
189
-
190
- #. Plugin URI of the plugin/theme
191
- msgid "http://www.wpembedfb.com"
192
- msgstr ""
193
-
194
- #. Description of the plugin/theme
195
- msgid ""
196
- "Embed a Facebook video, photo, album, event, page, profile, or post. Copy "
197
- "any facebook url to a single line on your post, or use shortcode "
198
- "[facebook='url' width='' ] more info at <a href=\"http://www.wpembedfb.com\" "
199
- "title=\"plugin website\">www.wpembedfb.com</a>"
200
- msgstr ""
201
-
202
- #. Author of the plugin/theme
203
- msgid "Miguel Sirvent"
204
- msgstr ""
205
-
206
- #. Author URI of the plugin/theme
207
- msgid "http://profiles.wordpress.org/poxtron/"
208
- msgstr ""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lang/wp-embed-facebook-es_ES.mo DELETED
Binary file
lang/wp-embed-facebook-es_ES.po DELETED
@@ -1,213 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
4
- "Project-Id-Version: WP Embed Facebook\n"
5
- "POT-Creation-Date: 2015-08-04 20:33-0500\n"
6
- "PO-Revision-Date: 2015-08-04 20:41-0500\n"
7
- "Language-Team: Miguel Sirvent <miguel.sirvent@gmail.com>\n"
8
- "MIME-Version: 1.0\n"
9
- "Content-Type: text/plain; charset=UTF-8\n"
10
- "Content-Transfer-Encoding: 8bit\n"
11
- "X-Generator: Poedit 1.8.4\n"
12
- "X-Poedit-Basepath: ..\n"
13
- "X-Poedit-WPHeader: wp-embed-facebook.php\n"
14
- "X-Poedit-SourceCharset: UTF-8\n"
15
- "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
16
- "esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
17
- "_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
18
- "Last-Translator: Miguel Sirvent <miguel.sirvent@gmail.com>\n"
19
- "Language: es\n"
20
- "X-Poedit-SearchPath-0: .\n"
21
- "X-Poedit-SearchPathExcluded-0: *.js\n"
22
-
23
- #: lib/admin.php:187
24
- msgid "Facebook application data"
25
- msgstr "Datos de la Aplicación de Facebook\t"
26
-
27
- #: lib/admin.php:188
28
- msgid "App ID"
29
- msgstr "ID de la App"
30
-
31
- #: lib/admin.php:189
32
- msgid "App Secret"
33
- msgstr "App Secret"
34
-
35
- #: lib/admin.php:192
36
- msgid "General Options"
37
- msgstr "Opciones Generales"
38
-
39
- #: lib/admin.php:194
40
- msgid "Template to use"
41
- msgstr "Plantilla a utilizar"
42
-
43
- #: lib/admin.php:210
44
- msgid "Embed Max-Width"
45
- msgstr "Anchura máxima del incrustado"
46
-
47
- #: lib/admin.php:211
48
- msgid "Number of Photos <br>on Embedded Albums"
49
- msgstr "Número de fotos<br>en álbumes incrustados"
50
-
51
- #: lib/admin.php:212
52
- msgid "Show follow button <br>on Embedded Profiles"
53
- msgstr "Mostrar botón de seguir<br>en los perfiles incrustados"
54
-
55
- #: lib/admin.php:214
56
- msgid "Embedded Fan Pages"
57
- msgstr "Páginas de fans incrustado"
58
-
59
- #: lib/admin.php:215
60
- msgid "Show like button"
61
- msgstr "Mostrar botón “ME GUSTA”"
62
-
63
- #: lib/admin.php:216
64
- msgid "Show latest posts"
65
- msgstr "Mostrar publicaciones recientes"
66
-
67
- #: lib/admin.php:217
68
- msgid "Number of posts"
69
- msgstr "Número de Posts"
70
-
71
- #: lib/admin.php:218
72
- msgid "Show events on local time"
73
- msgstr "Mostrar eventos en hora local"
74
-
75
- #: lib/admin.php:220
76
- msgid "Raw Embedded Options"
77
- msgstr "Opciones de Incrustado en crudo"
78
-
79
- #: lib/admin.php:221
80
- msgid "Embed Videos Raw"
81
- msgstr "Incrustar Videos en Crudo"
82
-
83
- #: lib/admin.php:222
84
- msgid "Embed Photos Raw"
85
- msgstr "Incrustar Fotos en Crudo"
86
-
87
- #: lib/admin.php:223
88
- msgid "Use Facebook embed code on raw videos"
89
- msgstr "Usar el código de Facebook para incrustar videos en crudo"
90
-
91
- #: lib/admin.php:230
92
- msgid "Advanced Options"
93
- msgstr "Opciones Avanzadas"
94
-
95
- #: lib/admin.php:231
96
- msgid "Enqueue Styles"
97
- msgstr "Registrar el css del plugin"
98
-
99
- #: lib/admin.php:232
100
- msgid "Add fb-root on top of content"
101
- msgstr "Añadir raíz de fb en la parte superior contenido"
102
-
103
- #: lib/admin.php:233
104
- msgid "Enqueue Lightbox script"
105
- msgstr "Registrar el script de Lightbox"
106
-
107
- #: lib/admin.php:234
108
- msgid "Enqueue WPEmbedFB script"
109
- msgstr "Registrar el script del plugin"
110
-
111
- #: lib/admin.php:235
112
- msgid "Enqueue Facebook SDK"
113
- msgstr "Registrar el script SDK de Facebook"
114
-
115
- #: lib/admin.php:240
116
- msgid "Save"
117
- msgstr "Guardar"
118
-
119
- #: lib/admin.php:245
120
- msgid "Premium Version Available"
121
- msgstr "Versión Premium disponible"
122
-
123
- #: lib/admin.php:247
124
- msgid "Only $6.99 USD"
125
- msgstr "Sólo $6,99 USD"
126
-
127
- #: lib/admin.php:250
128
- msgid "Check it out"
129
- msgstr "Échale un vistazo!"
130
-
131
- #: lib/admin.php:254
132
- msgid "Events with cover"
133
- msgstr "Eventos con cubierta"
134
-
135
- #: lib/admin.php:257
136
- msgid "Fan Page Full Embed"
137
- msgstr "Incrustado de Página Completa"
138
-
139
- #: lib/admin.php:260
140
- msgid "One Year Premium Support"
141
- msgstr "Soporte Premium por un año"
142
-
143
- #: lib/admin.php:265
144
- msgid "More information"
145
- msgstr "Más información"
146
-
147
- #: lib/admin.php:268
148
- msgid "Plugin Web Site"
149
- msgstr "Sitio Web del Plugin"
150
-
151
- #: lib/core.php:218
152
- msgid "Add Facebook App ID and Secret on admin to make this plugin work."
153
- msgstr ""
154
- "Agrega el Facebook App ID y Secret en admin para que este plugin funcione."
155
-
156
- #: lib/core.php:219
157
- msgid "WP Embed Facebook Settings"
158
- msgstr "Opciones de WP Embed Facebook"
159
-
160
- #: lib/core.php:220
161
- msgid "Your Facebook Apps"
162
- msgstr "Sus aplicaciones de Facebook"
163
-
164
- #: lib/core.php:292
165
- msgid "Error"
166
- msgstr "Error"
167
-
168
- #: lib/core.php:434
169
- #, php-format
170
- msgid "%d people like this."
171
- msgstr "a %d personas les gusta."
172
-
173
- #: templates/classic/event.php:33 templates/default/event.php:30
174
- #: templates/default/event.php:33
175
- msgid "@ "
176
- msgstr "en: "
177
-
178
- #: templates/classic/event.php:37 templates/default/event.php:37
179
- msgid "Creator: "
180
- msgstr "Creador: "
181
-
182
- #: templates/default/com-page.php:23 templates/default/com-page.php:24
183
- #: templates/default/page.php:37 templates/default/page.php:38
184
- msgid "Web Site"
185
- msgstr "Sitio Web"
186
-
187
- #. Plugin Name of the plugin/theme
188
- msgid "WP Embed Facebook"
189
- msgstr "WP Embed Facebook"
190
-
191
- #. Plugin URI of the plugin/theme
192
- msgid "http://www.wpembedfb.com"
193
- msgstr "http://www.wpembedfb.com"
194
-
195
- #. Description of the plugin/theme
196
- msgid ""
197
- "Embed a Facebook video, photo, album, event, page, profile, or post. Copy "
198
- "any facebook url to a single line on your post, or use shortcode "
199
- "[facebook='url' width='' ] more info at <a href=\"http://www.wpembedfb.com\" "
200
- "title=\"plugin website\">www.wpembedfb.com</a>"
201
- msgstr ""
202
- "Incrustar un video, Foto, álbum, evento, página, perfil o publicación de "
203
- "Facebook. Copia cualquier url de Facebook en una sola línea en su Post, o "
204
- "utiliza el shortcode [facebook = ‘url’ width =‘’] más info en <a "
205
- "href=“http://www.wpembedfb.com” title=“plugin website”>www.wpembedfb.com</a>"
206
-
207
- #. Author of the plugin/theme
208
- msgid "Miguel Sirvent"
209
- msgstr ""
210
-
211
- #. Author URI of the plugin/theme
212
- msgid "http://profiles.wordpress.org/poxtron/"
213
- msgstr ""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lang/wp-embed-facebook-es_MX.mo DELETED
Binary file
lang/wp-embed-facebook-es_MX.po DELETED
@@ -1,213 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
4
- "Project-Id-Version: WP Embed Facebook\n"
5
- "POT-Creation-Date: 2015-08-04 20:33-0500\n"
6
- "PO-Revision-Date: 2015-08-04 20:42-0500\n"
7
- "Language-Team: Miguel Sirvent <miguel.sirvent@gmail.com>\n"
8
- "MIME-Version: 1.0\n"
9
- "Content-Type: text/plain; charset=UTF-8\n"
10
- "Content-Transfer-Encoding: 8bit\n"
11
- "X-Generator: Poedit 1.8.4\n"
12
- "X-Poedit-Basepath: ..\n"
13
- "X-Poedit-WPHeader: wp-embed-facebook.php\n"
14
- "X-Poedit-SourceCharset: UTF-8\n"
15
- "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
16
- "esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
17
- "_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
18
- "Last-Translator: Miguel Sirvent <miguel.sirvent@gmail.com>\n"
19
- "Language: es\n"
20
- "X-Poedit-SearchPath-0: .\n"
21
- "X-Poedit-SearchPathExcluded-0: *.js\n"
22
-
23
- #: lib/admin.php:187
24
- msgid "Facebook application data"
25
- msgstr "Datos de la Aplicación de Facebook\t"
26
-
27
- #: lib/admin.php:188
28
- msgid "App ID"
29
- msgstr "ID de la App"
30
-
31
- #: lib/admin.php:189
32
- msgid "App Secret"
33
- msgstr "App Secret"
34
-
35
- #: lib/admin.php:192
36
- msgid "General Options"
37
- msgstr "Opciones Generales"
38
-
39
- #: lib/admin.php:194
40
- msgid "Template to use"
41
- msgstr "Plantilla a utilizar"
42
-
43
- #: lib/admin.php:210
44
- msgid "Embed Max-Width"
45
- msgstr "Anchura máxima del incrustado"
46
-
47
- #: lib/admin.php:211
48
- msgid "Number of Photos <br>on Embedded Albums"
49
- msgstr "Número de fotos<br>en álbumes incrustados"
50
-
51
- #: lib/admin.php:212
52
- msgid "Show follow button <br>on Embedded Profiles"
53
- msgstr "Mostrar botón de seguir<br>en los perfiles incrustados"
54
-
55
- #: lib/admin.php:214
56
- msgid "Embedded Fan Pages"
57
- msgstr "Páginas de fans incrustado"
58
-
59
- #: lib/admin.php:215
60
- msgid "Show like button"
61
- msgstr "Mostrar botón “ME GUSTA”"
62
-
63
- #: lib/admin.php:216
64
- msgid "Show latest posts"
65
- msgstr "Mostrar publicaciones recientes"
66
-
67
- #: lib/admin.php:217
68
- msgid "Number of posts"
69
- msgstr "Número de Posts"
70
-
71
- #: lib/admin.php:218
72
- msgid "Show events on local time"
73
- msgstr "Mostrar eventos en hora local"
74
-
75
- #: lib/admin.php:220
76
- msgid "Raw Embedded Options"
77
- msgstr "Opciones de Incrustado en crudo"
78
-
79
- #: lib/admin.php:221
80
- msgid "Embed Videos Raw"
81
- msgstr "Incrustar Videos en Crudo"
82
-
83
- #: lib/admin.php:222
84
- msgid "Embed Photos Raw"
85
- msgstr "Incrustar Fotos en Crudo"
86
-
87
- #: lib/admin.php:223
88
- msgid "Use Facebook embed code on raw videos"
89
- msgstr "Usar el código de Facebook para incrustar videos en crudo"
90
-
91
- #: lib/admin.php:230
92
- msgid "Advanced Options"
93
- msgstr "Opciones Avanzadas"
94
-
95
- #: lib/admin.php:231
96
- msgid "Enqueue Styles"
97
- msgstr "Registrar el css del plugin"
98
-
99
- #: lib/admin.php:232
100
- msgid "Add fb-root on top of content"
101
- msgstr "Añadir raíz de fb en la parte superior contenido"
102
-
103
- #: lib/admin.php:233
104
- msgid "Enqueue Lightbox script"
105
- msgstr "Registrar el script de Lightbox"
106
-
107
- #: lib/admin.php:234
108
- msgid "Enqueue WPEmbedFB script"
109
- msgstr "Registrar el script del plugin"
110
-
111
- #: lib/admin.php:235
112
- msgid "Enqueue Facebook SDK"
113
- msgstr "Registrar el script SDK de Facebook"
114
-
115
- #: lib/admin.php:240
116
- msgid "Save"
117
- msgstr "Guardar"
118
-
119
- #: lib/admin.php:245
120
- msgid "Premium Version Available"
121
- msgstr "Versión Premium disponible"
122
-
123
- #: lib/admin.php:247
124
- msgid "Only $6.99 USD"
125
- msgstr "Sólo $6,99 USD"
126
-
127
- #: lib/admin.php:250
128
- msgid "Check it out"
129
- msgstr "Échale un vistazo!"
130
-
131
- #: lib/admin.php:254
132
- msgid "Events with cover"
133
- msgstr "Eventos con cubierta"
134
-
135
- #: lib/admin.php:257
136
- msgid "Fan Page Full Embed"
137
- msgstr "Incrustado de Página Completa"
138
-
139
- #: lib/admin.php:260
140
- msgid "One Year Premium Support"
141
- msgstr "Soporte Premium por un año"
142
-
143
- #: lib/admin.php:265
144
- msgid "More information"
145
- msgstr "Más información"
146
-
147
- #: lib/admin.php:268
148
- msgid "Plugin Web Site"
149
- msgstr "Sitio Web del Plugin"
150
-
151
- #: lib/core.php:218
152
- msgid "Add Facebook App ID and Secret on admin to make this plugin work."
153
- msgstr ""
154
- "Agrega el Facebook App ID y Secret en admin para que este plugin funcione."
155
-
156
- #: lib/core.php:219
157
- msgid "WP Embed Facebook Settings"
158
- msgstr "Opciones de WP Embed Facebook"
159
-
160
- #: lib/core.php:220
161
- msgid "Your Facebook Apps"
162
- msgstr "Sus aplicaciones de Facebook"
163
-
164
- #: lib/core.php:292
165
- msgid "Error"
166
- msgstr "Error"
167
-
168
- #: lib/core.php:434
169
- #, php-format
170
- msgid "%d people like this."
171
- msgstr "a %d personas les gusta."
172
-
173
- #: templates/classic/event.php:33 templates/default/event.php:30
174
- #: templates/default/event.php:33
175
- msgid "@ "
176
- msgstr "en: "
177
-
178
- #: templates/classic/event.php:37 templates/default/event.php:37
179
- msgid "Creator: "
180
- msgstr "Creador: "
181
-
182
- #: templates/default/com-page.php:23 templates/default/com-page.php:24
183
- #: templates/default/page.php:37 templates/default/page.php:38
184
- msgid "Web Site"
185
- msgstr "Sitio Web"
186
-
187
- #. Plugin Name of the plugin/theme
188
- msgid "WP Embed Facebook"
189
- msgstr "WP Embed Facebook"
190
-
191
- #. Plugin URI of the plugin/theme
192
- msgid "http://www.wpembedfb.com"
193
- msgstr "http://www.wpembedfb.com"
194
-
195
- #. Description of the plugin/theme
196
- msgid ""
197
- "Embed a Facebook video, photo, album, event, page, profile, or post. Copy "
198
- "any facebook url to a single line on your post, or use shortcode "
199
- "[facebook='url' width='' ] more info at <a href=\"http://www.wpembedfb.com\" "
200
- "title=\"plugin website\">www.wpembedfb.com</a>"
201
- msgstr ""
202
- "Incrustar un video, Foto, álbum, evento, página, perfil o publicación de "
203
- "Facebook. Copia cualquier url de Facebook en una sola línea en su Post, o "
204
- "utiliza el shortcode [facebook = ‘url’ width =‘’] más info en <a "
205
- "href=“http://www.wpembedfb.com” title=“plugin website”>www.wpembedfb.com</a>"
206
-
207
- #. Author of the plugin/theme
208
- msgid "Miguel Sirvent"
209
- msgstr ""
210
-
211
- #. Author URI of the plugin/theme
212
- msgid "http://profiles.wordpress.org/poxtron/"
213
- msgstr ""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lang/wp-embed-facebook.pot CHANGED
@@ -3,14 +3,14 @@ msgid ""
3
  msgstr ""
4
  "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
5
  "Project-Id-Version: WP Embed Facebook\n"
6
- "POT-Creation-Date: 2015-10-10 14:43-0500\n"
7
- "PO-Revision-Date: 2015-08-04 20:31-0500\n"
8
  "Last-Translator: Miguel Sirvent <miguel.sirvent@gmail.com>\n"
9
  "Language-Team: Miguel Sirvent <miguel.sirvent@gmail.com>\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
- "X-Generator: Poedit 1.8.5\n"
14
  "X-Poedit-Basepath: ..\n"
15
  "X-Poedit-WPHeader: wp-embed-facebook.php\n"
16
  "X-Poedit-SourceCharset: UTF-8\n"
@@ -20,219 +20,277 @@ msgstr ""
20
  "X-Poedit-SearchPath-0: .\n"
21
  "X-Poedit-SearchPathExcluded-0: *.js\n"
22
 
23
- #: lib/class-wp-embed-fb-admin.php:217
24
- msgid "Facebook application data"
25
  msgstr ""
26
 
27
- #: lib/class-wp-embed-fb-admin.php:218
28
- msgid "App ID"
29
- msgstr ""
30
-
31
- #: lib/class-wp-embed-fb-admin.php:219
32
- msgid "App Secret"
33
- msgstr ""
34
-
35
- #: lib/class-wp-embed-fb-admin.php:222
36
- msgid "General "
37
- msgstr ""
38
-
39
- #: lib/class-wp-embed-fb-admin.php:224
40
- msgid "Template to use"
41
  msgstr ""
42
 
43
- #: lib/class-wp-embed-fb-admin.php:240
44
- msgid "Embed Max-Width"
45
  msgstr ""
46
 
47
  #: lib/class-wp-embed-fb-admin.php:243
48
- msgid "Album "
49
  msgstr ""
50
 
51
  #: lib/class-wp-embed-fb-admin.php:244
52
- msgid "Number of Photos <br>on Embedded Albums"
 
 
 
 
53
  msgstr ""
54
 
55
- #: lib/class-wp-embed-fb-admin.php:247
56
- msgid "Event "
57
  msgstr ""
58
 
59
- #: lib/class-wp-embed-fb-admin.php:248
60
- msgid "Show events on local time"
61
  msgstr ""
62
 
63
  #: lib/class-wp-embed-fb-admin.php:251
64
- msgid "Pages "
65
  msgstr ""
66
 
67
  #: lib/class-wp-embed-fb-admin.php:252
68
- msgid "Embed Pages as Social Plugins"
69
  msgstr ""
70
 
71
  #: lib/class-wp-embed-fb-admin.php:253
72
- msgid "Show like button"
73
  msgstr ""
74
 
75
  #: lib/class-wp-embed-fb-admin.php:254
76
- msgid "Show latest posts"
77
  msgstr ""
78
 
79
  #: lib/class-wp-embed-fb-admin.php:255
80
- msgid "Number of posts"
81
  msgstr ""
82
 
83
- #: lib/class-wp-embed-fb-admin.php:258
84
- msgid "Photo "
85
  msgstr ""
86
 
87
- #: lib/class-wp-embed-fb-admin.php:259
88
- msgid "Embed Photos as Social Plugins"
89
  msgstr ""
90
 
91
  #: lib/class-wp-embed-fb-admin.php:262
92
- msgid "Post "
93
  msgstr ""
94
 
95
  #: lib/class-wp-embed-fb-admin.php:263
96
- msgid "Embed Posts as Social Plugins"
 
 
97
  msgstr ""
98
 
99
- #: lib/class-wp-embed-fb-admin.php:266
100
- msgid "Profile "
101
  msgstr ""
102
 
103
- #: lib/class-wp-embed-fb-admin.php:267
104
- msgid "Show follow button <br>on Embedded Profiles"
105
  msgstr ""
106
 
107
- #: lib/class-wp-embed-fb-admin.php:270
108
- msgid "Video "
109
  msgstr ""
110
 
111
- #: lib/class-wp-embed-fb-admin.php:271
112
- msgid "Embed Videos as Social Plugins"
113
  msgstr ""
114
 
115
- #: lib/class-wp-embed-fb-admin.php:272
116
- msgid "Use Posts social plugin"
117
  msgstr ""
118
 
119
- #: lib/class-wp-embed-fb-admin.php:273
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
120
  msgid "Force 16:9 ratio"
121
  msgstr ""
122
 
123
- #: lib/class-wp-embed-fb-admin.php:282
 
 
 
 
 
 
 
 
124
  msgid "Advanced "
125
  msgstr ""
126
 
127
- #: lib/class-wp-embed-fb-admin.php:283
128
  msgid "Enqueue Styles"
129
  msgstr ""
130
 
131
- #: lib/class-wp-embed-fb-admin.php:284
132
  msgid "Add fb-root on top of content"
133
  msgstr ""
134
 
135
- #: lib/class-wp-embed-fb-admin.php:285
136
  msgid "Enqueue Lightbox script"
137
  msgstr ""
138
 
139
- #: lib/class-wp-embed-fb-admin.php:286
140
  msgid "Enqueue WPEmbedFB script"
141
  msgstr ""
142
 
143
- #: lib/class-wp-embed-fb-admin.php:287
144
  msgid "Enqueue Facebook SDK"
145
  msgstr ""
146
 
147
- #: lib/class-wp-embed-fb-admin.php:291
148
- msgid "All options can be overwritten using the [facebook=url ]"
149
  msgstr ""
150
 
151
- #: lib/class-wp-embed-fb-admin.php:293
152
  msgid "Save"
153
  msgstr ""
154
 
155
- #: lib/class-wp-embed-fb-admin.php:300
156
- msgid "Keep this plugin's core free and accessible to all."
157
  msgstr ""
158
 
159
- #: lib/class-wp-embed-fb-admin.php:305
160
  msgid "Premium Extension Available"
161
  msgstr ""
162
 
163
- #: lib/class-wp-embed-fb-admin.php:308
164
- msgid "Embed a Facebook Page with all its details."
 
 
 
 
165
  msgstr ""
166
 
167
- #: lib/class-wp-embed-fb-admin.php:309
168
- msgid "Embed an Event with all its details."
169
  msgstr ""
170
 
171
- #: lib/class-wp-embed-fb-admin.php:310
172
  msgid "One Year Premium Support"
173
  msgstr ""
174
 
175
- #: lib/class-wp-embed-fb-admin.php:312
 
 
 
 
176
  msgid "Plus new features cooking"
177
  msgstr ""
178
 
179
- #: lib/class-wp-embed-fb-admin.php:315
180
- msgid "Upcoming events widget, events with maps..."
 
 
181
  msgstr ""
182
 
183
- #: lib/class-wp-embed-fb-admin.php:319
184
- msgid "Only $6.99 USD"
185
  msgstr ""
186
 
187
- #: lib/class-wp-embed-fb-admin.php:322
188
- msgid "Check it out"
189
  msgstr ""
190
 
191
- #: lib/class-wp-embed-fb-admin.php:326
192
  msgid "More information"
193
  msgstr ""
194
 
195
- #: lib/class-wp-embed-fb.php:108 lib/class-wp-embed-fb.php:144
196
- msgid "Code"
 
 
 
 
197
  msgstr ""
198
 
199
- #: lib/class-wp-embed-fb.php:109 lib/class-wp-embed-fb.php:145
200
- #: lib/class-wp-embed-fb.php:329
201
- msgid "Error"
202
  msgstr ""
203
 
204
- #: lib/class-wp-embed-fb.php:155
205
- msgid "Add Facebook App ID and Secret on admin to make this plugin work."
206
  msgstr ""
207
 
208
- #: lib/class-wp-embed-fb.php:156
209
- msgid "WP Embed Facebook Settings"
210
  msgstr ""
211
 
212
- #: lib/class-wp-embed-fb.php:157
213
- msgid "Your Facebook Apps"
 
 
 
 
 
214
  msgstr ""
215
 
216
- #: templates/classic/com-page.php:26 templates/classic/page.php:45
217
- #: templates/classic/post.php:20 templates/default/com-page.php:26
218
- #: templates/default/page.php:45 templates/default/post.php:20
219
  #, php-format
220
  msgid "%d people like this."
221
  msgstr ""
222
 
223
- #: templates/classic/com-page.php:32 templates/classic/com-page.php:33
224
- #: templates/classic/page.php:35 templates/classic/page.php:36
225
- #: templates/default/com-page.php:32 templates/default/com-page.php:33
226
- #: templates/default/page.php:35 templates/default/page.php:36
227
  msgid "Web Site"
228
  msgstr ""
229
 
230
- #: templates/classic/event.php:28 templates/classic/event.php:31
231
- #: templates/default/event.php:28 templates/default/event.php:31
232
  msgid "@ "
233
  msgstr ""
234
 
235
- #: templates/classic/event.php:36 templates/default/event.php:36
236
  msgid "Creator: "
237
  msgstr ""
238
 
@@ -241,6 +299,7 @@ msgid "WP Embed Facebook"
241
  msgstr ""
242
 
243
  #. Plugin URI of the plugin/theme
 
244
  msgid "http://www.wpembedfb.com"
245
  msgstr ""
246
 
@@ -248,14 +307,10 @@ msgstr ""
248
  msgid ""
249
  "Embed any public Facebook video, photo, album, event, page, profile, or "
250
  "post. Copy the facebook url to a single line on your post, or use shortcode "
251
- "[facebook=url ] more information at <a href=\"http://www.wpembedfb.com\" "
252
  "title=\"plugin website\">www.wpembedfb.com</a>"
253
  msgstr ""
254
 
255
  #. Author of the plugin/theme
256
  msgid "Miguel Sirvent"
257
  msgstr ""
258
-
259
- #. Author URI of the plugin/theme
260
- msgid "http://profiles.wordpress.org/poxtron/"
261
- msgstr ""
3
  msgstr ""
4
  "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
5
  "Project-Id-Version: WP Embed Facebook\n"
6
+ "POT-Creation-Date: 2016-01-27 23:00-0600\n"
7
+ "PO-Revision-Date: 2016-01-27 22:59-0600\n"
8
  "Last-Translator: Miguel Sirvent <miguel.sirvent@gmail.com>\n"
9
  "Language-Team: Miguel Sirvent <miguel.sirvent@gmail.com>\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
+ "X-Generator: Poedit 1.8.6\n"
14
  "X-Poedit-Basepath: ..\n"
15
  "X-Poedit-WPHeader: wp-embed-facebook.php\n"
16
  "X-Poedit-SourceCharset: UTF-8\n"
20
  "X-Poedit-SearchPath-0: .\n"
21
  "X-Poedit-SearchPathExcluded-0: *.js\n"
22
 
23
+ #: lib/class-wp-embed-fb-admin.php:227 lib/class-wp-embed-fb-admin.php:278
24
+ msgid "General"
25
  msgstr ""
26
 
27
+ #: lib/class-wp-embed-fb-admin.php:228
28
+ msgid "Custom Embeds"
 
 
 
 
 
 
 
 
 
 
 
 
29
  msgstr ""
30
 
31
+ #: lib/class-wp-embed-fb-admin.php:229
32
+ msgid "Geeky Stuff"
33
  msgstr ""
34
 
35
  #: lib/class-wp-embed-fb-admin.php:243
36
+ msgid "For all embeds"
37
  msgstr ""
38
 
39
  #: lib/class-wp-embed-fb-admin.php:244
40
+ msgid "Maximum width in pixels"
41
+ msgstr ""
42
+
43
+ #: lib/class-wp-embed-fb-admin.php:245
44
+ msgid "Like Buttons Language"
45
  msgstr ""
46
 
47
+ #: lib/class-wp-embed-fb-admin.php:249
48
+ msgid "Social Plugin Defaults"
49
  msgstr ""
50
 
51
+ #: lib/class-wp-embed-fb-admin.php:250
52
+ msgid "Page Plugin"
53
  msgstr ""
54
 
55
  #: lib/class-wp-embed-fb-admin.php:251
56
+ msgid "Show Friend's Faces"
57
  msgstr ""
58
 
59
  #: lib/class-wp-embed-fb-admin.php:252
60
+ msgid "Use Small Header"
61
  msgstr ""
62
 
63
  #: lib/class-wp-embed-fb-admin.php:253
64
+ msgid "Hide Cover Photo"
65
  msgstr ""
66
 
67
  #: lib/class-wp-embed-fb-admin.php:254
68
+ msgid "Show Page Posts"
69
  msgstr ""
70
 
71
  #: lib/class-wp-embed-fb-admin.php:255
72
+ msgid "Maximum height in pixels"
73
  msgstr ""
74
 
75
+ #: lib/class-wp-embed-fb-admin.php:256 lib/class-wp-embed-fb-admin.php:306
76
+ msgid "Videos"
77
  msgstr ""
78
 
79
+ #: lib/class-wp-embed-fb-admin.php:257
80
+ msgid "Embed Video as Post"
81
  msgstr ""
82
 
83
  #: lib/class-wp-embed-fb-admin.php:262
84
+ msgid "By default you can only embed public pages, videos, photos and posts."
85
  msgstr ""
86
 
87
  #: lib/class-wp-embed-fb-admin.php:263
88
+ msgid ""
89
+ "To embed embed albums, events, profiles and raw video you will need a "
90
+ "Facebook App."
91
  msgstr ""
92
 
93
+ #: lib/class-wp-embed-fb-admin.php:267
94
+ msgid "Facebook credentials"
95
  msgstr ""
96
 
97
+ #: lib/class-wp-embed-fb-admin.php:268
98
+ msgid "App ID"
99
  msgstr ""
100
 
101
+ #: lib/class-wp-embed-fb-admin.php:269
102
+ msgid "App Secret"
103
  msgstr ""
104
 
105
+ #: lib/class-wp-embed-fb-admin.php:273
106
+ msgid "Your Facebook Apps"
107
  msgstr ""
108
 
109
+ #: lib/class-wp-embed-fb-admin.php:289
110
+ msgid "Albums"
111
  msgstr ""
112
 
113
+ #: lib/class-wp-embed-fb-admin.php:290
114
+ msgid "Number of Photos"
115
+ msgstr ""
116
+
117
+ #: lib/class-wp-embed-fb-admin.php:292
118
+ msgid "Events"
119
+ msgstr ""
120
+
121
+ #: lib/class-wp-embed-fb-admin.php:293
122
+ msgid "Use WordPress timezone string to calculate the date"
123
+ msgstr ""
124
+
125
+ #: lib/class-wp-embed-fb-admin.php:295
126
+ msgid "Pages"
127
+ msgstr ""
128
+
129
+ #: lib/class-wp-embed-fb-admin.php:296 lib/class-wp-embed-fb-admin.php:301
130
+ #: lib/class-wp-embed-fb-admin.php:304 lib/class-wp-embed-fb-admin.php:307
131
+ msgid "Use custom embed by default"
132
+ msgstr ""
133
+
134
+ #: lib/class-wp-embed-fb-admin.php:297
135
+ msgid "Show like button"
136
+ msgstr ""
137
+
138
+ #: lib/class-wp-embed-fb-admin.php:298
139
+ msgid "Number of posts"
140
+ msgstr ""
141
+
142
+ #: lib/class-wp-embed-fb-admin.php:300
143
+ msgid "Photo"
144
+ msgstr ""
145
+
146
+ #: lib/class-wp-embed-fb-admin.php:303
147
+ msgid "Posts"
148
+ msgstr ""
149
+
150
+ #: lib/class-wp-embed-fb-admin.php:308
151
  msgid "Force 16:9 ratio"
152
  msgstr ""
153
 
154
+ #: lib/class-wp-embed-fb-admin.php:311
155
+ msgid "Profiles"
156
+ msgstr ""
157
+
158
+ #: lib/class-wp-embed-fb-admin.php:312
159
+ msgid "Show follow button"
160
+ msgstr ""
161
+
162
+ #: lib/class-wp-embed-fb-admin.php:320
163
  msgid "Advanced "
164
  msgstr ""
165
 
166
+ #: lib/class-wp-embed-fb-admin.php:321
167
  msgid "Enqueue Styles"
168
  msgstr ""
169
 
170
+ #: lib/class-wp-embed-fb-admin.php:322
171
  msgid "Add fb-root on top of content"
172
  msgstr ""
173
 
174
+ #: lib/class-wp-embed-fb-admin.php:323
175
  msgid "Enqueue Lightbox script"
176
  msgstr ""
177
 
178
+ #: lib/class-wp-embed-fb-admin.php:324
179
  msgid "Enqueue WPEmbedFB script"
180
  msgstr ""
181
 
182
+ #: lib/class-wp-embed-fb-admin.php:325
183
  msgid "Enqueue Facebook SDK"
184
  msgstr ""
185
 
186
+ #: lib/class-wp-embed-fb-admin.php:326
187
+ msgid "Force app token"
188
  msgstr ""
189
 
190
+ #: lib/class-wp-embed-fb-admin.php:331
191
  msgid "Save"
192
  msgstr ""
193
 
194
+ #: lib/class-wp-embed-fb-admin.php:333
195
+ msgid "All options can be overwritten using the [facebook url ]"
196
  msgstr ""
197
 
198
+ #: lib/class-wp-embed-fb-admin.php:341
199
  msgid "Premium Extension Available"
200
  msgstr ""
201
 
202
+ #: lib/class-wp-embed-fb-admin.php:344
203
+ msgid "Shortcodes for embedding a full event or page."
204
+ msgstr ""
205
+
206
+ #: lib/class-wp-embed-fb-admin.php:346
207
+ msgid "Default event template shows admins and address."
208
  msgstr ""
209
 
210
+ #: lib/class-wp-embed-fb-admin.php:347
211
+ msgid "Albums with more that 100 photos."
212
  msgstr ""
213
 
214
+ #: lib/class-wp-embed-fb-admin.php:349
215
  msgid "One Year Premium Support"
216
  msgstr ""
217
 
218
+ #: lib/class-wp-embed-fb-admin.php:352
219
+ msgid "Check it out"
220
+ msgstr ""
221
+
222
+ #: lib/class-wp-embed-fb-admin.php:355
223
  msgid "Plus new features cooking"
224
  msgstr ""
225
 
226
+ #: lib/class-wp-embed-fb-admin.php:358
227
+ msgid ""
228
+ "Embed personal data, shortcode creator, widgets, special templates for "
229
+ "albums and pages"
230
  msgstr ""
231
 
232
+ #: lib/class-wp-embed-fb-admin.php:363
233
+ msgid "Keep this plugin's core free and accessible to all."
234
  msgstr ""
235
 
236
+ #: lib/class-wp-embed-fb-admin.php:370
237
+ msgid "Donate"
238
  msgstr ""
239
 
240
+ #: lib/class-wp-embed-fb-admin.php:374
241
  msgid "More information"
242
  msgstr ""
243
 
244
+ #: lib/class-wp-embed-fb-plugin.php:171
245
+ #, php-format
246
+ msgid ""
247
+ "This free plugin has taken <strong>thousands of hours</strong> to develop "
248
+ "and maintain consider making a <a href=\"%s\">donation</a> or leaving a <a "
249
+ "href=\"%s\">review</a> do nott let us loose faith in humanity."
250
  msgstr ""
251
 
252
+ #: lib/class-wp-embed-fb-plugin.php:174
253
+ msgid ""
254
+ "To embed albums, events, profiles and raw video you will need a Facebook App"
255
  msgstr ""
256
 
257
+ #: lib/class-wp-embed-fb-plugin.php:176
258
+ msgid "settings."
259
  msgstr ""
260
 
261
+ #: lib/class-wp-embed-fb.php:132 lib/class-wp-embed-fb.php:171
262
+ msgid "Code"
263
  msgstr ""
264
 
265
+ #: lib/class-wp-embed-fb.php:133 lib/class-wp-embed-fb.php:172
266
+ #: lib/class-wp-embed-fb.php:347
267
+ msgid "Error"
268
+ msgstr ""
269
+
270
+ #: lib/class-wp-embed-fb.php:391
271
+ msgid "This is not a valid facebook url"
272
  msgstr ""
273
 
274
+ #: templates/classic/com-page.php:19 templates/classic/page.php:36
275
+ #: templates/classic/post.php:20 templates/default/com-page.php:19
276
+ #: templates/default/page.php:38 templates/default/post.php:20
277
  #, php-format
278
  msgid "%d people like this."
279
  msgstr ""
280
 
281
+ #: templates/classic/com-page.php:25 templates/classic/com-page.php:26
282
+ #: templates/classic/page.php:26 templates/classic/page.php:27
283
+ #: templates/default/com-page.php:25 templates/default/com-page.php:26
284
+ #: templates/default/page.php:28 templates/default/page.php:29
285
  msgid "Web Site"
286
  msgstr ""
287
 
288
+ #: templates/classic/event.php:27 templates/classic/event.php:30
289
+ #: templates/default/event.php:27 templates/default/event.php:30
290
  msgid "@ "
291
  msgstr ""
292
 
293
+ #: templates/classic/event.php:34 templates/default/event.php:34
294
  msgid "Creator: "
295
  msgstr ""
296
 
299
  msgstr ""
300
 
301
  #. Plugin URI of the plugin/theme
302
+ #. Author URI of the plugin/theme
303
  msgid "http://www.wpembedfb.com"
304
  msgstr ""
305
 
307
  msgid ""
308
  "Embed any public Facebook video, photo, album, event, page, profile, or "
309
  "post. Copy the facebook url to a single line on your post, or use shortcode "
310
+ "[facebook url ] more information at <a href=\"http://www.wpembedfb.com\" "
311
  "title=\"plugin website\">www.wpembedfb.com</a>"
312
  msgstr ""
313
 
314
  #. Author of the plugin/theme
315
  msgid "Miguel Sirvent"
316
  msgstr ""
 
 
 
 
lib/class-wp-embed-fb-admin.php CHANGED
@@ -19,6 +19,9 @@ class WP_Embed_FB_Admin {
19
  if ( $hook_suffix == 'settings_page_embedfacebook' ) {
20
  wp_enqueue_style( 'wpemfb-admin-css', WP_Embed_FB_Plugin::get_url() . 'lib/admin/admin.css' );
21
  }
 
 
 
22
  }
23
  static function in_admin_footer(){
24
  global $hook_suffix;
@@ -46,7 +49,7 @@ class WP_Embed_FB_Admin {
46
  ?>
47
  <script type="text/javascript">
48
  jQuery(document).on( 'click', '.wpemfb_warning .notice-dismiss', function() {
49
- jQuery.post(ajaxurl, { action: 'close_warning' });
50
  });
51
  </script>
52
  <?php
@@ -69,7 +72,7 @@ class WP_Embed_FB_Admin {
69
  static function section( $title = '' ) {
70
  if ( ! empty( $title ) ) :
71
  ?>
72
- <h4><?php echo $title ?></h4>
73
  <table>
74
  <tbody>
75
  <?php
@@ -245,11 +248,11 @@ class WP_Embed_FB_Admin {
245
  <?php
246
  self::section( __( 'Social Plugin Defaults', 'wp-embed-facebook' ) );
247
  self::field( 'string', '', '---- ' . __( 'Page Plugin', 'wp-embed-facebook' ) . ' ----' );
248
- self::field( 'number', 'wpemfb_page_height', __( 'Maximum height in pixels', 'wp-embed-facebook' ) );
249
  self::field( 'checkbox', 'wpemfb_page_show_faces', __( "Show Friend's Faces", 'wp-embed-facebook' ) );
250
  self::field( 'checkbox', 'wpemfb_page_small_header', __( 'Use Small Header', 'wp-embed-facebook' ) );
251
  self::field( 'checkbox', 'wpemfb_page_hide_cover', __( 'Hide Cover Photo', 'wp-embed-facebook' ) );
252
  self::field( 'checkbox', 'wpemfb_page_show_posts', __( 'Show Page Posts', 'wp-embed-facebook' ) );
 
253
  self::field( 'string', '', '---- ' . __( 'Videos', 'wp-embed-facebook' ) . ' ----' );
254
  self::field( 'checkbox', 'wpemfb_video_as_post', __( 'Embed Video as Post', 'wp-embed-facebook' ) );
255
  self::section();
@@ -262,8 +265,8 @@ class WP_Embed_FB_Admin {
262
  <?php
263
  endif;
264
  self::section( __( 'Facebook credentials', 'wp-embed-facebook' ) );
265
- self::field( 'text', 'wpemfb_app_id', __( 'App ID', 'wp-embed-facebook' ), array( 'required' => 'true' ) );
266
- self::field( 'text', 'wpemfb_app_secret', __( 'App Secret', 'wp-embed-facebook' ), array( 'required' => 'true' ) );
267
  self::section();
268
  ?>
269
  <p><a href="https://developers.facebook.com/apps"
@@ -292,7 +295,6 @@ class WP_Embed_FB_Admin {
292
  self::section( __( "Pages", 'wp-embed-facebook' ) );
293
  self::field( 'checkbox', 'wpemfb_raw_page', __( 'Use custom embed by default', 'wp-embed-facebook' ) );
294
  self::field( 'checkbox', 'wpemfb_show_like', __( 'Show like button', 'wp-embed-facebook' ) );
295
- self::field( 'checkbox', 'wpemfb_show_posts', __( 'Show latest posts', 'wp-embed-facebook' ) );
296
  self::field( 'number', 'wpemfb_max_posts', __( 'Number of posts', 'wp-embed-facebook' ) );
297
  self::section();
298
  self::section( __( "Photo", 'wp-embed-facebook' ) );
@@ -328,7 +330,7 @@ class WP_Embed_FB_Admin {
328
  <input type="submit" name="submit" class="button button-primary alignright"
329
  value="<?php _e( 'Save', 'wp-embed-facebook' ) ?>"/>
330
 
331
- <p><?php _e( 'All options can be overwritten using the [facebook=url ]', 'wp-embed-facebook' ) ?>
332
  <a href="http://www.wpembedfb.com/documentation">shortcode</a></p>
333
  <br>
334
  <br>
@@ -336,35 +338,27 @@ class WP_Embed_FB_Admin {
336
  </div>
337
  <div class="welcome-panel-column welcome-panel-last">
338
  <?php ob_start(); ?>
339
- <h3><?php _e( 'Premium Extension Available', 'wp-embed-facebook' ) ?></h3>
340
  <br>
341
-
342
  <div class="features-list">
343
- <p><?php _e( 'Embed a Facebook Page with all its details.', 'wp-embed-facebook' ) ?></p>
344
 
345
- <p><?php _e( 'Embed an Event with all its details.', 'wp-embed-facebook' ) ?></p>
 
346
 
347
  <p><?php _e( 'One Year Premium Support', 'wp-embed-facebook' ) ?></p>
348
-
 
 
 
349
  <p>
350
  <?php _e( 'Plus new features cooking', 'wp-embed-facebook' ) ?>
351
  <br>
352
  <small>
353
- <?php _e( 'Upcoming events widget, events with maps...', 'wp-embed-facebook' ) ?>
354
  </small>
355
  </p>
356
  </div>
357
- <h2>
358
- <?php _e( 'Only $6.99 USD', 'wp-embed-facebook' ) ?>
359
- <br>
360
- <small
361
- style="font-size: 12px; color: rgb(152, 152, 152)"><?php _e( 'Price will change very soon', 'wp-embed-facebook' ) ?></small>
362
- </h2>
363
- <br>
364
- <a class="button button-red"
365
- href="http://www.wpembedfb.com/premium"><?php _e( 'Check it out', 'wp-embed-facebook' ) ?></a>
366
- <br>
367
- <br>
368
  <hr>
369
  <h4><?php _e( "Keep this plugin's core free and accessible to all.", 'wp-embed-facebook' ) ?></h4>
370
 
19
  if ( $hook_suffix == 'settings_page_embedfacebook' ) {
20
  wp_enqueue_style( 'wpemfb-admin-css', WP_Embed_FB_Plugin::get_url() . 'lib/admin/admin.css' );
21
  }
22
+ wp_enqueue_style('wpemfb-default', WP_Embed_FB_Plugin::get_url().'templates/default/default.css',array(),false);
23
+ wp_enqueue_style('wpemfb-classic', WP_Embed_FB_Plugin::get_url().'templates/classic/classic.css',array(),false);
24
+ wp_enqueue_style('wpemfb-lightbox', WP_Embed_FB_Plugin::get_url().'lib/lightbox2/css/lightbox.css',array(),false);
25
  }
26
  static function in_admin_footer(){
27
  global $hook_suffix;
49
  ?>
50
  <script type="text/javascript">
51
  jQuery(document).on( 'click', '.wpemfb_warning .notice-dismiss', function() {
52
+ jQuery.post(ajaxurl, { action: 'wpemfb_close_warning' });
53
  });
54
  </script>
55
  <?php
72
  static function section( $title = '' ) {
73
  if ( ! empty( $title ) ) :
74
  ?>
75
+ <h3><?php echo $title ?></h3>
76
  <table>
77
  <tbody>
78
  <?php
248
  <?php
249
  self::section( __( 'Social Plugin Defaults', 'wp-embed-facebook' ) );
250
  self::field( 'string', '', '---- ' . __( 'Page Plugin', 'wp-embed-facebook' ) . ' ----' );
 
251
  self::field( 'checkbox', 'wpemfb_page_show_faces', __( "Show Friend's Faces", 'wp-embed-facebook' ) );
252
  self::field( 'checkbox', 'wpemfb_page_small_header', __( 'Use Small Header', 'wp-embed-facebook' ) );
253
  self::field( 'checkbox', 'wpemfb_page_hide_cover', __( 'Hide Cover Photo', 'wp-embed-facebook' ) );
254
  self::field( 'checkbox', 'wpemfb_page_show_posts', __( 'Show Page Posts', 'wp-embed-facebook' ) );
255
+ self::field( 'number', 'wpemfb_page_height', __( 'Maximum height in pixels', 'wp-embed-facebook' ) );
256
  self::field( 'string', '', '---- ' . __( 'Videos', 'wp-embed-facebook' ) . ' ----' );
257
  self::field( 'checkbox', 'wpemfb_video_as_post', __( 'Embed Video as Post', 'wp-embed-facebook' ) );
258
  self::section();
265
  <?php
266
  endif;
267
  self::section( __( 'Facebook credentials', 'wp-embed-facebook' ) );
268
+ self::field( 'text', 'wpemfb_app_id', __( 'App ID', 'wp-embed-facebook' ) );
269
+ self::field( 'text', 'wpemfb_app_secret', __( 'App Secret', 'wp-embed-facebook' ) );
270
  self::section();
271
  ?>
272
  <p><a href="https://developers.facebook.com/apps"
295
  self::section( __( "Pages", 'wp-embed-facebook' ) );
296
  self::field( 'checkbox', 'wpemfb_raw_page', __( 'Use custom embed by default', 'wp-embed-facebook' ) );
297
  self::field( 'checkbox', 'wpemfb_show_like', __( 'Show like button', 'wp-embed-facebook' ) );
 
298
  self::field( 'number', 'wpemfb_max_posts', __( 'Number of posts', 'wp-embed-facebook' ) );
299
  self::section();
300
  self::section( __( "Photo", 'wp-embed-facebook' ) );
330
  <input type="submit" name="submit" class="button button-primary alignright"
331
  value="<?php _e( 'Save', 'wp-embed-facebook' ) ?>"/>
332
 
333
+ <p><?php _e( 'All options can be overwritten using the [facebook url ]', 'wp-embed-facebook' ) ?>
334
  <a href="http://www.wpembedfb.com/documentation">shortcode</a></p>
335
  <br>
336
  <br>
338
  </div>
339
  <div class="welcome-panel-column welcome-panel-last">
340
  <?php ob_start(); ?>
341
+ <h1><?php _e( 'Premium Extension Available', 'wp-embed-facebook' ) ?></h1>
342
  <br>
 
343
  <div class="features-list">
344
+ <p><?php _e( 'Shortcodes for embedding a full event or page.', 'wp-embed-facebook' ) ?></p>
345
 
346
+ <p><?php _e( 'Default event template shows admins and address.', 'wp-embed-facebook' ) ?></p>
347
+ <p><?php _e( 'Albums with more that 100 photos.', 'wp-embed-facebook' ) ?></p>
348
 
349
  <p><?php _e( 'One Year Premium Support', 'wp-embed-facebook' ) ?></p>
350
+ <p>
351
+ <a class="button button-red"
352
+ href="http://www.wpembedfb.com/premium"><?php _e( 'Check it out', 'wp-embed-facebook' ) ?></a>
353
+ </p>
354
  <p>
355
  <?php _e( 'Plus new features cooking', 'wp-embed-facebook' ) ?>
356
  <br>
357
  <small>
358
+ <?php _e( 'Embed personal data, shortcode creator, widgets, special templates for albums and pages', 'wp-embed-facebook' ) ?>
359
  </small>
360
  </p>
361
  </div>
 
 
 
 
 
 
 
 
 
 
 
362
  <hr>
363
  <h4><?php _e( "Keep this plugin's core free and accessible to all.", 'wp-embed-facebook' ) ?></h4>
364
 
lib/class-wp-embed-fb-plugin.php CHANGED
@@ -8,13 +8,6 @@ class WP_Embed_FB_Plugin {
8
  * @var string Plugin url
9
  */
10
  private static $url = null;
11
- /**
12
- * @var string Plugin slug
13
- */
14
- private static $slug = null;
15
- /**
16
- * Save default values to data base
17
- */
18
  static function install(){
19
  $defaults = self::getdefaults();
20
  foreach ($defaults as $option => $value) {
@@ -30,7 +23,8 @@ class WP_Embed_FB_Plugin {
30
  * Delete all plugin options on uninstall
31
  */
32
  static function uninstall(){
33
- $defaults = self::getdefaults();
 
34
  if ( is_multisite() ) {
35
  $sites = wp_get_sites();
36
  foreach ($sites as $site) {
@@ -56,14 +50,13 @@ class WP_Embed_FB_Plugin {
56
  static function getdefaults(){
57
  $locale = get_locale();
58
  if(strpos($locale,'es_') !== false)
59
- $locale = 'es_LA';
60
  return array(
61
  'wpemfb_max_width' => '450',
62
  'wpemfb_max_photos' => '24',
63
- 'wpemfb_max_posts' => '2',
64
- 'wpemfb_show_posts' => 'false',
65
- 'wpemfb_app_id' => '0',
66
- 'wpemfb_app_secret' => '0',
67
  'wpemfb_proportions' => 0.36867,
68
  'wpemfb_height' => '221.202',
69
  'wpemfb_show_like' => 'true',
@@ -99,7 +92,7 @@ class WP_Embed_FB_Plugin {
99
  return true;
100
  }
101
  /**
102
- * load translations and facebook sdk
103
  */
104
  static function init(){
105
  if(version_compare(phpversion(), '5.4.0', '<')) {
@@ -108,7 +101,12 @@ class WP_Embed_FB_Plugin {
108
  } elseif(session_status() == PHP_SESSION_NONE) {
109
  session_start();
110
  }
111
- load_plugin_textdomain( 'wp-embed-facebook', false, self::get_slug() . '/lang' );
 
 
 
 
 
112
  }
113
  /**
114
  * Enqueue wp embed facebook styles
@@ -159,14 +157,6 @@ class WP_Embed_FB_Plugin {
159
  return self::$url;
160
  }
161
  }
162
- static function get_slug(){
163
- if(self::$slug){
164
- return self::$slug;
165
- } else {
166
- self::$slug = dirname(dirname(plugin_basename(__FILE__)));
167
- return self::$slug;
168
- }
169
- }
170
  static function fb_root($content){
171
  return '<div id="fb-root"></div>'.PHP_EOL.$content;
172
  }
@@ -174,12 +164,18 @@ class WP_Embed_FB_Plugin {
174
  if(!self::has_fb_app()){
175
  if(get_option('wpemfb_close_warning') == 'false') :
176
  ?>
177
- <div class="error notice wpemfb_warning is-dismissible">
178
- <p><?php _e('Setup Facebook App Id and Secret to access custom embeds.','wp-embed-facebook') ?>
179
- <a href="<?php echo admin_url("options-general.php?page=embedfacebook") ?>">
180
- <?php _e('Settings.','wp-embed-facebook') ?>
181
- </a>
182
- </p>
 
 
 
 
 
 
183
  </div>
184
  <?php
185
  endif;
@@ -187,7 +183,7 @@ class WP_Embed_FB_Plugin {
187
  //TODO rate and buy notice.
188
  }
189
  }
190
- static function close_warning(){
191
  if(current_user_can('manage_options'))
192
  update_option('wpemfb_close_warning','true');
193
  die;
8
  * @var string Plugin url
9
  */
10
  private static $url = null;
 
 
 
 
 
 
 
11
  static function install(){
12
  $defaults = self::getdefaults();
13
  foreach ($defaults as $option => $value) {
23
  * Delete all plugin options on uninstall
24
  */
25
  static function uninstall(){
26
+ $deprecated = array('wpemfb_show_posts'=>'');
27
+ $defaults = self::getdefaults() + $deprecated;
28
  if ( is_multisite() ) {
29
  $sites = wp_get_sites();
30
  foreach ($sites as $site) {
50
  static function getdefaults(){
51
  $locale = get_locale();
52
  if(strpos($locale,'es_') !== false)
53
+ $locale = 'es_LA';//TODO check this is not working as expected
54
  return array(
55
  'wpemfb_max_width' => '450',
56
  'wpemfb_max_photos' => '24',
57
+ 'wpemfb_max_posts' => '0',
58
+ 'wpemfb_app_id' => '',
59
+ 'wpemfb_app_secret' => '',
 
60
  'wpemfb_proportions' => 0.36867,
61
  'wpemfb_height' => '221.202',
62
  'wpemfb_show_like' => 'true',
92
  return true;
93
  }
94
  /**
95
+ * session start if necessary
96
  */
97
  static function init(){
98
  if(version_compare(phpversion(), '5.4.0', '<')) {
101
  } elseif(session_status() == PHP_SESSION_NONE) {
102
  session_start();
103
  }
104
+ }
105
+ /**
106
+ * Load translation file
107
+ */
108
+ static function plugins_loaded(){
109
+ load_plugin_textdomain( 'wp-embed-facebook', false, 'wp-embed-facebook/lang' );
110
  }
111
  /**
112
  * Enqueue wp embed facebook styles
157
  return self::$url;
158
  }
159
  }
 
 
 
 
 
 
 
 
160
  static function fb_root($content){
161
  return '<div id="fb-root"></div>'.PHP_EOL.$content;
162
  }
164
  if(!self::has_fb_app()){
165
  if(get_option('wpemfb_close_warning') == 'false') :
166
  ?>
167
+ <div class="notice wpemfb_warning is-dismissible">
168
+ <h2>WP Embed Facebook</h2>
169
+ <p>
170
+ <?php
171
+ printf(__('This free plugin has taken <strong>thousands of hours</strong> to develop and maintain consider making a <a href="%s">donation</a> or leaving a <a href="%s">review</a> do nott let us loose faith in humanity.',''), 'https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=R8Q85GT3Q8Q26','https://wordpress.org/support/view/plugin-reviews/wp-embed-facebook')
172
+ ?>
173
+ </p>
174
+ <p><?php _e('To embed albums, events, profiles and raw video you will need a Facebook App','wp-embed-facebook') ?>
175
+ <a href="<?php echo admin_url("options-general.php?page=embedfacebook") ?>">
176
+ <?php _e('settings.','wp-embed-facebook') ?>
177
+ </a>
178
+ </p>
179
  </div>
180
  <?php
181
  endif;
183
  //TODO rate and buy notice.
184
  }
185
  }
186
+ static function wpemfb_close_warning(){
187
  if(current_user_can('manage_options'))
188
  update_option('wpemfb_close_warning','true');
189
  die;
lib/class-wp-embed-fb.php CHANGED
@@ -11,16 +11,19 @@ class WP_Embed_FB {
11
  /**
12
  * @var string Theme to use on the embed
13
  */
14
- private static $theme = null;
15
  /**
16
  * @var int|null Number of posts on the page embed
17
  */
18
  static $num_posts = null;
 
 
 
 
19
  /**
20
  * @var null|Sigami_Facebook
21
  */
22
  private static $fbsdk = null;
23
-
24
  static function get_theme(){
25
  if(self::$theme){
26
  return self::$theme;
@@ -49,7 +52,7 @@ class WP_Embed_FB {
49
  }
50
  static function get_fbsdk(){
51
  if( self::$fbsdk && self::$fbsdk instanceof Sigami_Facebook){
52
- if( get_option('wpemfb_force_app_token','true') == 'true' )
53
  self::$fbsdk->setAccessToken(get_option('wpemfb_app_id').'|'.get_option('wpemfb_app_secret'));
54
  return self::$fbsdk;
55
  } else {
@@ -57,13 +60,11 @@ class WP_Embed_FB {
57
  require_once "base_facebook.php";
58
  require_once "class-sigami-facebook.php";
59
  $config = array();
60
- if(WP_Embed_FB_Plugin::has_fb_app()){
61
- $config['appId'] = get_option('wpemfb_app_id');
62
- $config['secret'] = get_option('wpemfb_app_secret');
63
- }
64
  //$config['fileUpload'] = false; // optional
65
  self::$fbsdk = new Sigami_Facebook($config);
66
- if( get_option('wpemfb_force_app_token','true') == 'true' )
67
  self::$fbsdk->setAccessToken(get_option('wpemfb_app_id').'|'.get_option('wpemfb_app_secret'));
68
  return self::$fbsdk;
69
  }
@@ -72,106 +73,112 @@ class WP_Embed_FB {
72
  * Extract fb_id from the url
73
  * @param array $match[2]=url without ' https://www.facebook.com/ '
74
  * @return string Embedded content
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
75
  */
76
- static function fb_embed($match){
77
  $fbsdk = self::get_fbsdk();
78
- if($fbsdk) {
79
- $fb_id = null;
80
- $type = null;
81
- $juice = $match[2];
82
- if (($pos = strpos($juice, "?")) !== FALSE) {
83
- $vars = array();
84
- parse_str(parse_url($juice, PHP_URL_QUERY), $vars);
85
- if(isset($vars['fbid']))
86
- $fb_id = $vars['fbid'];
87
- if(isset($vars['id']))
88
- $fb_id = $vars['id'];
89
- if(isset($vars['v'])) {
90
- $fb_id = $vars['v'];
91
- $type = 'video';
92
- }
93
- if(isset($vars['set'])){
94
- $setArray = explode('.', $vars['set']);
95
- $fb_id = $setArray[1];
96
- $type = 'album';
97
- }
98
- $juice = substr($juice, 0, $pos);
99
  }
100
- $juiceArray = explode('/',trim($juice,'/'));
101
- if(!$fb_id){
102
- $fb_id = end($juiceArray);
 
103
  }
104
- if(in_array('posts',$juiceArray)){
105
- $type = 'post';
106
- if(WP_Embed_FB_Plugin::has_fb_app()){
107
- try{
108
- $data = $fbsdk->api('/'.$juiceArray[0].'?fields=id');
109
- $fb_id = $data['id'].'_'.$fb_id;
110
- } catch(FacebookApiException $e){
111
- $res = '<p><a href="https://www.facebook.com/'.$juice.'" target="_blank" rel="nofollow">https://www.facebook.com/'.$juice.'</a>';
112
- if(is_super_admin()){
113
- $error = $e->getResult();
114
- $res .= '<br><span style="color: #4a0e13">'.__('Code').':&nbsp;'.$error['error']['code'].' '.$type.'</span>';
115
- $res .= '<br><span style="color: #4a0e13">'.__('Error').':&nbsp;'.$error['error']['message'].'</span>';
116
- }
117
- $res .= '</p>';
118
- return $res;
 
 
 
 
119
  }
 
 
120
  }
121
- }elseif(in_array('photos',$juiceArray) || in_array('photo.php',$juiceArray) ){
122
- $type = 'photo';
123
- }elseif(in_array('events',$juiceArray)){
124
- $type = 'event';
125
- }elseif(in_array('videos',$juiceArray)){
126
- $type = 'video';
127
  }
128
- /**
129
- * Filter the embed type.
130
- *
131
- * @since 1.8
132
- *
133
- * @param string $type the embed type.
134
- * @param array $clean url parts of the request.
135
- */
136
- $type = apply_filters('wpemfb_embed_type', $type, $juiceArray);//TODO Check if this works ok with premium
137
- if(!$type){
138
- if(WP_Embed_FB_Plugin::has_fb_app()){
139
- try{
140
- $metadata = $fbsdk->api('/'.$fb_id.'?metadata=1');
141
- $type = $metadata['metadata']['type'];
142
- } catch(FacebookApiException $e){
143
- $res = '<p><a href="https://www.facebook.com/'.$juice.'" target="_blank" rel="nofollow">https://www.facebook.com/'.$juice.'</a>';
144
- if(is_super_admin()){
145
- //TODO explain this type of error
146
- /*
147
- "message": "(#803) Cannot query users by their username ",
148
- "type": "OAuthException",
149
- "code": 803
150
- */
151
- $error = $e->getResult();
152
- $res .= '<br><span style="color: #4a0e13">'.__('Code').':&nbsp;'.$error['error']['code'].'</span>';
153
- $res .= '<br><span style="color: #4a0e13">'.__('Error').':&nbsp;'.$error['error']['message'].'</span>';
154
- }
155
- $res .= '</p>';
156
- return $res;
 
 
 
 
 
157
  }
158
- } else {
159
- $type = 'page';
160
  }
 
 
161
  }
162
- $return = self::print_embed($fb_id,$type,$match[2]);
163
- } else {
164
- $return = '';
165
- if(is_super_admin()){
166
- $return .= '<p>'.__('Add Facebook App ID and Secret on admin to make this plugin work.','wp-embed-facebook').'</p>';
167
- $return .= '<p><a href="'.admin_url("options-general.php?page=embedfacebook").'" target="_blank">'.__("WP Embed Facebook Settings","wp-embed-facebook").'</a></p>';
168
- $return .= '<p><a href="https://developers.facebook.com/apps" target="_blank">'.__("Your Facebook Apps","wp-embed-facebook").'</a></p>';
169
- }
170
- $return .= '<p><a href="https://www.facebook.com/'.$match[2].'" target="_blank" rel="nofollow">https://www.facebook.com/'.$match[2].'</a></p>';
171
  }
172
- self::$width = self::$raw = self::$num_posts = self::$theme = null;
173
- return $return;
174
-
175
  }
176
  static function print_embed($fb_id,$type,$juice){
177
  if(!self::is_raw($type)){
@@ -246,7 +253,7 @@ class WP_Embed_FB {
246
  * @param string $template file full path
247
  * @param array $fb_data data from facebook
248
  */
249
- $template = apply_filters('wpemfb_template',$template,$fb_data);
250
  include( $template );
251
  return preg_replace('/^\s+|\n|\r|\s+$/m', '', ob_get_clean());
252
  }
@@ -268,7 +275,8 @@ class WP_Embed_FB {
268
  try {
269
  switch($type){
270
  case 'album' :
271
- $api_string = $fb_id.'?fields=name,id,from,description,photos.fields(name,picture,source).limit('.get_option("wpemfb_max_photos").')';
 
272
  break;
273
  case 'page' :
274
  $num_posts = is_int(self::$num_posts) ? self::$num_posts : get_option("wpemfb_max_posts");
@@ -283,7 +291,7 @@ class WP_Embed_FB {
283
  $api_string = $fb_id.'?fields=id,source,link,likes.limit(1).summary(true),comments.limit(1).summary(true)';
284
  break;
285
  case 'event' :
286
- $api_string = $fb_id.'?fields=id,name,start_time,end_time,owner,place,picture,timezone,cover,description';
287
  break;
288
  case 'post' :
289
  $api_string = $fb_id.'?fields=from{id,name,likes,link},id,full_picture,type,via,source,parent_id,call_to_action,story,place,child_attachments,icon,created_time,message,description,caption,name,shares,link,picture,object_id,likes.limit(1).summary(true),comments.limit(1).summary(true)';
@@ -304,7 +312,6 @@ class WP_Embed_FB {
304
  *
305
  */
306
  $fb_data = $fbsdk->api('v2.5/'.apply_filters('wpemfb_api_string',$api_string,$fb_id,$type));
307
- $num_posts = is_int(self::$num_posts) ? self::$num_posts : get_option("wpemfb_max_posts");
308
  $api_string2 = '';
309
 
310
  /**
@@ -351,23 +358,20 @@ class WP_Embed_FB {
351
  */
352
  static function locate_template($template_name){
353
  $theme = self::get_theme();
354
- $located = locate_template(array('plugins/'.WP_Embed_FB_Plugin::get_slug().'/'.$theme.'/'.$template_name.'.php'));
355
  $file = 'templates/'.$theme.'/'.$template_name.'.php';
356
  if(empty($located)){
357
  $located = WP_Embed_FB_Plugin::get_path().$file;
358
  }
359
  return $located;
360
  }
361
- /*
362
- * Formatting functions.
363
- */
364
  /**
365
  * If a user has a lot of websites registered on fb this function will only link to the first one
366
  * @param string $urls separated by spaces
367
  * @return string first url
368
  */
369
  static function getwebsite($urls){
370
- $url = explode(' ',$urls);
371
  return strpos('http://',$url[0]) == false ? 'http://'.$url[0] : $url[0];
372
  }
373
  /**
@@ -379,38 +383,21 @@ class WP_Embed_FB {
379
  static function shortcode($atts){
380
  if(!empty($atts) && isset($atts[0])){
381
  $clean = trim($atts[0],'=');
382
- $juice = str_replace(array('https','http','://facebook.com/','://m.facebook.com/','://facebook.com/','://www.facebook.com/'),'',$clean);
383
- if(isset($atts['width'])){
384
- self::$width = $atts['width'];
385
- }
386
- if(isset($atts['raw'])){
387
- if($atts['raw'] == 'true'){
388
- self::$raw = true;
389
- } else {
390
- self::$raw = false;
391
- }
392
- }
393
- if(isset($atts['social_plugin'])){
394
- if($atts['social_plugin'] == 'true'){
395
- self::$raw = false;
396
- } else {
397
- self::$raw = true;
398
- }
399
- }
400
- if(isset($atts['theme'])){
401
- wp_enqueue_style('wpemfb-'.$atts['theme'], WP_Embed_FB_Plugin::get_url().'templates/'.$atts['theme'].'/'.$atts['theme'].'.css',array(),false);
402
- self::$theme = $atts['theme'];
403
  }
404
- if(isset($atts['posts'])){
405
- self::$num_posts = intval($atts['posts']);
406
- }
407
- $embed = self::fb_embed(array('https','://www.facebook.com/',$juice));
408
  return $embed;
409
  }
410
  return '';
411
  }
412
- static function embed_register_handler($match){
413
- return self::fb_embed($match);
414
  }
415
  static function make_clickable($text) {
416
  return wpautop(self::rel_nofollow(make_clickable($text)));
@@ -424,23 +411,37 @@ class WP_Embed_FB {
424
  $text = str_replace(array(' rel="nofollow"', " rel='nofollow'"), '', $text);
425
  return "<a $text rel=\"nofollow\">";
426
  }
427
- }
428
-
429
- /**
430
- * Class FaceInit
431
- * @deprecated
432
- */
433
- class FaceInit {
434
- static $fbsdk = null;
435
- static function init(){
436
- trigger_error("Deprecated use WP_Embed_FB::get_fbsdk() instead.", E_USER_NOTICE);
437
- return WP_Embed_FB::get_fbsdk();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
438
  }
439
- static function get_fbsdk(){
440
- if(self::$fbsdk == null)
441
- self::init();
442
- return self::$fbsdk;
443
  }
444
  }
445
- //id,actions,admin_creator,allowed_advertising_objectives,application,call_to_action,caption,child_attachments,comments_mirroring_domain,coordinates,created_time,description,expanded_height,expanded_width,feed_targeting,from,full_picture,height,icon,is_app_share,is_hidden,is_instagram_eligible,is_popular,is_published,is_expired,is_spherical,link,message,message_tags,name,object_id,parent_id,place,privacy,promotion_status,properties,scheduled_publish_time,shares,source,status_type,story,story_tags,subscribed,targeting,timeline_visibility,type,updated_time,via,width,picture
446
 
11
  /**
12
  * @var string Theme to use on the embed
13
  */
14
+ static $theme = null;
15
  /**
16
  * @var int|null Number of posts on the page embed
17
  */
18
  static $num_posts = null;
19
+ /**
20
+ * @var int|null Number of photos on album
21
+ */
22
+ static $num_photos = null;
23
  /**
24
  * @var null|Sigami_Facebook
25
  */
26
  private static $fbsdk = null;
 
27
  static function get_theme(){
28
  if(self::$theme){
29
  return self::$theme;
52
  }
53
  static function get_fbsdk(){
54
  if( self::$fbsdk && self::$fbsdk instanceof Sigami_Facebook){
55
+ if( WP_Embed_FB_Plugin::has_fb_app() && get_option('wpemfb_force_app_token','true') == 'true' )
56
  self::$fbsdk->setAccessToken(get_option('wpemfb_app_id').'|'.get_option('wpemfb_app_secret'));
57
  return self::$fbsdk;
58
  } else {
60
  require_once "base_facebook.php";
61
  require_once "class-sigami-facebook.php";
62
  $config = array();
63
+ $config['appId'] = get_option('wpemfb_app_id','');
64
+ $config['secret'] = get_option('wpemfb_app_secret','');
 
 
65
  //$config['fileUpload'] = false; // optional
66
  self::$fbsdk = new Sigami_Facebook($config);
67
+ if(WP_Embed_FB_Plugin::has_fb_app() && get_option('wpemfb_force_app_token','true') == 'true' )
68
  self::$fbsdk->setAccessToken(get_option('wpemfb_app_id').'|'.get_option('wpemfb_app_secret'));
69
  return self::$fbsdk;
70
  }
73
  * Extract fb_id from the url
74
  * @param array $match[2]=url without ' https://www.facebook.com/ '
75
  * @return string Embedded content
76
+ *
77
+ */
78
+ static function fb_embed($match, $url=null, $atts=null ){
79
+ $juice = $match[2];
80
+ $type_and_id = self::get_type_and_id($juice,$url);
81
+ if(is_string($type_and_id))
82
+ return $type_and_id;
83
+ self::set_atts($atts);
84
+ $return = self::print_embed($type_and_id['fb_id'],$type_and_id['type'],$juice);
85
+ self::clear_atts();
86
+ return $return;
87
+
88
+ }
89
+ /**
90
+ * @param string $juice facebook url without https://www.facebook.com
91
+ * @param string $original Original url to return.
92
+ *
93
+ * @return array|string
94
  */
95
+ static function get_type_and_id($juice,$original){
96
  $fbsdk = self::get_fbsdk();
97
+ $fb_id = null;
98
+ $type = null;
99
+ if (($pos = strpos($juice, "?")) !== FALSE) {
100
+ $vars = array();
101
+ parse_str(parse_url($juice, PHP_URL_QUERY), $vars);
102
+ if(isset($vars['fbid']))
103
+ $fb_id = $vars['fbid'];
104
+ if(isset($vars['id']))
105
+ $fb_id = $vars['id'];
106
+ if(isset($vars['v'])) {
107
+ $fb_id = $vars['v'];
108
+ $type = 'video';
 
 
 
 
 
 
 
 
 
109
  }
110
+ if(isset($vars['set'])){
111
+ $setArray = explode('.', $vars['set']);
112
+ $fb_id = $setArray[1];
113
+ $type = 'album';
114
  }
115
+ $juice = substr($juice, 0, $pos);
116
+ }
117
+ $juiceArray = explode('/',trim($juice,'/'));
118
+ if(!$fb_id){
119
+ $fb_id = end($juiceArray);
120
+ }
121
+ if(in_array('posts',$juiceArray)){
122
+ $type = 'post';
123
+ if(WP_Embed_FB_Plugin::has_fb_app()){
124
+ try{
125
+ $data = $fbsdk->api('/'.$juiceArray[0].'?fields=id');
126
+ $fb_id = $data['id'].'_'.$fb_id;
127
+ } catch(FacebookApiException $e){
128
+ $res = '<p><a href="'.$original.'" target="_blank" rel="nofollow">'.$original.'</a>';
129
+ if(is_super_admin()){
130
+ $error = $e->getResult();
131
+ if(isset($error['error']['code']))
132
+ $res .= '<br><span style="color: #4a0e13">'.__('Code').':&nbsp;'.$error['error']['code'].'&nbsp;'.$type.'</span>';
133
+ $res .= '<br><span style="color: #4a0e13">'.__('Error').':&nbsp;'.$error['error']['message'].'</span>';
134
  }
135
+ $res .= '</p>';
136
+ return $res;
137
  }
 
 
 
 
 
 
138
  }
139
+ }elseif(in_array('photos',$juiceArray) || in_array('photo.php',$juiceArray) ){
140
+ $type = 'photo';
141
+ }elseif(in_array('events',$juiceArray)){
142
+ $type = 'event';
143
+ }elseif(in_array('videos',$juiceArray)){
144
+ $type = 'video';
145
+ }
146
+ /**
147
+ * Filter the embed type.
148
+ *
149
+ * @since 1.8
150
+ *
151
+ * @param string $type the embed type.
152
+ * @param array $clean url parts of the request.
153
+ */
154
+ $type = apply_filters('wpemfb_embed_type', $type, $juiceArray);
155
+ if(!$type){
156
+ if(WP_Embed_FB_Plugin::has_fb_app()){
157
+ try{
158
+ $metadata = $fbsdk->api('/'.$fb_id.'?metadata=1');
159
+ $type = $metadata['metadata']['type'];
160
+ } catch(FacebookApiException $e){
161
+ $res = '<p><a href="https://www.facebook.com/'.$juice.'" target="_blank" rel="nofollow">https://www.facebook.com/'.$juice.'</a>';
162
+ if(is_super_admin()){
163
+ //TODO explain this type of error
164
+ /*
165
+ "message": "(#803) Cannot query users by their username ",
166
+ "type": "OAuthException",
167
+ "code": 803
168
+ */
169
+ $error = $e->getResult();
170
+ if(isset($error['error']['code']))
171
+ $res .= '<br><span style="color: #4a0e13">'.__('Code').':&nbsp;'.$error['error']['code'].'&nbsp;in type</span>';
172
+ $res .= '<br><span style="color: #4a0e13">'.__('Error').':&nbsp;'.$error['error']['message'].'</span>';
173
  }
174
+ $res .= '</p>';
175
+ return $res;
176
  }
177
+ } else {
178
+ $type = 'page';
179
  }
 
 
 
 
 
 
 
 
 
180
  }
181
+ return array('type'=>$type,'fb_id'=>$fb_id);
 
 
182
  }
183
  static function print_embed($fb_id,$type,$juice){
184
  if(!self::is_raw($type)){
253
  * @param string $template file full path
254
  * @param array $fb_data data from facebook
255
  */
256
+ $template = apply_filters('wpemfb_template',$template,$fb_data,$type);
257
  include( $template );
258
  return preg_replace('/^\s+|\n|\r|\s+$/m', '', ob_get_clean());
259
  }
275
  try {
276
  switch($type){
277
  case 'album' :
278
+ self::$num_photos = is_int(self::$num_photos) ? self::$num_photos : get_option("wpemfb_max_photos");
279
+ $api_string = $fb_id.'?fields=name,id,from,description,count,photos.fields(name,picture,source,id).limit('.self::$num_photos.')';
280
  break;
281
  case 'page' :
282
  $num_posts = is_int(self::$num_posts) ? self::$num_posts : get_option("wpemfb_max_posts");
291
  $api_string = $fb_id.'?fields=id,source,link,likes.limit(1).summary(true),comments.limit(1).summary(true)';
292
  break;
293
  case 'event' :
294
+ $api_string = $fb_id.'?fields=id,name,start_time,end_time,owner,place,picture,timezone,cover';
295
  break;
296
  case 'post' :
297
  $api_string = $fb_id.'?fields=from{id,name,likes,link},id,full_picture,type,via,source,parent_id,call_to_action,story,place,child_attachments,icon,created_time,message,description,caption,name,shares,link,picture,object_id,likes.limit(1).summary(true),comments.limit(1).summary(true)';
312
  *
313
  */
314
  $fb_data = $fbsdk->api('v2.5/'.apply_filters('wpemfb_api_string',$api_string,$fb_id,$type));
 
315
  $api_string2 = '';
316
 
317
  /**
358
  */
359
  static function locate_template($template_name){
360
  $theme = self::get_theme();
361
+ $located = locate_template(array('plugins/wp-embed-facebook/'.$theme.'/'.$template_name.'.php'));
362
  $file = 'templates/'.$theme.'/'.$template_name.'.php';
363
  if(empty($located)){
364
  $located = WP_Embed_FB_Plugin::get_path().$file;
365
  }
366
  return $located;
367
  }
 
 
 
368
  /**
369
  * If a user has a lot of websites registered on fb this function will only link to the first one
370
  * @param string $urls separated by spaces
371
  * @return string first url
372
  */
373
  static function getwebsite($urls){
374
+ $url = explode(' ',trim($urls));
375
  return strpos('http://',$url[0]) == false ? 'http://'.$url[0] : $url[0];
376
  }
377
  /**
383
  static function shortcode($atts){
384
  if(!empty($atts) && isset($atts[0])){
385
  $clean = trim($atts[0],'=');
386
+ if(is_int($clean)){
387
+ $juice = $clean;
388
+ $clean = "https://www.facebook.com/$juice";
389
+ } else {
390
+ if( strpos($clean,'facebook.com') === false )
391
+ return "<p>".__("This is not a valid facebook url","wp-embed-facebook")." $clean </p>";
392
+ $juice = str_replace(array('https:','http:','//facebook.com/','//m.facebook.com/','//facebook.com/','//www.facebook.com/'),'',$clean);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
393
  }
394
+ $embed = self::fb_embed(array('https','://www.facebook.com/',$juice),$clean,$atts);
 
 
 
395
  return $embed;
396
  }
397
  return '';
398
  }
399
+ static function embed_register_handler($match, $attr=null, $url=null, $atts=null){
400
+ return self::fb_embed($match, $url, $atts);
401
  }
402
  static function make_clickable($text) {
403
  return wpautop(self::rel_nofollow(make_clickable($text)));
411
  $text = str_replace(array(' rel="nofollow"', " rel='nofollow'"), '', $text);
412
  return "<a $text rel=\"nofollow\">";
413
  }
414
+ static function set_atts($atts){
415
+ if(isset($atts['width'])){
416
+ self::$width = $atts['width'];
417
+ }
418
+ if(isset($atts['raw'])){
419
+ if($atts['raw'] == 'true'){
420
+ self::$raw = true;
421
+ } else {
422
+ self::$raw = false;
423
+ }
424
+ }
425
+ if(isset($atts['social_plugin'])){
426
+ if($atts['social_plugin'] == 'true'){
427
+ self::$raw = false;
428
+ } else {
429
+ self::$raw = true;
430
+ }
431
+ }
432
+ if(isset($atts['theme'])){
433
+ wp_enqueue_style('wpemfb-'.$atts['theme'], WP_Embed_FB_Plugin::get_url().'templates/'.$atts['theme'].'/'.$atts['theme'].'.css',array(),false);
434
+ self::$theme = $atts['theme'];
435
+ }
436
+ if(isset($atts['posts'])){
437
+ self::$num_posts = intval($atts['posts']);
438
+ }
439
+ if(isset($atts['photos'])){
440
+ self::$num_photos = intval($atts['photos']);
441
+ }
442
  }
443
+ static function clear_atts(){
444
+ self::$width = self::$raw = self::$num_posts = self::$theme = self::$num_photos = null;
 
 
445
  }
446
  }
 
447
 
readme.txt CHANGED
@@ -3,16 +3,16 @@ Contributors: poxtron
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=R8Q85GT3Q8Q26
4
  Tags: Facebook, facebook, Social Plugins, embed facebook, facebook video, facebook posts, facebook publication, facebook publications, facebook event, facebook events, facebook pages, facebook page, facebook profiles, facebook album, facebook albums, facebook photos, facebook photo, social,
5
  Requires at least: 3.8.1
6
- Tested up to: 4.4
7
- Stable tag: 2.0.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
- Embed a Facebook video, page, event, album, photo, profile or post to any WordPress post or page.
12
 
13
  == Description ==
14
 
15
- Embed any public facebook video, page, post, profile, photo or event directly into a WordPress post, without having to write a single line of code. Simply put the facebook url on a separate line on the content of any post, and this plugin will fetch data associated with that url and display it. If the data is not public, like “invite only” events or private profiles it will return a link.
16
 
17
  = Supported Embeds =
18
  * Facebook Videos
@@ -27,89 +27,29 @@ Embed any public facebook video, page, post, profile, photo or event directly in
27
  **[Live Demo](http://www.wpembedfb.com/demo/)**
28
 
29
  = Requirements =
30
- * Facebook App Id and Secret you can get them [here](https://developers.facebook.com/apps/)
 
 
31
 
32
  = How to use it =
33
- Copy the facebook url on a single line.
34
 
35
- You can *override* the general setting for each embed using a shortcode.
36
 
37
- = Shortcode Examples =
38
 
39
- Assuming all settings are in their default state.
40
 
41
- **Videos**
42
-
43
- * From source using html5 video tag
44
-
45
- `[facebook https://www.facebook.com/ArchanNair/videos/10152579879850694 ]`
46
-
47
- * Use facebook [embedded video](https://developers.facebook.com/docs/plugins/embedded-video-player) plugin
48
-
49
- `[facebook https://www.facebook.com/ArchanNair/videos/10152579879850694 social_plugin=true ]`
50
-
51
- **Pages**
52
-
53
- * Using default settings
54
-
55
- `[facebook https://www.facebook.com/sydneyoperahouse ]`
56
-
57
- * Changing the number of posts shown only for custom embeds
58
-
59
- `[facebook https://www.facebook.com/sydneyoperahouse posts=2 ]`
60
-
61
- * Use facebook [page plugin](https://developers.facebook.com/docs/plugins/page-plugin)
62
-
63
- `[facebook https://www.facebook.com/sydneyoperahouse social_plugin=true ]`
64
-
65
- All attributes are optional and if 'attributes' is not present it will use the default values
66
-
67
- **Albums**
68
-
69
- `[facebook https://www.facebook.com/media/set/?set=a.10151932001713698.1073741831.10883823697 ]`
70
-
71
- **Events**
72
-
73
- `[facebook https://www.facebook.com/events/507909879383103/ ]`
74
-
75
- **Photos**
76
-
77
- * Embed the photo as a plain image on your site
78
-
79
- `[facebook https://www.facebook.com/ArchanNair/photos/a.10151932001713698.1073741831.10883823697/10153545048758698/]`
80
-
81
- * Use facebook [embedded post](https://developers.facebook.com/docs/plugins/embedded-posts) plugin
82
-
83
- `[facebook https://www.facebook.com/ArchanNair/photos/a.10151932001713698.1073741831.10883823697/10153545048758698/ social_plugin=true ]`
84
-
85
- **Posts**
86
-
87
- `[facebook https://www.facebook.com/radiohead/posts/10152688346467245 ]`
88
-
89
- * Use facebook [embedded post](https://developers.facebook.com/docs/plugins/embedded-posts) plugin
90
-
91
- `[facebook https://www.facebook.com/radiohead/posts/10152688346467245 social_plugin=true ]`
92
-
93
-
94
- **Profiles**
95
-
96
- `[facebook https://www.facebook.com/4 ]`
97
-
98
- You will need the facebook id of the user to embed the profile.
99
-
100
- **Changing the width**
101
-
102
- `[facebook https://www.facebook.com/sydneyoperahouse width=970 ]`
103
-
104
- All shortcodes can be affected by the width attribute and it represents the *maximum width* in pixels the embed can be rendered, never the less all embeds are responsive.
105
-
106
- **Changing the theme**
107
-
108
- `[facebook https://www.facebook.com/sydneyoperahouse theme=classic ]`
109
-
110
- **Embedding a Facebook object_id**
111
-
112
- `[facebook 507909879383103 ]`
113
 
114
  == Installation ==
115
 
@@ -121,13 +61,14 @@ All shortcodes can be affected by the width attribute and it represents the *max
121
 
122
  == Frequently Asked Questions ==
123
 
124
- = Why is a facebook app needed?
125
 
126
- All facebook queries to the api need to come from someone so an app is required to tell facebook who did the query
127
 
128
  = Is there a way to embed an album with more than 100 photos ? =
129
 
130
- This is a facebook limitation, will try to work around it.
 
131
 
132
  == Screenshots ==
133
 
@@ -138,6 +79,18 @@ This is a facebook limitation, will try to work around it.
138
 
139
  == Changelog ==
140
 
 
 
 
 
 
 
 
 
 
 
 
 
141
  = 2.0.4 =
142
  * changed shortcode tag from [facebook=url] to [facebook url]
143
  * force app access token
@@ -308,5 +261,5 @@ This is a facebook limitation, will try to work around it.
308
 
309
  == Upgrade Notice ==
310
 
311
- = 2.0.2 =
312
- * More human friendly.
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=R8Q85GT3Q8Q26
4
  Tags: Facebook, facebook, Social Plugins, embed facebook, facebook video, facebook posts, facebook publication, facebook publications, facebook event, facebook events, facebook pages, facebook page, facebook profiles, facebook album, facebook albums, facebook photos, facebook photo, social,
5
  Requires at least: 3.8.1
6
+ Tested up to: 4.4.1
7
+ Stable tag: 2.0.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
+ Embed a Facebook video, page, event, album, photo, profile or post.
12
 
13
  == Description ==
14
 
15
+ Embed any **public** facebook video, page, post, profile, photo or event directly into a WordPress post, without having to write a single line of code.
16
 
17
  = Supported Embeds =
18
  * Facebook Videos
27
  **[Live Demo](http://www.wpembedfb.com/demo/)**
28
 
29
  = Requirements =
30
+ * Nothing for posts, pages and videos
31
+ * For custom embeds a Facebook App Id and Secret are required.
32
+ * To get them first login to facebook then go [here](https://developers.facebook.com/apps/) register as a developer and/or create a new App.
33
 
34
  = How to use it =
35
+ Copy the facebook url on a single line or use the WordPress native [embed] shortcode [example](https://codex.wordpress.org/Embeds).
36
 
37
+ You should see the embed right on the editor, try switching from text to visual if it does not.
38
 
39
+ Alternatively you can use the [facebook] shortcode.
40
 
41
+ Read more about the shortcode attributes on [this](http://wpembedfb.com/documentation/) page.
42
 
43
+ = Premium extension =
44
+ * Embed full event shortcode
45
+ * Embed full fan page shortcode
46
+ * Embed events with address and admins
47
+ * Embed albums with more that 100 photos
48
+ * Features cooking
49
+ * Embed personal data
50
+ * Shortcode creator
51
+ * Special templates for albums and pages
52
+ * Embed all upcoming events of a fan page
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
53
 
54
  == Installation ==
55
 
61
 
62
  == Frequently Asked Questions ==
63
 
64
+ = How can I change the way an embed looks? =
65
 
66
+ You can override the embed template with a custom one on your theme read more about it here
67
 
68
  = Is there a way to embed an album with more than 100 photos ? =
69
 
70
+ This can only be achieved using the premium version
71
+
72
 
73
  == Screenshots ==
74
 
79
 
80
  == Changelog ==
81
 
82
+ = 2.0.5 =
83
+ * Improved [embed] shortcode compatibility !
84
+ * Added new 'photos' attribute for shortcode used only on albums
85
+ * Added 'type' parameter to wpemfb_template filter
86
+ * Fixed https on all templates
87
+ * Fixed like and comment links on single post raw
88
+ * Fixed forced app token only if it has app
89
+ * Fixed admin shortcode references
90
+ * Fixed removed unused options on uninstall
91
+ * Fixed translations strings
92
+ * Fixed notice on installations with no FB App
93
+
94
  = 2.0.4 =
95
  * changed shortcode tag from [facebook=url] to [facebook url]
96
  * force app access token
261
 
262
  == Upgrade Notice ==
263
 
264
+ = 2.0.5 =
265
+ * 100% compatibility with native [embed] shortcode with all attributes. Watch your changes inside the editor!
templates/classic/album.php CHANGED
@@ -2,7 +2,7 @@
2
  <div class="row">
3
  <div class="col-3 text-center">
4
  <a href="https://facebook.com/<?php echo $fb_data['from']['id'] ?>" target="_blank" rel="nofollow">
5
- <img src="http://graph.facebook.com/<?php echo $fb_data['from']['id'] ?>/picture" />
6
  </a>
7
  </div>
8
  <div class="col-9 pl-none">
2
  <div class="row">
3
  <div class="col-3 text-center">
4
  <a href="https://facebook.com/<?php echo $fb_data['from']['id'] ?>" target="_blank" rel="nofollow">
5
+ <img src="https://graph.facebook.com/<?php echo $fb_data['from']['id'] ?>/picture" />
6
  </a>
7
  </div>
8
  <div class="col-9 pl-none">
templates/classic/classic.css CHANGED
@@ -1 +1 @@
1
- .wef-classic{font:300 14px/20px Helvetica;padding:10px;display:inline-block;border-width:1px;border-style:solid;border-color:#23487f;width:100%;background-color:#fff}.wef-classic .row{margin-left:-10px;margin-right:-10px;display:table;width:100%}.wef-classic .col-1,.wef-classic .col-2,.wef-classic .col-3,.wef-classic .col-4,.wef-classic .col-5,.wef-classic .col-6,.wef-classic .col-7,.wef-classic .col-8,.wef-classic .col-9,.wef-classic .col-10,.wef-classic .col-11,.wef-classic .col-12{position:relative;min-height:1px;padding-left:10px;padding-right:10px;display:table-cell;vertical-align:middle;text-align:left}.wef-classic .col-12{width:100%}.wef-classic .col-11{width:91.66667%}.wef-classic .col-10{width:83.33333%}.wef-classic .col-9{width:75%}.wef-classic .col-8{width:66.66667%}.wef-classic .col-7{width:58.33333%}.wef-classic .col-6{width:50%}.wef-classic .col-5{width:41.66667%}.wef-classic .col-4{width:33.33333%}.wef-classic .col-3{width:25%}.wef-classic .col-2{width:16.66667%}.wef-classic .col-1{width:8.33333%}.wef-classic hr{margin-top:10px !important;margin-bottom:10px !important;margin-left:0 !important;margin-right:0 !important;float:none !important;border-top:1px;border-style:solid;border-color:#23487f;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box;height:0 !important;width:100% !important}.wef-classic img.icon{float:right;box-shadow:none;margin:0;padding:0;display:block}.wef-classic img.thumbnail{border:1px solid gray;border-radius:2px;height:60px !important;margin:1px;padding:2px;width:60px !important}.wef-classic .album-thumbs{line-height:1px !important}.wef-classic a{font:300 14px/20px Helvetica;color:#23487f !important;text-decoration:none !important;border:0 !important;margin:0 !important;padding:0 !important}.wef-classic a:focus,.wef-classic a:hover{color:#23487f;text-decoration:underline !important}.wef-classic a.post-likes{color:#6d84b4 !important;font-size:12px !important}.wef-classic a.road-trip{width:0 !important;height:0 !important}.wef-classic a img{display:inline-block !important}.wef-classic p{font:300 14px/20px Helvetica;padding:0 !important;margin:0 !important}.wef-classic p.post-time{font-style:italic;color:#8e8c8d;font-size:12px}.wef-classic p.caption-title{font-size:12px;font-weight:bold}.wef-classic p.caption-link{text-align:right;word-break:break-all}.wef-classic p.caption-link a{font-size:12px;color:#8e8c8d !important;text-transform:uppercase}.wef-classic iframe,.wef-classic embed,.wef-classic object,.wef-classic video,.wef-classic audio{width:100% !important;border:0 !important;margin:0 !important;padding:0 !important}.wef-classic .post-link{border-width:1px;border-style:solid;border-color:#d0d0d0}.wef-classic .post-link p{padding-left:10px !important;padding-right:10px !important}.wef-classic .text-center{text-align:center}.wef-classic .pl-none{padding-left:0 !important;word-break:break-all}.wef-classic .color{color:#23487f}.wef-classic .bold{font-weight:bold !important}.wef-classic .title{font-size:20px !important;font-weight:bold !important;word-break:break-all}.wef-classic .cover{width:100%;background-size:100%}.wef-classic .pad-top{padding-top:5px}.wef-classic .page-post{left:2.6% !important}.wef-classic .caption-description p{color:#8e8c8d !important;font-style:italic !important;font-size:12px !important}.wef-classic .video{position:relative;display:block;height:0;padding:0 0 56.25%;overflow:hidden}.wef-classic .video iframe,.wef-classic .video embed,.wef-classic .video object,.wef-classic .video video{position:absolute;top:0;left:0;bottom:0;height:100%;width:100%;border:0;margin:0;padding:0}.wef-classic .wef-measure{width:100%}.wef-classic .break-all{word-break:break-all}
1
+ .wef-classic{font:300 14px/20px Helvetica;padding:10px;display:inline-block;border-width:1px;border-style:solid;border-color:#23487f;width:100%;background-color:#fff}.wef-classic .row{margin-left:-10px;margin-right:-10px;display:table;width:100%}.wef-classic .col-1,.wef-classic .col-2,.wef-classic .col-3,.wef-classic .col-4,.wef-classic .col-5,.wef-classic .col-6,.wef-classic .col-7,.wef-classic .col-8,.wef-classic .col-9,.wef-classic .col-10,.wef-classic .col-11,.wef-classic .col-12{position:relative;min-height:1px;padding-left:10px;padding-right:10px;display:table-cell;vertical-align:middle;text-align:left}.wef-classic .col-12{width:100%}.wef-classic .col-11{width:91.66667%}.wef-classic .col-10{width:83.33333%}.wef-classic .col-9{width:75%}.wef-classic .col-8{width:66.66667%}.wef-classic .col-7{width:58.33333%}.wef-classic .col-6{width:50%}.wef-classic .col-5{width:41.66667%}.wef-classic .col-4{width:33.33333%}.wef-classic .col-3{width:25%}.wef-classic .col-2{width:16.66667%}.wef-classic .col-1{width:8.33333%}.wef-classic hr{margin-top:10px !important;margin-bottom:10px !important;margin-left:0 !important;margin-right:0 !important;float:none !important;border-top:1px;border-style:solid;border-color:#23487f;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box;height:0 !important;width:100% !important}.wef-classic img.icon{float:right;box-shadow:none;margin:0;padding:0;display:block}.wef-classic img.thumbnail{border:1px solid gray;border-radius:2px;height:60px !important;margin:1px;padding:2px;width:60px !important}.wef-classic .album-thumbs{line-height:1px !important}.wef-classic a{font:300 14px/20px Helvetica;color:#23487f !important;text-decoration:none !important;border:0 !important;margin:0 !important;padding:0 !important}.wef-classic a:focus,.wef-classic a:hover{color:#23487f;text-decoration:underline !important}.wef-classic a.post-likes{color:#6d84b4 !important;font-size:12px !important}.wef-classic a.road-trip{width:0 !important;height:0 !important}.wef-classic a img{display:inline-block !important}.wef-classic p{font:300 14px/20px Helvetica;padding:0 !important;margin:0 !important}.wef-classic p.post-time{font-style:italic;color:#8e8c8d;font-size:12px}.wef-classic p.caption-title{font-size:12px;font-weight:bold}.wef-classic p.caption-link{text-align:right;word-break:break-all}.wef-classic p.caption-link a{font-size:12px;color:#8e8c8d !important;text-transform:uppercase}.wef-classic iframe,.wef-classic embed,.wef-classic object,.wef-classic video,.wef-classic audio{width:100% !important;border:0 !important;margin:0 !important;padding:0 !important}.wef-classic .post-link{border-width:1px;border-style:solid;border-color:#d0d0d0}.wef-classic .post-link p{padding-left:10px !important;padding-right:10px !important}.wef-classic .text-center{text-align:center}.wef-classic .pl-none{padding-left:0 !important;word-break:break-all}.wef-classic .color{color:#23487f}.wef-classic .bold{font-weight:bold !important}.wef-classic .title{font-size:20px !important;font-weight:bold !important;word-break:break-all}.wef-classic .cover{width:100%;background-size:100%;cursor:pointer}.wef-classic .pad-top{padding-top:5px}.wef-classic .page-post{left:2.6% !important}.wef-classic .caption-description p{color:#8e8c8d !important;font-style:italic !important;font-size:12px !important}.wef-classic .video{position:relative;display:block;height:0;padding:0 0 56.25%;overflow:hidden}.wef-classic .video iframe,.wef-classic .video embed,.wef-classic .video object,.wef-classic .video video{position:absolute;top:0;left:0;bottom:0;height:100%;width:100%;border:0;margin:0;padding:0}.wef-classic .wef-measure{width:100%}.wef-classic .break-all{word-break:break-all}.wef-classic .event_address{color:#565656;font-size:12px}
templates/classic/classic.sass CHANGED
@@ -146,6 +146,7 @@
146
  .cover
147
  width: 100%
148
  background-size: 100%
 
149
  .pad-top
150
  padding:
151
  top: 5px
@@ -174,4 +175,7 @@
174
  .wef-measure
175
  width: 100%
176
  .break-all
177
- word-break: break-all
 
 
 
146
  .cover
147
  width: 100%
148
  background-size: 100%
149
+ cursor: pointer
150
  .pad-top
151
  padding:
152
  top: 5px
175
  .wef-measure
176
  width: 100%
177
  .break-all
178
+ word-break: break-all
179
+ .event_address
180
+ color: #565656
181
+ font-size: 12px
templates/classic/com-page.php CHANGED
@@ -1,12 +1,12 @@
1
  <div class="wef-classic" style="max-width: <?php echo $width ?>px">
2
  <div class="row">
3
  <div class="col-3 text-center">
4
- <a href="http://www.facebook.com/<?php echo $fb_data['id'] ?>" target="_blank" rel="nofollow">
5
- <img src="http://graph.facebook.com/<?php echo $fb_data['id'] ?>/picture" />
6
  </a>
7
  </div>
8
  <div class="col-9 pl-none">
9
- <a href="http://www.facebook.com/<?php echo $fb_data['id'] ?>" target="_blank" rel="nofollow">
10
  <span class="title"><?php echo $fb_data['name'] ?></span>
11
  </a>
12
  <br>
1
  <div class="wef-classic" style="max-width: <?php echo $width ?>px">
2
  <div class="row">
3
  <div class="col-3 text-center">
4
+ <a href="https://www.facebook.com/<?php echo $fb_data['id'] ?>" target="_blank" rel="nofollow">
5
+ <img src="https://graph.facebook.com/<?php echo $fb_data['id'] ?>/picture" />
6
  </a>
7
  </div>
8
  <div class="col-9 pl-none">
9
+ <a href="https://www.facebook.com/<?php echo $fb_data['id'] ?>" target="_blank" rel="nofollow">
10
  <span class="title"><?php echo $fb_data['name'] ?></span>
11
  </a>
12
  <br>
templates/classic/event.php CHANGED
@@ -12,10 +12,12 @@ $start_time = date_i18n( $start_time_format, strtotime( $fb_data['start_time'] )
12
  date_default_timezone_set( $old_time_zone );
13
  ?>
14
  <div class="wef-classic wef-measure" style="max-width: <?php echo $width ?>px">
15
- <div class="cover" style="height:<?php echo $height ?>px; background-image: url('<?php echo $fb_data['cover']['source'] ?>'); background-position: 0% <?php echo $fb_data['cover']['offset_y'] ?>%;" onclick="window.open('http://www.facebook.com/<?php echo $fb_data['id'] ?>', '_blank')" ></div>
 
 
16
  <div class="row pad-top">
17
  <div class="col-12">
18
- <a href="http://www.facebook.com/<?php echo $fb_data['id'] ?>" target="_blank" rel="nofollow">
19
  <span class="title"><?php echo $fb_data['name'] ?></span>
20
  </a>
21
  <p><?php echo $start_time ?></p>
@@ -23,13 +25,13 @@ date_default_timezone_set( $old_time_zone );
23
  <?php
24
  if ( isset( $fb_data['place']['id'] ) ) {
25
  _e( '@ ', 'wp-embed-facebook' );
26
- echo '<a href="http://www.facebook.com/' . $fb_data['place']['id'] . '" target="_blank">' . $fb_data['place']['name'] . '</a>';
27
  } else {
28
  echo isset( $fb_data['place']['name'] ) ? __( '@ ', 'wp-embed-facebook' ) . $fb_data['place']['name'] : '';
29
  }
30
  ?>
31
  </p>
32
- <p><?php echo __( 'Creator: ', 'wp-embed-facebook' ) . '<a href="http://www.facebook.com/' . $fb_data['owner']['id'] . '" target="_blank">' . $fb_data['owner']['name'] . '</a>' ?></p>
33
  </div>
34
  </div>
35
  </div>
12
  date_default_timezone_set( $old_time_zone );
13
  ?>
14
  <div class="wef-classic wef-measure" style="max-width: <?php echo $width ?>px">
15
+ <?php if(isset($fb_data['cover'])) : ?>
16
+ <div class="cover" style="height:<?php echo $height ?>px; background-image: url('<?php echo $fb_data['cover']['source'] ?>'); background-position: 0% <?php echo $fb_data['cover']['offset_y'] ?>%;" onclick="window.open('https://www.facebook.com/<?php echo $fb_data['id'] ?>', '_blank')" ></div>
17
+ <?php endif; ?>
18
  <div class="row pad-top">
19
  <div class="col-12">
20
+ <a href="https://www.facebook.com/<?php echo $fb_data['id'] ?>" target="_blank" rel="nofollow">
21
  <span class="title"><?php echo $fb_data['name'] ?></span>
22
  </a>
23
  <p><?php echo $start_time ?></p>
25
  <?php
26
  if ( isset( $fb_data['place']['id'] ) ) {
27
  _e( '@ ', 'wp-embed-facebook' );
28
+ echo '<a href="https://www.facebook.com/' . $fb_data['place']['id'] . '" target="_blank">' . $fb_data['place']['name'] . '</a>';
29
  } else {
30
  echo isset( $fb_data['place']['name'] ) ? __( '@ ', 'wp-embed-facebook' ) . $fb_data['place']['name'] : '';
31
  }
32
  ?>
33
  </p>
34
+ <p><?php echo __( 'Creator: ', 'wp-embed-facebook' ) . '<a href="https://www.facebook.com/' . $fb_data['owner']['id'] . '" target="_blank">' . $fb_data['owner']['name'] . '</a>' ?></p>
35
  </div>
36
  </div>
37
  </div>
templates/classic/post.php CHANGED
@@ -1,13 +1,13 @@
1
  <?php $fb_post = $fb_data ?>
2
  <div class="wef-classic" style="max-width: <?php echo $width ?>px" >
3
  <div class="col-3 text-center">
4
- <a href="http://www.facebook.com/<?php echo $fb_post['from']['id'] ?>" target="_blank" rel="nofollow">
5
- <img src="http://graph.facebook.com/<?php echo $fb_post['from']['id'] ?>/picture" width="50px" height="50px" />
6
  </a>
7
  </div>
8
  <div class="col-9 pl-none">
9
  <p>
10
- <a href="http://www.facebook.com/<?php echo $fb_post['from']['id'] ?>" target="_blank" rel="nofollow">
11
  <span class="title"><?php echo $fb_post['from']['name'] ?></span>
12
  </a>
13
  </p>
1
  <?php $fb_post = $fb_data ?>
2
  <div class="wef-classic" style="max-width: <?php echo $width ?>px" >
3
  <div class="col-3 text-center">
4
+ <a href="https://www.facebook.com/<?php echo $fb_post['from']['id'] ?>" target="_blank" rel="nofollow">
5
+ <img src="https://graph.facebook.com/<?php echo $fb_post['from']['id'] ?>/picture" width="50px" height="50px" />
6
  </a>
7
  </div>
8
  <div class="col-9 pl-none">
9
  <p>
10
+ <a href="https://www.facebook.com/<?php echo $fb_post['from']['id'] ?>" target="_blank" rel="nofollow">
11
  <span class="title"><?php echo $fb_post['from']['name'] ?></span>
12
  </a>
13
  </p>
templates/classic/profile.php CHANGED
@@ -1,13 +1,13 @@
1
  <div class="wef-classic" style="max-width: <?php echo $width ?>px">
2
  <div class="row">
3
  <div class="col-3 text-center">
4
- <a href="http://www.facebook.com/<?php echo $fb_data['id'] ?>" target="_blank" rel="nofollow">
5
- <img src="http://graph.facebook.com/<?php echo $fb_data['id'] ?>/picture" />
6
  </a>
7
  </div>
8
  <div class="col-9 pl-none">
9
  <p>
10
- <a href="http://www.facebook.com/<?php echo $fb_data['id'] ?>" target="_blank" rel="nofollow">
11
  <span class="title"><?php echo $fb_data['name'] ?></span>
12
  </a>
13
  </p>
1
  <div class="wef-classic" style="max-width: <?php echo $width ?>px">
2
  <div class="row">
3
  <div class="col-3 text-center">
4
+ <a href="https://www.facebook.com/<?php echo $fb_data['id'] ?>" target="_blank" rel="nofollow">
5
+ <img src="https://graph.facebook.com/<?php echo $fb_data['id'] ?>/picture" />
6
  </a>
7
  </div>
8
  <div class="col-9 pl-none">
9
  <p>
10
+ <a href="https://www.facebook.com/<?php echo $fb_data['id'] ?>" target="_blank" rel="nofollow">
11
  <span class="title"><?php echo $fb_data['name'] ?></span>
12
  </a>
13
  </p>
templates/classic/single-post.php CHANGED
@@ -71,7 +71,7 @@ date_default_timezone_set($old_time_zone);
71
  <a href="<?php echo $fb_post['link'] ?>" rel="nofollow" target="_blank">
72
  <img src="<?php echo $fb_post['full_picture'] ?>" width="100%" height="auto" /><br>
73
  </a>
74
- <?php if($type == 'music') : ?>
75
  <p>
76
  <audio controls>
77
  <source src="<?php echo $fb_post['source'] ?>" type="audio/mpeg">
71
  <a href="<?php echo $fb_post['link'] ?>" rel="nofollow" target="_blank">
72
  <img src="<?php echo $fb_post['full_picture'] ?>" width="100%" height="auto" /><br>
73
  </a>
74
+ <?php if($fb_post["type"] == 'music') : ?>
75
  <p>
76
  <audio controls>
77
  <source src="<?php echo $fb_post['source'] ?>" type="audio/mpeg">
templates/classic/video.php CHANGED
@@ -11,7 +11,7 @@ $use_ratio = (get_option('wpemfb_video_ratio') == 'true');
11
  $type = end($type_array);
12
  $clean_type = strtolower($type);
13
 
14
- if( get_option('wpemfb_raw_video_fb') == 'false' && $clean_type == 'mp4' ) : ?>
15
  <?php $end = isset($fb_data['format']) ? end($fb_data['format']) : $fb_data; ?>
16
 
17
  <video controls poster="<?php echo $end['picture'] ?>" >
11
  $type = end($type_array);
12
  $clean_type = strtolower($type);
13
 
14
+ if( WP_Embed_FB::is_raw('video') && $clean_type == 'mp4' ) : ?>
15
  <?php $end = isset($fb_data['format']) ? end($fb_data['format']) : $fb_data; ?>
16
 
17
  <video controls poster="<?php echo $end['picture'] ?>" >
templates/default/album.php CHANGED
@@ -2,7 +2,7 @@
2
  <div class="row">
3
  <div class="col-3 text-center">
4
  <a href="https://facebook.com/<?php echo $fb_data['from']['id'] ?>" target="_blank" rel="nofollow">
5
- <img src="http://graph.facebook.com/<?php echo $fb_data['from']['id'] ?>/picture" />
6
  </a>
7
  </div>
8
  <div class="col-9 pl-none">
2
  <div class="row">
3
  <div class="col-3 text-center">
4
  <a href="https://facebook.com/<?php echo $fb_data['from']['id'] ?>" target="_blank" rel="nofollow">
5
+ <img src="https://graph.facebook.com/<?php echo $fb_data['from']['id'] ?>/picture" />
6
  </a>
7
  </div>
8
  <div class="col-9 pl-none">
templates/default/com-page.php CHANGED
@@ -1,12 +1,12 @@
1
  <div class="wef-default" style="max-width: <?php echo $width ?>px">
2
  <div class="row">
3
  <div class="col-3 text-center">
4
- <a href="http://www.facebook.com/<?php echo $fb_data['id'] ?>" target="_blank" rel="nofollow">
5
- <img src="http://graph.facebook.com/<?php echo $fb_data['id'] ?>/picture" />
6
  </a>
7
  </div>
8
  <div class="col-9 pl-none">
9
- <a href="http://www.facebook.com/<?php echo $fb_data['id'] ?>" target="_blank" rel="nofollow">
10
  <span class="title"><?php echo $fb_data['name'] ?></span>
11
  </a>
12
  <br>
1
  <div class="wef-default" style="max-width: <?php echo $width ?>px">
2
  <div class="row">
3
  <div class="col-3 text-center">
4
+ <a href="https://www.facebook.com/<?php echo $fb_data['id'] ?>" target="_blank" rel="nofollow">
5
+ <img src="https://graph.facebook.com/<?php echo $fb_data['id'] ?>/picture" />
6
  </a>
7
  </div>
8
  <div class="col-9 pl-none">
9
+ <a href="https://www.facebook.com/<?php echo $fb_data['id'] ?>" target="_blank" rel="nofollow">
10
  <span class="title"><?php echo $fb_data['name'] ?></span>
11
  </a>
12
  <br>
templates/default/default.css CHANGED
@@ -1 +1 @@
1
- .wef-default{font:300 14px/20px Helvetica;padding:10px;display:inline-block;border-width:1px;border-style:solid;border-color:#dedede;border-radius:2px;width:100%;background-color:#fff}.wef-default .row{margin-left:-10px;margin-right:-10px;display:table;width:100%}.wef-default .col-1,.wef-default .col-2,.wef-default .col-3,.wef-default .col-4,.wef-default .col-5,.wef-default .col-6,.wef-default .col-7,.wef-default .col-8,.wef-default .col-9,.wef-default .col-10,.wef-default .col-11,.wef-default .col-12{position:relative;min-height:1px;padding-left:10px;padding-right:10px;display:table-cell;vertical-align:middle;text-align:left}.wef-default .col-12{width:100%}.wef-default .col-11{width:91.66667%}.wef-default .col-10{width:83.33333%}.wef-default .col-9{width:75%}.wef-default .col-8{width:66.66667%}.wef-default .col-7{width:58.33333%}.wef-default .col-6{width:50%}.wef-default .col-5{width:41.66667%}.wef-default .col-4{width:33.33333%}.wef-default .col-3{width:25%}.wef-default .col-2{width:16.66667%}.wef-default .col-1{width:8.33333%}.wef-default hr{margin-top:10px !important;margin-bottom:10px !important;margin-left:0 !important;margin-right:0 !important;float:none !important;border-top:1px;border-style:solid;border-color:#dedede;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box;height:0 !important;width:100% !important}.wef-default img.icon{float:right;box-shadow:none;margin:0;padding:0;display:block}.wef-default img.thumbnail{border:1px solid gray;border-radius:2px;height:60px !important;margin:1px;padding:2px;width:60px !important}.wef-default .album-thumbs{line-height:1px !important}.wef-default a{font:300 14px/20px Helvetica;color:#23487f !important;text-decoration:none !important;border:0 !important;margin:0 !important;padding:0 !important}.wef-default a:focus,.wef-default a:hover{color:#23487f;text-decoration:underline !important}.wef-default a.post-likes{color:#6d84b4 !important;font-size:12px !important}.wef-default a.road-trip{width:0 !important;height:0 !important}.wef-default a img{display:inline-block !important;margin:0;padding:0}.wef-default p{font:300 14px/20px Helvetica;padding:0 !important;margin:0 !important}.wef-default p.post-time{font-style:italic;color:#8e8c8d;font-size:12px}.wef-default p.caption-title{font-size:12px;font-weight:bold}.wef-default p.caption-link{text-align:right;word-break:break-all}.wef-default p.caption-link a{font-size:12px;color:#8e8c8d !important;text-transform:uppercase}.wef-default iframe,.wef-default embed,.wef-default object,.wef-default video,.wef-default audio{width:100% !important;border:0 !important;margin:0 !important;padding:0 !important}.wef-default .post-link{border-width:1px;border-style:solid;border-color:#d0d0d0}.wef-default .post-link p{padding-left:10px !important;padding-right:10px !important}.wef-default .text-center{text-align:center}.wef-default .pl-none{padding-left:0 !important;word-break:break-all}.wef-default .color{color:#23487f}.wef-default .bold{font-weight:bold !important}.wef-default .title{font-size:20px !important;font-weight:bold !important;word-break:break-all}.wef-default .cover{width:100%;background-size:100%}.wef-default .pad-top{padding-top:5px}.wef-default .page-post{left:2.6% !important}.wef-default .caption-description p{color:#8e8c8d !important;font-style:italic !important;font-size:12px !important}.wef-default .video{position:relative;display:block;height:0;padding:0 0 56.25%;overflow:hidden}.wef-default .video iframe,.wef-default .video embed,.wef-default .video object,.wef-default .video video{position:absolute;top:0;left:0;bottom:0;height:100%;width:100%;border:0;margin:0;padding:0}.wef-default .wef-measure{width:100%}.wef-default .break-all{word-break:break-all}
1
+ .wef-default{font:300 14px/20px Helvetica;padding:10px;display:inline-block;border-width:1px;border-style:solid;border-color:#dedede;border-radius:2px;width:100%;background-color:#fff}.wef-default .row{margin-left:-10px;margin-right:-10px;display:table;width:100%}.wef-default .col-1,.wef-default .col-2,.wef-default .col-3,.wef-default .col-4,.wef-default .col-5,.wef-default .col-6,.wef-default .col-7,.wef-default .col-8,.wef-default .col-9,.wef-default .col-10,.wef-default .col-11,.wef-default .col-12{position:relative;min-height:1px;padding-left:10px;padding-right:10px;display:table-cell;vertical-align:middle;text-align:left}.wef-default .col-12{width:100%}.wef-default .col-11{width:91.66667%}.wef-default .col-10{width:83.33333%}.wef-default .col-9{width:75%}.wef-default .col-8{width:66.66667%}.wef-default .col-7{width:58.33333%}.wef-default .col-6{width:50%}.wef-default .col-5{width:41.66667%}.wef-default .col-4{width:33.33333%}.wef-default .col-3{width:25%}.wef-default .col-2{width:16.66667%}.wef-default .col-1{width:8.33333%}.wef-default hr{margin-top:10px !important;margin-bottom:10px !important;margin-left:0 !important;margin-right:0 !important;float:none !important;border-top:1px;border-style:solid;border-color:#dedede;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box;height:0 !important;width:100% !important}.wef-default img.icon{float:right;box-shadow:none;margin:0;padding:0;display:block}.wef-default img.thumbnail{border:1px solid gray;border-radius:2px;height:60px !important;margin:1px;padding:2px;width:60px !important}.wef-default .album-thumbs{line-height:1px !important}.wef-default a{font:300 14px/20px Helvetica;color:#23487f !important;text-decoration:none !important;border:0 !important;margin:0 !important;padding:0 !important}.wef-default a:focus,.wef-default a:hover{color:#23487f;text-decoration:underline !important}.wef-default a.post-likes{color:#6d84b4 !important;font-size:12px !important}.wef-default a.road-trip{width:0 !important;height:0 !important}.wef-default a img{display:inline-block !important;margin:0;padding:0}.wef-default p{font:300 14px/20px Helvetica;padding:0 !important;margin:0 !important}.wef-default p.post-time{font-style:italic;color:#8e8c8d;font-size:12px}.wef-default p.caption-title{font-size:12px;font-weight:bold}.wef-default p.caption-link{text-align:right;word-break:break-all}.wef-default p.caption-link a{font-size:12px;color:#8e8c8d !important;text-transform:uppercase}.wef-default iframe,.wef-default embed,.wef-default object,.wef-default video,.wef-default audio{width:100% !important;border:0 !important;margin:0 !important;padding:0 !important}.wef-default .post-link{border-width:1px;border-style:solid;border-color:#d0d0d0}.wef-default .post-link p{padding-left:10px !important;padding-right:10px !important}.wef-default .text-center{text-align:center}.wef-default .pl-none{padding-left:0 !important;word-break:break-all}.wef-default .color{color:#23487f}.wef-default .bold{font-weight:bold !important}.wef-default .title{font-size:20px !important;font-weight:bold !important;word-break:break-all}.wef-default .cover{width:100%;background-size:100%;cursor:pointer}.wef-default .pad-top{padding-top:5px}.wef-default .page-post{left:2.6% !important}.wef-default .caption-description p{color:#8e8c8d !important;font-style:italic !important;font-size:12px !important}.wef-default .video{position:relative;display:block;height:0;padding:0 0 56.25%;overflow:hidden}.wef-default .video iframe,.wef-default .video embed,.wef-default .video object,.wef-default .video video{position:absolute;top:0;left:0;bottom:0;height:100%;width:100%;border:0;margin:0;padding:0}.wef-default .wef-measure{width:100%}.wef-default .break-all{word-break:break-all}.wef-default .event_address{color:#565656;font-size:12px}
templates/default/default.sass CHANGED
@@ -149,6 +149,7 @@
149
  .cover
150
  width: 100%
151
  background-size: 100%
 
152
  .pad-top
153
  padding:
154
  top: 5px
@@ -177,4 +178,7 @@
177
  .wef-measure
178
  width: 100%
179
  .break-all
180
- word-break: break-all
 
 
 
149
  .cover
150
  width: 100%
151
  background-size: 100%
152
+ cursor: pointer
153
  .pad-top
154
  padding:
155
  top: 5px
178
  .wef-measure
179
  width: 100%
180
  .break-all
181
+ word-break: break-all
182
+ .event_address
183
+ color: #565656
184
+ font-size: 12px
templates/default/event.php CHANGED
@@ -13,11 +13,11 @@ date_default_timezone_set( $old_time_zone );
13
  ?>
14
  <div class="wef-default wef-measure" style="max-width: <?php echo $width ?>px">
15
  <?php if(isset($fb_data['cover'])) : ?>
16
- <div class="cover" style="height:<?php echo $height ?>px; background-image: url('<?php echo $fb_data['cover']['source'] ?>'); background-position: 0% <?php echo $fb_data['cover']['offset_y'] ?>%;" onclick="window.open('http://www.facebook.com/<?php echo $fb_data['id'] ?>', '_blank')" ></div>
17
  <?php endif; ?>
18
  <div class="row pad-top">
19
  <div class="col-12">
20
- <a href="http://www.facebook.com/<?php echo $fb_data['id'] ?>" target="_blank" rel="nofollow">
21
  <span class="title"><?php echo $fb_data['name'] ?></span>
22
  </a>
23
  <p><?php echo $start_time ?></p>
@@ -25,13 +25,13 @@ date_default_timezone_set( $old_time_zone );
25
  <?php
26
  if ( isset( $fb_data['place']['id'] ) ) {
27
  _e( '@ ', 'wp-embed-facebook' );
28
- echo '<a href="http://www.facebook.com/' . $fb_data['place']['id'] . '" target="_blank">' . $fb_data['place']['name'] . '</a>';
29
  } else {
30
  echo isset( $fb_data['place']['name'] ) ? __( '@ ', 'wp-embed-facebook' ) . $fb_data['place']['name'] : '';
31
  }
32
  ?>
33
  </p>
34
- <p><?php echo __( 'Creator: ', 'wp-embed-facebook' ) . '<a href="http://www.facebook.com/' . $fb_data['owner']['id'] . '" target="_blank">' . $fb_data['owner']['name'] . '</a>' ?></p>
35
  </div>
36
  </div>
37
  </div>
13
  ?>
14
  <div class="wef-default wef-measure" style="max-width: <?php echo $width ?>px">
15
  <?php if(isset($fb_data['cover'])) : ?>
16
+ <div class="cover" style="height:<?php echo $height ?>px; background-image: url('<?php echo $fb_data['cover']['source'] ?>'); background-position: 0% <?php echo $fb_data['cover']['offset_y'] ?>%;" onclick="window.open('https://www.facebook.com/<?php echo $fb_data['id'] ?>', '_blank')" ></div>
17
  <?php endif; ?>
18
  <div class="row pad-top">
19
  <div class="col-12">
20
+ <a href="https://www.facebook.com/<?php echo $fb_data['id'] ?>" target="_blank" rel="nofollow">
21
  <span class="title"><?php echo $fb_data['name'] ?></span>
22
  </a>
23
  <p><?php echo $start_time ?></p>
25
  <?php
26
  if ( isset( $fb_data['place']['id'] ) ) {
27
  _e( '@ ', 'wp-embed-facebook' );
28
+ echo '<a href="https://www.facebook.com/' . $fb_data['place']['id'] . '" target="_blank">' . $fb_data['place']['name'] . '</a>';
29
  } else {
30
  echo isset( $fb_data['place']['name'] ) ? __( '@ ', 'wp-embed-facebook' ) . $fb_data['place']['name'] : '';
31
  }
32
  ?>
33
  </p>
34
+ <p><?php echo __( 'Creator: ', 'wp-embed-facebook' ) . '<a href="https://www.facebook.com/' . $fb_data['owner']['id'] . '" target="_blank">' . $fb_data['owner']['name'] . '</a>' ?></p>
35
  </div>
36
  </div>
37
  </div>
templates/default/post.php CHANGED
@@ -1,13 +1,13 @@
1
  <?php $fb_post = $fb_data ?>
2
  <div class="wef-default" style="max-width: <?php echo $width ?>px" >
3
  <div class="col-3 text-center">
4
- <a href="http://www.facebook.com/<?php echo $fb_post['from']['id'] ?>" target="_blank" rel="nofollow">
5
- <img src="http://graph.facebook.com/<?php echo $fb_post['from']['id'] ?>/picture" width="50px" height="50px" />
6
  </a>
7
  </div>
8
  <div class="col-9 pl-none">
9
  <p>
10
- <a href="http://www.facebook.com/<?php echo $fb_post['from']['id'] ?>" target="_blank" rel="nofollow">
11
  <span class="title"><?php echo $fb_post['from']['name'] ?></span>
12
  </a>
13
  </p>
1
  <?php $fb_post = $fb_data ?>
2
  <div class="wef-default" style="max-width: <?php echo $width ?>px" >
3
  <div class="col-3 text-center">
4
+ <a href="https://www.facebook.com/<?php echo $fb_post['from']['id'] ?>" target="_blank" rel="nofollow">
5
+ <img src="https://graph.facebook.com/<?php echo $fb_post['from']['id'] ?>/picture" width="50px" height="50px" />
6
  </a>
7
  </div>
8
  <div class="col-9 pl-none">
9
  <p>
10
+ <a href="https://www.facebook.com/<?php echo $fb_post['from']['id'] ?>" target="_blank" rel="nofollow">
11
  <span class="title"><?php echo $fb_post['from']['name'] ?></span>
12
  </a>
13
  </p>
templates/default/profile.php CHANGED
@@ -1,13 +1,13 @@
1
  <div class="wef-default" style="max-width: <?php echo $width ?>px">
2
  <div class="row">
3
  <div class="col-3 text-center">
4
- <a href="http://www.facebook.com/<?php echo $fb_data['id'] ?>" target="_blank" rel="nofollow">
5
- <img src="http://graph.facebook.com/<?php echo $fb_data['id'] ?>/picture" />
6
  </a>
7
  </div>
8
  <div class="col-9 pl-none">
9
  <p>
10
- <a href="http://www.facebook.com/<?php echo $fb_data['id'] ?>" target="_blank" rel="nofollow">
11
  <span class="title"><?php echo $fb_data['name'] ?></span>
12
  </a>
13
  </p>
1
  <div class="wef-default" style="max-width: <?php echo $width ?>px">
2
  <div class="row">
3
  <div class="col-3 text-center">
4
+ <a href="https://www.facebook.com/<?php echo $fb_data['id'] ?>" target="_blank" rel="nofollow">
5
+ <img src="https://graph.facebook.com/<?php echo $fb_data['id'] ?>/picture" />
6
  </a>
7
  </div>
8
  <div class="col-9 pl-none">
9
  <p>
10
+ <a href="https://www.facebook.com/<?php echo $fb_data['id'] ?>" target="_blank" rel="nofollow">
11
  <span class="title"><?php echo $fb_data['name'] ?></span>
12
  </a>
13
  </p>
templates/default/single-post.php CHANGED
@@ -71,7 +71,7 @@ date_default_timezone_set($old_time_zone);
71
  <a href="<?php echo $fb_post['link'] ?>" rel="nofollow" target="_blank">
72
  <img src="<?php echo $fb_post['full_picture'] ?>" width="100%" height="auto" /><br>
73
  </a>
74
- <?php if($type == 'music') : ?>
75
  <p>
76
  <audio controls>
77
  <source src="<?php echo $fb_post['source'] ?>" type="audio/mpeg">
@@ -94,7 +94,7 @@ date_default_timezone_set($old_time_zone);
94
  <?php
95
  break;
96
  endswitch;
97
- ?>
98
  <a class="post-likes" href="<?php echo "https://www.facebook.com/".$link[0]."/posts/".$link[1] ?> " target="_blank" rel="nofollow">
99
  <?php echo isset($fb_post['likes']) ? '<img src="https://fbstatic-a.akamaihd.net/rsrc.php/v2/y6/r/l9Fe9Ugss0S.gif" />'.$fb_post['likes']['summary']['total_count'].' ' : "" ?>
100
  <?php echo isset($fb_post['comments']) ? '<img src="https://fbstatic-a.akamaihd.net/rsrc.php/v2/yg/r/V8Yrm0eKZpi.gif" />'.$fb_post['comments']['summary']['total_count'].' ' : "" ?>
71
  <a href="<?php echo $fb_post['link'] ?>" rel="nofollow" target="_blank">
72
  <img src="<?php echo $fb_post['full_picture'] ?>" width="100%" height="auto" /><br>
73
  </a>
74
+ <?php if($fb_post["type"] == 'music') : ?>
75
  <p>
76
  <audio controls>
77
  <source src="<?php echo $fb_post['source'] ?>" type="audio/mpeg">
94
  <?php
95
  break;
96
  endswitch;
97
+ ?><br>
98
  <a class="post-likes" href="<?php echo "https://www.facebook.com/".$link[0]."/posts/".$link[1] ?> " target="_blank" rel="nofollow">
99
  <?php echo isset($fb_post['likes']) ? '<img src="https://fbstatic-a.akamaihd.net/rsrc.php/v2/y6/r/l9Fe9Ugss0S.gif" />'.$fb_post['likes']['summary']['total_count'].' ' : "" ?>
100
  <?php echo isset($fb_post['comments']) ? '<img src="https://fbstatic-a.akamaihd.net/rsrc.php/v2/yg/r/V8Yrm0eKZpi.gif" />'.$fb_post['comments']['summary']['total_count'].' ' : "" ?>
templates/default/video.php CHANGED
@@ -11,7 +11,7 @@ $use_ratio = (get_option('wpemfb_video_ratio') == 'true');
11
  $type = end($type_array);
12
  $clean_type = strtolower($type);
13
 
14
- if( get_option('wpemfb_raw_video_fb') == 'false' && $clean_type == 'mp4' ) : ?>
15
  <?php $end = isset($fb_data['format']) ? end($fb_data['format']) : $fb_data; ?>
16
 
17
  <video controls poster="<?php echo $end['picture'] ?>" >
11
  $type = end($type_array);
12
  $clean_type = strtolower($type);
13
 
14
+ if( WP_Embed_FB::is_raw('video') && $clean_type == 'mp4' ) : ?>
15
  <?php $end = isset($fb_data['format']) ? end($fb_data['format']) : $fb_data; ?>
16
 
17
  <video controls poster="<?php echo $end['picture'] ?>" >
wp-embed-facebook.php CHANGED
@@ -2,10 +2,12 @@
2
  /*
3
  Plugin Name: WP Embed Facebook
4
  Plugin URI: http://www.wpembedfb.com
5
- Description: Embed any public Facebook video, photo, album, event, page, profile, or post. Copy the facebook url to a single line on your post, or use shortcode [facebook=url ] more information at <a href="http://www.wpembedfb.com" title="plugin website">www.wpembedfb.com</a>
6
  Author: Miguel Sirvent
7
- Version: 2.0.4
8
- Author URI: http://profiles.wordpress.org/poxtron/
 
 
9
  */
10
 
11
 
@@ -14,8 +16,9 @@ require_once('lib/class-wef-social-plugins.php');
14
  require_once('lib/class-wp-embed-fb.php');
15
 
16
  add_action('init',array('WP_Embed_FB_Plugin','init'));
 
17
  add_action('admin_notices',array('WP_Embed_FB_Plugin','admin_notices'));
18
- add_action('wp_ajax_close_warning',array('WP_Embed_FB_Plugin','close_warning'));
19
 
20
  register_activation_hook(__FILE__, array('WP_Embed_FB_Plugin', 'install') );
21
  register_uninstall_hook(__FILE__, array('WP_Embed_FB_Plugin', 'uninstall') );
2
  /*
3
  Plugin Name: WP Embed Facebook
4
  Plugin URI: http://www.wpembedfb.com
5
+ Description: Embed any public Facebook video, photo, album, event, page, profile, or post. Copy the facebook url to a single line on your post, or use shortcode [facebook url ] more information at <a href="http://www.wpembedfb.com" title="plugin website">www.wpembedfb.com</a>
6
  Author: Miguel Sirvent
7
+ Version: 2.0.5
8
+ Author URI: http://www.wpembedfb.com
9
+ Text Domain: wp-embed-facebook
10
+ Domain Path: /lang
11
  */
12
 
13
 
16
  require_once('lib/class-wp-embed-fb.php');
17
 
18
  add_action('init',array('WP_Embed_FB_Plugin','init'));
19
+ add_action('plugins_loaded',array('WP_Embed_FB_Plugin','plugins_loaded'));
20
  add_action('admin_notices',array('WP_Embed_FB_Plugin','admin_notices'));
21
+ add_action('wp_ajax_wpemfb_close_warning',array('WP_Embed_FB_Plugin','wpemfb_close_warning'));
22
 
23
  register_activation_hook(__FILE__, array('WP_Embed_FB_Plugin', 'install') );
24
  register_uninstall_hook(__FILE__, array('WP_Embed_FB_Plugin', 'uninstall') );