Simple Image Widget - Version 4.1.1

Version Description

  • Added Finnish translation.
  • Prevent a notice about non-existent title when adding a widget in the Customizer in debug mode.
Download this release

Release Info

Developer bradyvercher
Plugin Icon 128x128 Simple Image Widget
Version 4.1.1
Comparing to
See all releases

Code changes from version 4.1.0 to 4.1.1

assets/js/simple-image-widget.js CHANGED
@@ -1,4 +1,4 @@
1
- /*global _:false, wp:false */
2
 
3
  window.SimpleImageWidget = window.SimpleImageWidget || {};
4
 
1
+ /*global _:false, ajaxurl:false, wp:false */
2
 
3
  window.SimpleImageWidget = window.SimpleImageWidget || {};
4
 
includes/class-simple-image-widget.php CHANGED
@@ -80,9 +80,9 @@ class Simple_Image_Widget extends WP_Widget {
80
 
81
  // Copy the original values so they can be used in hooks.
82
  $instance['text_raw'] = empty( $instance['text'] ) ? '' : $instance['text'];
83
- $instance['title_raw'] = $instance['title'];
84
- $instance['text'] = apply_filters( 'widget_text', empty( $instance['text'] ) ? '' : $instance['text'], $instance, $this->id_base );
85
- $instance['title'] = apply_filters( 'widget_title', empty( $instance['title'] ) ? '' : $instance['title'], $instance, $this->id_base );
86
 
87
  // Start building the output.
88
  $output = '';
80
 
81
  // Copy the original values so they can be used in hooks.
82
  $instance['text_raw'] = empty( $instance['text'] ) ? '' : $instance['text'];
83
+ $instance['title_raw'] = empty( $instance['title'] ) ? '' : $instance['title'];
84
+ $instance['text'] = apply_filters( 'widget_text', $instance['text_raw'], $instance, $this->id_base );
85
+ $instance['title'] = apply_filters( 'widget_title', $instance['title_raw'], $instance, $this->id_base );
86
 
87
  // Start building the output.
88
  $output = '';
languages/simple-image-widget-fi.mo ADDED
Binary file
languages/simple-image-widget-fi.po ADDED
@@ -0,0 +1,159 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2014 Blazer Six
2
+ # This file is distributed under the GPL-2.0+.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Simple Image Widget 4.1.0\n"
6
+ "Report-Msgid-Bugs-To: http://wordpress.org/support/plugin/simple-image-"
7
+ "widget\n"
8
+ "POT-Creation-Date: 2014-06-13 21:26:00+00:00\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "PO-Revision-Date: 2014-07-25 15:18+0200\n"
13
+ "Last-Translator: Tomi Mäenpää <hello@tomimaenpaa.com>\n"
14
+ "Language-Team: Tomi Mäenpää <hello@tomimaenpaa.com>\n"
15
+ "X-Generator: Poedit 1.6.7\n"
16
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
17
+ "X-Poedit-Basepath: ../\n"
18
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
19
+ "_n_noop:1,2;_c;_nc:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
20
+ "X-Poedit-SourceCharset: UTF-8\n"
21
+ "X-Textdomain-Support: yes\n"
22
+ "Language: fi\n"
23
+ "X-Poedit-SearchPath-0: .\n"
24
+
25
+ #: includes/class-simple-image-widget-legacy.php:108
26
+ msgid "These fields are here to maintain your data from an earlier version."
27
+ msgstr "Nämä kentät ylläpitävät asetuksesi aikaisemmasta versiosta."
28
+
29
+ #: includes/class-simple-image-widget-legacy.php:111
30
+ msgid ""
31
+ "Select an image, then clear these values, and they will disappear when you "
32
+ "save the widget."
33
+ msgstr ""
34
+ "Valitse kuva ja tyhjennä nämä arvot, niin ne häviävät kun tallennat "
35
+ "vimpaimen."
36
+
37
+ #: includes/class-simple-image-widget-legacy.php:116
38
+ msgid "Image URL:"
39
+ msgstr "Kuvan URL:"
40
+
41
+ #: includes/class-simple-image-widget-legacy.php:120
42
+ msgid "Alternate Text:"
43
+ msgstr "Vaihtoehtoinen teksti:"
44
+
45
+ #: includes/class-simple-image-widget-plugin.php:87
46
+ msgid "Choose an Attachment"
47
+ msgstr "Valitse Liitetiedosto"
48
+
49
+ #: includes/class-simple-image-widget-plugin.php:88
50
+ msgid "Update Attachment"
51
+ msgstr "Päivitä Liitetiedosto"
52
+
53
+ #: includes/class-simple-image-widget-plugin.php:89
54
+ #: includes/class-simple-image-widget-plugin.php:179
55
+ #: includes/class-simple-image-widget.php:457
56
+ msgid "Full Size"
57
+ msgstr "Täysikokoinen"
58
+
59
+ #. Plugin Name of the plugin/theme
60
+ msgid "Simple Image Widget"
61
+ msgstr "Simple Image Widget"
62
+
63
+ #: includes/class-simple-image-widget-plugin.php:115
64
+ msgid "Image Size"
65
+ msgstr "Kuvan koko"
66
+
67
+ #: includes/class-simple-image-widget-plugin.php:116
68
+ msgid "Link"
69
+ msgstr "Linkki"
70
+
71
+ #: includes/class-simple-image-widget-plugin.php:117
72
+ msgid "Link Classes"
73
+ msgstr "Linkin luokat"
74
+
75
+ #: includes/class-simple-image-widget-plugin.php:118
76
+ msgid "Link Text"
77
+ msgstr "Linkin teksti"
78
+
79
+ #: includes/class-simple-image-widget-plugin.php:119
80
+ msgid "New Window"
81
+ msgstr "Uusi ikkuna"
82
+
83
+ #: includes/class-simple-image-widget-plugin.php:120
84
+ msgid "Text"
85
+ msgstr "Teksti"
86
+
87
+ #: includes/class-simple-image-widget-plugin.php:176
88
+ msgid "Thumbnail"
89
+ msgstr "Pienoiskuva"
90
+
91
+ #: includes/class-simple-image-widget-plugin.php:177
92
+ msgid "Medium"
93
+ msgstr "Keskikokoinen"
94
+
95
+ #: includes/class-simple-image-widget-plugin.php:178
96
+ msgid "Large"
97
+ msgstr "Iso"
98
+
99
+ #: includes/class-simple-image-widget.php:43
100
+ msgid "Image"
101
+ msgstr "Kuva"
102
+
103
+ #: includes/class-simple-image-widget.php:49
104
+ msgid "An image from your Media Library."
105
+ msgstr "Kuva mediakirjastostasi."
106
+
107
+ #: includes/class-simple-image-widget.php:252
108
+ msgid "Title:"
109
+ msgstr "Otsikko:"
110
+
111
+ #: includes/class-simple-image-widget.php:258
112
+ #: includes/class-simple-image-widget.php:268
113
+ msgid "Choose an Image"
114
+ msgstr "Valitse kuva"
115
+
116
+ #: includes/class-simple-image-widget.php:259
117
+ msgid "Update Image"
118
+ msgstr "Päivitä kuva"
119
+
120
+ #: includes/class-simple-image-widget.php:280
121
+ msgid "Size:"
122
+ msgstr "Koko:"
123
+
124
+ #: includes/class-simple-image-widget.php:300
125
+ msgid "Link:"
126
+ msgstr "Linkki:"
127
+
128
+ #: includes/class-simple-image-widget.php:306
129
+ msgid "Open in new window?"
130
+ msgstr "Avaa uudessa ikkunassa?"
131
+
132
+ #: includes/class-simple-image-widget.php:315
133
+ msgid "Link Classes:"
134
+ msgstr "Linkin luokat:"
135
+
136
+ #: includes/class-simple-image-widget.php:324
137
+ msgid "Link Text:"
138
+ msgstr "Linkin teksti:"
139
+
140
+ #: includes/class-simple-image-widget.php:333
141
+ msgid "Text:"
142
+ msgstr "Teksti:"
143
+
144
+ #. Plugin URI of the plugin/theme
145
+ msgid "https://wordpress.org/extend/plugins/simple-image-widget/"
146
+ msgstr "https://wordpress.org/extend/plugins/simple-image-widget/"
147
+
148
+ #. Description of the plugin/theme
149
+ msgid "A simple image widget utilizing the new WordPress media manager."
150
+ msgstr ""
151
+ "WordPressin uutta mediakirjastoa hyödyntävä yksinkertainen kuva-vimpain."
152
+
153
+ #. Author of the plugin/theme
154
+ msgid "Blazer Six"
155
+ msgstr "Blazer Six"
156
+
157
+ #. Author URI of the plugin/theme
158
+ msgid "http://www.blazersix.com/"
159
+ msgstr "http://www.blazersix.com/"
languages/simple-image-widget.pot CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the GPL-2.0+.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Simple Image Widget 4.1.0\n"
6
  "Report-Msgid-Bugs-To: "
7
  "http://wordpress.org/support/plugin/simple-image-widget\n"
8
  "POT-Creation-Date: 2014-06-13 21:26:00+00:00\n"
@@ -12,7 +12,7 @@ msgstr ""
12
  "PO-Revision-Date: 2014-MO-DA HO:MI+ZONE\n"
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
- "X-Generator: grunt-wp-i18n 0.4.5\n"
16
  "Language: en\n"
17
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
  "X-Poedit-Basepath: ../\n"
2
  # This file is distributed under the GPL-2.0+.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Simple Image Widget 4.1.1\n"
6
  "Report-Msgid-Bugs-To: "
7
  "http://wordpress.org/support/plugin/simple-image-widget\n"
8
  "POT-Creation-Date: 2014-06-13 21:26:00+00:00\n"
12
  "PO-Revision-Date: 2014-MO-DA HO:MI+ZONE\n"
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
+ "X-Generator: grunt-wp-i18n 0.4.6\n"
16
  "Language: en\n"
17
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
  "X-Poedit-Basepath: ../\n"
readme.txt CHANGED
@@ -27,6 +27,7 @@ Blazer Six took over development and maintenance of Simple Image Widget with ver
27
 
28
  = Translation Credits =
29
 
 
30
  * French (fr_FR) - Alexandre Sadowski [v4.0.1]
31
 
32
  == Installation ==
@@ -75,6 +76,10 @@ The widget uses the core function `wp_get_attachment_image()` to display the ima
75
 
76
  == Changelog ==
77
 
 
 
 
 
78
  = 4.1.0 =
79
  * Added the ability to hide widget fields.
80
  * Added a field to insert HTML classes on the text link. Hidden by default.
27
 
28
  = Translation Credits =
29
 
30
+ * Finnish (fi) - Tomi Mäenpää [v4.1.1]
31
  * French (fr_FR) - Alexandre Sadowski [v4.0.1]
32
 
33
  == Installation ==
76
 
77
  == Changelog ==
78
 
79
+ = 4.1.1 =
80
+ * Added Finnish translation.
81
+ * Prevent a notice about non-existent title when adding a widget in the Customizer in debug mode.
82
+
83
  = 4.1.0 =
84
  * Added the ability to hide widget fields.
85
  * Added a field to insert HTML classes on the text link. Hidden by default.
simple-image-widget.php CHANGED
@@ -11,7 +11,7 @@
11
  * Plugin Name: Simple Image Widget
12
  * Plugin URI: https://wordpress.org/extend/plugins/simple-image-widget/
13
  * Description: A simple image widget utilizing the new WordPress media manager.
14
- * Version: 4.1.0
15
  * Author: Blazer Six
16
  * Author URI: http://www.blazersix.com/
17
  * License: GPL-2.0+
11
  * Plugin Name: Simple Image Widget
12
  * Plugin URI: https://wordpress.org/extend/plugins/simple-image-widget/
13
  * Description: A simple image widget utilizing the new WordPress media manager.
14
+ * Version: 4.1.1
15
  * Author: Blazer Six
16
  * Author URI: http://www.blazersix.com/
17
  * License: GPL-2.0+