Widget Context - Version 1.0.7

Version Description

(June 5, 2018) = - Mark as tested with WordPress 4.9.6. - Use the localisation service provided by WP.org. - Support for Composer.

Download this release

Release Info

Developer kasparsd
Plugin Icon 128x128 Widget Context
Version 1.0.7
Comparing to
See all releases

Code changes from version 1.0.6 to 1.0.7

{css → assets/css}/admin.css RENAMED
File without changes
{js → assets/js}/widget-context.js RENAMED
File without changes
class/class-widget-context.php CHANGED
@@ -34,16 +34,23 @@ class widget_context {
34
  }
35
 
36
  /**
37
- * Use widget_context::instance() instead.
 
 
38
  */
39
- private function __construct() {
40
- $this->plugin_path = dirname( dirname( __FILE__ ) );
41
  }
42
 
43
  /**
44
  * Hook into WP.
45
  */
46
  public function init() {
 
 
 
 
 
47
  // Define available widget contexts
48
  add_action( 'init', array( $this, 'define_widget_contexts' ), 5 );
49
 
@@ -51,9 +58,6 @@ class widget_context {
51
  // $sidebars_widgets global variable
52
  add_action( 'wp', array( $this, 'set_widget_contexts_frontend' ) );
53
 
54
- // Enable localization
55
- add_action( 'plugins_loaded', array( $this, 'init_l10n' ) );
56
-
57
  // Append Widget Context settings to widget controls
58
  add_action( 'in_widget_form', array( $this, 'widget_context_controls' ), 10, 3 );
59
 
@@ -196,13 +200,6 @@ class widget_context {
196
  }
197
 
198
 
199
- function init_l10n() {
200
-
201
- load_plugin_textdomain( 'widget-context', false, basename( $this->plugin_path ) . '/languages' );
202
-
203
- }
204
-
205
-
206
  function admin_scripts( $page ) {
207
 
208
  // Enqueue only on widgets and customizer view
@@ -212,14 +209,14 @@ class widget_context {
212
 
213
  wp_enqueue_style(
214
  'widget-context-css',
215
- $this->asset_url( '/css/admin.css' ),
216
  null,
217
  $this->asset_version
218
  );
219
 
220
  wp_enqueue_script(
221
  'widget-context-js',
222
- $this->asset_url( '/js/widget-context.js' ),
223
  array( 'jquery' ),
224
  $this->asset_version
225
  );
@@ -976,20 +973,40 @@ class widget_context {
976
 
977
  <div class="wc-sidebar-section wc-sidebar-credits">
978
  <p>
979
- <img src="http://gravatar.com/avatar/661eb21385c25c01ad64ab9e13b37331/?s=60" alt="Kaspars Dambis" width="60" height="60" />
980
- <?php printf( esc_html__( 'Widget Context is created and maintained by %s.' , 'widget-context'), '<a href="http://kaspars.net">Kaspars Dambis</a>' ); ?>
 
 
 
 
 
 
981
  </p>
982
  </div>
983
 
984
  <div class="wc-sidebar-section wc-sidebar-newsletter">
985
- <h3><?php esc_html_e( 'News & Updates' , 'widget-context'); ?></h3>
986
- <p><?php esc_html_e( 'Subscribe to receive news & updates about the plugin.' , 'widget-context'); ?></p>
987
  <form action="//osc.us2.list-manage.com/subscribe/post?u=e8d173fc54c0fc4286a2b52e8&amp;id=8afe96c5a3" method="post" target="_blank">
988
  <?php $user = wp_get_current_user(); ?>
989
  <p><label><?php _e( 'Your Name', 'widget-context' ); ?>: <input type="text" name="NAME" value="<?php echo esc_attr( sprintf( '%s %s', $user->first_name, $user->last_name ) ) ?>" /></label></p>
990
  <p><label><?php _e( 'Your Email', 'widget-context' ); ?>: <input type="text" name="EMAIL" value="<?php echo esc_attr( $user->user_email ); ?>" /></label></p>
991
  <p><input class="button" name="subscribe" type="submit" value="<?php _e( 'Subscribe', 'widget-context' ); ?>" /></p>
992
  </form>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
993
  </div>
994
 
995
  </div>
@@ -1025,7 +1042,7 @@ class widget_context {
1025
 
1026
  wp_enqueue_script(
1027
  'widget-context-debug-js',
1028
- $this->asset_url( '/debug/debug.js' ),
1029
  array( 'jquery' )
1030
  );
1031
 
@@ -1039,7 +1056,13 @@ class widget_context {
1039
  * @return string
1040
  */
1041
  function asset_url( $asset_relative_path ) {
1042
- return plugins_url( plugin_basename( $this->plugin_path ) . $asset_relative_path );
 
 
 
 
 
 
1043
  }
1044
 
1045
 
34
  }
35
 
36
  /**
37
+ * Set path to the plugin directory.
38
+ *
39
+ * @param string $path Path to the plugin directory.
40
  */
41
+ public function set_path( $path ) {
42
+ $this->plugin_path = $path;
43
  }
44
 
45
  /**
46
  * Hook into WP.
47
  */
48
  public function init() {
49
+ // Ensure that path to this plugin is defined first.
50
+ if ( empty( $this->plugin_path ) ) {
51
+ return;
52
+ }
53
+
54
  // Define available widget contexts
55
  add_action( 'init', array( $this, 'define_widget_contexts' ), 5 );
56
 
58
  // $sidebars_widgets global variable
59
  add_action( 'wp', array( $this, 'set_widget_contexts_frontend' ) );
60
 
 
 
 
61
  // Append Widget Context settings to widget controls
62
  add_action( 'in_widget_form', array( $this, 'widget_context_controls' ), 10, 3 );
63
 
200
  }
201
 
202
 
 
 
 
 
 
 
 
203
  function admin_scripts( $page ) {
204
 
205
  // Enqueue only on widgets and customizer view
209
 
210
  wp_enqueue_style(
211
  'widget-context-css',
212
+ $this->asset_url( 'assets/css/admin.css' ),
213
  null,
214
  $this->asset_version
215
  );
216
 
217
  wp_enqueue_script(
218
  'widget-context-js',
219
+ $this->asset_url( 'assets/js/widget-context.js' ),
220
  array( 'jquery' ),
221
  $this->asset_version
222
  );
973
 
974
  <div class="wc-sidebar-section wc-sidebar-credits">
975
  <p>
976
+ <img src="https://gravatar.com/avatar/661eb21385c25c01ad64ab9e13b37331?s=120" alt="Kaspars Dambis" width="60" height="60" />
977
+ <?php
978
+ printf(
979
+ // translators: %s: link with an anchor text.
980
+ esc_html__( 'Widget Context is created and maintained by %s.', 'widget-context' ),
981
+ '<a href="https://kaspars.net">Kaspars Dambis</a>'
982
+ );
983
+ ?>
984
  </p>
985
  </div>
986
 
987
  <div class="wc-sidebar-section wc-sidebar-newsletter">
988
+ <h3><?php esc_html_e( 'News & Updates', 'widget-context' ); ?></h3>
989
+ <p><?php esc_html_e( 'Subscribe to receive news & updates about the plugin.', 'widget-context' ); ?></p>
990
  <form action="//osc.us2.list-manage.com/subscribe/post?u=e8d173fc54c0fc4286a2b52e8&amp;id=8afe96c5a3" method="post" target="_blank">
991
  <?php $user = wp_get_current_user(); ?>
992
  <p><label><?php _e( 'Your Name', 'widget-context' ); ?>: <input type="text" name="NAME" value="<?php echo esc_attr( sprintf( '%s %s', $user->first_name, $user->last_name ) ) ?>" /></label></p>
993
  <p><label><?php _e( 'Your Email', 'widget-context' ); ?>: <input type="text" name="EMAIL" value="<?php echo esc_attr( $user->user_email ); ?>" /></label></p>
994
  <p><input class="button" name="subscribe" type="submit" value="<?php _e( 'Subscribe', 'widget-context' ); ?>" /></p>
995
  </form>
996
+ <h3>
997
+ <?php esc_html_e( 'Suggested Plugins', 'widget-context' ); ?>
998
+ </h3>
999
+ <p>
1000
+ <?php esc_html_e( 'Here are some of my other plugins:', 'widget-context' ); ?>
1001
+ </p>
1002
+ <ul>
1003
+ <li>
1004
+ <a href="https://preseto.com/go/cf7-storage?utm_source=wc">Storage for Contact Form 7</a> saves all Contact Form 7 submissions (including attachments) in your WordPress database.
1005
+ </li>
1006
+ <li>
1007
+ <a href="https://wordpress.org/plugins/contact-form-7-extras/">Contact Form 7 Controls</a> adds a simple interface for managing Contact Form 7 form settings.
1008
+ </li>
1009
+ </ul>
1010
  </div>
1011
 
1012
  </div>
1042
 
1043
  wp_enqueue_script(
1044
  'widget-context-debug-js',
1045
+ $this->asset_url( 'debug/debug.js' ),
1046
  array( 'jquery' )
1047
  );
1048
 
1056
  * @return string
1057
  */
1058
  function asset_url( $asset_relative_path ) {
1059
+ $file_path = sprintf(
1060
+ '%s/%s',
1061
+ plugin_basename( $this->plugin_path ),
1062
+ ltrim( $asset_relative_path, '/' )
1063
+ );
1064
+
1065
+ return plugins_url( $file_path );
1066
  }
1067
 
1068
 
languages/widget-context-lv_LV.mo DELETED
Binary file
languages/widget-context-lv_LV.po DELETED
@@ -1,290 +0,0 @@
1
- # Copyright (C) 2014 Widget Context
2
- # This file is distributed under the same license as the Widget Context package.
3
- msgid ""
4
- msgstr ""
5
- "Project-Id-Version: Widget Context 1.0-alpha.6\n"
6
- "Report-Msgid-Bugs-To: http://wordpress.org/support/plugin/git\n"
7
- "POT-Creation-Date: 2014-11-01 11:35:28+00:00\n"
8
- "PO-Revision-Date: 2014-11-01 13:44+0200\n"
9
- "Last-Translator: Kaspars <hi@kaspars.net>\n"
10
- "Language-Team: Kaspars Dambis <LL@li.org>\n"
11
- "Language: lv_LV\n"
12
- "MIME-Version: 1.0\n"
13
- "Content-Type: text/plain; charset=UTF-8\n"
14
- "Content-Transfer-Encoding: 8bit\n"
15
- "X-Generator: Poedit 1.6.10\n"
16
- "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : "
17
- "2);\n"
18
-
19
- #. Plugin Name of the plugin/theme
20
- #: debug/debug-bar.php:8 widget-context.php:109 widget-context.php:600
21
- #: widget-context.php:908
22
- msgid "Widget Context"
23
- msgstr ""
24
-
25
- #: debug/debug-bar.php:25 widget-context.php:618
26
- msgid "Show widget everywhere"
27
- msgstr "Radīt logrīku visur"
28
-
29
- #: debug/debug-bar.php:26 widget-context.php:619
30
- msgid "Show widget on selected"
31
- msgstr "Rādīt logrīku pēc izvēles"
32
-
33
- #: debug/debug-bar.php:27 widget-context.php:620
34
- msgid "Hide widget on selected"
35
- msgstr "Slēpt logrīku pēc izvēles"
36
-
37
- #: debug/debug-bar.php:28 widget-context.php:621
38
- msgid "Hide widget everywhere"
39
- msgstr "Slēpt logrīku pavisam"
40
-
41
- #: debug/debug-bar.php:52
42
- msgid "Default"
43
- msgstr "Noklusēti"
44
-
45
- #: debug/debug-bar.php:68
46
- msgid "Yes"
47
- msgstr "Jā"
48
-
49
- #: debug/debug-bar.php:68
50
- msgid "No"
51
- msgstr "Nē"
52
-
53
- #: debug/debug-bar.php:75
54
- msgid "Showing <strong>%s</strong> in \"%s\""
55
- msgstr "Rāda <strong>%s</strong> \"%s\""
56
-
57
- #: debug/debug-bar.php:77
58
- msgid "Hiding <strong>%s</strong> in \"%s\""
59
- msgstr "Slēpj <strong>%s</strong> \"%s\""
60
-
61
- #: debug/debug-bar.php:90
62
- msgid "Toggle"
63
- msgstr "Detaļas"
64
-
65
- #: modules/custom-post-types-taxonomies/module.php:71
66
- msgid "Custom Post Types and Taxonomies"
67
- msgstr "Ierakstu tipi un taksonomijas"
68
-
69
- #: modules/custom-post-types-taxonomies/module.php:72
70
- msgid "Context based custom post types and taxonomies"
71
- msgstr "Konteksts atkarīgs no ierakstu tipa un taksanomijas"
72
-
73
- #: modules/custom-post-types-taxonomies/module.php:129
74
- msgid "All \"%s\" posts"
75
- msgstr "Visi \"%s\" ieraksti"
76
-
77
- #: modules/custom-post-types-taxonomies/module.php:135
78
- msgid "Archive of \"%s\" posts"
79
- msgstr "Arhīvs \"%s\" ierakstiem"
80
-
81
- #: modules/custom-post-types-taxonomies/module.php:144
82
- msgid "All \"%s\" taxonomy archives"
83
- msgstr "Visi \"%s\" taksonomijas arhīvi"
84
-
85
- #: modules/custom-post-types-taxonomies/module.php:156
86
- msgid "None."
87
- msgstr "Neviens."
88
-
89
- #: modules/word-count/module.php:49
90
- msgid "Word Count"
91
- msgstr "Vārdu skaits"
92
-
93
- #: modules/word-count/module.php:50
94
- msgid "Context based on word count on the page."
95
- msgstr "Konteksts izmanto vārdu skaitu konkrētā lapā."
96
-
97
- #: modules/word-count/module.php:104
98
- msgid "Has"
99
- msgstr "Ir"
100
-
101
- #: modules/word-count/module.php:105
102
- msgid "less"
103
- msgstr "mazāk"
104
-
105
- #: modules/word-count/module.php:105
106
- msgid "more"
107
- msgstr "vairāk"
108
-
109
- #: modules/word-count/module.php:105
110
- msgid "than"
111
- msgstr "kā"
112
-
113
- #: modules/word-count/module.php:106
114
- msgid "words"
115
- msgstr "vārdu"
116
-
117
- #: widget-context.php:110
118
- msgid "Set the default logic to show or hide."
119
- msgstr "Iestatīt noklusēto loģiku slēpšanai vai rādīšanai."
120
-
121
- #: widget-context.php:115
122
- msgid "Global Sections"
123
- msgstr "Globālās sadaļas"
124
-
125
- #: widget-context.php:116
126
- msgid "Based on standard WordPress template tags."
127
- msgstr "Izmanto standarta WordPress \"template tags\"."
128
-
129
- #: widget-context.php:120
130
- msgid "Target by URL"
131
- msgstr "Pēc URL"
132
-
133
- #: widget-context.php:121
134
- msgid "Based on URL patterns."
135
- msgstr "Balstīts uz URL "
136
-
137
- #: widget-context.php:125
138
- msgid "Notes (invisible to public)"
139
- msgstr "Piezīmes (nav publiskas)"
140
-
141
- #: widget-context.php:126
142
- msgid "Enables private notes on widget context settings."
143
- msgstr "Iespējo privātas piezīmes logrīku konteksta uzstādījumos."
144
-
145
- #: widget-context.php:561
146
- msgid ""
147
- "No widget controls enabled. You can enable them in <a href=\"%s\">Widget "
148
- "Context settings</a>."
149
- msgstr ""
150
- "Nav iespējots neviens konteksta modulis. Tu vari tos iespējot <a href=\"%s"
151
- "\">Logrīku konteksta uzstādījumos</a>."
152
-
153
- #: widget-context.php:570
154
- msgid "No widget controls enabled."
155
- msgstr "Nav iespējots neviens logrīku kontekts."
156
-
157
- #: widget-context.php:582 widget-context.php:907 widget-context.php:968
158
- msgid "Widget Context Settings"
159
- msgstr "Logrīku konteksta uzstādījumi"
160
-
161
- #: widget-context.php:603
162
- msgid "Expand"
163
- msgstr "Izvērst"
164
-
165
- #: widget-context.php:604
166
- msgid "Collapse"
167
- msgstr "Samazināt"
168
-
169
- #: widget-context.php:632
170
- msgid "Front page"
171
- msgstr "Sākuma lapa"
172
-
173
- #: widget-context.php:633
174
- msgid "Blog page"
175
- msgstr "Bloga lapa"
176
-
177
- #: widget-context.php:634
178
- msgid "All posts, pages and custom post types"
179
- msgstr "Visi ierakstu, lapas un ierakstu tipi"
180
-
181
- #: widget-context.php:635
182
- msgid "All posts"
183
- msgstr "Visi ieraksti"
184
-
185
- #: widget-context.php:636
186
- msgid "All pages"
187
- msgstr "Visas lapas"
188
-
189
- #: widget-context.php:637
190
- msgid "All attachments"
191
- msgstr "Visi pielikumi"
192
-
193
- #: widget-context.php:638
194
- msgid "Search results"
195
- msgstr "Meklēšanas rezultāti"
196
-
197
- #: widget-context.php:639
198
- msgid "404 error page"
199
- msgstr "404 kļūdas lapa"
200
-
201
- #: widget-context.php:640
202
- msgid "All archives"
203
- msgstr "Visi arhīvi"
204
-
205
- #: widget-context.php:641
206
- msgid "All date archives"
207
- msgstr "Visi datuma arhīvi"
208
-
209
- #: widget-context.php:642
210
- msgid "Daily archives"
211
- msgstr "Dienu arhīvi"
212
-
213
- #: widget-context.php:643
214
- msgid "Monthly archives"
215
- msgstr "Mēneša arhīvi"
216
-
217
- #: widget-context.php:644
218
- msgid "Yearly archives"
219
- msgstr "Gada arhīvi"
220
-
221
- #: widget-context.php:645
222
- msgid "All category archives"
223
- msgstr "Visi kategoriju arhīvi"
224
-
225
- #: widget-context.php:646
226
- msgid "All tag archives"
227
- msgstr "Visi tagu arhīvi"
228
-
229
- #: widget-context.php:647
230
- msgid "All author archives"
231
- msgstr "Visi autoru arhīvi"
232
-
233
- #: widget-context.php:664
234
- msgid ""
235
- "Enter one location fragment per line. Use <strong>*</strong> character as a "
236
- "wildcard. Example: <code>category/peace/*</code> to target all posts in "
237
- "category <em>peace</em>."
238
- msgstr ""
239
-
240
- #: widget-context.php:779
241
- msgid "No options available"
242
- msgstr "Nav pieejama neviena iespēja."
243
-
244
- #: widget-context.php:985
245
- msgid "Enabled Context Modules"
246
- msgstr "Iespējot konteksta moduļus"
247
-
248
- #: widget-context.php:1002
249
- msgid "Widget Context is created and maintained by %s."
250
- msgstr "\"Widget Context\" spraudni veido un uztur %s."
251
-
252
- #: widget-context.php:1007
253
- msgid "News & Updates"
254
- msgstr "Jaunumi un atjauninājumi"
255
-
256
- #: widget-context.php:1008
257
- msgid "Subscribe to receive news & updates about the plugin."
258
- msgstr ""
259
- "Pieraksties, lai saņemtu jaunumus un informāciju par šī spraudņa "
260
- "atjauninājumiem."
261
-
262
- #: widget-context.php:1011
263
- msgid "Your Name"
264
- msgstr "Tavs vārds"
265
-
266
- #: widget-context.php:1012
267
- msgid "Your Email"
268
- msgstr "Tavs e-pasts"
269
-
270
- #: widget-context.php:1013
271
- msgid "Subscribe"
272
- msgstr "Pierakstīties"
273
-
274
- #. Plugin URI of the plugin/theme
275
- msgid "https://wordpress.org/plugins/widget-context/"
276
- msgstr ""
277
-
278
- #. Description of the plugin/theme
279
- msgid ""
280
- "Show or hide widgets depending on the section of the site that is being "
281
- "viewed."
282
- msgstr ""
283
-
284
- #. Author of the plugin/theme
285
- msgid "Kaspars Dambis"
286
- msgstr ""
287
-
288
- #. Author URI of the plugin/theme
289
- msgid "http://kaspars.net"
290
- msgstr ""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
languages/widget-context-ru_RU.mo DELETED
Binary file
languages/widget-context-ru_RU.po DELETED
@@ -1,271 +0,0 @@
1
- # Copyright (C) 2014 Widget Context
2
- # This file is distributed under the same license as the Widget Context package.
3
- msgid ""
4
- msgstr ""
5
- "Project-Id-Version: Widget Context ru_RU\n"
6
- "Report-Msgid-Bugs-To: http://wordpress.org/support/plugin/git\n"
7
- "POT-Creation-Date: 2014-07-21 12:34:59+00:00\n"
8
- "PO-Revision-Date: 2014-07-21 15:36+0200\n"
9
- "Last-Translator: Kaspars <kaspars@konstruktors.com>\n"
10
- "Language-Team: WordPressPlugins.ru <rlector@gmail.com>\n"
11
- "Language: ru\n"
12
- "MIME-Version: 1.0\n"
13
- "Content-Type: text/plain; charset=UTF-8\n"
14
- "Content-Transfer-Encoding: 8bit\n"
15
- "X-Generator: Poedit 1.6.6\n"
16
- "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
17
- "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
18
- "X-Poedit-Basepath: .\n"
19
- "X-Poedit-SourceCharset: UTF-8\n"
20
- "X-Poedit-KeywordsList: __;_e;esc_html_e;esc_html__;__\n"
21
- "X-Poedit-SearchPath-0: .\n"
22
- "X-Poedit-SearchPath-1: ..\n"
23
-
24
- #: modules/custom-post-types-taxonomies/custom-cpt-tax.php:71
25
- msgid "Custom Post Types and Taxonomies"
26
- msgstr "Произвольные типы записей и таксономии"
27
-
28
- #: modules/custom-post-types-taxonomies/custom-cpt-tax.php:72
29
- msgid "Context based custom post types and taxonomies"
30
- msgstr "Контекст, основанный на произвольных записях и таксономиях."
31
-
32
- #: modules/custom-post-types-taxonomies/custom-cpt-tax.php:129
33
- msgid "All \"%s\" posts"
34
- msgstr "Все \"%s\" записи"
35
-
36
- #: modules/custom-post-types-taxonomies/custom-cpt-tax.php:135
37
- msgid "Archive of \"%s\" posts"
38
- msgstr "Архив записей \"%s\""
39
-
40
- #: modules/custom-post-types-taxonomies/custom-cpt-tax.php:144
41
- msgid "All \"%s\" taxonomy archives"
42
- msgstr "Все архивы таксономии \"%s\""
43
-
44
- #: modules/custom-post-types-taxonomies/custom-cpt-tax.php:156
45
- msgid "None."
46
- msgstr "Отсутствуют."
47
-
48
- #: modules/word-count/word-count.php:49
49
- msgid "Word Count"
50
- msgstr "Число слов"
51
-
52
- #: modules/word-count/word-count.php:50
53
- msgid "Context based on word count on the page."
54
- msgstr "Контекст, основанный на числе слов на странице."
55
-
56
- #: modules/word-count/word-count.php:104
57
- msgid "Has"
58
- msgstr "имеет"
59
-
60
- #: modules/word-count/word-count.php:105
61
- msgid "less"
62
- msgstr "меньше"
63
-
64
- #: modules/word-count/word-count.php:105
65
- msgid "more"
66
- msgstr "больше"
67
-
68
- #: modules/word-count/word-count.php:105
69
- msgid "than"
70
- msgstr "чем"
71
-
72
- #: modules/word-count/word-count.php:106
73
- msgid "words"
74
- msgstr "слов"
75
-
76
- #. Plugin Name of the plugin/theme
77
- #: widget-context.php:91 widget-context.php:535 widget-context.php:843
78
- msgid "Widget Context"
79
- msgstr "Widget Context"
80
-
81
- #: widget-context.php:92
82
- msgid "Set the default logic to show or hide."
83
- msgstr "Установка настроек по умолчанию для показа или скрытия."
84
-
85
- #: widget-context.php:97
86
- msgid "Global Sections"
87
- msgstr "Глобальные секции"
88
-
89
- #: widget-context.php:98
90
- msgid "Based on standard WordPress template tags."
91
- msgstr "Контекст, основанный на стандартных тегах шаблонов."
92
-
93
- #: widget-context.php:102
94
- msgid "Target by URL"
95
- msgstr "URL"
96
-
97
- #: widget-context.php:103
98
- msgid "Based on URL patterns."
99
- msgstr "Контекст, основанный на указанном URL."
100
-
101
- #: widget-context.php:107
102
- msgid "Notes (invisible to public)"
103
- msgstr "Заметки (только для админов)"
104
-
105
- #: widget-context.php:108
106
- msgid "Enables private notes on widget context settings."
107
- msgstr "Опция включает приватные заметки в настройках виджетов."
108
-
109
- #: widget-context.php:496
110
- msgid ""
111
- "No widget controls enabled. You can enable them in <a href=\"%s\">Widget "
112
- "Context settings</a>."
113
- msgstr ""
114
- "Все модули плагина отключены. Вы должны их включить на <a href=\"%s"
115
- "\">странице настроек</a>."
116
-
117
- #: widget-context.php:505
118
- msgid "No widget controls enabled."
119
- msgstr "Все модули плагина отключены."
120
-
121
- #: widget-context.php:517 widget-context.php:842 widget-context.php:903
122
- msgid "Widget Context Settings"
123
- msgstr "Настройки Widget Context"
124
-
125
- #: widget-context.php:538
126
- msgid "Expand"
127
- msgstr "Раскрыть"
128
-
129
- #: widget-context.php:539
130
- msgid "Collapse"
131
- msgstr "Свернуть"
132
-
133
- #: widget-context.php:553
134
- msgid "Show widget everywhere"
135
- msgstr "Показывать виджет везде"
136
-
137
- #: widget-context.php:554
138
- msgid "Show widget on selected"
139
- msgstr "Показывать виджет на:"
140
-
141
- #: widget-context.php:555
142
- msgid "Hide widget on selected"
143
- msgstr "Спрятать виджет на:"
144
-
145
- #: widget-context.php:556
146
- msgid "Hide widget everywhere"
147
- msgstr "Спрятать виджет везде"
148
-
149
- #: widget-context.php:567
150
- msgid "Front page"
151
- msgstr "Главная страница"
152
-
153
- #: widget-context.php:568
154
- msgid "Blog page"
155
- msgstr "Страница блога"
156
-
157
- #: widget-context.php:569
158
- msgid "All posts, pages and custom post types"
159
- msgstr "Все записи, страницы и произвольные типы записей"
160
-
161
- #: widget-context.php:570
162
- msgid "All posts"
163
- msgstr "Все записи"
164
-
165
- #: widget-context.php:571
166
- msgid "All pages"
167
- msgstr "Все страницы"
168
-
169
- #: widget-context.php:572
170
- msgid "All attachments"
171
- msgstr "Все вложения"
172
-
173
- #: widget-context.php:573
174
- msgid "Search results"
175
- msgstr "Страница с результатами поиска"
176
-
177
- #: widget-context.php:574
178
- msgid "404 error page"
179
- msgstr "Страница ошибки 404"
180
-
181
- #: widget-context.php:575
182
- msgid "All archives"
183
- msgstr "Все архивы"
184
-
185
- #: widget-context.php:576
186
- msgid "All date archives"
187
- msgstr "Все архивы по дате"
188
-
189
- #: widget-context.php:577
190
- msgid "Daily archives"
191
- msgstr "Архивы по дням"
192
-
193
- #: widget-context.php:578
194
- msgid "Monthly archives"
195
- msgstr "Архивы по месяцам"
196
-
197
- #: widget-context.php:579
198
- msgid "Yearly archives"
199
- msgstr "Архивы по годам"
200
-
201
- #: widget-context.php:580
202
- msgid "All category archives"
203
- msgstr "Все рубрики"
204
-
205
- #: widget-context.php:581
206
- msgid "All tag archives"
207
- msgstr "Все рубрики меток"
208
-
209
- #: widget-context.php:582
210
- msgid "All author archives"
211
- msgstr "Все архивы по автору"
212
-
213
- #: widget-context.php:599
214
- msgid ""
215
- "Enter one location fragment per line. Use <strong>*</strong> character as a "
216
- "wildcard. Example: <code>category/peace/*</code> to target all posts in "
217
- "category <em>peace</em>."
218
- msgstr ""
219
- "Вводите каждый фрагмент URL на отдельной строчке. Используйте символ "
220
- "<strong>*</strong> в качестве маски. Например, <code>category/peace/*</"
221
- "code> будет указывать на все записи в рубрике <em>peace</em>."
222
-
223
- #: widget-context.php:714
224
- msgid "No options available"
225
- msgstr "Нет доступных настроек"
226
-
227
- #: widget-context.php:920
228
- msgid "Enabled Context Modules"
229
- msgstr "Включенные модули контекста"
230
-
231
- #: widget-context.php:937
232
- msgid "Widget Context is created and maintained by %s."
233
- msgstr "Плагин Widget Context создал и поддерживает %s."
234
-
235
- #: widget-context.php:942
236
- msgid "News & Updates"
237
- msgstr "Новости и обновления"
238
-
239
- #: widget-context.php:943
240
- msgid "Subscribe to receive news & updates about the plugin."
241
- msgstr "Подпишитесь на рассылку новостей и обновлений этого плагина."
242
-
243
- #: widget-context.php:946
244
- msgid "Your Name"
245
- msgstr "Ваше имя"
246
-
247
- #: widget-context.php:947
248
- msgid "Your Email"
249
- msgstr "Ваш e-mail"
250
-
251
- #: widget-context.php:948
252
- msgid "Subscribe"
253
- msgstr "Подписаться"
254
-
255
- #. Plugin URI of the plugin/theme
256
- msgid "http://wordpress.org/extend/plugins/widget-context/"
257
- msgstr ""
258
-
259
- #. Description of the plugin/theme
260
- msgid ""
261
- "Show or hide widgets depending on the section of the site that is being "
262
- "viewed."
263
- msgstr ""
264
-
265
- #. Author of the plugin/theme
266
- msgid "Kaspars Dambis"
267
- msgstr ""
268
-
269
- #. Author URI of the plugin/theme
270
- msgid "http://kaspars.net"
271
- msgstr ""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
languages/widget-context.pot DELETED
@@ -1,283 +0,0 @@
1
- # Copyright (C) 2014 Widget Context
2
- # This file is distributed under the same license as the Widget Context package.
3
- msgid ""
4
- msgstr ""
5
- "Project-Id-Version: Widget Context 1.0.3\n"
6
- "Report-Msgid-Bugs-To: http://wordpress.org/support/plugin/git\n"
7
- "POT-Creation-Date: 2014-11-01 11:35:28+00:00\n"
8
- "MIME-Version: 1.0\n"
9
- "Content-Type: text/plain; charset=UTF-8\n"
10
- "Content-Transfer-Encoding: 8bit\n"
11
- "PO-Revision-Date: 2014-MO-DA HO:MI+ZONE\n"
12
- "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
- "Language-Team: LANGUAGE <LL@li.org>\n"
14
-
15
- #. #-#-#-#-# widget-context.pot (Widget Context 1.0.3) #-#-#-#-#
16
- #. Plugin Name of the plugin/theme
17
- #: debug/debug-bar.php:8 widget-context.php:109 widget-context.php:600
18
- #: widget-context.php:908
19
- msgid "Widget Context"
20
- msgstr ""
21
-
22
- #: debug/debug-bar.php:25 widget-context.php:618
23
- msgid "Show widget everywhere"
24
- msgstr ""
25
-
26
- #: debug/debug-bar.php:26 widget-context.php:619
27
- msgid "Show widget on selected"
28
- msgstr ""
29
-
30
- #: debug/debug-bar.php:27 widget-context.php:620
31
- msgid "Hide widget on selected"
32
- msgstr ""
33
-
34
- #: debug/debug-bar.php:28 widget-context.php:621
35
- msgid "Hide widget everywhere"
36
- msgstr ""
37
-
38
- #: debug/debug-bar.php:52
39
- msgid "Default"
40
- msgstr ""
41
-
42
- #: debug/debug-bar.php:68
43
- msgid "Yes"
44
- msgstr ""
45
-
46
- #: debug/debug-bar.php:68
47
- msgid "No"
48
- msgstr ""
49
-
50
- #: debug/debug-bar.php:75
51
- msgid "Showing <strong>%s</strong> in \"%s\""
52
- msgstr ""
53
-
54
- #: debug/debug-bar.php:77
55
- msgid "Hiding <strong>%s</strong> in \"%s\""
56
- msgstr ""
57
-
58
- #: debug/debug-bar.php:90
59
- msgid "Toggle"
60
- msgstr ""
61
-
62
- #: modules/custom-post-types-taxonomies/module.php:71
63
- msgid "Custom Post Types and Taxonomies"
64
- msgstr ""
65
-
66
- #: modules/custom-post-types-taxonomies/module.php:72
67
- msgid "Context based custom post types and taxonomies"
68
- msgstr ""
69
-
70
- #: modules/custom-post-types-taxonomies/module.php:129
71
- msgid "All \"%s\" posts"
72
- msgstr ""
73
-
74
- #: modules/custom-post-types-taxonomies/module.php:135
75
- msgid "Archive of \"%s\" posts"
76
- msgstr ""
77
-
78
- #: modules/custom-post-types-taxonomies/module.php:144
79
- msgid "All \"%s\" taxonomy archives"
80
- msgstr ""
81
-
82
- #: modules/custom-post-types-taxonomies/module.php:156
83
- msgid "None."
84
- msgstr ""
85
-
86
- #: modules/word-count/module.php:49
87
- msgid "Word Count"
88
- msgstr ""
89
-
90
- #: modules/word-count/module.php:50
91
- msgid "Context based on word count on the page."
92
- msgstr ""
93
-
94
- #: modules/word-count/module.php:104
95
- msgid "Has"
96
- msgstr ""
97
-
98
- #: modules/word-count/module.php:105
99
- msgid "less"
100
- msgstr ""
101
-
102
- #: modules/word-count/module.php:105
103
- msgid "more"
104
- msgstr ""
105
-
106
- #: modules/word-count/module.php:105
107
- msgid "than"
108
- msgstr ""
109
-
110
- #: modules/word-count/module.php:106
111
- msgid "words"
112
- msgstr ""
113
-
114
- #: widget-context.php:110
115
- msgid "Set the default logic to show or hide."
116
- msgstr ""
117
-
118
- #: widget-context.php:115
119
- msgid "Global Sections"
120
- msgstr ""
121
-
122
- #: widget-context.php:116
123
- msgid "Based on standard WordPress template tags."
124
- msgstr ""
125
-
126
- #: widget-context.php:120
127
- msgid "Target by URL"
128
- msgstr ""
129
-
130
- #: widget-context.php:121
131
- msgid "Based on URL patterns."
132
- msgstr ""
133
-
134
- #: widget-context.php:125
135
- msgid "Notes (invisible to public)"
136
- msgstr ""
137
-
138
- #: widget-context.php:126
139
- msgid "Enables private notes on widget context settings."
140
- msgstr ""
141
-
142
- #: widget-context.php:561
143
- msgid ""
144
- "No widget controls enabled. You can enable them in <a href=\"%s\">Widget "
145
- "Context settings</a>."
146
- msgstr ""
147
-
148
- #: widget-context.php:570
149
- msgid "No widget controls enabled."
150
- msgstr ""
151
-
152
- #: widget-context.php:582 widget-context.php:907 widget-context.php:968
153
- msgid "Widget Context Settings"
154
- msgstr ""
155
-
156
- #: widget-context.php:603
157
- msgid "Expand"
158
- msgstr ""
159
-
160
- #: widget-context.php:604
161
- msgid "Collapse"
162
- msgstr ""
163
-
164
- #: widget-context.php:632
165
- msgid "Front page"
166
- msgstr ""
167
-
168
- #: widget-context.php:633
169
- msgid "Blog page"
170
- msgstr ""
171
-
172
- #: widget-context.php:634
173
- msgid "All posts, pages and custom post types"
174
- msgstr ""
175
-
176
- #: widget-context.php:635
177
- msgid "All posts"
178
- msgstr ""
179
-
180
- #: widget-context.php:636
181
- msgid "All pages"
182
- msgstr ""
183
-
184
- #: widget-context.php:637
185
- msgid "All attachments"
186
- msgstr ""
187
-
188
- #: widget-context.php:638
189
- msgid "Search results"
190
- msgstr ""
191
-
192
- #: widget-context.php:639
193
- msgid "404 error page"
194
- msgstr ""
195
-
196
- #: widget-context.php:640
197
- msgid "All archives"
198
- msgstr ""
199
-
200
- #: widget-context.php:641
201
- msgid "All date archives"
202
- msgstr ""
203
-
204
- #: widget-context.php:642
205
- msgid "Daily archives"
206
- msgstr ""
207
-
208
- #: widget-context.php:643
209
- msgid "Monthly archives"
210
- msgstr ""
211
-
212
- #: widget-context.php:644
213
- msgid "Yearly archives"
214
- msgstr ""
215
-
216
- #: widget-context.php:645
217
- msgid "All category archives"
218
- msgstr ""
219
-
220
- #: widget-context.php:646
221
- msgid "All tag archives"
222
- msgstr ""
223
-
224
- #: widget-context.php:647
225
- msgid "All author archives"
226
- msgstr ""
227
-
228
- #: widget-context.php:664
229
- msgid ""
230
- "Enter one location fragment per line. Use <strong>*</strong> character as a "
231
- "wildcard. Example: <code>category/peace/*</code> to target all posts in "
232
- "category <em>peace</em>."
233
- msgstr ""
234
-
235
- #: widget-context.php:779
236
- msgid "No options available"
237
- msgstr ""
238
-
239
- #: widget-context.php:985
240
- msgid "Enabled Context Modules"
241
- msgstr ""
242
-
243
- #: widget-context.php:1002
244
- msgid "Widget Context is created and maintained by %s."
245
- msgstr ""
246
-
247
- #: widget-context.php:1007
248
- msgid "News & Updates"
249
- msgstr ""
250
-
251
- #: widget-context.php:1008
252
- msgid "Subscribe to receive news & updates about the plugin."
253
- msgstr ""
254
-
255
- #: widget-context.php:1011
256
- msgid "Your Name"
257
- msgstr ""
258
-
259
- #: widget-context.php:1012
260
- msgid "Your Email"
261
- msgstr ""
262
-
263
- #: widget-context.php:1013
264
- msgid "Subscribe"
265
- msgstr ""
266
-
267
- #. Plugin URI of the plugin/theme
268
- msgid "https://wordpress.org/plugins/widget-context/"
269
- msgstr ""
270
-
271
- #. Description of the plugin/theme
272
- msgid ""
273
- "Show or hide widgets depending on the section of the site that is being "
274
- "viewed."
275
- msgstr ""
276
-
277
- #. Author of the plugin/theme
278
- msgid "Kaspars Dambis"
279
- msgstr ""
280
-
281
- #. Author URI of the plugin/theme
282
- msgid "http://kaspars.net"
283
- msgstr ""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
readme.txt CHANGED
@@ -1,11 +1,11 @@
1
  === Widget Context ===
2
 
3
- Contributors: kasparsd, jamescollins
4
- Tags: widget, widget context, context, logic, widget logic, cms
5
- Requires at least: 3.0
6
- Tested up to: 4.9.2
7
- Stable tag: trunk
8
- License: GPLv2 or later
9
 
10
  Show or hide widgets on specific posts, pages or sections of your site.
11
 
@@ -17,105 +17,110 @@ Widget Context allows you to show or hide widgets on certain sections of your si
17
 
18
  = Get Involved: =
19
 
20
- * Development and pull requests [on GitHub](https://github.com/kasparsd/widget-context-wporg),
21
- * Bug reports and suggestions on [WordPress.org forums](http://wordpress.org/support/plugin/widget-context).
22
 
23
 
24
  == Installation ==
25
 
26
- * Install the plugin through **Add New Plugin** feature in your WordPress dashboard -- search for Widget Context.
27
- * Widget Context settings will appear automatically under each widget under Design > Widgets.
28
 
29
 
30
  == Changelog ==
31
 
 
 
 
 
 
32
  = 1.0.6 (January 20, 2018) =
33
- * Fix path to admin scripts and styles, props [@tedgeving](https://github.com/kasparsd/widget-context-wporg/pull/32).
34
- * Mark as tested with WordPress 4.9.2.
35
 
36
  = 1.0.5 (May 8, 2017) =
37
- * Confirm the plugin works with the latest version of WordPress.
38
- * Add support for continuous testing via [wp-dev-lib](https://github.com/xwp/wp-dev-lib).
39
 
40
  = 1.0.4 (May 6, 2016) =
41
- * Confirm the plugin works with the latest version of WordPress.
42
- * Fix the PHP class constructor warning.
43
- * Move the widget context settings link.
44
- * Fix the initial context state in the customizer.
45
 
46
  = 1.0.3 =
47
- * Include Russian translation (Thanks Flector!).
48
- * Add textdomain to the remaining strings.
49
- * Enable debugging if [Debug Bar](https://wordpress.org/plugins/debug-bar/) is available.
50
 
51
  = 1.0.2 =
52
- * Load available custom post types and taxonomies right before visibility checks to avoid PHP warnings.
53
- * Run visibility checks only after the main post query has run. Fixes issues with WooCommerce.
54
- * Load our CSS and Javascript files only on widget and customizer admin pages.
55
 
56
  = 1.0.1 =
57
- * Fix PHP warning in custom post type and taxonomy module.
58
 
59
  = 1.0 =
60
- * Public release of the 1.0 refactoring.
61
 
62
  = 1.0-beta =
63
- * Improved settings page.
64
 
65
  = 1.0-alpha =
66
- * Refactor code to allow custom widget context modules.
67
 
68
  = 0.8.3 =
69
 
70
- * Fix PHP warning that occurred on PHP 5.2.x.
71
 
72
  = 0.8.2 =
73
 
74
- * Improved SSL/HTTPS detection.
75
- * Fix: Ensure that is_active_sidebar() & is_dynamic_sidebar() don't return true when there are no widgets displayed on a page.
76
- * Two new filters so that other plugins can override widget context display/visibility logic.
77
 
78
  = 0.8.1 =
79
 
80
- * Revert back to changing callback function in `$wp_registered_widgets` for attaching widget context setting controls.
81
- * Fix the word count logic.
82
 
83
  = 0.8 =
84
 
85
- * Major code rewrite and refactoring to improve performance and usability.
86
- * Fix bugs with URL targeting and empty lines in the "Target by URL" textarea.
87
 
88
  = 0.7.2 =
89
 
90
- * Fix PHP warnings/notices. Props to [James Collins](http://om4.com.au/).
91
 
92
  = 0.7.1 =
93
 
94
- * Confirm that the plugin works with the latest version of WP.
95
 
96
  = 0.7 =
97
 
98
- * Bug fix: check for active sidebars only after $paged has been set.
99
 
100
  = 0.6 =
101
 
102
- * Don't check for used sidebars on each widget load. Allow absolute URLs in the URL check.
103
 
104
  = 0.5 =
105
 
106
- * Added distinction between is_front_page() and is_home(). Remove widgets from wp_get_sidebars_widgets() if they are not being displayed -- this way you can check if a particular sidebar is empty.
107
 
108
  = 0.4.5 =
109
 
110
- * Widget output callback couldn't determine the widget_id.
111
 
112
  = 0.4.4 =
113
 
114
- * Fixed widget control parameter transfer for widgets that don't use the new widget api.
115
 
116
  = 0.4.2 =
117
 
118
- * Initial release on Plugin repository.
119
 
120
 
121
  == Upgrade Notice ==
1
  === Widget Context ===
2
 
3
+ Contributors: kasparsd, jamescollins
4
+ Tags: widget, widget context, context, logic, widget logic, cms
5
+ Requires at least: 3.0
6
+ Tested up to: 4.9.6
7
+ Stable tag: 1.0.7
8
+ License: GPLv2 or later
9
 
10
  Show or hide widgets on specific posts, pages or sections of your site.
11
 
17
 
18
  = Get Involved: =
19
 
20
+ - Development and pull requests [on GitHub](https://github.com/kasparsd/widget-context-wporg),
21
+ - Bug reports and suggestions on [WordPress.org forums](http://wordpress.org/support/plugin/widget-context).
22
 
23
 
24
  == Installation ==
25
 
26
+ - Install the plugin through **Add New Plugin** feature in your WordPress dashboard -- search for Widget Context.
27
+ - Widget Context settings will appear automatically under each widget under Design > Widgets.
28
 
29
 
30
  == Changelog ==
31
 
32
+ = 1.0.7 (June 5, 2018) =
33
+ - Mark as tested with WordPress 4.9.6.
34
+ - Use the localisation service provided by [WP.org](https://translate.wordpress.org/projects/wp-plugins/widget-context).
35
+ - Support for Composer.
36
+
37
  = 1.0.6 (January 20, 2018) =
38
+ - Fix path to admin scripts and styles, props @tedgeving.
39
+ - Mark as tested with WordPress 4.9.2.
40
 
41
  = 1.0.5 (May 8, 2017) =
42
+ - Confirm the plugin works with the latest version of WordPress.
43
+ - Add support for continuous testing via [wp-dev-lib](https://github.com/xwp/wp-dev-lib).
44
 
45
  = 1.0.4 (May 6, 2016) =
46
+ - Confirm the plugin works with the latest version of WordPress.
47
+ - Fix the PHP class constructor warning.
48
+ - Move the widget context settings link.
49
+ - Fix the initial context state in the customizer.
50
 
51
  = 1.0.3 =
52
+ - Include Russian translation (Thanks Flector!).
53
+ - Add textdomain to the remaining strings.
54
+ - Enable debugging if [Debug Bar](https://wordpress.org/plugins/debug-bar/) is available.
55
 
56
  = 1.0.2 =
57
+ - Load available custom post types and taxonomies right before visibility checks to avoid PHP warnings.
58
+ - Run visibility checks only after the main post query has run. Fixes issues with WooCommerce.
59
+ - Load our CSS and Javascript files only on widget and customizer admin pages.
60
 
61
  = 1.0.1 =
62
+ - Fix PHP warning in custom post type and taxonomy module.
63
 
64
  = 1.0 =
65
+ - Public release of the 1.0 refactoring.
66
 
67
  = 1.0-beta =
68
+ - Improved settings page.
69
 
70
  = 1.0-alpha =
71
+ - Refactor code to allow custom widget context modules.
72
 
73
  = 0.8.3 =
74
 
75
+ - Fix PHP warning that occurred on PHP 5.2.x.
76
 
77
  = 0.8.2 =
78
 
79
+ - Improved SSL/HTTPS detection.
80
+ - Fix: Ensure that is_active_sidebar() & is_dynamic_sidebar() don't return true when there are no widgets displayed on a page.
81
+ - Two new filters so that other plugins can override widget context display/visibility logic.
82
 
83
  = 0.8.1 =
84
 
85
+ - Revert back to changing callback function in `$wp_registered_widgets` for attaching widget context setting controls.
86
+ - Fix the word count logic.
87
 
88
  = 0.8 =
89
 
90
+ - Major code rewrite and refactoring to improve performance and usability.
91
+ - Fix bugs with URL targeting and empty lines in the "Target by URL" textarea.
92
 
93
  = 0.7.2 =
94
 
95
+ - Fix PHP warnings/notices. Props to [James Collins](http://om4.com.au/).
96
 
97
  = 0.7.1 =
98
 
99
+ - Confirm that the plugin works with the latest version of WP.
100
 
101
  = 0.7 =
102
 
103
+ - Bug fix: check for active sidebars only after $paged has been set.
104
 
105
  = 0.6 =
106
 
107
+ - Don't check for used sidebars on each widget load. Allow absolute URLs in the URL check.
108
 
109
  = 0.5 =
110
 
111
+ - Added distinction between is_front_page() and is_home(). Remove widgets from wp_get_sidebars_widgets() if they are not being displayed -- this way you can check if a particular sidebar is empty.
112
 
113
  = 0.4.5 =
114
 
115
+ - Widget output callback couldn't determine the widget_id.
116
 
117
  = 0.4.4 =
118
 
119
+ - Fixed widget control parameter transfer for widgets that don't use the new widget api.
120
 
121
  = 0.4.2 =
122
 
123
+ - Initial release on Plugin repository.
124
 
125
 
126
  == Upgrade Notice ==
widget-context.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Widget Context
4
  * Plugin URI: https://widgetcontext.com
5
  * Description: Show or hide widgets depending on the section of the site that is being viewed.
6
- * Version: 1.0.6
7
  * Author: Kaspars Dambis
8
  * Author URI: https://kaspars.net
9
  * Text Domain: widget-context
@@ -13,4 +13,5 @@ include dirname( __FILE__ ) . '/class/class-widget-context.php';
13
 
14
  // Go!
15
  $plugin = widget_context::instance();
 
16
  $plugin->init();
3
  * Plugin Name: Widget Context
4
  * Plugin URI: https://widgetcontext.com
5
  * Description: Show or hide widgets depending on the section of the site that is being viewed.
6
+ * Version: 1.0.7
7
  * Author: Kaspars Dambis
8
  * Author URI: https://kaspars.net
9
  * Text Domain: widget-context
13
 
14
  // Go!
15
  $plugin = widget_context::instance();
16
+ $plugin->set_path( dirname( __FILE__ ) );
17
  $plugin->init();