Widget Context - Version 1.0.3

Version Description

  • Include Russian translation (Thanks Flector!).
  • Add textdomain to the remaining strings.
  • Enable debugging if Debug Bar is available.
Download this release

Release Info

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

Code changes from version 1.0.2 to 1.0.3

debug/debug-bar.php ADDED
@@ -0,0 +1,111 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <?php
3
+
4
+ class Debug_Widget_Context extends Debug_Bar_Panel {
5
+
6
+ function init() {
7
+
8
+ $this->title( __( 'Widget Context', 'widget-context' ) );
9
+
10
+ }
11
+
12
+ function prerender() {
13
+
14
+ $this->set_visible( ! is_admin() );
15
+
16
+ }
17
+
18
+ function render() {
19
+
20
+ $wc = widget_context::instance();
21
+
22
+ $sidebars_widgets = $wc->get_sidebars_widgets_copy();
23
+
24
+ $map = array(
25
+ 'show' => __( 'Show widget everywhere', 'widget-context' ),
26
+ 'selected' => __( 'Show widget on selected', 'widget-context' ),
27
+ 'notselected' => __( 'Hide widget on selected', 'widget-context' ),
28
+ 'hide' => __( 'Hide widget everywhere', 'widget-context' )
29
+ );
30
+
31
+ foreach ( $sidebars_widgets as $widget_area => $widgets ) {
32
+
33
+ if ( 'wp_inactive_widgets' == $widget_area )
34
+ continue;
35
+
36
+ foreach ( $widgets as $widget_i => $widget_id ) {
37
+
38
+ $a = array(); // sorry
39
+ $context_options = $wc->get_context_options( $widget_id );
40
+
41
+ foreach ( $wc->get_contexts() as $context_id => $context ) {
42
+
43
+ if ( isset( $context_options[ $context_id ] ) )
44
+ $widget_context_args = $context_options[ $context_id ];
45
+ else
46
+ $widget_context_args = array();
47
+
48
+ if ( $context_id == 'incexc' ) {
49
+ if ( isset( $widget_context_args['condition'] ) && isset( $map[ $widget_context_args['condition'] ] ) )
50
+ $set = $map[ $widget_context_args['condition'] ];
51
+ else
52
+ $set = __( 'Default', 'widget-context' );
53
+ }
54
+
55
+ $check = apply_filters(
56
+ 'widget_context_check-' . $context_id,
57
+ null,
58
+ $widget_context_args
59
+ );
60
+
61
+ $a[] = sprintf(
62
+ '<tr>
63
+ <th><strong>%s</strong></th>
64
+ <td>%s</td>
65
+ <td><pre>%s</pre></td>
66
+ </tr>',
67
+ $context_id,
68
+ $check ? __( 'Yes', 'widget-context' ) : __( 'No', 'widget-context' ),
69
+ esc_html( print_r( $widget_context_args, true ) )
70
+ );
71
+
72
+ }
73
+
74
+ if ( $wc->check_widget_visibility( $widget_id ) )
75
+ $status = sprintf( __( 'Showing <strong>%s</strong> in "%s"' ), esc_html( $widget_id ), esc_html( $widget_area ) );
76
+ else
77
+ $status = sprintf( __( 'Hiding <strong>%s</strong> in "%s"' ), esc_html( $widget_id ), esc_html( $widget_area ) );
78
+
79
+ $out[] = sprintf(
80
+ '<h3><a href="#widget-%d" class="toggle">%s</a> <strong>%s</strong> &mdash; %s</h3>
81
+ <table width="100%%" id="widget-%d" style="display:none;">
82
+ <tr>
83
+ <th>Context</th>
84
+ <th>Match</th>
85
+ <th>Settings</th>
86
+ </tr>
87
+ %s
88
+ </table>',
89
+ $widget_i,
90
+ __( 'Toggle', 'widget-context' ),
91
+ esc_html( $set ),
92
+ $status,
93
+ $widget_i,
94
+ implode( '', $a )
95
+ );
96
+
97
+ }
98
+ }
99
+
100
+ printf(
101
+ '%s
102
+ <h3>Registered Contexts:</h3>
103
+ <pre>%s</pre>',
104
+ implode( '', $out ),
105
+ esc_html( print_r( $wc->get_contexts(), true ) )
106
+ );
107
+
108
+ }
109
+
110
+ }
111
+
debug/debug.js ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ jQuery(document).ready(function($) {
2
+
3
+ $('#debug-menu-target-Debug_Widget_Context .toggle').on('click', function(e){
4
+ e.preventDefault();
5
+ $( $(this).attr('href') ).toggle();
6
+ });
7
+
8
+ });
js/widget-context.js CHANGED
@@ -24,4 +24,11 @@ jQuery(document).ready(function($) {
24
 
25
  });
26
 
 
 
 
 
 
 
 
27
  });
24
 
25
  });
26
 
27
+ $(document).bind( 'widget-updated', function( e, widget ) {
28
+
29
+ show_hide_controls( widget.find('input[name="widget-id"]').val() );
30
+
31
+ });
32
+
33
+
34
  });
languages/widget-context-lv_LV.mo CHANGED
Binary file
languages/widget-context-lv_LV.po CHANGED
@@ -4,104 +4,145 @@ 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-07-10 14:48:47+00:00\n"
8
- "PO-Revision-Date: 2014-07-10 17:49+0200\n"
9
- "Last-Translator: Kaspars <kaspars@konstruktors.com>\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.6\n"
16
  "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : "
17
  "2);\n"
18
 
19
- #: modules/custom-post-types-taxonomies/custom-cpt-tax.php:71
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
  msgid "Custom Post Types and Taxonomies"
21
  msgstr "Ierakstu tipi un taksonomijas"
22
 
23
- #: modules/custom-post-types-taxonomies/custom-cpt-tax.php:72
24
  msgid "Context based custom post types and taxonomies"
25
  msgstr "Konteksts atkarīgs no ierakstu tipa un taksanomijas"
26
 
27
- #: modules/custom-post-types-taxonomies/custom-cpt-tax.php:123
28
  msgid "All \"%s\" posts"
29
  msgstr "Visi \"%s\" ieraksti"
30
 
31
- #: modules/custom-post-types-taxonomies/custom-cpt-tax.php:129
32
  msgid "Archive of \"%s\" posts"
33
  msgstr "Arhīvs \"%s\" ierakstiem"
34
 
35
- #: modules/custom-post-types-taxonomies/custom-cpt-tax.php:138
36
  msgid "All \"%s\" taxonomy archives"
37
  msgstr "Visi \"%s\" taksonomijas arhīvi"
38
 
39
- #: modules/custom-post-types-taxonomies/custom-cpt-tax.php:150
40
  msgid "None."
41
  msgstr "Neviens."
42
 
43
- #: modules/word-count/word-count.php:49
44
  msgid "Word Count"
45
  msgstr "Vārdu skaits"
46
 
47
- #: modules/word-count/word-count.php:50
48
  msgid "Context based on word count on the page."
49
  msgstr "Konteksts izmanto vārdu skaitu konkrētā lapā."
50
 
51
- #: modules/word-count/word-count.php:104
52
  msgid "Has"
53
  msgstr "Ir"
54
 
55
- #: modules/word-count/word-count.php:105
56
  msgid "less"
57
  msgstr "mazāk"
58
 
59
- #: modules/word-count/word-count.php:105
60
  msgid "more"
61
  msgstr "vairāk"
62
 
63
- #: modules/word-count/word-count.php:105
64
  msgid "than"
65
  msgstr "kā"
66
 
67
- #: modules/word-count/word-count.php:106
68
  msgid "words"
69
  msgstr "vārdu"
70
 
71
- #. Plugin Name of the plugin/theme
72
- #: widget-context.php:91 widget-context.php:530 widget-context.php:838
73
- msgid "Widget Context"
74
- msgstr "Logrīku konteksts"
75
-
76
- #: widget-context.php:92
77
  msgid "Set the default logic to show or hide."
78
  msgstr "Iestatīt noklusēto loģiku slēpšanai vai rādīšanai."
79
 
80
- #: widget-context.php:97
81
  msgid "Global Sections"
82
  msgstr "Globālās sadaļas"
83
 
84
- #: widget-context.php:98
85
  msgid "Based on standard WordPress template tags."
86
  msgstr "Izmanto standarta WordPress \"template tags\"."
87
 
88
- #: widget-context.php:102
89
  msgid "Target by URL"
90
  msgstr "Pēc URL"
91
 
92
- #: widget-context.php:103
93
  msgid "Based on URL patterns."
94
  msgstr "Balstīts uz URL "
95
 
96
- #: widget-context.php:107
97
  msgid "Notes (invisible to public)"
98
  msgstr "Piezīmes (nav publiskas)"
99
 
100
- #: widget-context.php:108
101
  msgid "Enables private notes on widget context settings."
102
  msgstr "Iespējo privātas piezīmes logrīku konteksta uzstādījumos."
103
 
104
- #: widget-context.php:491
105
  msgid ""
106
  "No widget controls enabled. You can enable them in <a href=\"%s\">Widget "
107
  "Context settings</a>."
@@ -109,146 +150,129 @@ msgstr ""
109
  "Nav iespējots neviens konteksta modulis. Tu vari tos iespējot <a href=\"%s"
110
  "\">Logrīku konteksta uzstādījumos</a>."
111
 
112
- #: widget-context.php:500
113
  msgid "No widget controls enabled."
114
  msgstr "Nav iespējots neviens logrīku kontekts."
115
 
116
- #: widget-context.php:512 widget-context.php:837 widget-context.php:898
117
  msgid "Widget Context Settings"
118
  msgstr "Logrīku konteksta uzstādījumi"
119
 
120
- #: widget-context.php:533
121
  msgid "Expand"
122
  msgstr "Izvērst"
123
 
124
- #: widget-context.php:534
125
  msgid "Collapse"
126
  msgstr "Samazināt"
127
 
128
- #: widget-context.php:548
129
- msgid "Show widget everywhere"
130
- msgstr "Radīt logrīku visur"
131
-
132
- #: widget-context.php:549
133
- msgid "Show widget on selected"
134
- msgstr "Rādīt logrīku pēc izvēles"
135
-
136
- #: widget-context.php:550
137
- msgid "Hide widget on selected"
138
- msgstr "Slēpt logrīku pēc izvēles"
139
-
140
- #: widget-context.php:551
141
- msgid "Hide widget everywhere"
142
- msgstr "Slēpt logrīku pavisam"
143
-
144
- #: widget-context.php:562
145
  msgid "Front page"
146
  msgstr "Sākuma lapa"
147
 
148
- #: widget-context.php:563
149
  msgid "Blog page"
150
  msgstr "Bloga lapa"
151
 
152
- #: widget-context.php:564
153
  msgid "All posts, pages and custom post types"
154
- msgstr "Visi ierakstu, lapas un custom post types"
155
 
156
- #: widget-context.php:565
157
  msgid "All posts"
158
  msgstr "Visi ieraksti"
159
 
160
- #: widget-context.php:566
161
  msgid "All pages"
162
  msgstr "Visas lapas"
163
 
164
- #: widget-context.php:567
165
  msgid "All attachments"
166
  msgstr "Visi pielikumi"
167
 
168
- #: widget-context.php:568
169
  msgid "Search results"
170
  msgstr "Meklēšanas rezultāti"
171
 
172
- #: widget-context.php:569
173
  msgid "404 error page"
174
  msgstr "404 kļūdas lapa"
175
 
176
- #: widget-context.php:570
177
  msgid "All archives"
178
  msgstr "Visi arhīvi"
179
 
180
- #: widget-context.php:571
181
  msgid "All date archives"
182
  msgstr "Visi datuma arhīvi"
183
 
184
- #: widget-context.php:572
185
  msgid "Daily archives"
186
  msgstr "Dienu arhīvi"
187
 
188
- #: widget-context.php:573
189
  msgid "Monthly archives"
190
  msgstr "Mēneša arhīvi"
191
 
192
- #: widget-context.php:574
193
  msgid "Yearly archives"
194
  msgstr "Gada arhīvi"
195
 
196
- #: widget-context.php:575
197
  msgid "All category archives"
198
  msgstr "Visi kategoriju arhīvi"
199
 
200
- #: widget-context.php:576
201
  msgid "All tag archives"
202
  msgstr "Visi tagu arhīvi"
203
 
204
- #: widget-context.php:577
205
  msgid "All author archives"
206
  msgstr "Visi autoru arhīvi"
207
 
208
- #: widget-context.php:594
209
  msgid ""
210
  "Enter one location fragment per line. Use <strong>*</strong> character as a "
211
  "wildcard. Example: <code>category/peace/*</code> to target all posts in "
212
  "category <em>peace</em>."
213
  msgstr ""
214
 
215
- #: widget-context.php:709
216
  msgid "No options available"
217
  msgstr "Nav pieejama neviena iespēja."
218
 
219
- #: widget-context.php:915
220
  msgid "Enabled Context Modules"
221
  msgstr "Iespējot konteksta moduļus"
222
 
223
- #: widget-context.php:932
224
  msgid "Widget Context is created and maintained by %s."
225
- msgstr "\"Logrīku konteksts\" spraudni veido un uztur %s."
226
 
227
- #: widget-context.php:937
228
  msgid "News & Updates"
229
  msgstr "Jaunumi un atjauninājumi"
230
 
231
- #: widget-context.php:938
232
- #, fuzzy
233
  msgid "Subscribe to receive news & updates about the plugin."
234
  msgstr ""
235
- "Pieraksties lai saņemtu jaunumus un informāciju par šī spraudņa "
236
  "atjauninājumiem."
237
 
238
- #: widget-context.php:941
239
  msgid "Your Name"
240
  msgstr "Tavs vārds"
241
 
242
- #: widget-context.php:942
243
  msgid "Your Email"
244
  msgstr "Tavs e-pasts"
245
 
246
- #: widget-context.php:943
247
  msgid "Subscribe"
248
  msgstr "Pierakstīties"
249
 
250
  #. Plugin URI of the plugin/theme
251
- msgid "http://wordpress.org/extend/plugins/widget-context/"
252
  msgstr ""
253
 
254
  #. Description of the plugin/theme
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>."
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
languages/widget-context-ru_RU.mo ADDED
Binary file
languages/widget-context-ru_RU.po ADDED
@@ -0,0 +1,271 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 CHANGED
@@ -2,9 +2,9 @@
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-beta.3\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/support/plugin/git\n"
7
- "POT-Creation-Date: 2014-07-10 14:48:47+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -12,235 +12,260 @@ msgstr ""
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
14
 
15
- #: modules/custom-post-types-taxonomies/custom-cpt-tax.php:71
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  msgid "Custom Post Types and Taxonomies"
17
  msgstr ""
18
 
19
- #: modules/custom-post-types-taxonomies/custom-cpt-tax.php:72
20
  msgid "Context based custom post types and taxonomies"
21
  msgstr ""
22
 
23
- #: modules/custom-post-types-taxonomies/custom-cpt-tax.php:123
24
  msgid "All \"%s\" posts"
25
  msgstr ""
26
 
27
- #: modules/custom-post-types-taxonomies/custom-cpt-tax.php:129
28
  msgid "Archive of \"%s\" posts"
29
  msgstr ""
30
 
31
- #: modules/custom-post-types-taxonomies/custom-cpt-tax.php:138
32
  msgid "All \"%s\" taxonomy archives"
33
  msgstr ""
34
 
35
- #: modules/custom-post-types-taxonomies/custom-cpt-tax.php:150
36
  msgid "None."
37
  msgstr ""
38
 
39
- #: modules/word-count/word-count.php:49
40
  msgid "Word Count"
41
  msgstr ""
42
 
43
- #: modules/word-count/word-count.php:50
44
  msgid "Context based on word count on the page."
45
  msgstr ""
46
 
47
- #: modules/word-count/word-count.php:104
48
  msgid "Has"
49
  msgstr ""
50
 
51
- #: modules/word-count/word-count.php:105
52
  msgid "less"
53
  msgstr ""
54
 
55
- #: modules/word-count/word-count.php:105
56
  msgid "more"
57
  msgstr ""
58
 
59
- #: modules/word-count/word-count.php:105
60
  msgid "than"
61
  msgstr ""
62
 
63
- #: modules/word-count/word-count.php:106
64
  msgid "words"
65
  msgstr ""
66
 
67
- #. #-#-#-#-# widget-context.pot (Widget Context 1.0-beta.3) #-#-#-#-#
68
- #. Plugin Name of the plugin/theme
69
- #: widget-context.php:91 widget-context.php:530 widget-context.php:838
70
- msgid "Widget Context"
71
- msgstr ""
72
-
73
- #: widget-context.php:92
74
  msgid "Set the default logic to show or hide."
75
  msgstr ""
76
 
77
- #: widget-context.php:97
78
  msgid "Global Sections"
79
  msgstr ""
80
 
81
- #: widget-context.php:98
82
  msgid "Based on standard WordPress template tags."
83
  msgstr ""
84
 
85
- #: widget-context.php:102
86
  msgid "Target by URL"
87
  msgstr ""
88
 
89
- #: widget-context.php:103
90
  msgid "Based on URL patterns."
91
  msgstr ""
92
 
93
- #: widget-context.php:107
94
  msgid "Notes (invisible to public)"
95
  msgstr ""
96
 
97
- #: widget-context.php:108
98
  msgid "Enables private notes on widget context settings."
99
  msgstr ""
100
 
101
- #: widget-context.php:491
102
  msgid ""
103
  "No widget controls enabled. You can enable them in <a href=\"%s\">Widget "
104
  "Context settings</a>."
105
  msgstr ""
106
 
107
- #: widget-context.php:500
108
  msgid "No widget controls enabled."
109
  msgstr ""
110
 
111
- #: widget-context.php:512 widget-context.php:837 widget-context.php:898
112
  msgid "Widget Context Settings"
113
  msgstr ""
114
 
115
- #: widget-context.php:533
116
  msgid "Expand"
117
  msgstr ""
118
 
119
- #: widget-context.php:534
120
  msgid "Collapse"
121
  msgstr ""
122
 
123
- #: widget-context.php:548
124
- msgid "Show widget everywhere"
125
- msgstr ""
126
-
127
- #: widget-context.php:549
128
- msgid "Show widget on selected"
129
- msgstr ""
130
-
131
- #: widget-context.php:550
132
- msgid "Hide widget on selected"
133
- msgstr ""
134
-
135
- #: widget-context.php:551
136
- msgid "Hide widget everywhere"
137
- msgstr ""
138
-
139
- #: widget-context.php:562
140
  msgid "Front page"
141
  msgstr ""
142
 
143
- #: widget-context.php:563
144
  msgid "Blog page"
145
  msgstr ""
146
 
147
- #: widget-context.php:564
148
  msgid "All posts, pages and custom post types"
149
  msgstr ""
150
 
151
- #: widget-context.php:565
152
  msgid "All posts"
153
  msgstr ""
154
 
155
- #: widget-context.php:566
156
  msgid "All pages"
157
  msgstr ""
158
 
159
- #: widget-context.php:567
160
  msgid "All attachments"
161
  msgstr ""
162
 
163
- #: widget-context.php:568
164
  msgid "Search results"
165
  msgstr ""
166
 
167
- #: widget-context.php:569
168
  msgid "404 error page"
169
  msgstr ""
170
 
171
- #: widget-context.php:570
172
  msgid "All archives"
173
  msgstr ""
174
 
175
- #: widget-context.php:571
176
  msgid "All date archives"
177
  msgstr ""
178
 
179
- #: widget-context.php:572
180
  msgid "Daily archives"
181
  msgstr ""
182
 
183
- #: widget-context.php:573
184
  msgid "Monthly archives"
185
  msgstr ""
186
 
187
- #: widget-context.php:574
188
  msgid "Yearly archives"
189
  msgstr ""
190
 
191
- #: widget-context.php:575
192
  msgid "All category archives"
193
  msgstr ""
194
 
195
- #: widget-context.php:576
196
  msgid "All tag archives"
197
  msgstr ""
198
 
199
- #: widget-context.php:577
200
  msgid "All author archives"
201
  msgstr ""
202
 
203
- #: widget-context.php:594
204
  msgid ""
205
  "Enter one location fragment per line. Use <strong>*</strong> character as a "
206
  "wildcard. Example: <code>category/peace/*</code> to target all posts in "
207
  "category <em>peace</em>."
208
  msgstr ""
209
 
210
- #: widget-context.php:709
211
  msgid "No options available"
212
  msgstr ""
213
 
214
- #: widget-context.php:915
215
  msgid "Enabled Context Modules"
216
  msgstr ""
217
 
218
- #: widget-context.php:932
219
  msgid "Widget Context is created and maintained by %s."
220
  msgstr ""
221
 
222
- #: widget-context.php:937
223
  msgid "News & Updates"
224
  msgstr ""
225
 
226
- #: widget-context.php:938
227
  msgid "Subscribe to receive news & updates about the plugin."
228
  msgstr ""
229
 
230
- #: widget-context.php:941
231
  msgid "Your Name"
232
  msgstr ""
233
 
234
- #: widget-context.php:942
235
  msgid "Your Email"
236
  msgstr ""
237
 
238
- #: widget-context.php:943
239
  msgid "Subscribe"
240
  msgstr ""
241
 
242
  #. Plugin URI of the plugin/theme
243
- msgid "http://wordpress.org/extend/plugins/widget-context/"
244
  msgstr ""
245
 
246
  #. Description of the plugin/theme
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"
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
modules/custom-post-types-taxonomies/{custom-cpt-tax.php → module.php} RENAMED
File without changes
modules/word-count/{word-count.php → module.php} RENAMED
@@ -101,9 +101,9 @@ class WidgetContextWordCount {
101
 
102
  return sprintf(
103
  '<p>%s %s %s</p>',
104
- $this->wc->make_simple_checkbox( $control_args, 'check_wordcount', __('Has') ),
105
- $this->wc->make_simple_dropdown( $control_args, 'check_wordcount_type', array( 'less' => __('less'), 'more' => __('more') ), null, __('than') ),
106
- $this->wc->make_simple_textfield( $control_args, 'word_count', null, __('words') )
107
  );
108
 
109
  }
101
 
102
  return sprintf(
103
  '<p>%s %s %s</p>',
104
+ $this->wc->make_simple_checkbox( $control_args, 'check_wordcount', __('Has', 'widget-context') ),
105
+ $this->wc->make_simple_dropdown( $control_args, 'check_wordcount_type', array( 'less' => __('less', 'widget-context'), 'more' => __('more', 'widget-context') ), null, __('than', 'widget-context') ),
106
+ $this->wc->make_simple_textfield( $control_args, 'word_count', null, __('words', 'widget-context') )
107
  );
108
 
109
  }
readme.txt CHANGED
@@ -3,8 +3,8 @@
3
  Contributors: kasparsd, jamescollins
4
  Tags: widget, widget context, context, logic, widget logic, cms
5
  Requires at least: 3.0
6
- Tested up to: 3.9.1
7
- Stable tag: 1.0.2
8
  License: GPLv2 or later
9
 
10
  Show or hide widgets on specific posts, pages or sections of your site.
@@ -30,6 +30,11 @@ Widget Context allows you to show or hide widgets on certain sections of your si
30
 
31
  == Changelog ==
32
 
 
 
 
 
 
33
  = 1.0.2 =
34
  * Load available custom post types and taxonomies right before visibility checks to avoid PHP warnings.
35
  * Run visibility checks only after the main post query has run. Fixes issues with WooCommerce.
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.0
7
+ Stable tag: 1.0.3
8
  License: GPLv2 or later
9
 
10
  Show or hide widgets on specific posts, pages or sections of your site.
30
 
31
  == Changelog ==
32
 
33
+ = 1.0.3 =
34
+ * Include Russian translation (Thanks Flector!).
35
+ * Add textdomain to the remaining strings.
36
+ * Enable debugging if [Debug Bar](https://wordpress.org/plugins/debug-bar/) is available.
37
+
38
  = 1.0.2 =
39
  * Load available custom post types and taxonomies right before visibility checks to avoid PHP warnings.
40
  * Run visibility checks only after the main post query has run. Fixes issues with WooCommerce.
widget-context.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /*
3
  Plugin Name: Widget Context
4
- Plugin URI: http://wordpress.org/extend/plugins/widget-context/
5
  Description: Show or hide widgets depending on the section of the site that is being viewed.
6
- Version: 1.0.2
7
  Author: Kaspars Dambis
8
  Author URI: http://kaspars.net
9
  Text Domain: widget-context
@@ -14,28 +14,30 @@ widget_context::instance();
14
 
15
  class widget_context {
16
 
17
- private static $instance;
18
  private $sidebars_widgets;
19
  private $options_name = 'widget_logic_options'; // Context settings for widgets (visibility, etc)
20
  private $settings_name = 'widget_context_settings'; // Widget Context global settings
 
21
 
22
  private $core_modules = array(
23
- 'word-count/word-count.php',
24
- 'custom-post-types-taxonomies/custom-cpt-tax.php'
25
  );
26
 
27
- var $context_options = array(); // Store visibility settings
28
- var $context_settings = array(); // Store admin settings
29
- var $contexts = array();
30
- var $plugin_path;
31
 
32
 
33
  static function instance() {
34
 
35
- if ( ! self::$instance )
36
- self::$instance = new self();
37
 
38
- return self::$instance;
 
 
 
39
 
40
  }
41
 
@@ -47,7 +49,7 @@ class widget_context {
47
 
48
  // Load plugin settings and show/hide widgets by altering the
49
  // $sidebars_widgets global variable
50
- add_action( 'init', array( $this, 'init_widget_context' ) );
51
 
52
  // Enable localization
53
  add_action( 'plugins_loaded', array( $this, 'init_l10n' ) );
@@ -73,16 +75,32 @@ class widget_context {
73
  // Register admin settings
74
  add_action( 'admin_init', array( $this, 'widget_context_settings_init' ) );
75
 
 
 
 
 
76
  }
77
 
78
 
79
  function define_widget_contexts() {
80
 
 
 
 
 
 
 
 
 
 
 
 
 
81
  // Initialize core modules
82
  $include_path = plugin_dir_path( __FILE__ ) . '/modules';
83
 
84
  foreach ( $this->core_modules as $module ) {
85
- include sprintf( '%s/%s', $include_path, $module );
86
  }
87
 
88
  // Default context
@@ -105,7 +123,7 @@ class widget_context {
105
  ),
106
  'admin_notes' => array(
107
  'label' => __( 'Notes (invisible to public)', 'widget-context' ),
108
- 'description' => __( 'Enables private notes on widget context settings.'),
109
  'weight' => 90
110
  )
111
  );
@@ -127,6 +145,39 @@ class widget_context {
127
  }
128
 
129
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
130
  function sort_context_by_weight( $a, $b ) {
131
 
132
  if ( ! isset( $a['weight'] ) )
@@ -140,19 +191,7 @@ class widget_context {
140
  }
141
 
142
 
143
- function init_widget_context() {
144
-
145
- $this->context_options = apply_filters(
146
- 'widget_context_options',
147
- (array) get_option( $this->options_name, array() )
148
- );
149
-
150
- $this->context_settings = wp_parse_args(
151
- (array) get_option( $this->settings_name, array() ),
152
- array(
153
- 'contexts' => array()
154
- )
155
- );
156
 
157
  // Hide/show widgets for is_active_sidebar() to work
158
  add_filter( 'sidebars_widgets', array( $this, 'maybe_unset_widgets_by_context' ), 10 );
@@ -248,13 +287,16 @@ class widget_context {
248
 
249
  // Don't run this at the backend or before
250
  // post query has been run
251
- if ( is_admin() || ! did_action( 'parse_query' ) )
252
  return $sidebars_widgets;
253
 
254
  // Return from cache if we have done the context checks already
255
  if ( ! empty( $this->sidebars_widgets ) )
256
  return $this->sidebars_widgets;
257
 
 
 
 
258
  foreach( $sidebars_widgets as $widget_area => $widget_list ) {
259
 
260
  if ( $widget_area == 'wp_inactive_widgets' || empty( $widget_list ) )
@@ -285,7 +327,7 @@ class widget_context {
285
 
286
  $matches = array();
287
 
288
- foreach ( $this->contexts as $context_id => $context_settings ) {
289
 
290
  // This context check has been disabled in the plugin settings
291
  if ( isset( $this->context_settings['contexts'][ $context_id ] ) && ! $this->context_settings['contexts'][ $context_id ] )
@@ -373,6 +415,13 @@ class widget_context {
373
 
374
  function context_check_url( $check, $settings ) {
375
 
 
 
 
 
 
 
 
376
  $urls = trim( $settings['urls'] );
377
 
378
  if ( empty( $urls ) )
@@ -386,7 +435,6 @@ class widget_context {
386
  }
387
 
388
 
389
- // Thanks to Drupal: http://api.drupal.org/api/function/drupal_match_path/6
390
  function match_path( $patterns ) {
391
 
392
  global $wp;
@@ -400,13 +448,30 @@ class widget_context {
400
  if ( ! empty( $_SERVER['QUERY_STRING'] ) )
401
  $url_request .= '?' . $_SERVER['QUERY_STRING'];
402
 
403
- foreach ( explode( "\n", $patterns ) as $pattern )
404
- $patterns_safe[] = trim( trim( $pattern ), '/' ); // Trim trailing and leading slashes
 
405
 
406
- // Remove empty URL patterns
 
 
 
 
 
 
 
 
 
 
 
 
 
407
  $patterns_safe = array_filter( $patterns_safe );
408
 
409
- $regexps = '/^('. preg_replace( array( '/(\r\n|\n| )+/', '/\\\\\*/' ), array( '|', '.*' ), preg_quote( implode( "\n", array_filter( $patterns_safe, 'trim' ) ), '/' ) ) .')$/';
 
 
 
410
 
411
  return preg_match( $regexps, $url_request );
412
 
@@ -860,7 +925,7 @@ class widget_context {
860
 
861
  $context_controls = array();
862
 
863
- foreach ( $this->contexts as $context_id => $context_args ) {
864
 
865
  // Hide core modules from being disabled
866
  if ( isset( $context_args['type'] ) && $context_args['type'] == 'core' )
@@ -934,13 +999,13 @@ class widget_context {
934
  <div class="wc-sidebar-section wc-sidebar-credits">
935
  <p>
936
  <img src="http://gravatar.com/avatar/661eb21385c25c01ad64ab9e13b37331/?s=60" alt="Kaspars Dambis" width="60" height="60" />
937
- <?php printf( esc_html__( 'Widget Context is created and maintained by %s.' ), '<a href="http://kaspars.net">Kaspars Dambis</a>' ); ?>
938
  </p>
939
  </div>
940
 
941
  <div class="wc-sidebar-section wc-sidebar-newsletter">
942
- <h3><?php esc_html_e( 'News & Updates' ); ?></h3>
943
- <p><?php esc_html_e( 'Subscribe to receive news & updates about the plugin.' ); ?></p>
944
  <form action="//osc.us2.list-manage.com/subscribe/post?u=e8d173fc54c0fc4286a2b52e8&amp;id=8afe96c5a3" method="post" target="_blank">
945
  <?php $user = wp_get_current_user(); ?>
946
  <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>
@@ -959,6 +1024,36 @@ class widget_context {
959
  }
960
 
961
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
962
  }
963
 
964
 
1
  <?php
2
  /*
3
  Plugin Name: Widget Context
4
+ Plugin URI: https://wordpress.org/plugins/widget-context/
5
  Description: Show or hide widgets depending on the section of the site that is being viewed.
6
+ Version: 1.0.3
7
  Author: Kaspars Dambis
8
  Author URI: http://kaspars.net
9
  Text Domain: widget-context
14
 
15
  class widget_context {
16
 
 
17
  private $sidebars_widgets;
18
  private $options_name = 'widget_logic_options'; // Context settings for widgets (visibility, etc)
19
  private $settings_name = 'widget_context_settings'; // Widget Context global settings
20
+ private $sidebars_widgets_copy;
21
 
22
  private $core_modules = array(
23
+ 'word-count',
24
+ 'custom-post-types-taxonomies'
25
  );
26
 
27
+ private $context_options = array(); // Store visibility settings
28
+ private $context_settings = array(); // Store admin settings
29
+ private $contexts = array();
30
+ private $plugin_path;
31
 
32
 
33
  static function instance() {
34
 
35
+ static $instance;
 
36
 
37
+ if ( ! $instance )
38
+ $instance = new self();
39
+
40
+ return $instance;
41
 
42
  }
43
 
49
 
50
  // Load plugin settings and show/hide widgets by altering the
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' ) );
75
  // Register admin settings
76
  add_action( 'admin_init', array( $this, 'widget_context_settings_init' ) );
77
 
78
+ // Register our own debug bar panel
79
+ add_filter( 'debug_bar_panels', array( $this, 'widget_context_debug_bar_init' ) );
80
+ add_action( 'debug_bar_enqueue_scripts', array( $this, 'widget_context_debug_bar_scripts' ) );
81
+
82
  }
83
 
84
 
85
  function define_widget_contexts() {
86
 
87
+ $this->context_options = apply_filters(
88
+ 'widget_context_options',
89
+ (array) get_option( $this->options_name, array() )
90
+ );
91
+
92
+ $this->context_settings = wp_parse_args(
93
+ (array) get_option( $this->settings_name, array() ),
94
+ array(
95
+ 'contexts' => array()
96
+ )
97
+ );
98
+
99
  // Initialize core modules
100
  $include_path = plugin_dir_path( __FILE__ ) . '/modules';
101
 
102
  foreach ( $this->core_modules as $module ) {
103
+ include sprintf( '%s/%s/module.php', $include_path, $module );
104
  }
105
 
106
  // Default context
123
  ),
124
  'admin_notes' => array(
125
  'label' => __( 'Notes (invisible to public)', 'widget-context' ),
126
+ 'description' => __( 'Enables private notes on widget context settings.', 'widget-context'),
127
  'weight' => 90
128
  )
129
  );
145
  }
146
 
147
 
148
+ public function get_context_options( $widget_id = null ) {
149
+
150
+ if ( ! $widget_id )
151
+ return $this->context_options;
152
+
153
+ if ( isset( $this->context_options[ $widget_id ] ) )
154
+ return $this->context_options[ $widget_id ];
155
+ else
156
+ return null;
157
+
158
+ }
159
+
160
+
161
+ public function get_context_settings( $widget_id = null ) {
162
+
163
+ if ( ! $widget_id )
164
+ return $this->context_settings;
165
+
166
+ if ( isset( $this->context_settings[ $widget_id ] ) )
167
+ return $this->context_settings[ $widget_id ];
168
+ else
169
+ return null;
170
+
171
+ }
172
+
173
+
174
+ public function get_contexts() {
175
+
176
+ return $this->contexts;
177
+
178
+ }
179
+
180
+
181
  function sort_context_by_weight( $a, $b ) {
182
 
183
  if ( ! isset( $a['weight'] ) )
191
  }
192
 
193
 
194
+ function set_widget_contexts_frontend() {
 
 
 
 
 
 
 
 
 
 
 
 
195
 
196
  // Hide/show widgets for is_active_sidebar() to work
197
  add_filter( 'sidebars_widgets', array( $this, 'maybe_unset_widgets_by_context' ), 10 );
287
 
288
  // Don't run this at the backend or before
289
  // post query has been run
290
+ if ( is_admin() )
291
  return $sidebars_widgets;
292
 
293
  // Return from cache if we have done the context checks already
294
  if ( ! empty( $this->sidebars_widgets ) )
295
  return $this->sidebars_widgets;
296
 
297
+ // Store a local copy of the original widget location
298
+ $this->sidebars_widgets_copy = $sidebars_widgets;
299
+
300
  foreach( $sidebars_widgets as $widget_area => $widget_list ) {
301
 
302
  if ( $widget_area == 'wp_inactive_widgets' || empty( $widget_list ) )
327
 
328
  $matches = array();
329
 
330
+ foreach ( $this->get_contexts() as $context_id => $context_settings ) {
331
 
332
  // This context check has been disabled in the plugin settings
333
  if ( isset( $this->context_settings['contexts'][ $context_id ] ) && ! $this->context_settings['contexts'][ $context_id ] )
415
 
416
  function context_check_url( $check, $settings ) {
417
 
418
+ $settings = wp_parse_args(
419
+ $settings,
420
+ array(
421
+ 'urls' => null
422
+ )
423
+ );
424
+
425
  $urls = trim( $settings['urls'] );
426
 
427
  if ( empty( $urls ) )
435
  }
436
 
437
 
 
438
  function match_path( $patterns ) {
439
 
440
  global $wp;
448
  if ( ! empty( $_SERVER['QUERY_STRING'] ) )
449
  $url_request .= '?' . $_SERVER['QUERY_STRING'];
450
 
451
+ $rows = explode( "\n", $patterns );
452
+
453
+ foreach ( $rows as $pattern ) {
454
 
455
+ // Trim trailing, leading slashes and whitespace
456
+ $pattern = trim( trim( $pattern ), '/' );
457
+
458
+ // Escape regex chars
459
+ $pattern = preg_quote( $pattern, '/' );
460
+
461
+ // Enable wildcard checks
462
+ $pattern = str_replace( '\*', '.*', $pattern );
463
+
464
+ $patterns_safe[] = $pattern;
465
+
466
+ }
467
+
468
+ // Remove empty patterns
469
  $patterns_safe = array_filter( $patterns_safe );
470
 
471
+ $regexps = sprintf(
472
+ '/^(%s)$/i',
473
+ implode( '|', $patterns_safe )
474
+ );
475
 
476
  return preg_match( $regexps, $url_request );
477
 
925
 
926
  $context_controls = array();
927
 
928
+ foreach ( $this->get_contexts() as $context_id => $context_args ) {
929
 
930
  // Hide core modules from being disabled
931
  if ( isset( $context_args['type'] ) && $context_args['type'] == 'core' )
999
  <div class="wc-sidebar-section wc-sidebar-credits">
1000
  <p>
1001
  <img src="http://gravatar.com/avatar/661eb21385c25c01ad64ab9e13b37331/?s=60" alt="Kaspars Dambis" width="60" height="60" />
1002
+ <?php printf( esc_html__( 'Widget Context is created and maintained by %s.' , 'widget-context'), '<a href="http://kaspars.net">Kaspars Dambis</a>' ); ?>
1003
  </p>
1004
  </div>
1005
 
1006
  <div class="wc-sidebar-section wc-sidebar-newsletter">
1007
+ <h3><?php esc_html_e( 'News & Updates' , 'widget-context'); ?></h3>
1008
+ <p><?php esc_html_e( 'Subscribe to receive news & updates about the plugin.' , 'widget-context'); ?></p>
1009
  <form action="//osc.us2.list-manage.com/subscribe/post?u=e8d173fc54c0fc4286a2b52e8&amp;id=8afe96c5a3" method="post" target="_blank">
1010
  <?php $user = wp_get_current_user(); ?>
1011
  <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>
1024
  }
1025
 
1026
 
1027
+ public function get_sidebars_widgets_copy() {
1028
+
1029
+ return $this->sidebars_widgets_copy;
1030
+
1031
+ }
1032
+
1033
+
1034
+ function widget_context_debug_bar_init( $panels ) {
1035
+
1036
+ include plugin_dir_path( __FILE__ ) . '/debug/debug-bar.php';
1037
+
1038
+ if ( class_exists( 'Debug_Widget_Context' ) )
1039
+ $panels[] = new Debug_Widget_Context();
1040
+
1041
+ return $panels;
1042
+
1043
+ }
1044
+
1045
+
1046
+ function widget_context_debug_bar_scripts() {
1047
+
1048
+ wp_enqueue_script(
1049
+ 'widget-context-debug-js',
1050
+ plugins_url( 'debug/debug.js', plugin_basename( __FILE__ ) ),
1051
+ array( 'jquery' )
1052
+ );
1053
+
1054
+ }
1055
+
1056
+
1057
  }
1058
 
1059