Content Blocks (Custom Post Widget) - Version 2.7.9

Version Description

Changed method for creating the widget in preparation of PHP7 support.

Download this release

Release Info

Developer vanderwijk
Plugin Icon 128x128 Content Blocks (Custom Post Widget)
Version 2.7.9
Comparing to
See all releases

Code changes from version 2.7.5 to 2.7.9

custom-post-widget.php CHANGED
@@ -1,14 +1,14 @@
1
  <?php
2
  /*
3
  Plugin Name: Custom Post Widget
4
- Plugin URI: http://www.vanderwijk.com/wordpress/wordpress-custom-post-widget/
5
  Description: Show the content of a custom post of the type 'content_block' in a widget or with a shortcode.
6
- Version: 2.7.5
7
  Author: Johan van der Wijk
8
  Author URI: http://vanderwijk.nl
9
  License: GPL2
10
 
11
- Release notes: Version 2.7.5 Changed branding
12
 
13
  Copyright 2015 Johan van der Wijk
14
 
1
  <?php
2
  /*
3
  Plugin Name: Custom Post Widget
4
+ Plugin URI: http://www.vanderwijk.com/wordpress/wordpress-custom-post-widget/?utm_source=wordpress&utm_medium=plugin&utm_campaign=custom_post_widget
5
  Description: Show the content of a custom post of the type 'content_block' in a widget or with a shortcode.
6
+ Version: 2.7.9
7
  Author: Johan van der Wijk
8
  Author URI: http://vanderwijk.nl
9
  License: GPL2
10
 
11
+ Release notes: Version 2.7.9 Changed method for creating the widget in preparation of PHP7 support.
12
 
13
  Copyright 2015 Johan van der Wijk
14
 
languages/custom-post-widget-cs_CZ.mo ADDED
Binary file
languages/custom-post-widget-cs_CZ.po ADDED
@@ -0,0 +1,220 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Custom Post Widget 1.4\n"
4
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/custom-post-widget\n"
5
+ "POT-Creation-Date: 2015-05-04 09:54+0100\n"
6
+ "PO-Revision-Date: 2015-05-04 09:55+0100\n"
7
+ "Last-Translator: Martin Kucera <martin.kucera@jsemtest.cz>\n"
8
+ "Language-Team: jsemweb.cz <admin@jsemweb.cz>\n"
9
+ "Language: cs\n"
10
+ "MIME-Version: 1.0\n"
11
+ "Content-Type: text/plain; charset=UTF-8\n"
12
+ "Content-Transfer-Encoding: 8bit\n"
13
+ "Plural-Forms: nplurals=3; plural=( n == 1 ) ? 0 : ( n >= 2 && n <= 4 ) ? 1 : "
14
+ "2;\n"
15
+ "X-Poedit-SourceCharset: UTF-8\n"
16
+ "X-Poedit-Basepath: .\n"
17
+ "X-Poedit-KeywordsList: _:1;gettext:1;dgettext:2;ngettext:1,2;dngettext:2,3;"
18
+ "__:1;_e:1;_c:1;_n:1,2;_n_noop:1,2;_nc:1,2;__ngettext:1,2;__ngettext_noop:1,2;"
19
+ "_x:1,2c;_ex:1,2c;_nx:1,2,4c;_nx_noop:1,2,3c;_n_js:1,2;_nx_js:1,2,3c;"
20
+ "esc_attr__:1;esc_html__:1;esc_attr_e:1;esc_html_e:1;esc_attr_x:1,2c;"
21
+ "esc_html_x:1,2c;comments_number_link:2,3;t:1;st:1;trans:1;transChoice:1,2\n"
22
+ "X-Loco-Target-Locale: cs_CZ\n"
23
+ "X-Generator: Poedit 1.7.6\n"
24
+ "X-Poedit-SearchPath-0: ..\n"
25
+
26
+ #: ../meta-box.php:6 ../meta-box.php:47
27
+ msgid "Content Block Information"
28
+ msgstr "Popis"
29
+
30
+ #: ../notice.php:11
31
+ #, php-format
32
+ msgid ""
33
+ "Thank you for using the Custom Post Widget plugin. Visit the <a href="
34
+ "\"http://www.vanderwijk.com/wordpress/wordpress-custom-post-widget/\" target="
35
+ "\"_blank\">plugin website</a> to find out more about using this plugin. <a "
36
+ "href=\"%1$s\" style=\"float:right;\">Hide Notice</a>"
37
+ msgstr ""
38
+
39
+ #: ../popup.php:17 ../popup.php:18
40
+ msgid "Add Content Block"
41
+ msgstr "Vložit blok"
42
+
43
+ #: ../popup.php:31
44
+ msgid "Please select a Content Block"
45
+ msgstr "Vyberte blok"
46
+
47
+ #: ../popup.php:40 ../popup.php:64
48
+ msgid "Insert Content Block"
49
+ msgstr "Vložit blok"
50
+
51
+ #: ../popup.php:43
52
+ msgid "Select a Content Block below to add it to your post or page."
53
+ msgstr "Vyberte blok, který chcete vložit do stránky nebo příspěvku."
54
+
55
+ #: ../popup.php:48
56
+ msgid "Select a Content Block"
57
+ msgstr "Vyberte blok"
58
+
59
+ #: ../popup.php:58 ../post-widget.php:41
60
+ msgid "No content blocks available"
61
+ msgstr "Zádné bloky nejsou dostupné"
62
+
63
+ #: ../post-widget.php:11
64
+ msgid "Displays custom post content in a widget"
65
+ msgstr "Možnost zobrazení bloku na zvoleném místě webu."
66
+
67
+ #: ../post-widget.php:12
68
+ msgid "Content Block"
69
+ msgstr "Blok"
70
+
71
+ #: ../post-widget.php:26
72
+ msgid "Content Block to Display:"
73
+ msgstr "Vyberte blok:"
74
+
75
+ #: ../post-widget.php:52 ../post-widget.php:126
76
+ msgid "Edit Content Block"
77
+ msgstr "Upravit blok"
78
+
79
+ #: ../post-widget.php:58
80
+ msgid "Show Post Title"
81
+ msgstr "Zobrazit název bloku"
82
+
83
+ #: ../post-widget.php:63
84
+ msgid "Show featured image"
85
+ msgstr "Zobrazit náhledový obrázek"
86
+
87
+ #: ../post-widget.php:68
88
+ msgid "Do not apply content filters"
89
+ msgstr "Zakázat automatické formátování"
90
+
91
+ #: ../post-widget.php:84
92
+ msgid "Find"
93
+ msgstr "Hledat"
94
+
95
+ #: ../post-widget.php:121
96
+ msgctxt "post type general name"
97
+ msgid "Content Blocks"
98
+ msgstr "Bloky"
99
+
100
+ #: ../post-widget.php:122
101
+ msgctxt "post type singular name"
102
+ msgid "Content Block"
103
+ msgstr "Blok"
104
+
105
+ #: ../post-widget.php:123
106
+ msgctxt "post type plural name"
107
+ msgid "Content Blocks"
108
+ msgstr "Bloky"
109
+
110
+ #: ../post-widget.php:124
111
+ msgctxt "block"
112
+ msgid "Add Content Block"
113
+ msgstr "Vytvořit blok"
114
+
115
+ #: ../post-widget.php:125
116
+ msgid "Add New Content Block"
117
+ msgstr "Vytvořit blok obsahu"
118
+
119
+ #: ../post-widget.php:127
120
+ msgid "New Content Block"
121
+ msgstr "Nový blok"
122
+
123
+ #: ../post-widget.php:128
124
+ msgid "View Content Block"
125
+ msgstr "Zobrazit blok"
126
+
127
+ #: ../post-widget.php:129
128
+ msgid "Search Content Blocks"
129
+ msgstr "Hledat bloky"
130
+
131
+ #: ../post-widget.php:130
132
+ msgid "No Content Blocks Found"
133
+ msgstr "Žádné bloky nebyly nalezeny."
134
+
135
+ #: ../post-widget.php:131
136
+ msgid "No Content Blocks found in Trash"
137
+ msgstr "Žádné bloky nebyly v koši nalezeny."
138
+
139
+ #: ../post-widget.php:154
140
+ #, php-format
141
+ msgid "Content Block updated. <a href=\"%s\">Manage Widgets</a>"
142
+ msgstr "Blok byl aktualizován. <a href=\"%s\">Nastavit widgety</a>"
143
+
144
+ #: ../post-widget.php:154 ../post-widget.php:157
145
+ msgid "Content Block updated."
146
+ msgstr "Blok byl aktualizován."
147
+
148
+ #: ../post-widget.php:155
149
+ msgid "Custom field updated."
150
+ msgstr "Uživatelské pole bylo aktualizováno."
151
+
152
+ #: ../post-widget.php:156
153
+ msgid "Custom field deleted."
154
+ msgstr "Uživatelské pole bylo odstraněno."
155
+
156
+ #: ../post-widget.php:158
157
+ #, php-format
158
+ msgid "Content Block restored to revision from %s"
159
+ msgstr "Byla obnovena následující verze bloku: %s"
160
+
161
+ #: ../post-widget.php:159
162
+ #, php-format
163
+ msgid "Content Block published. <a href=\"%s\">Manage Widgets</a>"
164
+ msgstr "Blok byl publikován. <a href=\"%s\">Nastavit widgety</a>"
165
+
166
+ #: ../post-widget.php:159
167
+ msgid "Content Block published."
168
+ msgstr "Blok byl publikován."
169
+
170
+ #: ../post-widget.php:160
171
+ msgid "Block saved."
172
+ msgstr "Blok byl uložen."
173
+
174
+ #: ../post-widget.php:161
175
+ #, php-format
176
+ msgid "Content Block submitted. <a href=\"%s\">Manage Widgets</a>"
177
+ msgstr "Blok byl aktualizován. <a href=\"%s\">Nastavit widgety</a>"
178
+
179
+ #: ../post-widget.php:161
180
+ msgid "Content Block submitted."
181
+ msgstr "Blok byl aktualizován."
182
+
183
+ #: ../post-widget.php:162
184
+ #, php-format
185
+ msgid "Content Block scheduled for: <strong>%1$s</strong>."
186
+ msgstr "Zobrazení bloku bylo naplánováno na: <strong>%1$s</strong>."
187
+
188
+ #: ../post-widget.php:162
189
+ msgid "M j, Y @ G:i"
190
+ msgstr "M j, Y @ G:i"
191
+
192
+ #: ../post-widget.php:163
193
+ #, php-format
194
+ msgid "Content Block draft updated. <a href=\"%s\">Manage Widgets</a>"
195
+ msgstr "Koncept bloku byl aktualizován. <a href=\"%s\">Nastavit widgety</a>"
196
+
197
+ #: ../post-widget.php:163
198
+ msgid "Content Block draft updated."
199
+ msgstr "Koncept bloku byl aktualizován."
200
+
201
+ #~ msgid "Custom Post Widget"
202
+ #~ msgstr "Custom Post Widget"
203
+
204
+ #~ msgid ""
205
+ #~ "http://www.vanderwijk.com/services/web-design/wordpress-custom-post-"
206
+ #~ "widget/"
207
+ #~ msgstr ""
208
+ #~ "http://www.vanderwijk.com/services/web-design/wordpress-custom-post-"
209
+ #~ "widget/"
210
+
211
+ #~ msgid ""
212
+ #~ "Show the content of a custom post of the type 'content_block' in a widget."
213
+ #~ msgstr ""
214
+ #~ "Umožňuje zobrazit uživatelský typ příspěvku \"Bloky obsahu\" ve widgetech."
215
+
216
+ #~ msgid "Johan van der Wijk"
217
+ #~ msgstr "Johan van der Wijk"
218
+
219
+ #~ msgid "http://www.vanderwijk.com"
220
+ #~ msgstr "http://www.vanderwijk.com"
languages/custom-post-widget-it_IT.mo ADDED
Binary file
languages/custom-post-widget-it_IT.po ADDED
@@ -0,0 +1,239 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Custom Post Widget\n"
4
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/custom-post-widget\n"
5
+ "POT-Creation-Date: 2015-03-12 17:22+0100\n"
6
+ "PO-Revision-Date: 2015-04-07 16:17+0100\n"
7
+ "Last-Translator: Antony83 <staff.ercicion@gmail.com>\n"
8
+ "Language-Team: \n"
9
+ "Language: it_IT\n"
10
+ "MIME-Version: 1.0\n"
11
+ "Content-Type: text/plain; charset=UTF-8\n"
12
+ "Content-Transfer-Encoding: 8bit\n"
13
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
14
+ "X-Poedit-SourceCharset: UTF-8\n"
15
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
16
+ "_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
17
+ "X-Poedit-Basepath: .\n"
18
+ "X-Textdomain-Support: yes\n"
19
+ "X-Generator: Poedit 1.6.5\n"
20
+ "X-Poedit-SearchPath-0: .\n"
21
+ "X-Poedit-SearchPath-1: ..\n"
22
+
23
+ #: ../meta-box.php:6 ../meta-box.php:47
24
+ msgid "Content Block Information"
25
+ msgstr "Informazioni Blocco Contenuti"
26
+
27
+ #: ../notice.php:11
28
+ #, php-format
29
+ msgid ""
30
+ "Thank you for using the Custom Post Widget plugin. Visit the <a href="
31
+ "\"http://www.vanderwijk.com/wordpress/wordpress-custom-post-widget/\" target="
32
+ "\"_blank\">plugin website</a> to find out more about using this plugin. <a "
33
+ "href=\"%1$s\" style=\"float:right;\">Hide Notice</a>"
34
+ msgstr ""
35
+ "Grazie per aver usato il plugin Custom Post Widget. Visita <a href=\"http://"
36
+ "www.vanderwijk.com/wordpress/wordpress-custom-post-widget/\" target=\"_blank"
37
+ "\">il sito del plugin</a> per trovare info sul plugin. <a href=\"%1$s\" "
38
+ "style=\"float:right;\">Nascondi Notifica</a>"
39
+
40
+ # @ custom-post-widget
41
+ #: ../popup.php:17 ../popup.php:18
42
+ msgid "Add Content Block"
43
+ msgstr "Aggiungi un Blocco Contenuti"
44
+
45
+ # @ custom-post-widget
46
+ #: ../popup.php:31
47
+ msgid "Please select a Content Block"
48
+ msgstr "Selezionare un Blocco di Contenuti"
49
+
50
+ # @ custom-post-widget
51
+ #: ../popup.php:40 ../popup.php:64
52
+ msgid "Insert Content Block"
53
+ msgstr "Inserisci un Blocco Contenuti"
54
+
55
+ # @ custom-post-widget
56
+ #: ../popup.php:43
57
+ msgid "Select a Content Block below to add it to your post or page."
58
+ msgstr ""
59
+ "Selezionare uno dei blocchi di contenuti sottostante per aggiungerlo al tuo "
60
+ "post o pagina."
61
+
62
+ # @ custom-post-widget
63
+ #: ../popup.php:48
64
+ msgid "Select a Content Block"
65
+ msgstr "Seleziona un Blocco di Contenuti"
66
+
67
+ # @ custom-post-widget
68
+ #: ../popup.php:58 ../post-widget.php:41
69
+ msgid "No content blocks available"
70
+ msgstr "Nessun Blocco disponibile"
71
+
72
+ # @ custom-post-widget
73
+ #: ../post-widget.php:11
74
+ msgid "Displays custom post content in a widget"
75
+ msgstr "Visualizza il contenuto di un blocco in un widget."
76
+
77
+ # @ custom-post-widget
78
+ #: ../post-widget.php:12
79
+ msgid "Content Block"
80
+ msgstr "Blocco Contenuti"
81
+
82
+ # @ custom-post-widget
83
+ #: ../post-widget.php:26
84
+ msgid "Content Block to Display:"
85
+ msgstr "Blocco Contenuti da visualizzare:"
86
+
87
+ # @ custom-post-widget
88
+ #: ../post-widget.php:52 ../post-widget.php:126
89
+ msgid "Edit Content Block"
90
+ msgstr "Modifica Blocco"
91
+
92
+ # @ custom-post-widget
93
+ #: ../post-widget.php:58
94
+ msgid "Show Post Title"
95
+ msgstr "Mostra Titolo Post"
96
+
97
+ #: ../post-widget.php:63
98
+ msgid "Show featured image"
99
+ msgstr "Mostra immagine anteprima"
100
+
101
+ #: ../post-widget.php:68
102
+ msgid "Do not apply content filters"
103
+ msgstr "Non applicare filtri al contenuto"
104
+
105
+ # @ custom-post-widget
106
+ #: ../post-widget.php:84
107
+ msgid "Find"
108
+ msgstr "Trova"
109
+
110
+ # @ custom-post-widget
111
+ #: ../post-widget.php:121
112
+ msgctxt "post type general name"
113
+ msgid "Content Blocks"
114
+ msgstr "Blocchi di Contenuto"
115
+
116
+ # @ custom-post-widget
117
+ #: ../post-widget.php:122
118
+ msgctxt "post type singular name"
119
+ msgid "Content Block"
120
+ msgstr "Blocchi di Contenuto"
121
+
122
+ # @ custom-post-widget
123
+ #: ../post-widget.php:123
124
+ msgctxt "post type plural name"
125
+ msgid "Content Blocks"
126
+ msgstr "Blocchi di Contenuto"
127
+
128
+ # @ custom-post-widget
129
+ #: ../post-widget.php:124
130
+ msgctxt "block"
131
+ msgid "Add Content Block"
132
+ msgstr "Aggiungi Blocco Contenuti"
133
+
134
+ # @ custom-post-widget
135
+ #: ../post-widget.php:125
136
+ msgid "Add New Content Block"
137
+ msgstr "Aggiungi Nuovo Blocco Contenuti"
138
+
139
+ # @ custom-post-widget
140
+ #: ../post-widget.php:127
141
+ msgid "New Content Block"
142
+ msgstr "Nuovo Blocco Contenuti"
143
+
144
+ # @ custom-post-widget
145
+ #: ../post-widget.php:128
146
+ msgid "View Content Block"
147
+ msgstr "Visualizza Blocco"
148
+
149
+ # @ custom-post-widget
150
+ #: ../post-widget.php:129
151
+ msgid "Search Content Blocks"
152
+ msgstr "Ricerca Blocchi di Contenuto"
153
+
154
+ # @ custom-post-widget
155
+ #: ../post-widget.php:130
156
+ msgid "No Content Blocks Found"
157
+ msgstr "Nessun Blocco trovato"
158
+
159
+ # @ custom-post-widget
160
+ #: ../post-widget.php:131
161
+ msgid "No Content Blocks found in Trash"
162
+ msgstr "Nessun Blocco trovato nel Cestino"
163
+
164
+ # @ custom-post-widget
165
+ #: ../post-widget.php:154
166
+ #, php-format
167
+ msgid "Content Block updated. <a href=\"%s\">Manage Widgets</a>"
168
+ msgstr "Blocco Contenuti Aggiornato. <a href=\"%s\">Gestisci Widgets</a>"
169
+
170
+ # @ custom-post-widget
171
+ #: ../post-widget.php:154 ../post-widget.php:157
172
+ msgid "Content Block updated."
173
+ msgstr "Blocco Contenuti Aggiornato."
174
+
175
+ # @ custom-post-widget
176
+ #: ../post-widget.php:155
177
+ msgid "Custom field updated."
178
+ msgstr "Campo personalizzato aggiornato."
179
+
180
+ # @ custom-post-widget
181
+ #: ../post-widget.php:156
182
+ msgid "Custom field deleted."
183
+ msgstr "Campo personalizzato eliminato."
184
+
185
+ # @ custom-post-widget
186
+ #: ../post-widget.php:158
187
+ #, php-format
188
+ msgid "Content Block restored to revision from %s"
189
+ msgstr "Blocco Contenuti ripristinato come una revisione di %s"
190
+
191
+ # @ custom-post-widget
192
+ #: ../post-widget.php:159
193
+ #, php-format
194
+ msgid "Content Block published. <a href=\"%s\">Manage Widgets</a>"
195
+ msgstr "Blocco Contenuti pubblicato. <a href=\"%s\">Gestisci Widgets</a>"
196
+
197
+ # @ custom-post-widget
198
+ #: ../post-widget.php:159
199
+ msgid "Content Block published."
200
+ msgstr "Blocco Contenuti pubblicato."
201
+
202
+ # @ custom-post-widget
203
+ #: ../post-widget.php:160
204
+ msgid "Block saved."
205
+ msgstr "Blocco salvato."
206
+
207
+ # @ custom-post-widget
208
+ #: ../post-widget.php:161
209
+ #, php-format
210
+ msgid "Content Block submitted. <a href=\"%s\">Manage Widgets</a>"
211
+ msgstr "Blocco Contenuti inserito. <a href=\"%s\">Gestisci Widgets</a>"
212
+
213
+ # @ custom-post-widget
214
+ #: ../post-widget.php:161
215
+ msgid "Content Block submitted."
216
+ msgstr "Blocco Contenuti inserito."
217
+
218
+ # @ custom-post-widget
219
+ #: ../post-widget.php:162
220
+ #, php-format
221
+ msgid "Content Block scheduled for: <strong>%1$s</strong>."
222
+ msgstr "Pubblicazione del blocco previsto per <strong>%1$s</strong>."
223
+
224
+ # @ custom-post-widget
225
+ #: ../post-widget.php:162
226
+ msgid "M j, Y @ G:i"
227
+ msgstr "il j M Y, @ G:i"
228
+
229
+ # @ custom-post-widget
230
+ #: ../post-widget.php:163
231
+ #, php-format
232
+ msgid "Content Block draft updated. <a href=\"%s\">Manage Widgets</a>"
233
+ msgstr ""
234
+ "Progetto Blocco Contenuti aggiornato. <a href=\"%s\">Gestisci Widgets</a>"
235
+
236
+ # @ custom-post-widget
237
+ #: ../post-widget.php:163
238
+ msgid "Content Block draft updated."
239
+ msgstr "Progetto Blocco Contenuti aggiornato."
notice.php CHANGED
@@ -8,7 +8,7 @@ function cpw_admin_notice() {
8
  $screen = get_current_screen();
9
  if ( ! get_user_meta($user_id, 'cpw_notice_hidden') && ( $screen->id == 'edit-content_block' || $screen->id == 'content_block' ) ) {
10
  echo '<div class="updated" style="border-color: #00b1ff;"><p>';
11
- printf(__('Thank you for using the Custom Post Widget plugin. Visit the <a href="http://www.vanderwijk.com/wordpress/wordpress-custom-post-widget/" target="_blank">plugin website</a> to find out more about using this plugin. <a href="%1$s" style="float:right;">Hide Notice</a>'), '?post_type=content_block&cpw_hide_notice=yes');
12
  echo "</p></div>";
13
  }
14
  }
8
  $screen = get_current_screen();
9
  if ( ! get_user_meta($user_id, 'cpw_notice_hidden') && ( $screen->id == 'edit-content_block' || $screen->id == 'content_block' ) ) {
10
  echo '<div class="updated" style="border-color: #00b1ff;"><p>';
11
+ printf(__('Thank you for using the Custom Post Widget plugin. Visit the <a href="http://www.vanderwijk.com/wordpress/wordpress-custom-post-widget/?utm_source=wordpress&utm_medium=plugin&utm_campaign=custom_post_widget" target="_blank">plugin website</a> to find out more about using this plugin. <a href="%1$s" style="float:right;">Hide Notice</a>'), '?post_type=content_block&cpw_hide_notice=yes');
12
  echo "</p></div>";
13
  }
14
  }
post-widget.php CHANGED
@@ -7,9 +7,9 @@ if ( function_exists( 'add_theme_support' ) ) {
7
 
8
  // First create the widget for the admin panel
9
  class custom_post_widget extends WP_Widget {
10
- function custom_post_widget() {
11
- $widget_ops = array( 'description' => __( 'Displays custom post content in a widget', 'custom-post-widget' ) );
12
- $this->WP_Widget( 'custom_post_widget', __( 'Content Block', 'custom-post-widget' ), $widget_ops );
13
  }
14
 
15
  function form( $instance ) {
7
 
8
  // First create the widget for the admin panel
9
  class custom_post_widget extends WP_Widget {
10
+ function __construct() {
11
+ $widget_ops = array( 'classname' => 'widget_custom_post_widget', 'description' => __( 'Displays custom post content in a widget', 'custom-post-widget' ) );
12
+ parent::__construct( 'custom_post_widget', __( 'Content Block', 'custom-post-widget' ), $widget_ops );
13
  }
14
 
15
  function form( $instance ) {
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: vanderwijk
3
  Tags: widget, sidebar, content block, block, custom, post, shortcode, wysiwyg, wpml, featured image
4
  Requires at least: 2.9.2
5
- Tested up to: 4.1.1
6
- Stable tag: 2.7.5
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -11,7 +11,7 @@ This plugin enables you to edit and display Content Blocks in a sidebar widget o
11
 
12
  == Description ==
13
 
14
- The [Custom Post Widget](http://www.vanderwijk.com/wordpress/wordpress-custom-post-widget/) allows you to display the contents of a specific custom post in a widget on in the content area using a shortcode.
15
 
16
  Even though you could use the text widget that comes with the default WordPress install, this plugin has some major benefits:
17
 
@@ -27,9 +27,11 @@ To add content to a widget, drag it to the required position in the sidebar and
27
 
28
  **Includes the following translations:**
29
 
30
- * German (de_DE) by [Caspar H&uuml;binger](http://glueckpress.com/)
31
- * French (fr_FR) by [Alexandre Simard](http://brocheafoin.biz/)
32
  * Dutch (nl_NL) by [Johan van der Wijk](http://vanderwijk.nl)
 
 
 
33
  * Polish (pl_PL) by [Kuba Skublicki](https://www.linkedin.com/in/kubecki)
34
  * Portuguese (pt_BR) by [Ronaldo Chevalier](http://www.hostmeta.com.br/)
35
  * Russian (ru_RU) by [Vitaliy Kaplya](http://www.dasayt.com/)
@@ -86,6 +88,7 @@ These new features are on the to-do list:
86
  * Display the content block featured image when using the shortcode
87
  * Optionally show the post title when using the shortcode
88
  * Front-end editing of the content blocks
 
89
 
90
  = How can I make advanced changes to the widget layout? =
91
 
@@ -128,6 +131,15 @@ Creating and supporting this plugin takes up a lot of my free time, therefore I
128
 
129
  == Changelog ==
130
 
 
 
 
 
 
 
 
 
 
131
  = 2.7.5 =
132
  Updated branding and language files.
133
 
2
  Contributors: vanderwijk
3
  Tags: widget, sidebar, content block, block, custom, post, shortcode, wysiwyg, wpml, featured image
4
  Requires at least: 2.9.2
5
+ Tested up to: 4.3
6
+ Stable tag: 2.7.9
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
11
 
12
  == Description ==
13
 
14
+ The [Custom Post Widget](http://www.vanderwijk.com/wordpress/wordpress-custom-post-widget/?utm_source=wordpress&utm_medium=website&utm_campaign=custom_post_widget) allows you to display the contents of a specific custom post in a widget on in the content area using a shortcode.
15
 
16
  Even though you could use the text widget that comes with the default WordPress install, this plugin has some major benefits:
17
 
27
 
28
  **Includes the following translations:**
29
 
30
+ * Czech (cs_CZ) by [Martin Kucera](http://jsemweb.cz/)
 
31
  * Dutch (nl_NL) by [Johan van der Wijk](http://vanderwijk.nl)
32
+ * French (fr_FR) by [Alexandre Simard](http://brocheafoin.biz/)
33
+ * German (de_DE) by [Caspar H&uuml;binger](http://glueckpress.com/)
34
+ * Italian (it_IT) by [Ercicion](http://ercicion.altervista.org/blog/)
35
  * Polish (pl_PL) by [Kuba Skublicki](https://www.linkedin.com/in/kubecki)
36
  * Portuguese (pt_BR) by [Ronaldo Chevalier](http://www.hostmeta.com.br/)
37
  * Russian (ru_RU) by [Vitaliy Kaplya](http://www.dasayt.com/)
88
  * Display the content block featured image when using the shortcode
89
  * Optionally show the post title when using the shortcode
90
  * Front-end editing of the content blocks
91
+ * Display shortcode on content block edit screen and/or overview page similar to Contact Form 7
92
 
93
  = How can I make advanced changes to the widget layout? =
94
 
131
 
132
  == Changelog ==
133
 
134
+ = 2.7.9 =
135
+ Changed method for creating the widget in preparation of PHP7 support.
136
+
137
+ = 2.7.7 =
138
+ Added Czech translation.
139
+
140
+ = 2.7.6 =
141
+ Added Italian translation.
142
+
143
  = 2.7.5 =
144
  Updated branding and language files.
145