PB SEO Friendly Images - Version 1.4.0

Version Description

  • Better support for Divi Theme by Elegant Themes
  • Added more tags for the override / scheme function

=

Download this release

Release Info

Developer PascalBajorat
Plugin Icon 128x128 PB SEO Friendly Images
Version 1.4.0
Comparing to
See all releases

Code changes from version 1.3.3 to 1.4.0

inc/settings.php CHANGED
@@ -176,7 +176,11 @@ if( !class_exists('pbSEOFriendlyImagesSettings') ):
176
  '<code>%desc</code> - '.__('replaces post excerpt', 'pb-seo-friendly-images').'<br />'.
177
  '<code>%name</code> - '.__('replaces image filename (without extension)', 'pb-seo-friendly-images').'<br />'.
178
  '<code>%category</code> - '.__('replaces post category', 'pb-seo-friendly-images').'<br />'.
179
- '<code>%tags</code> - '.__('replaces post tags', 'pb-seo-friendly-images');
 
 
 
 
180
 
181
  self::$settings->addSettingsField(
182
  'pbsfi_alt_scheme',
176
  '<code>%desc</code> - '.__('replaces post excerpt', 'pb-seo-friendly-images').'<br />'.
177
  '<code>%name</code> - '.__('replaces image filename (without extension)', 'pb-seo-friendly-images').'<br />'.
178
  '<code>%category</code> - '.__('replaces post category', 'pb-seo-friendly-images').'<br />'.
179
+ '<code>%tags</code> - '.__('replaces post tags', 'pb-seo-friendly-images').'<br />'.
180
+ '<code>%media_title</code> - '.__('replaces attachment title (could be empty if not set)', 'pb-seo-friendly-images').'<br />'.
181
+ '<code>%media_alt</code> - '.__('replaces attachment alt-text (could be empty if not set)', 'pb-seo-friendly-images').'<br />'.
182
+ '<code>%media_caption</code> - '.__('replaces attachment caption (could be empty if not set)', 'pb-seo-friendly-images').'<br />'.
183
+ '<code>%media_description</code> - '.__('replaces attachment description (could be empty if not set)', 'pb-seo-friendly-images');
184
 
185
  self::$settings->addSettingsField(
186
  'pbsfi_alt_scheme',
lang/pb-seo-friendly-images-de_DE.mo CHANGED
Binary file
lang/pb-seo-friendly-images-de_DE.po CHANGED
@@ -1,15 +1,15 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: PB SEO Friendly Images\n"
4
- "POT-Creation-Date: 2017-01-27 18:11+0100\n"
5
- "PO-Revision-Date: 2017-01-27 18:15+0100\n"
6
  "Last-Translator: Pascal Bajorat <pascal@pascal-bajorat.com>\n"
7
  "Language-Team: Pascal Bajorat <pascal@pascal-bajorat.com>\n"
8
  "Language: de\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "X-Generator: Poedit 1.8.11\n"
13
  "X-Poedit-Basepath: ..\n"
14
  "X-Poedit-WPHeader: pb-seo-friendly-images.php\n"
15
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
@@ -218,23 +218,46 @@ msgstr "Wird ersetzt durch die Artikelkategorien"
218
  msgid "replaces post tags"
219
  msgstr "Wird ersetzt durch die Artikel-Tags"
220
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
221
  #: inc/settings.php:183
 
 
 
 
 
 
222
  msgid "alt scheme"
223
  msgstr "Schema alt-Attribut"
224
 
225
- #: inc/settings.php:187 inc/settings.php:197
226
  msgid "default"
227
  msgstr "Standard"
228
 
229
- #: inc/settings.php:193
230
  msgid "title scheme"
231
  msgstr "Schema title-Attribut"
232
 
233
- #: inc/settings.php:213
234
  msgid "Lazy Load settings"
235
  msgstr "Lazy Load Einstellungen"
236
 
237
- #: inc/settings.php:215
238
  msgid ""
239
  "This function is very useful and it boosts performance by delaying loading "
240
  "of images in long web pages, because images outside of viewport (visible "
@@ -245,7 +268,7 @@ msgstr ""
245
  "wenn diese in den Viewport scrollen, nicht vorher. Damit wird die initiale "
246
  "Datenlast beim Laden stark reduziert."
247
 
248
- #: inc/settings.php:216
249
  msgid ""
250
  "The lazy load is powered by unveil.js, one of the fastest and thinnest lazy "
251
  "loader in the web. The implementation is highly seo compatible with a no js "
@@ -255,7 +278,7 @@ msgstr ""
255
  "Lazy Loader im Web. Die Umsetzung ist SEO kompatibel aufgebaut und verfügt "
256
  "über einen JS Fallback."
257
 
258
- #: inc/settings.php:217
259
  msgid ""
260
  "If enabled the lazy load will be added automatically to images in your post "
261
  "or page content and also to post thumbnails."
@@ -263,7 +286,7 @@ msgstr ""
263
  "Wenn der Lazy Load aktiviert ist, wird die Funktion automatisch in deinen "
264
  "Beiträgen, Seite und Artikelbildern aktiviert."
265
 
266
- #: inc/settings.php:222
267
  #, php-format
268
  msgid ""
269
  "Please consider upgrading to <a href=\"%s\" target=\"_blank\">PB SEO "
@@ -272,7 +295,7 @@ msgstr ""
272
  "Bitte führe ein Upgrade auf <a href=\"%s\" target=\"_blank\">PB SEO Friendly "
273
  "Images Pro</a> durch, um diese Funktion verwenden zu können."
274
 
275
- #: inc/settings.php:227
276
  msgid ""
277
  "Want to add lazy load to images in your theme? You only need to do some "
278
  "small modifications. Add class \"lazy\" and modify the \"src\" like this:"
@@ -281,39 +304,39 @@ msgstr ""
281
  "musst lediglich ein paar kleinere Modifikationen durchführen. Füge die "
282
  "Klasse \"lazy\" hinzu und erweitere das \"src\" Attribut wie folgt:"
283
 
284
- #: inc/settings.php:227
285
  msgid "REAL SRC HERE"
286
  msgstr "Echter SRC Pfad"
287
 
288
- #: inc/settings.php:233
289
  msgid "enable lazy load"
290
  msgstr "Lazy Load aktivieren"
291
 
292
- #: inc/settings.php:237
293
  msgid "enable lazy load and boost up your site speed"
294
  msgstr "Aktiviere Lazy Load und steigere die Performance deiner Webseite"
295
 
296
- #: inc/settings.php:244
297
  msgid "enable lazy load for acf"
298
  msgstr "Lazy Load für ACF"
299
 
300
- #: inc/settings.php:248
301
  msgid "enable lazy load for AdvancedCustomFields"
302
  msgstr "Lazy Load für AdvancedCustomFields aktivieren"
303
 
304
- #: inc/settings.php:255
305
  msgid "lazy load default styles"
306
  msgstr "Lazy Load Standard-Styles laden"
307
 
308
- #: inc/settings.php:259
309
  msgid "enable lazy load default styles"
310
  msgstr "Lazy Load Standard-Styles laden"
311
 
312
- #: inc/settings.php:266
313
  msgid "threshold"
314
  msgstr "Grenzwert für Lazy Load"
315
 
316
- #: inc/settings.php:270
317
  msgid ""
318
  "By default, images are only loaded when the user scrolls to them and they "
319
  "became visible on the screen (default value for this field <code>0</code>). "
@@ -326,15 +349,15 @@ msgstr ""
326
  "sagen wir 200px vor dem Viewport, dann müssen <code>200</code> als Feldwert "
327
  "gesetzt werden."
328
 
329
- #: inc/settings.php:287
330
  msgid "Additional features"
331
  msgstr "Zusatzfunktionen"
332
 
333
- #: inc/settings.php:293
334
  msgid "set title for links"
335
  msgstr "Title für Links setzen"
336
 
337
- #: inc/settings.php:297
338
  msgid ""
339
  "Use the power of PB SEO Friendly Images also for seo friendly links. This "
340
  "will set the title depending on the link text and only if there is no "
@@ -344,11 +367,11 @@ msgstr ""
344
  "Links. Das Tool wird nicht vergebene Linktitel automatisch auf Basis der "
345
  "Linktexte oder enthaltener Bilder setzen"
346
 
347
- #: inc/settings.php:304
348
  msgid "disable srcset"
349
  msgstr "srcset ausschalten"
350
 
351
- #: inc/settings.php:308
352
  msgid ""
353
  "disable srcset attribute and responsive images in WordPress if you don't "
354
  "need them"
@@ -357,11 +380,11 @@ msgstr ""
357
  "diese nicht benötigst"
358
 
359
  #. Plugin Name of the plugin/theme
360
- #: inc/settings.php:318
361
  msgid "PB SEO Friendly Images"
362
  msgstr "PB SEO Friendly Images"
363
 
364
- #: inc/settings.php:319
365
  msgid "SEO Friendly Images"
366
  msgstr "SEO Friendly Images"
367
 
@@ -387,8 +410,8 @@ msgid "Unknown update checker status \"%s\""
387
  msgstr "Unbekannter Aktualisierungs-Status \"%s\""
388
 
389
  #. Plugin URI of the plugin/theme
390
- msgid "http://wordpress.org/extend/plugins/pb-seo-friendly-images/"
391
- msgstr "http://wordpress.org/extend/plugins/pb-seo-friendly-images/"
392
 
393
  #. Description of the plugin/theme
394
  msgid ""
@@ -408,5 +431,8 @@ msgstr "Pascal Bajorat"
408
  msgid "https://www.pascal-bajorat.com"
409
  msgstr "https://www.pascal-bajorat.com"
410
 
 
 
 
411
  #~ msgid "PB SEO Friendly Images Pro"
412
  #~ msgstr "PB SEO Friendly Images Pro"
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: PB SEO Friendly Images\n"
4
+ "POT-Creation-Date: 2017-03-06 00:02+0100\n"
5
+ "PO-Revision-Date: 2017-03-06 00:06+0100\n"
6
  "Last-Translator: Pascal Bajorat <pascal@pascal-bajorat.com>\n"
7
  "Language-Team: Pascal Bajorat <pascal@pascal-bajorat.com>\n"
8
  "Language: de\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Generator: Poedit 1.8.12\n"
13
  "X-Poedit-Basepath: ..\n"
14
  "X-Poedit-WPHeader: pb-seo-friendly-images.php\n"
15
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
218
  msgid "replaces post tags"
219
  msgstr "Wird ersetzt durch die Artikel-Tags"
220
 
221
+ #: inc/settings.php:180
222
+ msgid "replaces attachment title (could be empty if not set)"
223
+ msgstr ""
224
+ "Wird ersetzt durch den Medien-Titel (könnte leer sein, falls nicht gesetzt)"
225
+
226
+ #: inc/settings.php:181
227
+ msgid "replaces attachment alt-text (could be empty if not set)"
228
+ msgstr ""
229
+ "Wird ersetzt durch den Medien-Alternativtext (könnte leer sein, falls nicht "
230
+ "gesetzt)"
231
+
232
+ #: inc/settings.php:182
233
+ msgid "replaces attachment caption (could be empty if not set)"
234
+ msgstr ""
235
+ "Wird ersetzt durch die Medien-Beschriftung (könnte leer sein, falls nicht "
236
+ "gesetzt)"
237
+
238
  #: inc/settings.php:183
239
+ msgid "replaces attachment description (could be empty if not set)"
240
+ msgstr ""
241
+ "Wird ersetzt durch die Medien-Beschreibung (könnte leer sein, falls nicht "
242
+ "gesetzt)"
243
+
244
+ #: inc/settings.php:187
245
  msgid "alt scheme"
246
  msgstr "Schema alt-Attribut"
247
 
248
+ #: inc/settings.php:191 inc/settings.php:201
249
  msgid "default"
250
  msgstr "Standard"
251
 
252
+ #: inc/settings.php:197
253
  msgid "title scheme"
254
  msgstr "Schema title-Attribut"
255
 
256
+ #: inc/settings.php:217
257
  msgid "Lazy Load settings"
258
  msgstr "Lazy Load Einstellungen"
259
 
260
+ #: inc/settings.php:219
261
  msgid ""
262
  "This function is very useful and it boosts performance by delaying loading "
263
  "of images in long web pages, because images outside of viewport (visible "
268
  "wenn diese in den Viewport scrollen, nicht vorher. Damit wird die initiale "
269
  "Datenlast beim Laden stark reduziert."
270
 
271
+ #: inc/settings.php:220
272
  msgid ""
273
  "The lazy load is powered by unveil.js, one of the fastest and thinnest lazy "
274
  "loader in the web. The implementation is highly seo compatible with a no js "
278
  "Lazy Loader im Web. Die Umsetzung ist SEO kompatibel aufgebaut und verfügt "
279
  "über einen JS Fallback."
280
 
281
+ #: inc/settings.php:221
282
  msgid ""
283
  "If enabled the lazy load will be added automatically to images in your post "
284
  "or page content and also to post thumbnails."
286
  "Wenn der Lazy Load aktiviert ist, wird die Funktion automatisch in deinen "
287
  "Beiträgen, Seite und Artikelbildern aktiviert."
288
 
289
+ #: inc/settings.php:226
290
  #, php-format
291
  msgid ""
292
  "Please consider upgrading to <a href=\"%s\" target=\"_blank\">PB SEO "
295
  "Bitte führe ein Upgrade auf <a href=\"%s\" target=\"_blank\">PB SEO Friendly "
296
  "Images Pro</a> durch, um diese Funktion verwenden zu können."
297
 
298
+ #: inc/settings.php:231
299
  msgid ""
300
  "Want to add lazy load to images in your theme? You only need to do some "
301
  "small modifications. Add class \"lazy\" and modify the \"src\" like this:"
304
  "musst lediglich ein paar kleinere Modifikationen durchführen. Füge die "
305
  "Klasse \"lazy\" hinzu und erweitere das \"src\" Attribut wie folgt:"
306
 
307
+ #: inc/settings.php:231
308
  msgid "REAL SRC HERE"
309
  msgstr "Echter SRC Pfad"
310
 
311
+ #: inc/settings.php:237
312
  msgid "enable lazy load"
313
  msgstr "Lazy Load aktivieren"
314
 
315
+ #: inc/settings.php:241
316
  msgid "enable lazy load and boost up your site speed"
317
  msgstr "Aktiviere Lazy Load und steigere die Performance deiner Webseite"
318
 
319
+ #: inc/settings.php:248
320
  msgid "enable lazy load for acf"
321
  msgstr "Lazy Load für ACF"
322
 
323
+ #: inc/settings.php:252
324
  msgid "enable lazy load for AdvancedCustomFields"
325
  msgstr "Lazy Load für AdvancedCustomFields aktivieren"
326
 
327
+ #: inc/settings.php:259
328
  msgid "lazy load default styles"
329
  msgstr "Lazy Load Standard-Styles laden"
330
 
331
+ #: inc/settings.php:263
332
  msgid "enable lazy load default styles"
333
  msgstr "Lazy Load Standard-Styles laden"
334
 
335
+ #: inc/settings.php:270
336
  msgid "threshold"
337
  msgstr "Grenzwert für Lazy Load"
338
 
339
+ #: inc/settings.php:274
340
  msgid ""
341
  "By default, images are only loaded when the user scrolls to them and they "
342
  "became visible on the screen (default value for this field <code>0</code>). "
349
  "sagen wir 200px vor dem Viewport, dann müssen <code>200</code> als Feldwert "
350
  "gesetzt werden."
351
 
352
+ #: inc/settings.php:291
353
  msgid "Additional features"
354
  msgstr "Zusatzfunktionen"
355
 
356
+ #: inc/settings.php:297
357
  msgid "set title for links"
358
  msgstr "Title für Links setzen"
359
 
360
+ #: inc/settings.php:301
361
  msgid ""
362
  "Use the power of PB SEO Friendly Images also for seo friendly links. This "
363
  "will set the title depending on the link text and only if there is no "
367
  "Links. Das Tool wird nicht vergebene Linktitel automatisch auf Basis der "
368
  "Linktexte oder enthaltener Bilder setzen"
369
 
370
+ #: inc/settings.php:308
371
  msgid "disable srcset"
372
  msgstr "srcset ausschalten"
373
 
374
+ #: inc/settings.php:312
375
  msgid ""
376
  "disable srcset attribute and responsive images in WordPress if you don't "
377
  "need them"
380
  "diese nicht benötigst"
381
 
382
  #. Plugin Name of the plugin/theme
383
+ #: inc/settings.php:322
384
  msgid "PB SEO Friendly Images"
385
  msgstr "PB SEO Friendly Images"
386
 
387
+ #: inc/settings.php:323
388
  msgid "SEO Friendly Images"
389
  msgstr "SEO Friendly Images"
390
 
410
  msgstr "Unbekannter Aktualisierungs-Status \"%s\""
411
 
412
  #. Plugin URI of the plugin/theme
413
+ msgid "https://wordpress.org/extend/plugins/pb-seo-friendly-images/"
414
+ msgstr "https://wordpress.org/extend/plugins/pb-seo-friendly-images/"
415
 
416
  #. Description of the plugin/theme
417
  msgid ""
431
  msgid "https://www.pascal-bajorat.com"
432
  msgstr "https://www.pascal-bajorat.com"
433
 
434
+ #~ msgid "http://wordpress.org/extend/plugins/pb-seo-friendly-images/"
435
+ #~ msgstr "http://wordpress.org/extend/plugins/pb-seo-friendly-images/"
436
+
437
  #~ msgid "PB SEO Friendly Images Pro"
438
  #~ msgstr "PB SEO Friendly Images Pro"
lang/pb-seo-friendly-images.pot CHANGED
@@ -3,14 +3,14 @@ msgid ""
3
  msgstr ""
4
  "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
5
  "Project-Id-Version: PB SEO Friendly Images Pro\n"
6
- "POT-Creation-Date: 2017-01-27 18:15+0100\n"
7
  "PO-Revision-Date: 2016-12-23 22:36+0100\n"
8
  "Last-Translator: Pascal Bajorat <pascal@pascal-bajorat.com>\n"
9
  "Language-Team: Pascal Bajorat <pascal@pascal-bajorat.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.11\n"
14
  "X-Poedit-Basepath: ..\n"
15
  "X-Poedit-WPHeader: pb-seo-friendly-images.php\n"
16
  "X-Poedit-SourceCharset: UTF-8\n"
@@ -185,88 +185,104 @@ msgstr ""
185
  msgid "replaces post tags"
186
  msgstr ""
187
 
 
 
 
 
 
 
 
 
 
 
 
 
188
  #: inc/settings.php:183
 
 
 
 
189
  msgid "alt scheme"
190
  msgstr ""
191
 
192
- #: inc/settings.php:187 inc/settings.php:197
193
  msgid "default"
194
  msgstr ""
195
 
196
- #: inc/settings.php:193
197
  msgid "title scheme"
198
  msgstr ""
199
 
200
- #: inc/settings.php:213
201
  msgid "Lazy Load settings"
202
  msgstr ""
203
 
204
- #: inc/settings.php:215
205
  msgid ""
206
  "This function is very useful and it boosts performance by delaying loading of "
207
  "images in long web pages, because images outside of viewport (visible part of "
208
  "web page) won't be loaded until the user scrolls to them."
209
  msgstr ""
210
 
211
- #: inc/settings.php:216
212
  msgid ""
213
  "The lazy load is powered by unveil.js, one of the fastest and thinnest lazy "
214
  "loader in the web. The implementation is highly seo compatible with a no js "
215
  "fallback."
216
  msgstr ""
217
 
218
- #: inc/settings.php:217
219
  msgid ""
220
  "If enabled the lazy load will be added automatically to images in your post or "
221
  "page content and also to post thumbnails."
222
  msgstr ""
223
 
224
- #: inc/settings.php:222
225
  #, php-format
226
  msgid ""
227
  "Please consider upgrading to <a href=\"%s\" target=\"_blank\">PB SEO Friendly "
228
  "Images Pro</a> if you want to use this feature."
229
  msgstr ""
230
 
231
- #: inc/settings.php:227
232
  msgid ""
233
  "Want to add lazy load to images in your theme? You only need to do some small "
234
  "modifications. Add class \"lazy\" and modify the \"src\" like this:"
235
  msgstr ""
236
 
237
- #: inc/settings.php:227
238
  msgid "REAL SRC HERE"
239
  msgstr ""
240
 
241
- #: inc/settings.php:233
242
  msgid "enable lazy load"
243
  msgstr ""
244
 
245
- #: inc/settings.php:237
246
  msgid "enable lazy load and boost up your site speed"
247
  msgstr ""
248
 
249
- #: inc/settings.php:244
250
  msgid "enable lazy load for acf"
251
  msgstr ""
252
 
253
- #: inc/settings.php:248
254
  msgid "enable lazy load for AdvancedCustomFields"
255
  msgstr ""
256
 
257
- #: inc/settings.php:255
258
  msgid "lazy load default styles"
259
  msgstr ""
260
 
261
- #: inc/settings.php:259
262
  msgid "enable lazy load default styles"
263
  msgstr ""
264
 
265
- #: inc/settings.php:266
266
  msgid "threshold"
267
  msgstr ""
268
 
269
- #: inc/settings.php:270
270
  msgid ""
271
  "By default, images are only loaded when the user scrolls to them and they became "
272
  "visible on the screen (default value for this field <code>0</code>). If you want "
@@ -274,36 +290,36 @@ msgid ""
274
  "<code>200</code>."
275
  msgstr ""
276
 
277
- #: inc/settings.php:287
278
  msgid "Additional features"
279
  msgstr ""
280
 
281
- #: inc/settings.php:293
282
  msgid "set title for links"
283
  msgstr ""
284
 
285
- #: inc/settings.php:297
286
  msgid ""
287
  "Use the power of PB SEO Friendly Images also for seo friendly links. This will "
288
  "set the title depending on the link text and only if there is no existing title"
289
  msgstr ""
290
 
291
- #: inc/settings.php:304
292
  msgid "disable srcset"
293
  msgstr ""
294
 
295
- #: inc/settings.php:308
296
  msgid ""
297
  "disable srcset attribute and responsive images in WordPress if you don't need "
298
  "them"
299
  msgstr ""
300
 
301
  #. Plugin Name of the plugin/theme
302
- #: inc/settings.php:318
303
  msgid "PB SEO Friendly Images"
304
  msgstr ""
305
 
306
- #: inc/settings.php:319
307
  msgid "SEO Friendly Images"
308
  msgstr ""
309
 
@@ -329,7 +345,7 @@ msgid "Unknown update checker status \"%s\""
329
  msgstr ""
330
 
331
  #. Plugin URI of the plugin/theme
332
- msgid "http://wordpress.org/extend/plugins/pb-seo-friendly-images/"
333
  msgstr ""
334
 
335
  #. Description of the plugin/theme
3
  msgstr ""
4
  "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
5
  "Project-Id-Version: PB SEO Friendly Images Pro\n"
6
+ "POT-Creation-Date: 2017-03-06 00:02+0100\n"
7
  "PO-Revision-Date: 2016-12-23 22:36+0100\n"
8
  "Last-Translator: Pascal Bajorat <pascal@pascal-bajorat.com>\n"
9
  "Language-Team: Pascal Bajorat <pascal@pascal-bajorat.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.12\n"
14
  "X-Poedit-Basepath: ..\n"
15
  "X-Poedit-WPHeader: pb-seo-friendly-images.php\n"
16
  "X-Poedit-SourceCharset: UTF-8\n"
185
  msgid "replaces post tags"
186
  msgstr ""
187
 
188
+ #: inc/settings.php:180
189
+ msgid "replaces attachment title (could be empty if not set)"
190
+ msgstr ""
191
+
192
+ #: inc/settings.php:181
193
+ msgid "replaces attachment alt-text (could be empty if not set)"
194
+ msgstr ""
195
+
196
+ #: inc/settings.php:182
197
+ msgid "replaces attachment caption (could be empty if not set)"
198
+ msgstr ""
199
+
200
  #: inc/settings.php:183
201
+ msgid "replaces attachment description (could be empty if not set)"
202
+ msgstr ""
203
+
204
+ #: inc/settings.php:187
205
  msgid "alt scheme"
206
  msgstr ""
207
 
208
+ #: inc/settings.php:191 inc/settings.php:201
209
  msgid "default"
210
  msgstr ""
211
 
212
+ #: inc/settings.php:197
213
  msgid "title scheme"
214
  msgstr ""
215
 
216
+ #: inc/settings.php:217
217
  msgid "Lazy Load settings"
218
  msgstr ""
219
 
220
+ #: inc/settings.php:219
221
  msgid ""
222
  "This function is very useful and it boosts performance by delaying loading of "
223
  "images in long web pages, because images outside of viewport (visible part of "
224
  "web page) won't be loaded until the user scrolls to them."
225
  msgstr ""
226
 
227
+ #: inc/settings.php:220
228
  msgid ""
229
  "The lazy load is powered by unveil.js, one of the fastest and thinnest lazy "
230
  "loader in the web. The implementation is highly seo compatible with a no js "
231
  "fallback."
232
  msgstr ""
233
 
234
+ #: inc/settings.php:221
235
  msgid ""
236
  "If enabled the lazy load will be added automatically to images in your post or "
237
  "page content and also to post thumbnails."
238
  msgstr ""
239
 
240
+ #: inc/settings.php:226
241
  #, php-format
242
  msgid ""
243
  "Please consider upgrading to <a href=\"%s\" target=\"_blank\">PB SEO Friendly "
244
  "Images Pro</a> if you want to use this feature."
245
  msgstr ""
246
 
247
+ #: inc/settings.php:231
248
  msgid ""
249
  "Want to add lazy load to images in your theme? You only need to do some small "
250
  "modifications. Add class \"lazy\" and modify the \"src\" like this:"
251
  msgstr ""
252
 
253
+ #: inc/settings.php:231
254
  msgid "REAL SRC HERE"
255
  msgstr ""
256
 
257
+ #: inc/settings.php:237
258
  msgid "enable lazy load"
259
  msgstr ""
260
 
261
+ #: inc/settings.php:241
262
  msgid "enable lazy load and boost up your site speed"
263
  msgstr ""
264
 
265
+ #: inc/settings.php:248
266
  msgid "enable lazy load for acf"
267
  msgstr ""
268
 
269
+ #: inc/settings.php:252
270
  msgid "enable lazy load for AdvancedCustomFields"
271
  msgstr ""
272
 
273
+ #: inc/settings.php:259
274
  msgid "lazy load default styles"
275
  msgstr ""
276
 
277
+ #: inc/settings.php:263
278
  msgid "enable lazy load default styles"
279
  msgstr ""
280
 
281
+ #: inc/settings.php:270
282
  msgid "threshold"
283
  msgstr ""
284
 
285
+ #: inc/settings.php:274
286
  msgid ""
287
  "By default, images are only loaded when the user scrolls to them and they became "
288
  "visible on the screen (default value for this field <code>0</code>). If you want "
290
  "<code>200</code>."
291
  msgstr ""
292
 
293
+ #: inc/settings.php:291
294
  msgid "Additional features"
295
  msgstr ""
296
 
297
+ #: inc/settings.php:297
298
  msgid "set title for links"
299
  msgstr ""
300
 
301
+ #: inc/settings.php:301
302
  msgid ""
303
  "Use the power of PB SEO Friendly Images also for seo friendly links. This will "
304
  "set the title depending on the link text and only if there is no existing title"
305
  msgstr ""
306
 
307
+ #: inc/settings.php:308
308
  msgid "disable srcset"
309
  msgstr ""
310
 
311
+ #: inc/settings.php:312
312
  msgid ""
313
  "disable srcset attribute and responsive images in WordPress if you don't need "
314
  "them"
315
  msgstr ""
316
 
317
  #. Plugin Name of the plugin/theme
318
+ #: inc/settings.php:322
319
  msgid "PB SEO Friendly Images"
320
  msgstr ""
321
 
322
+ #: inc/settings.php:323
323
  msgid "SEO Friendly Images"
324
  msgstr ""
325
 
345
  msgstr ""
346
 
347
  #. Plugin URI of the plugin/theme
348
+ msgid "https://wordpress.org/extend/plugins/pb-seo-friendly-images/"
349
  msgstr ""
350
 
351
  #. Description of the plugin/theme
pb-seo-friendly-images.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /*
3
  Plugin Name: PB SEO Friendly Images
4
- Plugin URI: http://wordpress.org/extend/plugins/pb-seo-friendly-images/
5
  Description: This plugin is a full-featured solution for SEO friendly images. Optimize "alt" and "title" attributes for all images and post thumbnails. This plugin helps you to improve your traffic from search engines.
6
- Version: 1.3.3
7
  Author: Pascal Bajorat
8
  Author URI: https://www.pascal-bajorat.com
9
  Text Domain: pb-seo-friendly-images
@@ -38,8 +38,8 @@ if( !class_exists('pbSEOFriendlyImages') ):
38
 
39
  class pbSEOFriendlyImages
40
  {
41
- public static $verMajor = 1.3;
42
- public static $verMinor = 3;
43
 
44
 
45
  public static $basename = false;
@@ -132,9 +132,10 @@ if( !class_exists('pbSEOFriendlyImages') ):
132
  *
133
  * @param string $content scheme
134
  * @param bool|string $src image url
 
135
  * @return string
136
  */
137
- public static function convertReplacements( $content, $src=false )
138
  {
139
  global $post;
140
 
@@ -182,6 +183,22 @@ if( !class_exists('pbSEOFriendlyImages') ):
182
  $src = '';
183
  }
184
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
185
  $content = str_replace('%name', $src, $content );
186
  $content = str_replace('%title', $post->post_title, $content );
187
  $content = str_replace('%category', $cats, $content );
@@ -208,8 +225,9 @@ if( !class_exists('pbSEOFriendlyImages') ):
208
  @$content = mb_convert_encoding($content, 'HTML-ENTITIES', $charset);
209
  @$document->loadHTML($content);
210
 
211
- if( !$document )
212
  return $content;
 
213
 
214
  $imgTags = $document->getElementsByTagName('img');
215
 
@@ -224,8 +242,7 @@ if( !class_exists('pbSEOFriendlyImages') ):
224
  $src = $data_src;
225
  }
226
 
227
-
228
-
229
 
230
  /**
231
  * Override Area
@@ -233,7 +250,8 @@ if( !class_exists('pbSEOFriendlyImages') ):
233
  if( self::$userSettings['override_alt'] ) {
234
  $alt = trim(self::convertReplacements(
235
  self::$userSettings['alt_scheme'],
236
- $src
 
237
  ));
238
 
239
  $tag->setAttribute('alt', $alt);
@@ -245,7 +263,8 @@ if( !class_exists('pbSEOFriendlyImages') ):
245
 
246
  $title = trim(self::convertReplacements(
247
  self::$userSettings['title_scheme'],
248
- $src
 
249
  ));
250
 
251
  $tag->setAttribute('title', $title);
@@ -274,7 +293,8 @@ if( !class_exists('pbSEOFriendlyImages') ):
274
  if( empty($alt) ) {
275
  $alt = trim(self::convertReplacements(
276
  self::$userSettings['alt_scheme'],
277
- $src
 
278
  ));
279
 
280
  $tag->setAttribute('alt', $alt);
@@ -283,7 +303,8 @@ if( !class_exists('pbSEOFriendlyImages') ):
283
  if( empty($title) ) {
284
  $title = trim(self::convertReplacements(
285
  self::$userSettings['title_scheme'],
286
- $src
 
287
  ));
288
 
289
  $tag->setAttribute('title', $title);
@@ -330,6 +351,31 @@ if( !class_exists('pbSEOFriendlyImages') ):
330
  return $attr;
331
  }
332
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
333
  /**
334
  * Uninstall PB SEO Friendly Images
335
  */
1
  <?php
2
  /*
3
  Plugin Name: PB SEO Friendly Images
4
+ Plugin URI: https://wordpress.org/extend/plugins/pb-seo-friendly-images/
5
  Description: This plugin is a full-featured solution for SEO friendly images. Optimize "alt" and "title" attributes for all images and post thumbnails. This plugin helps you to improve your traffic from search engines.
6
+ Version: 1.4.0
7
  Author: Pascal Bajorat
8
  Author URI: https://www.pascal-bajorat.com
9
  Text Domain: pb-seo-friendly-images
38
 
39
  class pbSEOFriendlyImages
40
  {
41
+ public static $verMajor = 1.4;
42
+ public static $verMinor = 0;
43
 
44
 
45
  public static $basename = false;
132
  *
133
  * @param string $content scheme
134
  * @param bool|string $src image url
135
+ * @param bool|int $imageID
136
  * @return string
137
  */
138
+ public static function convertReplacements( $content, $src=false, $imageID=false )
139
  {
140
  global $post;
141
 
183
  $src = '';
184
  }
185
 
186
+ if( is_numeric($imageID) ) {
187
+ $attachment = wp_prepare_attachment_for_js($imageID);
188
+
189
+ if( is_array($attachment) ) {
190
+ $content = str_replace('%media_title', $attachment['title'], $content );
191
+ $content = str_replace('%media_alt', $attachment['alt'], $content );
192
+ $content = str_replace('%media_caption', $attachment['caption'], $content );
193
+ $content = str_replace('%media_description', $attachment['description'], $content );
194
+ }
195
+ }
196
+
197
+ $content = str_replace('%media_title', $post->post_title, $content );
198
+ $content = str_replace('%media_alt', $post->post_title, $content );
199
+ $content = str_replace('%media_caption', $post->post_title, $content );
200
+ $content = str_replace('%media_description', $post->post_title, $content );
201
+
202
  $content = str_replace('%name', $src, $content );
203
  $content = str_replace('%title', $post->post_title, $content );
204
  $content = str_replace('%category', $cats, $content );
225
  @$content = mb_convert_encoding($content, 'HTML-ENTITIES', $charset);
226
  @$document->loadHTML($content);
227
 
228
+ if( !$document ) {
229
  return $content;
230
+ }
231
 
232
  $imgTags = $document->getElementsByTagName('img');
233
 
242
  $src = $data_src;
243
  }
244
 
245
+ $imageID = self::getImageID($src);
 
246
 
247
  /**
248
  * Override Area
250
  if( self::$userSettings['override_alt'] ) {
251
  $alt = trim(self::convertReplacements(
252
  self::$userSettings['alt_scheme'],
253
+ $src,
254
+ $imageID
255
  ));
256
 
257
  $tag->setAttribute('alt', $alt);
263
 
264
  $title = trim(self::convertReplacements(
265
  self::$userSettings['title_scheme'],
266
+ $src,
267
+ $imageID
268
  ));
269
 
270
  $tag->setAttribute('title', $title);
293
  if( empty($alt) ) {
294
  $alt = trim(self::convertReplacements(
295
  self::$userSettings['alt_scheme'],
296
+ $src,
297
+ $imageID
298
  ));
299
 
300
  $tag->setAttribute('alt', $alt);
303
  if( empty($title) ) {
304
  $title = trim(self::convertReplacements(
305
  self::$userSettings['title_scheme'],
306
+ $src,
307
+ $imageID
308
  ));
309
 
310
  $tag->setAttribute('title', $title);
351
  return $attr;
352
  }
353
 
354
+ /**
355
+ * Get Image ID by URL
356
+ *
357
+ * @param string $url
358
+ * @return int|bool
359
+ */
360
+ public static function getImageID( $url )
361
+ {
362
+ global $wpdb;
363
+
364
+ $sql = $wpdb->prepare(
365
+ 'SELECT `ID` FROM `'.$wpdb->posts.'` WHERE `guid` = \'%s\';',
366
+ esc_sql($url)
367
+ );
368
+
369
+ $attachment = $wpdb->get_col($sql);
370
+
371
+
372
+ if( is_numeric( self::getArrayKey(0, $attachment) ) ) {
373
+ return (int) $attachment[0];
374
+ }
375
+
376
+ return false;
377
+ }
378
+
379
  /**
380
  * Uninstall PB SEO Friendly Images
381
  */
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.pascal-bajorat.com/spenden/
4
  Tags: seo, images, Post, admin, google, attachment, optimize, photo, picture, image, media, photos, pictures, alt, title
5
  Requires at least: 3.0
6
  Tested up to: 4.7.3
7
- Stable tag: 1.3.3
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -65,6 +65,10 @@ If you have any questions or problems, you can ask me: [Pascal Bajorat - Webdesi
65
  = 1.3.3 =
66
  * Bit.ly wrongly blocked the Pro-URL. Now the URL is changed to: [https://goo.gl/0SV2EU](https://goo.gl/0SV2EU "https://goo.gl/0SV2EU")
67
 
 
 
 
 
68
  == License ==
69
 
70
  GNU General Public License v.3 - http://www.gnu.org/licenses/gpl-3.0.html
4
  Tags: seo, images, Post, admin, google, attachment, optimize, photo, picture, image, media, photos, pictures, alt, title
5
  Requires at least: 3.0
6
  Tested up to: 4.7.3
7
+ Stable tag: 1.4.0
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
65
  = 1.3.3 =
66
  * Bit.ly wrongly blocked the Pro-URL. Now the URL is changed to: [https://goo.gl/0SV2EU](https://goo.gl/0SV2EU "https://goo.gl/0SV2EU")
67
 
68
+ = 1.4.0 =
69
+ * Better support for Divi Theme by Elegant Themes
70
+ * Added more tags for the override / scheme function
71
+
72
  == License ==
73
 
74
  GNU General Public License v.3 - http://www.gnu.org/licenses/gpl-3.0.html