Version Description
Confirm that plugin works with the latest version of WordPress.
Download this release
Release Info
Developer | kasparsd |
Plugin | Widget Context |
Version | 0.7.1 |
Comparing to | |
See all releases |
Code changes from version 0.7 to 0.7.1
- readme.txt +6 -2
- widget-context.php +3 -9
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: kasparsd
|
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=kaspars%40konstruktors%2ecom&item_name=Widget%20Context%20Plugin%20for%20WordPress&no_shipping=1&no_note=1&tax=0¤cy_code=EUR&lc=LV&bn=PP%2dDonationsBF&charset=UTF%2d8
|
4 |
Tags: widget, widget context, context, logic, widget logic, cms
|
5 |
Requires at least: 2.8
|
6 |
-
Tested up to: 2
|
7 |
-
Stable tag: 0.7
|
8 |
|
9 |
Show widgets in context - only on certain posts, front page, category or tag pages etc.
|
10 |
|
@@ -23,6 +23,7 @@ For news and updates regarding this plugin, check http://konstruktors.com/blog/
|
|
23 |
|
24 |
== Changelog ==
|
25 |
|
|
|
26 |
* **0.7** - Bug fix: check for active sidebars only after $paged has been set.
|
27 |
* **0.6** - Don't check for used sidebars on each widget load. Allow absolute URLs in the URL check.
|
28 |
* **0.5** - 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.
|
@@ -33,6 +34,9 @@ For news and updates regarding this plugin, check http://konstruktors.com/blog/
|
|
33 |
|
34 |
== Upgrade Notice ==
|
35 |
|
|
|
|
|
|
|
36 |
= 0.7 =
|
37 |
Bug fix: check for active sidebars only after $paged has been set.
|
38 |
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=kaspars%40konstruktors%2ecom&item_name=Widget%20Context%20Plugin%20for%20WordPress&no_shipping=1&no_note=1&tax=0¤cy_code=EUR&lc=LV&bn=PP%2dDonationsBF&charset=UTF%2d8
|
4 |
Tags: widget, widget context, context, logic, widget logic, cms
|
5 |
Requires at least: 2.8
|
6 |
+
Tested up to: 3.4.2
|
7 |
+
Stable tag: 0.7.1
|
8 |
|
9 |
Show widgets in context - only on certain posts, front page, category or tag pages etc.
|
10 |
|
23 |
|
24 |
== Changelog ==
|
25 |
|
26 |
+
* **0.7.1** - Confirm that the plugin works with the latest version of WP.
|
27 |
* **0.7** - Bug fix: check for active sidebars only after $paged has been set.
|
28 |
* **0.6** - Don't check for used sidebars on each widget load. Allow absolute URLs in the URL check.
|
29 |
* **0.5** - 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.
|
34 |
|
35 |
== Upgrade Notice ==
|
36 |
|
37 |
+
= 0.7.1 =
|
38 |
+
Confirm that plugin works with the latest version of WordPress.
|
39 |
+
|
40 |
= 0.7 =
|
41 |
Bug fix: check for active sidebars only after $paged has been set.
|
42 |
|
widget-context.php
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Widget Context
|
4 |
-
Plugin URI: http://konstruktors.com/
|
5 |
Description: Display widgets in context.
|
6 |
-
Version: 0.7
|
7 |
Author: Kaspars Dambis
|
8 |
-
Author URI: http://konstruktors.com/
|
9 |
|
10 |
For changelog see readme.txt
|
11 |
----------------------------
|
@@ -44,17 +44,11 @@ class widget_context {
|
|
44 |
// Enable widget context check only when viewed publicly,
|
45 |
add_action('wp_head', array($this, 'replace_widget_output_callback'));
|
46 |
// Add admin menu for config
|
47 |
-
// add_action('admin_menu', array($this, 'addAdminOptions'));
|
48 |
add_action('admin_enqueue_scripts', array($this, 'adminCSS'));
|
49 |
// Save widget context settings, when in admin area
|
50 |
add_filter('sidebars_widgets', array($this, 'filter_widgets'), 50);
|
51 |
// Check the number of words on page
|
52 |
add_action('wp_print_scripts', array($this, 'count_words_on_page'), 750);
|
53 |
-
}
|
54 |
-
|
55 |
-
|
56 |
-
function addAdminOptions() {
|
57 |
-
// add_options_page('Widget Context', 'Widget Context', 10, basename(__FILE__), array($this, 'printAdminOptions'));
|
58 |
}
|
59 |
|
60 |
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Widget Context
|
4 |
+
Plugin URI: http://konstruktors.com/
|
5 |
Description: Display widgets in context.
|
6 |
+
Version: 0.7.1
|
7 |
Author: Kaspars Dambis
|
8 |
+
Author URI: http://konstruktors.com/
|
9 |
|
10 |
For changelog see readme.txt
|
11 |
----------------------------
|
44 |
// Enable widget context check only when viewed publicly,
|
45 |
add_action('wp_head', array($this, 'replace_widget_output_callback'));
|
46 |
// Add admin menu for config
|
|
|
47 |
add_action('admin_enqueue_scripts', array($this, 'adminCSS'));
|
48 |
// Save widget context settings, when in admin area
|
49 |
add_filter('sidebars_widgets', array($this, 'filter_widgets'), 50);
|
50 |
// Check the number of words on page
|
51 |
add_action('wp_print_scripts', array($this, 'count_words_on_page'), 750);
|
|
|
|
|
|
|
|
|
|
|
52 |
}
|
53 |
|
54 |
|