PB SEO Friendly Images - Version 1.1.0

Version Description

Download this release

Release Info

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

Code changes from version 1.0.0 to 1.1.0

lang/pb-seo-friendly-images-de_DE.mo CHANGED
Binary file
lang/pb-seo-friendly-images-de_DE.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: PB SEO Friendly Images\n"
4
- "POT-Creation-Date: 2016-12-13 19:54+0100\n"
5
- "PO-Revision-Date: 2016-12-13 20:53+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"
@@ -20,15 +20,15 @@ msgstr ""
20
  "X-Poedit-SearchPath-0: .\n"
21
  "X-Poedit-SearchPathExcluded-0: *.js\n"
22
 
23
- #: inc/settings.php:37
24
  msgid "Settings"
25
  msgstr "Einstellungen"
26
 
27
- #: inc/settings.php:57
28
  msgid "Image »alt« and »title« Settings"
29
  msgstr "Bilder »alt« und »title« Einstellungen"
30
 
31
- #: inc/settings.php:59
32
  msgid ""
33
  "PB SEO Friendly Images automatically adds »alt« and »title« attributes to "
34
  "all images and post thumbnails in your posts. The default options are a good "
@@ -40,11 +40,11 @@ msgstr ""
40
  "werden für die meisten Webseiten gut funktionieren, ohne das Änderungen "
41
  "notwendig sind."
42
 
43
- #: inc/settings.php:60
44
  msgid "Override feature"
45
  msgstr "Override-Funktion"
46
 
47
- #: inc/settings.php:60
48
  msgid ""
49
  "If you enable the override this means that a possible sync and also hand "
50
  "picked »alt« / »title« attributes will be overwritten with the selected "
@@ -58,7 +58,7 @@ msgstr ""
58
  "hast, solltest du einfach die Sync Funktion ihren Job machen lassen und "
59
  "keine Überschreibung erzwingen."
60
 
61
- #: inc/settings.php:63
62
  #, php-format
63
  msgid ""
64
  "PB SEO Friendly Images is a free WordPress Plugin by <a href=\"%s\" target="
@@ -72,51 +72,51 @@ msgstr ""
72
  "\" target=\"_blank\">wenn du mich mit einer kleinen Spende virtuell auf "
73
  "einen Kaffee oder Bier einlädst</a>."
74
 
75
- #: inc/settings.php:73
76
  msgid "optimize images"
77
  msgstr "Bilder optimieren"
78
 
79
- #: inc/settings.php:78
80
  msgid "post thumbnails and images in post content"
81
  msgstr "Thumbnails und Bilder innerhalb der Posts"
82
 
83
- #: inc/settings.php:78 inc/settings.php:93
84
  msgid "recommended"
85
  msgstr "empfohlen"
86
 
87
- #: inc/settings.php:79
88
  msgid "only post thumbnails"
89
  msgstr "Nur Postthumbnails"
90
 
91
- #: inc/settings.php:80
92
  msgid "only images in post content"
93
  msgstr "Nur Bilder im Post-Inhalt"
94
 
95
- #: inc/settings.php:82
96
  msgid "which images should be optimized"
97
  msgstr "Welche Bilder sollen optimiert werden."
98
 
99
- #: inc/settings.php:88
100
  msgid "sync method"
101
  msgstr "Synchronisierungsmethode"
102
 
103
- #: inc/settings.php:93
104
  msgid "alt <=> title"
105
  msgstr "alt <=> title"
106
 
107
- #: inc/settings.php:94
108
  msgid "alt => title"
109
  msgstr "alt => title"
110
 
111
- #: inc/settings.php:95
112
  msgid "alt <= title"
113
  msgstr "alt => title"
114
 
115
- #: inc/settings.php:97
116
  msgid "select sync method for »alt« and »title« attribute."
117
  msgstr "Wähle die Synchronisierungsmethode für »alt« und »title« Attribute."
118
 
119
- #: inc/settings.php:98
120
  msgid ""
121
  "<code>alt <=> title</code> - if one attribute is set use it also for the "
122
  "other one"
@@ -124,80 +124,80 @@ msgstr ""
124
  "<code>alt <=> title</code> - Wenn ein Attribut gesetzt ist, wird dieses auch "
125
  "auf das andere übertragen"
126
 
127
- #: inc/settings.php:99
128
  msgid ""
129
  "<code>alt => title</code> - if »alt« is set use it for the title attribute"
130
  msgstr ""
131
  "<code>alt => title</code> - Wenn »alt« gesetzt ist, wird der Wert ebenfalls "
132
  "für »title« gesetzt"
133
 
134
- #: inc/settings.php:100
135
  msgid ""
136
  "<code>alt <= title</code> - if »title« is set use it for the alt attribute"
137
  msgstr ""
138
  "<code>alt <= title</code> - Wenn »title« gesetzt ist, wird der Wert "
139
  "ebenfalls für »alt« gesetzt"
140
 
141
- #: inc/settings.php:106
142
  msgid "override »alt«"
143
  msgstr "»alt« überschreiben"
144
 
145
- #: inc/settings.php:110
146
  msgid "override existing image alt attributes"
147
  msgstr "Überschreibt bestehende »alt« Attribute"
148
 
149
- #: inc/settings.php:116
150
  msgid "override »title«"
151
  msgstr "»title« überschreiben"
152
 
153
- #: inc/settings.php:120
154
  msgid "override existing image title attributes"
155
  msgstr "Überschreibt bestehende »title« Attribute"
156
 
157
- #: inc/settings.php:124
158
  msgid "possible variables:"
159
  msgstr "Mögliche Variablen:"
160
 
161
- #: inc/settings.php:125
162
  msgid "replaces post title"
163
  msgstr "Wird ersetzt durch Artikeltitel"
164
 
165
- #: inc/settings.php:126
166
  msgid "replaces post excerpt"
167
  msgstr "Wird ersetzt durch den Artikelauszug"
168
 
169
- #: inc/settings.php:127
170
  msgid "replaces image filename (without extension)"
171
  msgstr "Wird ersetzt mit dem Dateinamen (ohne Dateiendung)"
172
 
173
- #: inc/settings.php:128
174
  msgid "replaces post category"
175
  msgstr "Wird ersetzt durch die Artikelkategorien"
176
 
177
- #: inc/settings.php:129
178
  msgid "replaces post tags"
179
  msgstr "Wird ersetzt durch die Artikel-Tags"
180
 
181
- #: inc/settings.php:133
182
  msgid "alt scheme"
183
  msgstr "Schema alt-Attribut"
184
 
185
- #: inc/settings.php:137 inc/settings.php:147
186
  msgid "default"
187
  msgstr "Standard"
188
 
189
- #: inc/settings.php:143
190
  msgid "title scheme"
191
  msgstr "Schema title-Attribut"
192
 
193
  #. Plugin Name of the plugin/theme
194
- #: inc/settings.php:156
195
  msgid "PB SEO Friendly Images"
196
  msgstr "PB SEO Friendly Images"
197
 
198
- #: inc/settings.php:157
199
  msgid "SEO Friendly Images"
200
- msgstr "PB SEO Friendly Images"
201
 
202
  #. Plugin URI of the plugin/theme
203
  msgid "http://wordpress.org/extend/plugins/pb-seo-friendly-images/"
@@ -205,19 +205,31 @@ msgstr "http://wordpress.org/extend/plugins/pb-seo-friendly-images/"
205
 
206
  #. Description of the plugin/theme
207
  msgid ""
208
- "This plugin is a full featured solution for SEO friendly images. You can "
209
- "optimize »alt« and »title« attributes for all images and post thumbnails. "
210
- "This plugin helps you to improve traffic from search engines."
211
  msgstr ""
212
- "Dieses Plugin ist eine komplette Lösung für SEO freundliche Bilder. Du "
213
- "kannst automatisch »alt« und »title« Attribute für alle Bilder und Post-"
214
- "Thumbnails optimieren. Das Plugin hilft durch die Optimierung der Bilder für "
215
- "höheren Traffic über Suchmaschinen."
216
 
217
  #. Author of the plugin/theme
218
  msgid "Pascal Bajorat"
219
  msgstr "Pascal Bajorat"
220
 
221
  #. Author URI of the plugin/theme
222
- msgid "http://www.pascal-bajorat.com"
223
- msgstr "http://www.pascal-bajorat.com"
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: PB SEO Friendly Images\n"
4
+ "POT-Creation-Date: 2016-12-18 23:11+0100\n"
5
+ "PO-Revision-Date: 2016-12-18 23:13+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"
20
  "X-Poedit-SearchPath-0: .\n"
21
  "X-Poedit-SearchPathExcluded-0: *.js\n"
22
 
23
+ #: inc/settings.php:36
24
  msgid "Settings"
25
  msgstr "Einstellungen"
26
 
27
+ #: inc/settings.php:56
28
  msgid "Image »alt« and »title« Settings"
29
  msgstr "Bilder »alt« und »title« Einstellungen"
30
 
31
+ #: inc/settings.php:58
32
  msgid ""
33
  "PB SEO Friendly Images automatically adds »alt« and »title« attributes to "
34
  "all images and post thumbnails in your posts. The default options are a good "
40
  "werden für die meisten Webseiten gut funktionieren, ohne das Änderungen "
41
  "notwendig sind."
42
 
43
+ #: inc/settings.php:59
44
  msgid "Override feature"
45
  msgstr "Override-Funktion"
46
 
47
+ #: inc/settings.php:59
48
  msgid ""
49
  "If you enable the override this means that a possible sync and also hand "
50
  "picked »alt« / »title« attributes will be overwritten with the selected "
58
  "hast, solltest du einfach die Sync Funktion ihren Job machen lassen und "
59
  "keine Überschreibung erzwingen."
60
 
61
+ #: inc/settings.php:62
62
  #, php-format
63
  msgid ""
64
  "PB SEO Friendly Images is a free WordPress Plugin by <a href=\"%s\" target="
72
  "\" target=\"_blank\">wenn du mich mit einer kleinen Spende virtuell auf "
73
  "einen Kaffee oder Bier einlädst</a>."
74
 
75
+ #: inc/settings.php:72
76
  msgid "optimize images"
77
  msgstr "Bilder optimieren"
78
 
79
+ #: inc/settings.php:77
80
  msgid "post thumbnails and images in post content"
81
  msgstr "Thumbnails und Bilder innerhalb der Posts"
82
 
83
+ #: inc/settings.php:77 inc/settings.php:92
84
  msgid "recommended"
85
  msgstr "empfohlen"
86
 
87
+ #: inc/settings.php:78
88
  msgid "only post thumbnails"
89
  msgstr "Nur Postthumbnails"
90
 
91
+ #: inc/settings.php:79
92
  msgid "only images in post content"
93
  msgstr "Nur Bilder im Post-Inhalt"
94
 
95
+ #: inc/settings.php:81
96
  msgid "which images should be optimized"
97
  msgstr "Welche Bilder sollen optimiert werden."
98
 
99
+ #: inc/settings.php:87
100
  msgid "sync method"
101
  msgstr "Synchronisierungsmethode"
102
 
103
+ #: inc/settings.php:92
104
  msgid "alt <=> title"
105
  msgstr "alt <=> title"
106
 
107
+ #: inc/settings.php:93
108
  msgid "alt => title"
109
  msgstr "alt => title"
110
 
111
+ #: inc/settings.php:94
112
  msgid "alt <= title"
113
  msgstr "alt => title"
114
 
115
+ #: inc/settings.php:96
116
  msgid "select sync method for »alt« and »title« attribute."
117
  msgstr "Wähle die Synchronisierungsmethode für »alt« und »title« Attribute."
118
 
119
+ #: inc/settings.php:97
120
  msgid ""
121
  "<code>alt <=> title</code> - if one attribute is set use it also for the "
122
  "other one"
124
  "<code>alt <=> title</code> - Wenn ein Attribut gesetzt ist, wird dieses auch "
125
  "auf das andere übertragen"
126
 
127
+ #: inc/settings.php:98
128
  msgid ""
129
  "<code>alt => title</code> - if »alt« is set use it for the title attribute"
130
  msgstr ""
131
  "<code>alt => title</code> - Wenn »alt« gesetzt ist, wird der Wert ebenfalls "
132
  "für »title« gesetzt"
133
 
134
+ #: inc/settings.php:99
135
  msgid ""
136
  "<code>alt <= title</code> - if »title« is set use it for the alt attribute"
137
  msgstr ""
138
  "<code>alt <= title</code> - Wenn »title« gesetzt ist, wird der Wert "
139
  "ebenfalls für »alt« gesetzt"
140
 
141
+ #: inc/settings.php:105
142
  msgid "override »alt«"
143
  msgstr "»alt« überschreiben"
144
 
145
+ #: inc/settings.php:109
146
  msgid "override existing image alt attributes"
147
  msgstr "Überschreibt bestehende »alt« Attribute"
148
 
149
+ #: inc/settings.php:115
150
  msgid "override »title«"
151
  msgstr "»title« überschreiben"
152
 
153
+ #: inc/settings.php:119
154
  msgid "override existing image title attributes"
155
  msgstr "Überschreibt bestehende »title« Attribute"
156
 
157
+ #: inc/settings.php:123
158
  msgid "possible variables:"
159
  msgstr "Mögliche Variablen:"
160
 
161
+ #: inc/settings.php:124
162
  msgid "replaces post title"
163
  msgstr "Wird ersetzt durch Artikeltitel"
164
 
165
+ #: inc/settings.php:125
166
  msgid "replaces post excerpt"
167
  msgstr "Wird ersetzt durch den Artikelauszug"
168
 
169
+ #: inc/settings.php:126
170
  msgid "replaces image filename (without extension)"
171
  msgstr "Wird ersetzt mit dem Dateinamen (ohne Dateiendung)"
172
 
173
+ #: inc/settings.php:127
174
  msgid "replaces post category"
175
  msgstr "Wird ersetzt durch die Artikelkategorien"
176
 
177
+ #: inc/settings.php:128
178
  msgid "replaces post tags"
179
  msgstr "Wird ersetzt durch die Artikel-Tags"
180
 
181
+ #: inc/settings.php:132
182
  msgid "alt scheme"
183
  msgstr "Schema alt-Attribut"
184
 
185
+ #: inc/settings.php:136 inc/settings.php:146
186
  msgid "default"
187
  msgstr "Standard"
188
 
189
+ #: inc/settings.php:142
190
  msgid "title scheme"
191
  msgstr "Schema title-Attribut"
192
 
193
  #. Plugin Name of the plugin/theme
194
+ #: inc/settings.php:155
195
  msgid "PB SEO Friendly Images"
196
  msgstr "PB SEO Friendly Images"
197
 
198
+ #: inc/settings.php:156
199
  msgid "SEO Friendly Images"
200
+ msgstr "SEO Friendly Images"
201
 
202
  #. Plugin URI of the plugin/theme
203
  msgid "http://wordpress.org/extend/plugins/pb-seo-friendly-images/"
205
 
206
  #. Description of the plugin/theme
207
  msgid ""
208
+ "This plugin is a full-featured solution for SEO friendly images. Optimize "
209
+ "»alt« and »title« attributes for all images and post thumbnails. This plugin "
210
+ "helps you to improve your traffic from search engines."
211
  msgstr ""
212
+ "PB SEO Friendly Images: Einfach, schnell und automatisch "
213
+ "suchmaschinenfreundliche Bilder für WordPress. Simple Optimierung von Alt- "
214
+ "und Title Attributen."
 
215
 
216
  #. Author of the plugin/theme
217
  msgid "Pascal Bajorat"
218
  msgstr "Pascal Bajorat"
219
 
220
  #. Author URI of the plugin/theme
221
+ msgid "https://www.pascal-bajorat.com"
222
+ msgstr "https://www.pascal-bajorat.com"
223
+
224
+ #~ msgid ""
225
+ #~ "This plugin is a full featured solution for SEO friendly images. You can "
226
+ #~ "optimize »alt« and »title« attributes for all images and post thumbnails. "
227
+ #~ "This plugin helps you to improve traffic from search engines."
228
+ #~ msgstr ""
229
+ #~ "Dieses Plugin ist eine komplette Lösung für SEO freundliche Bilder. Du "
230
+ #~ "kannst automatisch »alt« und »title« Attribute für alle Bilder und Post-"
231
+ #~ "Thumbnails optimieren. Das Plugin hilft durch die Optimierung der Bilder "
232
+ #~ "für höheren Traffic über Suchmaschinen."
233
+
234
+ #~ msgid "http://www.pascal-bajorat.com"
235
+ #~ msgstr "http://www.pascal-bajorat.com"
pb-seo-friendly-images.php CHANGED
@@ -2,10 +2,10 @@
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 traffic from search engines.
6
- Version: 1.0.0
7
  Author: Pascal Bajorat
8
- Author URI: http://www.pascal-bajorat.com
9
  Text Domain: pb-seo-friendly-images
10
  Domain Path: /lang
11
  License: GNU General Public License v.3
@@ -62,6 +62,17 @@ if( !class_exists('pbSEOFriendlyImages') ):
62
  // process post images
63
  if( self::$userSettings['optimize_img'] == 'all' || self::$userSettings['optimize_img'] == 'post' ) {
64
  add_filter( 'the_content', array(__CLASS__, 'prepareContentImages'), 999, 1 );
 
 
 
 
 
 
 
 
 
 
 
65
  }
66
 
67
  //add_filter( 'wp_calculate_image_srcset_meta', '__return_null' );
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.1.0
7
  Author: Pascal Bajorat
8
+ Author URI: https://www.pascal-bajorat.com
9
  Text Domain: pb-seo-friendly-images
10
  Domain Path: /lang
11
  License: GNU General Public License v.3
62
  // process post images
63
  if( self::$userSettings['optimize_img'] == 'all' || self::$userSettings['optimize_img'] == 'post' ) {
64
  add_filter( 'the_content', array(__CLASS__, 'prepareContentImages'), 999, 1 );
65
+
66
+ /*
67
+ * Support for AdvancedCustomFields
68
+ */
69
+ //add_filter('acf/load_value/type=text', array(__CLASS__, 'encrypt_mails_in_content'), 20);
70
+ add_filter('acf/load_value/type=textarea', array(__CLASS__, 'prepareContentImages'), 20);
71
+ add_filter('acf/load_value/type=wysiwyg', array(__CLASS__, 'prepareContentImages'), 20);
72
+
73
+ //add_filter('acf_load_value-text', array(__CLASS__, 'encrypt_mails_in_content'), 20);
74
+ add_filter('acf_load_value-textarea', array(__CLASS__, 'prepareContentImages'), 20);
75
+ add_filter('acf_load_value-wysiwyg', array(__CLASS__, 'prepareContentImages'), 20);
76
  }
77
 
78
  //add_filter( 'wp_calculate_image_srcset_meta', '__return_null' );
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === PB SEO Friendly Images ===
2
  Contributors: pascalbajorat
3
- Donate link: http://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
7
- Stable tag: 1.0.0
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -12,13 +12,15 @@ This plugin is a full-featured solution for SEO friendly images. Optimize »alt
12
 
13
  == Description ==
14
 
 
 
15
  PB SEO Friendly Images is a free WordPress plugin that helps you to automatically optimize all »alt« and »title« attributes of images in your posts. »alt« and also »title« attributes are important for a website-ranking in search engines. »alt« attributes are also required to get a W3C valid website.
16
 
17
  > #### Features of PB SEO Friendly Images
18
  > - **Sync:** You can sync existing »alt« to »title« and vice versa
19
  > - **Override:** You can override existing »alt« and »title« attributes with a custom scheme
20
  > - **Scheme:** Set up a scheme for your »alt« and »title« to flexible define and optimize your content
21
- > - **For all images:** The plugin works great with images in posts an post thumbnails aswell
22
  > - **SEO Proved:** Default settings of the plugins are proved by a SEO consultant
23
 
24
  The idea to this plugin based on a similar WordPress plugin "SEO Friendly Images" by Vladimir Prelovac. This plugin version has more settings, possibilities to configure your »alt« / »title« attributes and it’s actively maintained. There is also a sync function, that automatically use existing »alt« as »title« and vice versa if one of the values exist. This is really important, if you have already optimized some of your images.
@@ -40,6 +42,9 @@ If you have any questions or problems, you can ask me: [Pascal Bajorat - Webdesi
40
  = 1.0 =
41
  * Initial release.
42
 
 
 
 
43
  == License ==
44
 
45
  GNU General Public License v.3 - http://www.gnu.org/licenses/gpl-3.0.html
1
  === PB SEO Friendly Images ===
2
  Contributors: pascalbajorat
3
+ 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
7
+ Stable tag: 1.1.0
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
12
 
13
  == Description ==
14
 
15
+ > Informationen auf deutsch? [PB SEO Friendly Images - Einfach, schnell und automatisch suchmaschinenfreundliche Bilder für WordPress](https://www.pascal-bajorat.com/software/pb-seo-friendly-images/ "PB SEO Friendly Images - Einfach, schnell und automatisch suchmaschinenfreundliche Bilder für WordPress")
16
+
17
  PB SEO Friendly Images is a free WordPress plugin that helps you to automatically optimize all »alt« and »title« attributes of images in your posts. »alt« and also »title« attributes are important for a website-ranking in search engines. »alt« attributes are also required to get a W3C valid website.
18
 
19
  > #### Features of PB SEO Friendly Images
20
  > - **Sync:** You can sync existing »alt« to »title« and vice versa
21
  > - **Override:** You can override existing »alt« and »title« attributes with a custom scheme
22
  > - **Scheme:** Set up a scheme for your »alt« and »title« to flexible define and optimize your content
23
+ > - **For all images:** The plugin works great with images in posts and post thumbnails as well
24
  > - **SEO Proved:** Default settings of the plugins are proved by a SEO consultant
25
 
26
  The idea to this plugin based on a similar WordPress plugin "SEO Friendly Images" by Vladimir Prelovac. This plugin version has more settings, possibilities to configure your »alt« / »title« attributes and it’s actively maintained. There is also a sync function, that automatically use existing »alt« as »title« and vice versa if one of the values exist. This is really important, if you have already optimized some of your images.
42
  = 1.0 =
43
  * Initial release.
44
 
45
+ = 1.1 =
46
+ * Added support for Advanced Custom Fields.
47
+
48
  == License ==
49
 
50
  GNU General Public License v.3 - http://www.gnu.org/licenses/gpl-3.0.html