mirror of
https://github.com/10h30/genesis-simple-sidebars.git
synced 2026-06-05 15:08:34 +09:00
+2
-2
@@ -80,8 +80,8 @@ function ss_inpost_metabox_save( $post_id, $post ) {
|
||||
return $post->ID;
|
||||
|
||||
$_sidebars = array(
|
||||
'_ss_sidebar' => $_POST['_ss_sidebar'],
|
||||
'_ss_sidebar_alt' => $_POST['_ss_sidebar_alt'],
|
||||
'_ss_sidebar' => isset( $_POST['_ss_sidebar'] ) ? $_POST['_ss_sidebar'] : '',
|
||||
'_ss_sidebar_alt' => isset( $_POST['_ss_sidebar_alt'] ) ? $_POST['_ss_sidebar_alt'] : '',
|
||||
);
|
||||
|
||||
//* store the custom fields
|
||||
|
||||
@@ -101,6 +101,10 @@ function ss_register_sidebars() {
|
||||
//* Cycle through created sidebars, register them as widget areas
|
||||
foreach ( (array) $_sidebars as $id => $info ) {
|
||||
|
||||
if ( ! isset( $info['name'] ) || ! isset( $info['description'] ) ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
genesis_register_sidebar( array(
|
||||
'name' => esc_html( $info['name'] ),
|
||||
'id' => $id,
|
||||
|
||||
+6
-3
@@ -2,8 +2,8 @@
|
||||
Contributors: nathanrice, wpmuguru, studiopress
|
||||
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5553118
|
||||
Tags: hooks, genesis, genesiswp, studiopress
|
||||
Requires at least: 4.4.2
|
||||
Tested up to: 4.4.2
|
||||
Requires at least: 3.6
|
||||
Tested up to: 4.5
|
||||
Stable tag: 2.0.3
|
||||
|
||||
This plugin allows you to create multiple, dynamic widget areas, and assign those widget areas to sidebar locations within the Genesis Framework on a per post, per page, or per tag/category archive basis.
|
||||
@@ -37,10 +37,13 @@ Not in the way you're probably thinking. The markup surrounding the widget area
|
||||
|
||||
== Changelog ==
|
||||
|
||||
= 2.0.3 =
|
||||
= 2.0.4 =
|
||||
* Update for WordPress 4.4+ and Genesis 2.2.7+
|
||||
* DO NOT upgrade to 2.0.3 unless you are running WordPress 4.4+ AND Genesis 2.2.7+
|
||||
|
||||
= 2.0.3 =
|
||||
* Fix warnings and notices
|
||||
|
||||
= 2.0.2 =
|
||||
* Change text domain, update POT file.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user