Genesis Simple Sidebars - Version 0.9.1

Version Description

  • Added support for custom post types
Download this release

Release Info

Developer nathanrice
Plugin Icon 128x128 Genesis Simple Sidebars
Version 0.9.1
Comparing to
See all releases

Code changes from version 0.9 to 0.9.1

Files changed (3) hide show
  1. inpost.php +6 -3
  2. plugin.php +1 -1
  3. readme.txt +7 -4
inpost.php CHANGED
@@ -4,9 +4,12 @@
4
  * so that users can choose what sidebar to use.
5
  */
6
  add_action('admin_menu', 'ss_add_inpost_metabox');
7
- function ss_add_inpost_metabox() {
8
- add_meta_box('ss_inpost_metabox', __('Sidebar Selection', 'genesis'), 'ss_inpost_metabox', 'post', 'side', 'low');
9
- add_meta_box('ss_inpost_metabox', __('Sidebar Selection', 'genesis'), 'ss_inpost_metabox', 'page', 'side', 'low');
 
 
 
10
  }
11
 
12
  function ss_inpost_metabox() {
4
  * so that users can choose what sidebar to use.
5
  */
6
  add_action('admin_menu', 'ss_add_inpost_metabox');
7
+ function ss_add_inpost_metabox() {
8
+ foreach ( (array)get_post_types( array( 'public' => true ) ) as $type ) {
9
+ if ( post_type_supports( $type, 'genesis-simple-sidebars' ) || $type == 'post' || $type == 'page' ) {
10
+ add_meta_box('ss_inpost_metabox', __('Sidebar Selection', 'genesis'), 'ss_inpost_metabox', $type, 'side', 'low');
11
+ }
12
+ }
13
  }
14
 
15
  function ss_inpost_metabox() {
plugin.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Genesis Simple Sidebars
4
  Plugin URI: http://www.studiopress.com/plugins/simple-sidebars
5
  Description: Genesis Simple Sidebars allows you to easily create and use new sidebar widget areas.
6
- Version: 0.9
7
  Author: Nathan Rice
8
  Author URI: http://www.nathanrice.net/
9
  */
3
  Plugin Name: Genesis Simple Sidebars
4
  Plugin URI: http://www.studiopress.com/plugins/simple-sidebars
5
  Description: Genesis Simple Sidebars allows you to easily create and use new sidebar widget areas.
6
+ Version: 0.9.1
7
  Author: Nathan Rice
8
  Author URI: http://www.nathanrice.net/
9
  */
readme.txt CHANGED
@@ -2,9 +2,9 @@
2
  Contributors: nathanrice
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5553118
4
  Tags: hooks, genesis, genesiswp, studiopress
5
- Requires at least: 2.9
6
- Tested up to: 3.0
7
- Stable tag: 0.9
8
 
9
  This plugin allows you to create multiple, dynamic widget areas, and assign those widget areas to sidebar locations within the Genesis Theme Framework on a per post, per page, or per tag/category archive basis.
10
 
@@ -44,4 +44,7 @@ Not in the way you're probably thinking. The markup surrounding the widget area
44
  * Fixed "is not array" errors reported by users
45
  * Added nonce verification for security purposes
46
  * Added error and success messages
47
- * Bump to pre-release 0.9 branch
 
 
 
2
  Contributors: nathanrice
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5553118
4
  Tags: hooks, genesis, genesiswp, studiopress
5
+ Requires at least: 3.0
6
+ Tested up to: 3.0.1
7
+ Stable tag: 0.9.1
8
 
9
  This plugin allows you to create multiple, dynamic widget areas, and assign those widget areas to sidebar locations within the Genesis Theme Framework on a per post, per page, or per tag/category archive basis.
10
 
44
  * Fixed "is not array" errors reported by users
45
  * Added nonce verification for security purposes
46
  * Added error and success messages
47
+ * Bump to pre-release 0.9 branch
48
+
49
+ = 0.9.1 =
50
+ * Added support for custom post types