-
Notifications
You must be signed in to change notification settings - Fork 21
/
readme.txt
188 lines (140 loc) · 6.75 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
=== Display Widgets ===
Contributors: sswells
Donate link: http://strategy11.com/donate/
Tags: widget, widgets, admin, show, hide, page, sidebar, content, wpmu, wordpress, plugin, post, posts, content, filter, widget logic, widget context
Requires at least: 3.1
Tested up to: 3.8
Stable tag: 2.03
Simply hide widgets on specified pages. Adds checkboxes to each widget to either show or hide it on every site page.
== Description ==
Change your sidebar content for different pages, categories, custom taxonomies, and WPML languages. Avoid creating multiple sidebars and duplicating widgets by adding check boxes to each widget in the admin (as long as it is written in the WordPress version 2.8 format) which will either show or hide the widgets on every site page. Great for avoiding extra coding and keeping your sidebars clean.
By default, 'Hide on checked pages' is selected with no boxes checked, so all current widgets will continue to display on all pages.
You can also find a development version where you can add translations and bug fixes on ([GitHub](https://github.com/Strategy11/display-widgets "GitHub"))
http://strategy11.com/display-widgets/
= Translations =
* Albanian ([Taulant](http://wporacle.com/ "Taulant"))
* Bahasa Malaysian (Jass at 100webhosting.com)
* Chinese ([Hanolex](http://hanolex.org "Hanolex"))
* Dutch (Alanya Hotels)
* French ([Fmarie](http://www.fmarie.net/ "Fmarie"))
* German ([Caspar Hübinger](http://glueckpress.com "Caspar Hübinger"))
* Hebrew ([Ariel](http://arielk.net "Ariel"))
* Japanese ([BNG NET](http://staff.blog.bng.net/ "BNG NET"))
* Polish (Soplica at artvision1.pl)
* Romanian (Nobelcom)
* Russian ([Serhij](http://darmoid.ru "Serhij"))
* Spanish ([Alicia García Holgado](http://grial.usal.es/pfcgrial "Alicia García Holgado"))
* Tagalog (Hanne at pointen.dk)
== Installation ==
1. Upload `display-widgets.php` to the `/wp-content/plugins/` directory
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Go to the 'Widgets' menu and show the options panel for the widget you would like to hide.
4. Select either 'Show on Checked' or 'Hide on Checked' from the drop-down and check the boxes.
== Frequently Asked Questions ==
= Why aren't the options showing up on my widget? =
This is a known limitation. Widgets written in the pre-2.8 format don't work the same way, and don't have the hooks. Sorry.
= My widgets aren't showing when I activate =
With some plugins and themes, you may need to adjust when the widget checking starts. You can add this to your theme functions.php or a new plugin.
add_filter('dw_callback_trigger', 'dw_callback_trigger');
function dw_callback_trigger(){
return 'wp_head'; //change to: plugins_loaded, after_setup_theme, wp_loaded, wp_head, or a hook of your choice
}
== Screenshots ==
1. The extra widget options added.
== Changelog ==
= 2.04 =
* Check if user is logged in before any other checks
* Resume use of old hook for those with widgets showing that shouldn't
= 2.03 =
* Default to check for widgets on wp_loaded hook
* Added dw_callback_trigger hook to change timing of first widget sidebar check
* Fixed saving widget settings when widget is first added
* Updated Polish translation
= 2.02 =
* Trigger widget checking later on page load
= 2.01 =
* Fixed for pre 3.8 compatibility
* Fixed logged-in/logged-out default to Everyone for existing widgets
* Fixed category checking for display
* Correctly show settings after save
* Only show public post types in the options
= 2.0 =
* Change the timing of checking widgets, so is_active_sidebar works correctly
* Load the widget options when the widget is opened to speed up page load
* Save options to a transient for 1 week
* If is front page or home, also check to see if the individual page is checked
* Switched logged in/out option to dropdown
* Added support for custom post type archive pages (contribution from [tomoki](http://wordpress.org/support/profile/tomoki "tomoki") )
* Removed 'include', 'login', and 'logout' fallbacks to further alleviate conflicts
* Added Italian translation
= 1.24 =
* Fixed bug preventing boxes unchecking for some users
= 1.23 =
* Switched WPML language support from highest to lowest priority when determining whether to show or hide
* Reduced database size of options saved
* Changed 'login' to 'dw_login' parameter naming to remove conflicts with certain widgets
* Added French, Tagalog, and Polish translations
= 1.22 =
* Added WPML support
* Fix to allow more than 5 taxonomies
* Fix to allow more than 99 pages
* Changed 'include' to 'dw_include' parameter naming to remove conflict with Suffusion widget
* Added Albanian translation ([Taulant](http://wporacle.com/ "Taulant"))
* Added Bahasa Malaysian translation (100webhosting.com)
= 1.21 =
* Added Romanian translation (Nobelcom)
* Added Chinese translation ([Hanolex](http://hanolex.org "Hanolex"))
= 1.20 =
* Added Hebrew translation ([Ariel](http://arielk.net "Ariel"))
* Fix css typo to correctly show the pointer cursor to show/hide option under the headings
= 1.19 =
* Fixed option to insert IDs to work with posts
= 1.18 =
* Added custom taxonomy support
* Show category options even if there are no posts in them
* Fixed expand and collapse bug in widget options
= 1.17 =
* Added Spanish translation ([Alicia García Holgado](http://grial.usal.es/pfcgrial "Alicia García Holgado"))
* Added Russian translation ([Serhij](http://darmoid.ru "Serhij"))
= 1.16 =
* Corrected naming of the Japanese translation files
* Added Dutch translation (Alanya Hotels)
= 1.15 =
* Added custom post type support
* Added German translation ([Caspar Hübinger](http://glueckpress.com "Caspar Hübinger"))
= 1.14 =
* Added Japanese translation ([BNG NET](http://staff.blog.bng.net/ "BNG NET"))
= 1.13 =
* Added a PO file for translators
= 1.12 =
* Show only published pages, and increase the displayed page limit
* Toggle sections
* Added check boxes to hide/show for logged-in users
* Added text field to list post ids for posts not displayed
= 1.11 =
* WordPress 3.0 compatibility
* Fixed PHP notices
= 1.10 =
* Improved admin widget page efficiency and load time
* Fixed bug preventing widgets from being hidden/shown correctly on some subpages
= 1.9 =
* Add check box for front page
* Change category checkbox to apply not only to the category page, but also to posts in that category
= 1.8 =
* Added check box for search page under "Miscellaneous"
= 1.7 =
* Update for 2.9 compatibility
= 1.6 =
* Added category checkboxes
= 1.5 =
* Added "404 Page" checkbox
= 1.4 =
* Changed "Home Page" check box to "Blog Page"
= 1.3 =
* Added check box for Home page if it is the blog page
* Added check boxes for single post and archive pages
* Save hide/show option correctly for more widgets
= 1.2 =
* Save page check boxes for more widgets
= 1.1 =
* Fixed bug that prevented other widget options to be displayed